Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-factor-library
A股量化因子库/因子速查/因子计算公式查询。当用户说"因子库"、"有哪些因子"、"factor library"、"怎么算XX因子"、"价值因子"、"动量因子"、"质量因子"、"波动率因子"、"因子定义"、"因子公式"、"查因子"、"因子速查"、"列出所有因子"、"EP怎么算"、"BP公式"、"因子字段"时触发。MUST USE when user asks for factor definitions, formulas, or wants to look up how a specific quantitative factor is calculated. 提供A股常用量化因子的完整定义、计算公式、数据字段映射,覆盖价值/成长/质量/动量/波动率/规模/流动性七大类50+因子。支持研报风格(formal)和快速查询风格(brief)。
Passed 13 of 18 test cases with the skill, and 4 of 18 without it.
and 11 more in the full report
13 fixed5 passed either way7 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
Provide a quick-view concise summary of the EP factor for SH600519 (EP=0.035) and SZ000858 (EP=0.043) following the brief syntax convention.
| Checked | Without skill | With skill |
|---|---|---|
| Formats brief summary with pipe separators between formula, direction, and data source. | Missed | Passed |
| Formats ticker output using colon and pipe separators. | Missed | Passed |
The instructions your model reads when the skill loads.
cn-stock-data finance(adata 43字段: basic_eps, roe_wtd, roa_wtd, gross_margin, net_margin, total_rev, net_profit_attr_sh, total_rev_yoy_gr, net_profit_yoy_gr 等)cn-stock-data kline(date, open, close, high, low, volume, amount, turnover_rate, pct_change)cn-stock-data quote(price, pe_ttm, market_cap, float_market_cap, volume_ratio)SCRIPTS_DIR="$SKILLS_ROOT/a-share-factor-library/scripts"
CN_STOCK="$SKILLS_ROOT/cn-stock-data/scripts"
# 计算单个因子
python "$SCRIPTS_DIR/factor_calculator.py" --factor ep --codes SH600519,SZ000858
# 动量因子
python "$SCRIPTS_DIR/factor_calculator.py" --factor momentum_6m --codes SH600519
# 批量计算一类因子
python "$SCRIPTS_DIR/factor_calculator.py" --category value --codes SH600519,SZ000858
# 列出所有因子
python "$SCRIPTS_DIR/factor_calculator.py" --list
# 查看某个因子定义
python "$SCRIPTS_DIR/factor_calculator.py" --info ep
详见 references/factor-library-catalog.md,包含全部 7 大类因子的:
test cases passed, vs 4 / 18 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.