le-spec v1.0.0:Le SPEC 智能需求分析与 SPEC 生成总控 skill——真实集成 grilling/grill-with-docs(domain-modeling) + think + openspec(CLI 1.16.1 + 7 个 openspec-* skills,均经 skills.sh 装入 ~/.agents/skills 并软链四 runtime);七阶段工作流(识别/十类分拣/Grill 访谈/Think 挑战/反向验收/OpenSpec 生成/四视角审查)复杂度三档自适应;状态 state.md + 调用账本 ledger.jsonl 双持久化支撑中断恢复与真实调用核验;依赖检查 deps_check.py 分级报缺+精确安装命令,ledger.py append/check/tail;四类回合终止停点(批准前不编码为硬约束);测试 A-I 九项全过:两场景 fresh-context 子代理多轮实测(4 轮访谈+变更+中断恢复+strict validate 双项目通过),账本 28 条真实调用(grilling×9/think×2/openspec CLI×14),独立子代理审查实测抓出自审遗漏的 2 blocking;已知限制 7 项如实入库(reports/test-report.md)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"_说明": "Le SPEC 触发用例。应触发:从想法/零散需求出发要梳理成规格;不应触发:已批准 SPEC 的实现、纯文案、无关任务。family 标注场景族。",
|
||||
"recommended_threshold": 0.3,
|
||||
"negative_patterns": ["直接写代码", "直接改代码", "别做 spec", "别做访谈", "润色", "排版", "只要总结", "翻译一下", "帮我实现"],
|
||||
"should_trigger": [
|
||||
{"text": "帮我把这个想法整理成 spec,我想做一个记账 App", "family": "idea_to_spec"},
|
||||
{"text": "这些需求有点乱,你先帮我梳理梳理,想清楚了再动手", "family": "messy_requirements"},
|
||||
{"text": "我要做个 App,先分析下需求,来一场深度访谈", "family": "explicit_interview"},
|
||||
{"text": "用 openspec 给这个新功能写个正式的规格", "family": "openspec_named"},
|
||||
{"text": "先 grill 我一下,把这个方案想透再写规格", "family": "grill_named"},
|
||||
{"text": "需求变了,把之前批准的 spec 更新一下,加一个导出功能", "family": "spec_change"},
|
||||
{"text": "refine these rough requirements into a testable spec", "family": "en_trigger"}
|
||||
],
|
||||
"should_not_trigger": [
|
||||
{"text": "spec 已经批了,现在开始实现 tasks 里的任务吧", "family": "implementation_phase"},
|
||||
{"text": "帮我把这份 PRD 润色一下排版更好看", "family": "doc_polish"},
|
||||
{"text": "这段代码有个 bug,帮我修一下", "family": "unrelated_task"},
|
||||
{"text": "别做 spec 了直接改代码,改完告诉我就行", "family": "explicit_skip"}
|
||||
],
|
||||
"near_neighbor": [
|
||||
{"text": "帮我把这个想法整理成 skill", "family": "meta_confusion_should_route_le_meta_skill"}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user