Skip to content
Skillpedia
Analysis & spreadsheets37k Β· #7497

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.md

Copy 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

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/alpha-zoo/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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_zoo with action=list_alphas, theme=momentum.
  • "show me gtja191_alpha_001" β†’ alpha_zoo with action=get_alpha, alpha_id=gtja191_alpha_001.
  • "bench all of GTJA 191 on CSI 300 from 2020 to 2024" β†’ alpha_bench with zoo=gtja191, universe=csi300, period=2020-2024.
  • "is the registry healthy" β†’ alpha_zoo with action=health β€” surfaces loaded, 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) requires d >= 1; the negative-shift Ref(df, -n) form does not exist. See docs/alpha-zoo/spec.md for the full operator catalogue.
  • Universe loaders may not be wired for every market yet. When alpha_bench returns universe 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_zoo is read-only. alpha_bench writes 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, not cn or china).
  • Calling alpha_bench with both alpha_id and zoo set β€” 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills