a-share-factor-analysis
A股单因子研究/IC检验。当用户说"因子分析"、"单因子"、"IC"、"IR"、"因子检验"、"factor analysis"、"因子有效性"、"XX因子表现怎么样"、"因子IC"、"因子收益"、"因子衰减"、"quintile分析"时触发。基于 cn-stock-data 获取股票池行情与财务数据,通过…
Skill by aifinlab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aifinlab-a-share-factor-analysis
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/a-share-factor-analysis
What's inside
- Skill name
a-share-factor-analysis- Description
- A股单因子研究/IC检验。当用户说"因子分析"、"单因子"、"IC"、"IR"、"因子检验"、"factor analysis"、"因子有效性"、"XX因子表现怎么样"、"因子IC"、"因子收益"、"因子衰减"、"quintile分析"时触发。基于 cn-stock-data 获取股票池行情与财务数据,通过 factor_analyzer.py 计算 IC/IR、分位组合收益、因子换手率等量化指标。支持专业因子研究报告风格(formal)和快速因子检验风格(brief)。不适用于多因子组合优化(需自建模型)或个股基本面分析(用 a-share-earnings-analysis)。
- License
- Apache-2.0
- Instructions
- 71 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- factor-analysis-guide.md · references/
- factor_analyzer.py · scripts/
SKILL.md (first lines)
# A 股单因子研究 / IC 检验 ## 数据源 ```bash SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts" ANALYZER="$SKILLS_ROOT/a-share-factor-analysis/scripts/factor_analyzer.py" # 获取股票池行情(如沪深300成分股) python "$SCRIPTS/cn_stock_data.py" kline --code [CODE1],[CODE2],... --freq daily --start [回测起始日期] # 获取财务指标(PE/PB/ROE 等因子原始值) python "$SCRIPTS/cn_stock_data.py" finance --code [CODE1],[CODE2],... # 获取实时行情(市值、PE、PB) python "$SCRIPTS/cn_stock_data.py" quote --code [CODE1],[CODE2],... # 运行因子分析 python "$ANALYZER" --factor [FACTOR] --period [N] --data [input.json] ``` ## Workflow ### Step 1: 确定研究范围 1. 明确因子名称(PE/PB/ROE/动量/波动率/换手率等) 2. 确定股票池(沪深300/中证500/全A等,默认沪深300) 3. 确定回测区间(默认近3年)和调仓周期(默认20个交易日) ### Step 2: 数据获取与因子构建 1. 获取股票池所有成分股的日线 kline 数据 2. 获取 finance/quote 数据构建因子截面值 3. 整理为 factor_analyzer.py 所需的 JSON 格式(参见 references/factor-analysis-guide.md) ### Step 3: 运行因子分析 调用 `factor_analyzer.py` 计算: - **IC 序列**:每期因子值与下期收益的 Rank IC(Spearman 相关系数) - **IR**:IC 均值 / IC 标准差,衡量因子稳定性 - **分位组合**:按因子值分5组,比较各组平均收益 - **因子换手率**:相邻两期 Top/Bottom 组合的持仓变化比例 - **因子衰减**:不同持仓周期下 IC 的衰减速度 ### Step 4: 结果解读 参见 `references/factor-analysis-guide.md` 的解读标准: - IC 均值 > 0.03 且 IR > 0.5 → 因子有效 - 分位组合单调性 → 因子区分度 - 换手率过高 → 实际可执行性存疑 ### Step 5: 输出 ## 风格说明 | 维度 | formal(专业因子研究报告) | brief(快速因子检验) | |------|--------------------------|---------------------| | 篇幅 | 2-4 页 | 半页 | | IC 分析 | IC 序列图描述 + 分布统计 + 显著性检验 | IC 均值 + IR 一行结论 | | 分位分析 | 五分位组合收益表 + 多空收益曲线描述 | Top-Bottom 收益差 | | 因子衰减 | 多周期 IC 衰减表 | 最优持仓周期 | | 换手率 | 月度换手率序列 | 平均换手率 | | 结论 | 因子有效性评级 + 使用建议 + 局限性 | 有效/无效 + 一句话建议 | | 免责声明 | 需要(历史回测不代表未来表现) | 不需要 | ## 关键规则 1. **Rank IC 优先于 Pearson IC**:A 股因子值分布偏态严重,必须用 Spearman 秩相关 2. **去极值与中性化**:分析前对因子值做 MAD 去极值,formal 模式需做市值/行业中性化 3. **存活偏差**:说明是否剔除退市股,ST 股必须剔除 4. **交易成本**:分位组合收益需说明是否扣除交易成本(双边千三估算) 5. **数据来源标注**:标明因子原始数据来自 cn-stock-data 的哪个接口 6. **A 股特色因子**:关注涨跌停、ST、壳价值等 A 股特有因素对因子的影响
From aifinlab/FinClaw, Apache-2.0.
More from aifinlab/FinClaw
- 0.461score
a-share-capital-allocation
aifinlab
A股资本配置/再投资分析/资本支出与股东回报评估。当用户说"资本配置"、"capital allocation"、"回购"、"增发"、"并购"、"钱怎么花的"、"XX在做什么并购"、"定增"、"再融资"、"股份回购"、"资本开支"、"资本配置策略"、"资本配置分析"、"CAPEX"、"股东回报"时触发。MUST…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-concept
aifinlab
A股概念板块/题材分析/热点概念追踪。当用户说"概念板块"、"题材"、"热点板块"、"概念股"、"XX概念"、"AI概念"、"新能源概念"、"XX板块有哪些股票"、"今天什么板块涨了"、"风口"、"概念板块分析"、"热点题材"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-accident-insurance-assistant
aifinlab
���û���Ҫ�����������������������ṹ������Ԥ���������Լ�顢�¹����֤�����顢��ҽ����ƥ���顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-board-analysis
aifinlab
A股涨跌停板分析/连板追踪/涨停板统计。当用户说"涨停"、"跌停"、"涨停板"、"连板"、"打板"、"炸板"、"涨停分析"、"今天多少家涨停"、"连板股"、"首板"、"二板"、"三板"、"涨停原因"、"XX涨停了"、"涨停板分析"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-competitive-moat
aifinlab
A股企业护城河/竞争优势分析/竞争壁垒评估。当用户说"护城河"、"竞争优势"、"moat"、"壁垒"、"XX的护城河是什么"、"竞争力分析"、"可持续竞争优势"、"品牌溢价"、"转换成本"、"网络效应"、"护城河分析"、"竞争壁垒"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-comps
aifinlab
A股可比公司分析/行业估值对标。当用户说"可比公司"、"估值对标"、"行业估值"、"comps"、"comparable company"、"同行对比"、"XX跟同行比怎么样"、"XX板块估值"、"可比公司分析"、"comps analysis"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-audit-assistant
aifinlab
���û���Ҫ�ѷ�ɢ�����������������ʺ�������ˡ����ˡ�������˻��ڲ�����ʹ�õİ���ժҪʱʹ�ñ� skill�������ڻ������������顢�¹ʾ���˵���������¼��סԺ���ϡ���Ժ��¼�����֤������鱨�桢�������桢����…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-customer-service-assistant
aifinlab
���û���Ҫ�����ⰸ�����ϡ����̼�¼������״̬�������ڵ��ͨ��Ϣ�������ʺϿͷ������������Ա����Ӫ֧����Աʹ�õİ���ժҪʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-life-insurance-assistant
aifinlab
���û���Ҫ���������������������ṹ������Ԥ���������Լ�顢������ʵ������ԭ�����֤�����顢�����˺��������ʸ����ϼ�顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-autocorrelation
aifinlab
A股自相关/序列相关性/收益率自相关结构分析。当用户说"自相关"、"autocorrelation"、"序列相关"、"收益率预测性"、"动量还是反转"、"自相关系数"、"ACF"、"PACF"、"Ljung-Box"、"收益率是否可预测"、"随机游走检验"时触发。MUST USE when user asks…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-cash-flow
aifinlab
A股现金流分析/自由现金流质量评估。当用户说"现金流"、"自由现金流"、"FCF"、"cash flow"、"经营现金流"、"XX的现金流怎么样"、"收现比"、"净现比"、"资本开支"、"现金流量表"、"现金流分析"、"现金流质量"时触发。MUST USE when user asks about cash…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-convertible-bond
aifinlab
A股可转债分析/转债策略/可转债估值与筛选。当用户提到"可转债"或"转债"就触发。关键词:"可转债"、"转债"、"convertible bond"、"转股"、"转股价值"、"双低策略"、"强赎"、"XX转债怎么样"、"可转债打新"、"转债溢价率"、"转债分析"、"可转债筛选"、"转债到期收益率"、"YTM"、"下修…
SkillDFreshness: D★ 261Claude Code +9
Signals
- Stars
- 261
- Forks
- 39
- Open issues
- 2
- Last commit (this folder)
- Mar 26, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/aifinlab/FinClaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aifinlab
- 0.461score
claims-material-check-accident-insurance-assistant
aifinlab
���û���Ҫ�����������������������ṹ������Ԥ���������Լ�顢�¹����֤�����顢��ҽ����ƥ���顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-autocorrelation
aifinlab
A股自相关/序列相关性/收益率自相关结构分析。当用户说"自相关"、"autocorrelation"、"序列相关"、"收益率预测性"、"动量还是反转"、"自相关系数"、"ACF"、"PACF"、"Ljung-Box"、"收益率是否可预测"、"随机游走检验"时触发。MUST USE when user asks…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-audit-assistant
aifinlab
���û���Ҫ�ѷ�ɢ�����������������ʺ�������ˡ����ˡ�������˻��ڲ�����ʹ�õİ���ժҪʱʹ�ñ� skill�������ڻ������������顢�¹ʾ���˵���������¼��סԺ���ϡ���Ժ��¼�����֤������鱨�桢�������桢����…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-customer-service-assistant
aifinlab
���û���Ҫ�����ⰸ�����ϡ����̼�¼������״̬�������ڵ��ͨ��Ϣ�������ʺϿͷ������������Ա����Ӫ֧����Աʹ�õİ���ժҪʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-life-insurance-assistant
aifinlab
���û���Ҫ���������������������ṹ������Ԥ���������Լ�顢������ʵ������ԭ�����֤�����顢�����˺��������ʸ����ϼ�顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-board-analysis
aifinlab
A股涨跌停板分析/连板追踪/涨停板统计。当用户说"涨停"、"跌停"、"涨停板"、"连板"、"打板"、"炸板"、"涨停分析"、"今天多少家涨停"、"连板股"、"首板"、"二板"、"三板"、"涨停原因"、"XX涨停了"、"涨停板分析"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9
Cite this page
a-share-factor-analysis skill. Agent Mart. https://agentmart.dev/skills/aifinlab-a-share-factor-analysis (last updated 2026-10-24)