strategy-discovery
它能做什么
这项技能列出你已有的策略,并显示支持每种策略的证据。适合希望知道哪种策略适合哪种市场环境的研究人员。
适用场景
- ✓当你想查看策略库中有哪些可用的交易策略的时候。
- ✓当你需要找到适合特定市场状态(例如熊市)的策略的时候。
- ✓当你想检查某个策略背后证据的新鲜程度的时候。
技能链接
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/strategy-discovery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的哪些策略在熊市中表现过?这些证据有多新?”
每周 5 个新技能,1 分钟读完。
工作原理
它会读取策略注册表以及过去回测结果的缓存,然后按市场状态显示证据。它只报告之前的回测所得出的结果,不会更改策略本身。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Strategy Discovery
Purpose
Strategy Discovery is the single entry point for two questions: what strategies exist, and what state are they in. It fronts the Alpha Zoo registry and the SDM strategy store with one facade and answers with computed evidence instead of labels, and it reports the freshness of that evidence on every returned row.
It supersedes the earlier closed-registry attempt. That design attached boolean scenario tags (works in bear markets: yes/no) to a curated list. This skill replaces tags with per-regime evidence rows: every claim that a strategy works in a regime must come from a computed, reproducible backtest stored as evidence, never from curation or inference.
The three query tools are read-only: they never register, mutate, or delete strategies. To add or change strategies, use the strategy-dev-manager and alpha-zoo workflows — Strategy Discovery only reports what those workflows have produced. The fourth tool, refresh_strategy_evidence, writes only the disposable cache: it rebuilds ONLY the disposable evidence cache from local backtest run artifacts (see Populating & Refreshing Evidence and Composition Guarantee).
When to Use
Decision tree for routing user requests:
- User asks what strategies exist / "list available strategies" →
list_strategies(limit=..., offset=..., source=...) - User asks which strategy fits a regime or threshold ("what works in bear markets?", "anything with Sharpe above 1?") →
query_strategies(regime=..., min_sharpe=..., ...) - User asks for the evidence behind one specific strategy →
get_strategy_evidence(strategy_id=..., regime=...) - User asks to populate or refresh the evidence cache ("turn my backtest runs into evidence", "the evidence is stale, refresh it") →
refresh_strategy_evidence(manifest_path=...)— this rebuilds the disposable cache from run artifacts; it is NOT strategy creation or registration - User asks to create, backtest, or register a strategy → this is NOT this skill; route to
strategy-generate/strategy-dev-manager/alpha-zoo
The access path is the three read tools (list_strategies, query_strategies, get_strategy_evidence) plus one cache-refresh tool (refresh_strategy_evidence), available through the agent registry and the MCP server under the same names. CLI: vibe-trading strategy-evidence refresh --manifest <path> [--scope strategies] runs the same refresh as the tool. vibe-trading strategy-evidence adapt --strategy-id sdm:<id> --name <child> --universe <description> --config <json-path> prepares an adaptation; queries stay with the agent tools. Do not invent flags or subcommands beyond that.
Tools
list_strategies
Browse the catalogue.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit |
integer | 20 | Maximum number of rows to return |
offset |
integer | 0 | Pagination offset |
source |
string | none | Optional filter: alpha_zoo | sdm; omit for both |
Returns identification metadata plus evidence status. This is a catalogue listing, not a ranking — use query_strategies for filtered, evidence-ranked results.
query_strategies
Evidence-gated query.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
regime |
string | none | bear_market, bull_market, or structural; omit for all regimes |
min_sharpe |
number | none | Minimum Sharpe on the evidence rows |
min_evidence_quality |
string | adequate |
adequate | marginal | insufficient | any. any only removes the quality floor — rows must still pass the other filters (min_trades, cost_feasible, min_sharpe) to be kept |
min_trades |
integer | 10 | Minimum executed-trade count for evidence to count |
cost_feasible |
boolean | true | Keep only rows that clear the cost screen. Fail-closed: rows whose breakeven is unverifiable (null, see Multi-position caveat) are excluded; set false to inspect them with their warnings |
include_stale |
boolean | false | Keep rows whose evidence is stale (see Decay & Freshness Contract). They are surfaced with their stale-evidence: warnings, sorted after non-stale rows; the flag relaxes the staleness gate only, never any other gate |
limit |
integer | 10 | Maximum number of rows to return |
get_strategy_evidence
Per-regime evidence detail for one strategy.
| Parameter | Type | Default | Meaning |
|---|
常见问题
它会添加新策略吗?
不会。它只报告策略。添加或更改策略由其他工作流完成。
为什么要显示证据日期?
每个结果都会显示其回测证据的新鲜程度,因此很容易发现陈旧的结果。
刷新证据会做什么?
它会根据本地的回测运行重建证据缓存,而不会更改任何策略。
详情
作者的原始描述
Strategy Discovery: evidence-gated facade over Alpha Zoo + the SDM strategy store — answers what strategies exist and what state they are in, with per-regime evidence instead of scenario tags; reports evidence freshness on every returned row and rebuilds the disposable evidence cache from local backtest runs.
repo: HKUDS/Vibe-Trading
热度
- GitHub 星标
- 37k
- 排名
- #7557
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …