jerryliu369-alpha-zoo
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md378 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
<!-- Imported from: https://github.com/HKUDS/Vibe-Trading Source Path: agent/src/skills/alpha-zoo/SKILL.md Curated for awesome-quant-skills -->
name: alpha-zoo description: 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. category: research
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
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.