alpha-zoo
できること
このスキルは、Kakushadze 101やQlib 158などの、組み込みの投資ファクターのライブラリにエージェントからアクセスできるようにします。すべてをゼロから書かずに、多くのファクターを探索したり検証したりしたいアナリスト向けです。
使う場面
- ✓モメンタムなどのテーマにある、既製のファクターを知りたいとき。
- ✓ライブラリにある特定の1つのファクターの詳細がほしいとき。
- ✓選んだ市場と期間で、ファクターのライブラリ全体を検証したいとき。
スキルのリンク
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/alpha-zoo/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ライブラリのモメンタム系のアルファを見せてください。その後、2020年から2024年までのCSI 300で、GTJA 191のセットを検証してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、ライブラリのブラウザでファクターを一覧にしたり説明したりし、ベンチマークのツールで、それらがリターンをどれだけ予測するかを測ります。ベンチマークはICとIRの統計と、HTMLのレポートを作ります。独自のファクターファイルには、別の分析ツールを使います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
ここで自分のファクターを検証できますか?
ライブラリのツールではできません。独自のファクターは、CSVファイルを使う別のファクター分析ツールで検証します。
ICやIRとは何ですか?
ファクターのランキングが将来のリターンをどれだけ予測するか、そしてその予測がどれだけ一貫しているかを示す標準的な指標です。
結果はどこにありますか?
ベンチマークはHTMLのレポートを書き出します。エージェントがその場所を示します。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 37k
- ランキング
- #7497
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
vibe-trading
37kバックテスト、ファクター分析、オプション価格、多くの市場にまたがる市場データを含む、金融リサーチの完全なツールキットをエージェントに与えます。
adr-hshare
37k中国企業が複数の市場に上場している価格差、例えば米国のADRと香港株の差を比べる方法をエージェントに示します。
akshare
37kエージェントが、APIキーなしで、中国と世界の株式、先物、外国為替、経済指標の無料の市場データを取得できるよう支援します。
asset-allocation
37k平均分散、Black-Litterman、リスクバジェッティングなどのポートフォリオ配分の方法を、組み込みの最適化ツールで適用する方法を説明します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。