关于 trade-hypothesis-ideator
将规范化输入包转为结构化交易假设,并进行评议和排序;还可将标记为 pursue 的假设导出为策略文件。
主要功能
- 01规范化输入并提取证据
- 02生成 1–5 张假设卡
- 03评议并排序假设
- 04将 pursue 卡片导出为策略文件
适用场景
- 01根据研究输入制定交易假设
- 02在起草策略前对假设排序
- 03导出选定假设以供后续策略工作
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ mphinance/ alpha-skills --skill trade-hypothesis-ideator安装后在 Claude Code 中输入/trade-hypothesis-ideator确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
README.mdexamples/example_input.jsonexample_output.jsonsample_input.jsonprompts/critique_prompt_template.mddeveloper_prompt_template.mdsystem_prompt.mdreferences/evidence_quality_guide.mdhypothesis_types.mdschemas/hypothesis_card.schema.jsoninput_bundle.schema.jsonoutput_bundle.schema.jsonraw_hypotheses.schema.jsonscripts/run_hypothesis_ideator.pyscripts/pipeline/__init__.pyevidence_extractor.pyformat_output.pynormalize.pyranking.pystrategy_exporter.pyscripts/tests/conftest.pytest_evidence_extractor.pytest_format_output.pytest_guardrails.pytest_normalize.pytest_ranking.pytest_strategy_exporter.py详细介绍
交易假设构思器
根据规范化的输入包生成 1–5 张结构化假设卡片,对其进行评议和排序,然后可选择将 pursue 卡片导出为 strategy.yaml + metadata.json 工件。
工作流
- 接收输入 JSON 包。
- 运行第 1 轮规范化和证据提取。
- 使用以下提示词生成假设:
prompts/system_prompt.mdprompts/developer_prompt_template.md(注入{{evidence_summary}})
- 使用
prompts/critique_prompt_template.md评议假设。 - 运行第 2 轮排序、格式化输出并执行防护措施。
- 可选择通过步骤 H 的策略导出器导出
pursue假设。
脚本
- 第 1 轮(证据摘要):
python3 skills/trade-hypothesis-ideator/scripts/run_hypothesis_ideator.py \
--input skills/trade-hypothesis-ideator/examples/example_input.json \
--output-dir reports/
- 第 2 轮(排序 + 输出 + 可选导出):
python3 skills/trade-hypothesis-ideator/scripts/run_hypothesis_ideator.py \
--input skills/trade-hypothesis-ideator/examples/example_input.json \
--hypotheses reports/raw_hypotheses.json \
--output-dir reports/ \
--export-strategies
参考资料
references/hypothesis_types.mdreferences/evidence_quality_guide.md
评论
支持 Markdown