VernonOY
alpha-skills

Quantitative factor research skills for AI coding assistants

Last updated Jul 9, 2026
60
Stars
6
Forks
0
Issues
+4
Stars/day
Attention Score
75
Language breakdown
No language data available.
โ–ธ Files click to expand
README

Alpha Skills

Your AI-Powered Senior Quant Researcher.
Discover alpha. Evaluate factors. Monitor decay. Backtest strategies.
All through natural language โ€” in any AI coding assistant.

Quick Start ยท What Can It Do ยท Multi-Market ยท Skills ยท Contribute


Hiring a quant researcher costs $300K/year. This one is free, open-source, and works 24/7.
>
Alpha Skills turns any AI coding assistant into a senior quantitative researcher. It discovers factors, evaluates them with institutional-grade methodology (IC/ICIR/quintile/robustness), monitors for alpha decay, and runs multi-factor backtests โ€” all from a single sentence.
>
ๆ‹›ไธ€ไธช้‡ๅŒ–็ ”็ฉถๅ‘˜ๅนด่–ช็™พไธ‡ใ€‚่ฟ™ไธชๅ…่ดนใ€ๅผ€ๆบใ€7ร—24ๅฐๆ—ถๅทฅไฝœใ€‚

Alpha Skills Demo


What Can It Do

You say one sentence. It does the rest.

You:  "Evaluate the price-volume divergence factor"
AI:   ๐Ÿ“Š IC Mean=0.066 | ICIR=0.696 | Rating: โญ Strong
      Quintile spread monotonic. Best holding period: 20 days.
      Report saved โ†’ output/evalpvdiverge.png

You: "Mine 50 candidate factors and show me the best ones" AI: โ›๏ธ Scanned 50 candidates โ†’ 12 passed IC screen Top: PV divergence 20d (ICIR=0.70), Low downside vol (ICIR=0.53)... Register to library?

You: "Backtest using my top 3 factors" AI: ๐Ÿ“ˆ Sharpe=0.74 | MaxDD=-13.9% | Profit Factor=2.24 Gate check: โœ“ PF>1 โœ“ MDD>-25% โœ— Sharpe<1.0

No boilerplate. No notebooks. No 200 lines of pandas. Just results.

Skills Reference

| Skill | What It Does | Try Saying | |-------|-------------|------------| | ๐Ÿ” alpha-discover | Design factors from natural language | "find me a low-volatility factor" | | ๐Ÿ“Š alpha-evaluate | IC / ICIR / quintile / long-short / robustness | "evaluate reversal_5" | | โ›๏ธ alpha-mine | Auto-mine factor candidates, IC screen, rank | "mine 50 factors" | | ๐Ÿ“š alpha-library | Register, list, search, retire factors (SQLite) | "show my factor library" | | ๐Ÿ“ˆ alpha-backtest | Single & multi-factor portfolio backtest | "backtest with pv_diverge + turnover" | | ๐Ÿฅ alpha-monitor | Detect IC decay, crowding, regime shift | "check factor health" | | ๐Ÿ“‹ alpha-report | Panoramic, deep-dive, comparison reports | "generate factor report" | | ๐Ÿ“ก alpha-signal | Daily trading signal โ€” target portfolio output | "today's signals" / "็”Ÿๆˆไฟกๅท" | | ๐Ÿค– alpha-autopilot | Autonomous loop: mine โ†’ evaluate โ†’ register โ†’ monitor โ†’ retire | "run autopilot" / "่‡ชๅŠจ้ฉพ้ฉถ" |

Quick Start

1. Get the skills

git clone https://github.com/VernonOY/alpha-skills.git

2. Load into your AI assistant

| Platform | How | |----------|-----| | Cursor | Copy skills/alpha-*/SKILL.md โ†’ .cursorrules | | Windsurf | Copy โ†’ .windsurfrules | | Claude Code | cp -r skills/alpha-* ~/.claude/skills/ | | Any LLM | Paste SKILL.md as system prompt |

3. Install Python deps

pip install pandas numpy scipy matplotlib pyarrow
pip install tushare    # A-share
pip install yfinance   # US / HK

4. Talk to it

"evaluate the momentum_20 factor"
"mine volatility factors"
"backtest my top 3 factors, 2022 to 2025"

Multi-Market: A-Share ยท Hong Kong ยท US

Works out of the box for three markets. Auto-adapts trading rules per market:

| | A-share ๐Ÿ‡จ๐Ÿ‡ณ | Hong Kong ๐Ÿ‡ญ๐Ÿ‡ฐ | US ๐Ÿ‡บ๐Ÿ‡ธ | |---|---|---|---| | Data | Tushare Pro | Yahoo Finance | Yahoo Finance | | Price Limit | ยฑ10% | None | None | | T+N | T+1 | T+0 | T+0 | | Cost | 0.3% | 0.2% | 0.1% | | Benchmark | CSI 300 | HSI | S&P 500 | | Pool | 5000+ stocks | 78 HSI constituents | 143 S&P 500 |

Switch markets in one line:

MARKET: US
DATAMODULE: examples.usdata_yfinance

Bring your own data. Write a 7-function Python adapter for Bloomberg, AkShare, Binance, or any source โ€” see interface spec.

How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           You (natural language)             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚          AI Coding Assistant                โ”‚
โ”‚   (Cursor / Windsurf / Claude Code / ...)   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚           Alpha Skills (7 SKILL.md)         โ”‚
โ”‚  discover ยท evaluate ยท mine ยท library       โ”‚
โ”‚  backtest ยท monitor ยท report                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚     Python (pandas/numpy/scipy/matplotlib)  โ”‚
โ”‚     โ†’ factor computation                    โ”‚
โ”‚     โ†’ IC/ICIR/quintile evaluation           โ”‚
โ”‚     โ†’ portfolio backtesting                 โ”‚
โ”‚     โ†’ SQLite factor registry                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Data: Tushare โ”‚ YFinance โ”‚ CSV โ”‚ Custom    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Zero framework dependency. Each skill is a self-contained Markdown file. The AI reads it, writes the Python, runs it. Nothing to install except standard data science packages.

Evaluation Pipeline

Your AI quant researcher doesn't just compute IC. It runs a 4-level institutional-grade evaluation:

| Level | What | Speed | |-------|------|-------| | L0 | Syntax + data validation | instant | | L1 | Quick IC screen (sampled 200 stocks ร— 2 years) | <30s | | L2 | Full: IC series, ICIR, quintile returns, long-short, monotonicity | 1-3 min | | L3 | Robustness: parameter perturbation, rolling window, start-date sensitivity | 5-15 min |

Plus optional qtype pre-flight โ€” static analysis to catch look-ahead bias before you waste compute on fake alpha.

Factor Mining Engine

alpha-mine systematically searches the factor expression space:

3 mining strategies:

  • Template-based โ€” momentum, mean-reversion, volatility, volume, composite templates ร— multiple window sizes
  • Combinatorial โ€” chain operators: csrank(tscorr(close, volume, 20))
  • Mutation โ€” take a known strong factor, mutate parameters/operators
Pipeline: Generate 50+ candidates โ†’ IC quick screen โ†’ full evaluate top 10 โ†’ LLM judges economic intuition โ†’ present ranked results

Overfitting guard: Every surviving factor gets an economic intuition score (Strong / Moderate / Weak). Factors without a clear behavioral story are flagged as potential data mining.

Built-in Factors (25+)

| Category | Factors | |----------|---------| | Price-Volume | momentum ยท reversal ยท volatility ยท pvdiverge ยท rsi ยท macd ยท bollinger ยท atrratio ยท turnover ยท abnormal_turnover | | Fundamental | roe ยท roa ยท grossmargin ยท netprofitgrowth ยท revenuegrowth | | Valuation | pettm ยท pb ยท psttm ยท dividend_yield ยท peg | | Composite | qualityscore ยท valuescore ยท growth_momentum |

All gate checks and evaluation thresholds are user-configurable:

GATE_SHARPE: 1.0
GATEMAXDRAWDOWN: -0.25
GATEPROFITFACTOR: 1.0
EVALICIRSTRONG: 0.5

What's New

v0.3 โ€” Autopilot & Live Signals

  • alpha-signal: daily trading signal generator โ€” outputs target portfolio from active factors
  • alpha-autopilot: autonomous research loop โ€” auto-mine, evaluate, register, monitor, retire
  • Professional knowledge base: 6 expert-level reference documents (2,795 lines)
v0.2 โ€” Automated Factor Mining
  • alpha-mine: systematically search factor expression space, IC screen, economic intuition scoring
  • All skills fully self-contained โ€” zero external package dependencies
  • Optional qtype pre-flight check
v0.1 โ€” Initial Release
  • 7 core skills ยท A-share/HK/US support ยท bilingual EN/ZH ยท multi-platform

Roadmap

  • [x] 9 skills (discover / evaluate / mine / library / backtest / monitor / report / signal / autopilot)
  • [x] Daily signal generation (target portfolio output)
  • [x] Autonomous research loop (mine โ†’ evaluate โ†’ register โ†’ monitor โ†’ retire)
  • [x] Professional knowledge base (6 expert-level documents, 2,795 lines)
  • [x] A-share, HK, and US market support
  • [x] Market-aware trading rules
  • [x] Automated factor mining (template + combinatorial + mutation)
  • [x] Custom data source support
  • [x] Multi-platform (Cursor, Windsurf, Claude Code, ChatGPT, local models)
  • [x] qtype integration for static code checks
  • [ ] Portfolio construction (factor โ†’ tradeable portfolio)
  • [ ] Market regime detection & factor-regime mapping
  • [ ] Factor crowding detection
  • [ ] Web UI dashboard

License

Apache 2.0

Contributing

See CONTRIBUTING.md โ€” add skills, data adapters, or improve methodology.


Stop writing boilerplate. Start finding alpha.
Built by quants who got tired of copy-pasting the same IC calculation for the 500th time.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท VernonOY/alpha-skills ยท Updated daily from GitHub