alpha-zoo
What it does
This skill gives an agent access to a built-in library of prebuilt investment factors, such as those from Kakushadze 101 and Qlib 158. It is for analysts who want to explore or test many factors without writing each one from scratch.
When to use it
- βWhen you want to know which prebuilt factors exist, such as those on a momentum theme.
- βWhen you want details on one named factor from the library.
- βWhen you want to test a whole library of factors on a chosen market and time period.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/alpha-zoo/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βShow me the momentum alphas in the library, then test the GTJA 191 set on the CSI 300 from 2020 to 2024.β
5 new skills a week. 1 minute to read.
How it works
The agent uses the library browser to list or describe factors and the benchmark tool to measure how well they predict returns. The benchmark produces IC and IR statistics and an HTML report. For your own factor file, a separate analysis tool is used.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Alpha Zoo
Purpose
When the user asks about prebuilt cross-sectional alphas β Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart β or wants to bench a whole zoo on an investable universe (CSI 300, S&P 500, BTC-USDT, ...), this skill orients you. The zoo is the curated library; the bench is the evaluator.
Tools Available
| Tool | When to use |
|---|---|
alpha_zoo |
Browse the library. action=list_alphas to enumerate (filterable by zoo / theme / universe), action=get_alpha for one alpha's metadata, action=health for registry load status. |
alpha_bench |
Run IC / IR on one alpha or a whole zoo over a universe + period. Emits an HTML report. |
factor_analysis |
Ad-hoc factor evaluation from a user-supplied factor CSV + return CSV. Use this when the user has their own factor (not in the zoo). |
Decision Tree
- "list all momentum alphas" β
alpha_zoowithaction=list_alphas, theme=momentum. - "show me gtja191_alpha_001" β
alpha_zoowithaction=get_alpha, alpha_id=gtja191_alpha_001. - "bench all of GTJA 191 on CSI 300 from 2020 to 2024" β
alpha_benchwithzoo=gtja191, universe=csi300, period=2020-2024. - "is the registry healthy" β
alpha_zoowithaction=healthβ surfacesloaded,failed, and per-error reasons. - User uploads
my_factor.csvβfactor_analysis(zoo tools are for prebuilt alphas only).
Zoo Inventory
| Zoo | Description | Approx. count |
|---|---|---|
kakushadze101 |
Formulaic alphas from Kakushadze's 2015 paper. Mix of momentum, reversal, volume, and microstructure. | ~101 |
gtja191 |
Guotai Junan 191 alphas β A-share focused cross-sectional factors. | ~191 |
qlib158 |
Microsoft Qlib's 158 alpha factors β features tuned for ML pipelines. | ~158 |
classical |
Fama-French 3/5-factor + Carhart momentum. | <10 |
Counts are nominal; check alpha_zoo action=health for the live count currently loaded.
Constraints
- No per-stock per-date factor values are surfaced to the agent. IC results are aggregate stats (mean / std / IR / positive-ratio); the HTML report shows top-N by IR plus formulas, never the underlying panel.
- Lookahead is banned in the operator set.
delta(df, d)requiresd >= 1; the negative-shiftRef(df, -n)form does not exist. Seedocs/alpha-zoo/spec.mdfor the full operator catalogue. - Universe loaders may not be wired for every market yet. When
alpha_benchreturnsuniverse loader for X not yet implemented, that's the W2 scaffold β the universe is recognised but the data pull lands in W4. - Do not expose absolute filesystem paths in agent output. The bench tool writes to
~/.vibe-trading/reports/by default; refer to it by that shorthand, not by the resolved absolute path. alpha_zoois read-only.alpha_benchwrites a single HTML file per run β no scratch state elsewhere.
Common Pitfalls
- Filter mismatch on
list_alphas: theme / universe must match the alpha's declared metadata exactly (e.g.equity_cn, notcnorchina). - Calling
alpha_benchwith bothalpha_idandzooset β they are mutually exclusive; pick one. - Empty registry (
loaded=0) means no zoo modules are populated yet; treat it as "zoos pending W3 porting" rather than a bug.
Reference
- Operator catalogue:
docs/alpha-zoo/spec.md - Registry contract:
src/factors/registry.py(frozen; do not modify) - IC / layered NAV math:
src/factors/factor_analysis_core.py
FAQ
Can I test my own factor here?
Not with the library tools. Your own factor is tested with the separate factor analysis tool using a CSV file.
What do IC and IR mean?
They are standard measures of how well a factor's ranking predicts future returns and how consistently it does so.
Where are the results?
The benchmark writes an HTML report, which the agent can point you to.
Details
Original description by the author
Browse and bench the bundled alpha zoos β prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7497
- License
- MIT
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
asset-allocation
37kTeaches your agent portfolio allocation methods, such as mean-variance, Black-Litterman and risk budgeting, and how to apply them with the built-in optimizers.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.