alpha-zoo
하는 일
이 스킬은 Kakushadze 101과 Qlib 158 같은 미리 만들어진 투자 팩터 라이브러리에 에이전트가 접근하게 합니다. 팩터를 하나하나 처음부터 쓰지 않고 많은 팩터를 탐색하거나 시험하려는 분석가를 위한 스킬입니다.
사용하는 경우
- ✓모멘텀 주제처럼 어떤 미리 만든 팩터가 있는지 알고 싶을 때.
- ✓라이브러리의 이름 있는 팩터 하나에 대한 세부 사항이 필요할 때.
- ✓선택한 시장과 기간에서 팩터 라이브러리 전체를 시험하고 싶을 때.
스킬 링크
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
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.