a-share-quant-research

A-share quantitative research tool — For individual investors to apply quantitative research to the China A-share market. Features include designing ETF rotation or stock factor hypotheses, running backtests on the A-share market, evaluating strategy robustness, and generating research reports. All outputs are presented as research and do not constitute personalized trading advice.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "a-share-quant-research" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fdc1b19425dddb94d326c786805872f996ac199a49fc4868f4bc21afbeadedd7. Verify the upstream source and version against https://skillhub.cn/skills/user_00a39f96/asetfback before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A-share quantitative research tool — For individual investors to apply quantitative research to the China A-share market. Features include designing ETF rotation or stock factor hypotheses, running backtests on the A-share market, evaluating strategy robustness, and generating research reports. All outputs are presented as research and do not constitute personalized trading advice.

0 Downloads

Introduction source: third_party · user_00a39f96 · 1.0.0 Reference

SkillPi interpretation

Tasks
Use this skill when the user wants to apply quantitative research to China's A-share market as an individual investor, including designing ETF rotation or stock-factor hypotheses, running A-share-aware backtests, evaluating robustness, producing reports, and keeping outputs framed as research rather than personalized buy/sell advice.
Inputs and outputs
When the user asks to run or evaluate an idea, return:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: a-share-quant-research
description: Use this skill when the user wants to apply quantitative research to China's A-share market as an individual investor, including designing ETF rotation or stock-factor hypotheses, running A-share-aware backtests, evaluating robustness, producing reports, and keeping outputs framed as research rather than personalized buy/sell advice.

A-Share Quant Research

Core stance

Act as a research copilot for a personal A-share investor. Do not present results as guaranteed profit, personalized financial advice, or a recommendation to buy/sell a specific security. Frame outputs as hypothesis design, backtesting, risk control, and execution discipline.

Prefer robust, low-frequency strategies over fragile high-frequency ideas. For most retail workflows, start with ETF rotation plus market-state risk control before moving into individual-stock multi-factor selection.

Workflow

  1. State the research question in one sentence: universe, signal, rebalance frequency, holding period, and risk limit.
  2. Classify the task:
    • ETF rotation
    • individual-stock multi-factor selection
    • market timing / regime filter
    • portfolio risk review
    • post-trade review
  3. For A-share market constraints, strategy templates, and backtest checks, read references/a-share-framework.md.
  4. Convert the idea into a testable spec:
    • universe and exclusions
    • required data fields
    • signal calculation
    • rebalance schedule
    • position sizing
    • transaction costs and slippage assumptions
    • risk stops and invalidation conditions
  5. Check for common contamination:
    • future financial data
    • survivorship bias
    • missing delisted/ST stocks
    • impossible fills at limit-up/limit-down
    • T+1 violations
    • overfitting with too many parameters
  6. Produce the next artifact the user needs:
    • concise strategy card
    • backtest plan
    • data checklist
    • script run
    • portfolio review checklist
    • weekly/monthly execution plan

Bundled ETF Backtest

Use scripts/a_share_etf_rotation_backtest.mjs when the user asks to run the starter framework or ETF rotation model. It fetches public Eastmoney daily K-line data, caches it under the current workspace's work/data, and writes report artifacts under the current workspace's outputs.

Default model:

  • universe: broad/style/sector/defensive A-share ETFs
  • signal: 60-day momentum minus 0.5 times 20-day annualized volatility
  • regime filter: CSI 300 above/below 200-day moving average
  • rebalance: month-end signal, next trading day execution
  • holdings: top 2 ETFs, max 50% each
  • cost: 0.10% per turnover

After the base script runs, use scripts/a_share_etf_rotation_robustness.mjs to read cached data and generate parameter robustness output plus an SVG equity curve.

Example command from a project workspace:

node /path/to/a-share-quant-research/scripts/a_share_etf_rotation_backtest.mjs
node /path/to/a-share-quant-research/scripts/a_share_etf_rotation_robustness.mjs

If network is restricted, request approval before fetching Eastmoney data. If cached data exists, the robustness script does not require network access.

Default Output Shape

When the user asks to run or evaluate an idea, return:

Strategy hypothesis:
Universe:
Data needed:
Signal:
Rebalance:
Risk controls:
Backtest traps:
First experiment:
Decision rule:
Artifacts:

Boundaries

  • Do not invent current prices, financial statements, index constituents, or regulatory details. Browse or ask for data when current facts matter.
  • Do not recommend leveraged, margin, or derivatives trading unless the user explicitly asks and the risks are discussed.
  • Do not rank individual securities as "buys" without presenting them as model outputs with assumptions and caveats.
  • If the user asks for real-time/latest A-share data, verify with a current source or request their exported brokerage/data file.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 面向 A 股个人投资者提供端到端量化研究能力,涵盖假设设计、回测、稳健性评估与报告生成
  • 聚焦 ETF 轮动与多因子选股等实用策略,显著提升投资研究效率
Trigger Precision90/100

Highlights

  • 触发描述清晰限定于 A 股定量研究场景,边界明确,覆盖多种策略类型
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档未显式提供 'When to Use' 使用场景说明

    Recommendation: 建议在 Workflow 前增加 'When to Use' 章节,明确适用场景与用户画像

  • 文档未内嵌完整示例 Reported severity: Minor

    核心执行依赖外部脚本文件,主文档未提供完整可自包含的示例

    Recommendation: 建议在 Bundled ETF Backtest 章节内嵌简化版代码片段或伪代码,降低用户理解成本

Highlights

  • Workflow 六步结构清晰,包含研究问题定义、任务分类、规范检查与产出物定义
  • 提供具体脚本调用示例与默认模型参数,执行路径明确
Execution Reliability88/100

Areas to improve

  • 未覆盖极端市场熔断等边缘异常 Reported severity: Minor

    异常处理未明确涵盖 A 股极端行情下的熔断、停牌等场景

    Recommendation: 建议在 contamination 检查中增加对极端行情数据缺失与交易限制的说明

Highlights

  • 数据源明确(Eastmoney 公开数据),参数设置合理(动量、波动率、成本假设)
  • 具备缓存机制与网络限制处理,关键操作有确认机制,覆盖主要回测陷阱
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.