关于 edge-concept-synthesizer
edge-concept-synthesizer 是一项技能,可将原始工单证据聚类为概念,并明确列出论点与失效条件。它面向在起草策略前审查重复市场条件的团队,帮助避免从单个工单直接拟合策略。
主要功能
- 01聚类工单证据
- 02归纳重复出现的条件
- 03去重并集合并重叠概念
- 04记录论点与失效信号
- 05标记导出就绪状态
适用场景
- 01整理大量工单中的证据
- 02在起草策略前审查概念
- 03减少从工单直接拟合策略
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ tradermonty/ claude-trading-skills --skill edge-concept-synthesizer安装后在 Claude Code 中输入/edge-concept-synthesizer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
requirements.txtagents/openai.yamlreferences/concept_schema.mdscripts/synthesize_edge_concepts.pyscripts/tests/conftest.pytest_synthesize_edge_concepts.py详细介绍
Edge 概念合成器
概述
在检测与策略实现之间创建一个抽象层。
此技能会对工单证据进行聚类、总结反复出现的条件,并输出包含明确论点和失效逻辑的 edge_concepts.yaml。
适用场景
- 你有许多原始工单,需要按机制层面梳理结构。
- 你想避免从工单直接推导策略而导致过拟合。
- 你需要在起草策略前进行概念层面的审查。
前提条件
- Python 3.9+
PyYAML- 来自检测器输出的工单 YAML 目录(
tickets/exportable、tickets/research_only) - 可选的
hints.yaml
输出
edge_concepts.yaml,包含:- 概念簇
- 支持统计
- 抽象论点
- 失效信号
- 导出就绪标志
工作流
- 从自动检测输出中收集工单 YAML 文件。
- 可选择提供
hints.yaml以匹配上下文。 - 运行
scripts/synthesize_edge_concepts.py。 - 对概念去重:合并条件重叠(包含度 > 阈值)的同一假设概念。
- 审查概念,仅将支持度高的概念纳入策略起草。
快速命令
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
--tickets-dir /tmp/edge-auto/tickets \
--hints /tmp/edge-hints/hints.yaml \
--output /tmp/edge-concepts/edge_concepts.yaml \
--min-ticket-support 2
# With hint promotion and synthetic cap
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
--tickets-dir /tmp/edge-auto/tickets \
--hints /tmp/edge-hints/hints.yaml \
--output /tmp/edge-concepts/edge_concepts.yaml \
--promote-hints \
--max-synthetic-ratio 1.5
# With custom dedup threshold (or disable dedup)
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
--tickets-dir /tmp/edge-auto/tickets \
--output /tmp/edge-concepts/edge_concepts.yaml \
--overlap-threshold 0.6
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
--tickets-dir /tmp/edge-auto/tickets \
--output /tmp/edge-concepts/edge_concepts.yaml \
--no-dedup
资源
skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.pyreferences/concept_schema.md
评论
支持 Markdown