a-share-multifactor-model
A股多因子模型/Barra风格因子分析。当用户说"多因子"、"multifactor"、"Barra"、"因子模型"、"风格因子"、"XX的因子暴露"、"因子收益率"、"风险模型"时触发。基于 cn-stock-data…
Skill by aifinlab
Chalk Labs
Need help deploying a-share-multifactor-model?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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-multifactor-model
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-multifactor-model
What's inside
- Skill name
a-share-multifactor-model- Description
- A股多因子模型/Barra风格因子分析。当用户说"多因子"、"multifactor"、"Barra"、"因子模型"、"风格因子"、"XX的因子暴露"、"因子收益率"、"风险模型"时触发。基于 cn-stock-data 获取行情和财务数据,构建多因子风险模型,分析因子暴露、因子收益、协方差矩阵。支持研报风格(formal)和快速分析风格(brief)。
- License
- Apache-2.0
- Instructions
- 68 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- multifactor-guide.md · references/
- multifactor_builder.py · scripts/
SKILL.md (first lines)
# A股多因子模型 ## 数据源 ```bash SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts" # 个股K线(计算动量/波动率因子) python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期] # 实时行情(市值/PE/PB等) python "$SCRIPTS/cn_stock_data.py" quote --code [CODE1],[CODE2],... # 财务指标(ROE/营收增速等基本面因子) python "$SCRIPTS/cn_stock_data.py" finance --code [CODE] ``` **量化计算**: ```bash QSCRIPTS="$SKILLS_ROOT/a-share-multifactor-model/scripts" # 多因子回归 python "$QSCRIPTS/multifactor_builder.py" --returns returns.csv --factors "size,value,momentum" --method ols ``` ## Workflow ### Step 1: 确定因子体系 根据用户需求选择因子集: - **Barra CNE5 风格**:Size/Beta/Momentum/ResidVol/NLSize/BP/Liquidity/EarningsYield/Growth/Leverage - **自定义因子**:用户指定的因子组合 - 通过 cn-stock-data 获取原始数据(行情+财务) ### Step 2: 因子计算与标准化 1. 从原始数据计算因子值 2. 去极值(MAD 法 ±3 倍) 3. 标准化(Z-score) 4. 缺失值处理(行业均值填充) ### Step 3: 截面回归估计因子收益 1. 每期对股票收益 vs 因子暴露做 OLS 回归 2. 回归系数即为因子收益率 3. 计算因子收益的 t 统计量 ### Step 4: 构建风险模型 1. 因子协方差矩阵(指数加权) 2. 特质风险估计(回归残差的波动率) 3. 股票层面的风险分解 ### Step 5: 输出 | 维度 | formal(完整因子报告) | brief(快速分析) | |------|---------------------|-------------------| | 因子定义 | 完整因子体系说明 | 仅列出因子名 | | 因子收益 | 完整时序+统计检验 | 近期因子收益排名 | | 暴露分析 | 个股因子暴露详表 | 关键因子暴露值 | | 风险模型 | 协方差矩阵+特质风险 | 无 | | 图表 | 因子收益累计曲线 | 无 | 默认风格:brief。用户要求"详细"/"完整模型"时切换为 formal。 ## 关键规则 1. 因子暴露需经行业和市值中性化处理 2. 因子协方差使用半衰期 90 天的指数加权 3. 特质收益率需检验正态性假设 4. A 股需剔除 ST 股和次新股(上市<60日) 5. 行业分类默认使用申万一级(31 个行业)
From aifinlab/FinClaw, Apache-2.0.
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-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-accident-insurance-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-board-analysis
aifinlab
A股涨跌停板分析/连板追踪/涨停板统计。当用户说"涨停"、"跌停"、"涨停板"、"连板"、"打板"、"炸板"、"涨停分析"、"今天多少家涨停"、"连板股"、"首板"、"二板"、"三板"、"涨停原因"、"XX涨停了"、"涨停板分析"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get a-share-multifactor-model running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
a-share-multifactor-model skill. Agent Mart. https://agentmart.dev/skills/aifinlab-a-share-multifactor-model (last updated 2026-10-24)