关于 edge-concept-synthesizer
edge-concept-synthesizer 是在制定策略前整理原始票据证据的技能。它聚类重复条件,并生成包含论点、支持统计、失效信号和导出就绪标记的 YAML 概念文件。
主要功能
- 01聚类票据证据
- 02归纳重复出现的条件
- 03创建抽象论点
- 04记录支持统计与失效信号
- 05标记导出就绪状态
适用场景
- 01整理大量原始票据
- 02在起草策略前审查概念
- 03减少从单条票据直接推导策略的过拟合
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ mphinance/ alpha-skills --skill edge-concept-synthesizer安装后在 Claude Code 中输入/edge-concept-synthesizer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
README.mdagents/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