claude-everything-workflow 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/AGENTS.md +11 -18
- package/agents/e2e-runner.md +1 -1
- package/commands/pr.md +3 -1
- package/evals/routing-scenarios.json +253 -0
- package/harness/manifest.json +2 -28
- package/hooks/check-console-log.js +2 -2
- package/package.json +4 -2
- package/rules/01-base.md +2 -2
- package/rules/02-implementation.md +7 -6
- package/rules/05-git-workflow.md +4 -6
- package/rules/common/agent-orchestration.md +1 -1
- package/rules/common/pr-automation.md +1 -1
- package/rules/common/testing.md +2 -2
- package/scripts/eval-scenarios.js +106 -0
- package/scripts/install-rules.js +186 -17
- package/scripts/install.ps1 +42 -15
- package/scripts/install.sh +31 -12
- package/scripts/legacy-common-rule-hashes.json +4 -0
- package/scripts/retired-skill-files.json +7 -0
- package/scripts/verify/install-rules.test.js +80 -24
- package/scripts/verify/metadata-checks.js +7 -8
- package/scripts/verify/repository-checks.js +44 -368
- package/scripts/verify/scenario-checks.js +108 -0
- package/scripts/verify/scenario-checks.test.js +84 -0
- package/scripts/verify/workflow-checks.js +85 -586
- package/scripts/verify-harness.js +2 -0
- package/skills/README.md +2 -4
- package/skills/feature-acceptance/SKILL.md +8 -8
- package/skills/{e2e-testing/SKILL.md → feature-acceptance/references/e2e-testing.md} +3 -9
- package/skills/implement/SKILL.md +2 -0
- package/skills/{subagent-driven-development/SKILL.md → implement/references/parallel-delivery.md} +7 -9
- package/skills/implement/references/ticket-delivery.md +1 -1
- package/skills/using-superpowers/SKILL.md +24 -103
- package/rules/07-forbidden.md +0 -20
- package/rules/08-specialty-rules-index.md +0 -18
- package/rules/09-first-principles-adversarial-testing.md +0 -30
- package/scripts/verify/continuation-checks.test.js +0 -101
- package/scripts/verify/grilling-spec-gate-checks.js +0 -297
- package/scripts/verify/workflow-ownership-fixtures.js +0 -371
- package/scripts/verify/workflow-ownership.js +0 -780
- /package/skills/{e2e-testing → feature-acceptance}/references/playwright-patterns.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-everything-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Evidence-based engineering workflows: implement, debug, review and verify.",
|
|
5
5
|
"author": { "name": "xu91102" },
|
|
6
6
|
"homepage": "https://github.com/xu91102/claude-everything-Workflow",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-everything-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Evidence-based engineering workflows: implement, debug, review and verify.",
|
|
5
5
|
"author": { "name": "xu91102" },
|
|
6
6
|
"homepage": "https://github.com/xu91102/claude-everything-Workflow",
|
package/AGENTS.md
CHANGED
|
@@ -7,31 +7,24 @@
|
|
|
7
7
|
- 解释变更、故障或排查结果时,简单说明;明确区分已确认事实、推测和阻塞项。
|
|
8
8
|
- 除非用户要求,不贴大段原始日志、命令或实现细节;只保留支持结论所需的最小证据。
|
|
9
9
|
- 同一事实只说一次;简单任务短答,复杂任务按需展开。进展只报告新发现、阻塞和关键决定,不逐条播报工具操作。
|
|
10
|
-
- 精简不改变含义或技术原文,有歧义时完整说明。
|
|
11
10
|
- 工具结果优先读取相关片段,大结果只展示摘要并保留原文入口、实际退出码和关键错误,不凭截断结果判定成功。
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
## 工程入口与核心红线
|
|
14
13
|
|
|
15
14
|
- 工程交付(实现、修复、测试、审查)先进入 `using-superpowers`,按其判断选择并读取后续流程。
|
|
15
|
+
- 禁止硬编码密钥/token/密码、SQL 拼接、未校验外部输入、明文密码、绕过验证或质量门 Hook,以及提交调试残留、依赖目录或敏感配置。
|
|
16
|
+
- 需要复用用户已登录的 Chrome 做交互式验证时,按 `rules/common/testing.md` 的“浏览器验证”执行;不要新开浏览器验证登录态页面。
|
|
16
17
|
|
|
17
18
|
## 规则加载策略
|
|
18
19
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- Claude 升级时若保留了个人修改的旧 `~/.claude/rules/common/...`,该用户规则仍生效;读取同名参考前先检查并尊重该修改,不把新版通用参考覆盖到个人约束上。
|
|
22
|
-
- `rules/common/` 是专项参考区;仅命令、agent、skill 或当前任务明确触发时读取。
|
|
23
|
-
|
|
24
|
-
## 浏览器验证
|
|
25
|
-
|
|
26
|
-
需要复用用户已登录的 Chrome 做交互式验证时,按 `rules/common/testing.md` 的“浏览器验证”执行;不要新开浏览器验证登录态页面。
|
|
20
|
+
- 规则按需读取,不要默认全量加载 `rules/` 或 `rules/common/`。
|
|
21
|
+
- `rules/...` 先查项目根 `rules/`;不存在时,Codex 回退 `~/.codex/rules/`,Claude Code 顶层规则回退 `~/.claude/rules/`,专项 `rules/common/...` 回退 `~/.claude/references/rules/common/...`。升级时保留的个人修改优先于同名分发参考。
|
|
27
22
|
|
|
28
23
|
## 规则索引
|
|
29
24
|
|
|
30
|
-
| 规则文件
|
|
31
|
-
|
|
|
32
|
-
| `01-base.md`
|
|
33
|
-
| `02-implementation.md`
|
|
34
|
-
| `05-git-workflow.md`
|
|
35
|
-
| `
|
|
36
|
-
| `08-specialty-rules-index.md` | 专项规则触发矩阵,按需跳转到 `rules/common/` 专项规则 |
|
|
37
|
-
| `09-first-principles-adversarial-testing.md` | 第一性原则与对抗性测试,复杂/高风险任务按需加载 |
|
|
25
|
+
| 规则文件 | 内容与触发场景 |
|
|
26
|
+
| ---------------------- | -------------------------------------------------------- |
|
|
27
|
+
| `01-base.md` | 执行原则、第一性原则与流程边界;实现或审查前读取 |
|
|
28
|
+
| `02-implementation.md` | 架构与兼容、错误处理、代码规模、注释、代码与安全禁止项 |
|
|
29
|
+
| `05-git-workflow.md` | Worktree 分支开发、提交格式、提交禁止项与 PR 授权边界 |
|
|
30
|
+
| `common/*` | 专项参考区(测试/验证、PR、上下文卫生、编排、Hook、性能、Harness、学习),仅对应场景按需读取 |
|
package/agents/e2e-runner.md
CHANGED
|
@@ -7,7 +7,7 @@ model: sonnet
|
|
|
7
7
|
|
|
8
8
|
# E2E 测试运行器
|
|
9
9
|
|
|
10
|
-
负责把用户指定的关键流程落实为可复跑、可审阅的 Playwright 测试。开始前读取 `skills/e2e-testing
|
|
10
|
+
负责把用户指定的关键流程落实为可复跑、可审阅的 Playwright 测试。开始前读取 `skills/feature-acceptance/references/e2e-testing.md`;需要 POM、配置、flaky 或制品示例时,再读取 `skills/feature-acceptance/references/playwright-patterns.md`。
|
|
11
11
|
|
|
12
12
|
## 边界
|
|
13
13
|
|
package/commands/pr.md
CHANGED
|
@@ -8,10 +8,12 @@ description: 提交、推送和创建 Pull Request 的标准工作流
|
|
|
8
8
|
|
|
9
9
|
把当前工作区中的有效改动整理成可提交、可审阅、可追踪的 PR。
|
|
10
10
|
|
|
11
|
+
默认创建 Ready for review(可审查)PR;只有用户明确要求草稿或传入 `--draft` 时才创建 Draft PR。
|
|
12
|
+
|
|
11
13
|
## 使用方式
|
|
12
14
|
|
|
13
15
|
```text
|
|
14
|
-
/pr #
|
|
16
|
+
/pr # 默认创建 Ready PR
|
|
15
17
|
/pr --draft # 创建 Draft PR
|
|
16
18
|
/pr --staged # 只处理已暂存内容
|
|
17
19
|
/pr "fix: 修复登录过期处理" # 使用指定提交标题
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"description": "路由与工作流场景测试清单:验证典型任务描述能映射到正确的 Skill、参考文档或规则。",
|
|
4
|
+
"scenarios": [
|
|
5
|
+
{
|
|
6
|
+
"id": "non-eng-translate",
|
|
7
|
+
"category": "non-engineering",
|
|
8
|
+
"prompt": "把这段英文 README 翻译成自然的中文",
|
|
9
|
+
"expectedTarget": null,
|
|
10
|
+
"expectedLane": "none",
|
|
11
|
+
"requiredSignals": ["普通问答", "翻译"],
|
|
12
|
+
"rationale": "纯翻译属于非工程任务,直接处理,不进入工程路由。"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "non-eng-summary",
|
|
16
|
+
"category": "non-engineering",
|
|
17
|
+
"prompt": "帮我总结一下这篇文章的三个核心观点",
|
|
18
|
+
"expectedTarget": null,
|
|
19
|
+
"expectedLane": "none",
|
|
20
|
+
"requiredSignals": ["总结"],
|
|
21
|
+
"rationale": "纯总结直接处理,不触发工程工作流。"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "direct-small-change",
|
|
25
|
+
"category": "delivery",
|
|
26
|
+
"prompt": "给 parseConfig 加一个默认值 fallback,并补一个单元测试",
|
|
27
|
+
"expectedTarget": "skills/implement/SKILL.md",
|
|
28
|
+
"expectedLane": "direct",
|
|
29
|
+
"requiredSignals": ["direct-scope", "implement"],
|
|
30
|
+
"rationale": "明确、低风险的单次交付请求直接走 direct 通道与 implement。"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "workflow-advice",
|
|
34
|
+
"category": "routing",
|
|
35
|
+
"prompt": "我要重做计费模块,请先告诉我应该按什么工作流推进,不要改文件",
|
|
36
|
+
"expectedTarget": "skills/using-superpowers/SKILL.md",
|
|
37
|
+
"expectedLane": "advice",
|
|
38
|
+
"requiredSignals": ["工作流建议", "不写文件"],
|
|
39
|
+
"rationale": "询问工作流建议时只给路径与前置条件,不写文件。"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "bug-diagnosis",
|
|
43
|
+
"category": "debugging",
|
|
44
|
+
"prompt": "生产环境偶发 502 错误,帮我排查一下根因",
|
|
45
|
+
"expectedTarget": "skills/systematic-debugging/SKILL.md",
|
|
46
|
+
"expectedLane": "debugging",
|
|
47
|
+
"requiredSignals": ["bug", "flaky"],
|
|
48
|
+
"rationale": "故障和偶发失败应进入 systematic-debugging。"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "perf-regression",
|
|
52
|
+
"category": "debugging",
|
|
53
|
+
"prompt": "最近列表页渲染从 80ms 变慢到 900ms,定位性能回退原因",
|
|
54
|
+
"expectedTarget": "skills/systematic-debugging/SKILL.md",
|
|
55
|
+
"expectedLane": "debugging",
|
|
56
|
+
"requiredSignals": ["slowness", "performance"],
|
|
57
|
+
"rationale": "性能回退归入 systematic-debugging。"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "tdd-behavior-change",
|
|
61
|
+
"category": "engineering",
|
|
62
|
+
"prompt": "用 TDD 方式实现优惠券过期校验逻辑",
|
|
63
|
+
"expectedTarget": "skills/test-driven-development/SKILL.md",
|
|
64
|
+
"expectedLane": "direct",
|
|
65
|
+
"requiredSignals": ["RED", "GREEN", "REFACTOR"],
|
|
66
|
+
"rationale": "明确要求 TDD 或行为变化测试闭环时进入 test-driven-development。"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "code-review-diff",
|
|
70
|
+
"category": "review",
|
|
71
|
+
"prompt": "帮我审查一下当前分支相对 main 的代码改动",
|
|
72
|
+
"expectedTarget": "skills/code-review/SKILL.md",
|
|
73
|
+
"expectedLane": "review",
|
|
74
|
+
"requiredSignals": ["Review", "diff"],
|
|
75
|
+
"rationale": "固定基线的代码审查应进入 code-review。"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "merge-conflict",
|
|
79
|
+
"category": "git",
|
|
80
|
+
"prompt": "rebase main 时出现 4 个文件冲突,帮我逐块解决",
|
|
81
|
+
"expectedTarget": "skills/resolving-merge-conflicts/SKILL.md",
|
|
82
|
+
"expectedLane": "direct",
|
|
83
|
+
"requiredSignals": ["merge", "rebase", "conflict"],
|
|
84
|
+
"rationale": "活跃的 merge/rebase 冲突应进入 resolving-merge-conflicts。"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "acceptance-real-flow",
|
|
88
|
+
"category": "acceptance",
|
|
89
|
+
"prompt": "按真实用户流程验收下单支付页面,并保留截图和日志证据",
|
|
90
|
+
"expectedTarget": "skills/feature-acceptance/SKILL.md",
|
|
91
|
+
"expectedLane": "acceptance",
|
|
92
|
+
"requiredSignals": ["真实流程", "证据"],
|
|
93
|
+
"rationale": "真实流程验收和证据复核进入 feature-acceptance。"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "acceptance-setup-map",
|
|
97
|
+
"category": "acceptance",
|
|
98
|
+
"prompt": "给这个项目建立可复用的验收工具入口和功能地图",
|
|
99
|
+
"expectedTarget": "skills/feature-acceptance/SKILL.md",
|
|
100
|
+
"expectedReference": "skills/feature-acceptance/references/project-verification.md",
|
|
101
|
+
"expectedLane": "acceptance",
|
|
102
|
+
"requiredSignals": ["项目验收", "功能地图"],
|
|
103
|
+
"rationale": "建立或维护项目验收能力进入 feature-acceptance 及其 project-verification 参考。"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "e2e-playwright-tests",
|
|
107
|
+
"category": "acceptance",
|
|
108
|
+
"prompt": "用 Playwright 给登录和结账主流程补可重跑的 E2E 自动化测试",
|
|
109
|
+
"expectedTarget": "skills/feature-acceptance/SKILL.md",
|
|
110
|
+
"expectedReference": "skills/feature-acceptance/references/e2e-testing.md",
|
|
111
|
+
"expectedLane": "acceptance",
|
|
112
|
+
"requiredSignals": ["Playwright", "E2E"],
|
|
113
|
+
"rationale": "Playwright / E2E 测试已并入 feature-acceptance 及其 e2e-testing 参考。"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "e2e-flaky-fix",
|
|
117
|
+
"category": "acceptance",
|
|
118
|
+
"prompt": "CI 里的 Playwright 测试经常超时 flaky,帮我定位并稳定下来",
|
|
119
|
+
"expectedTarget": "skills/feature-acceptance/SKILL.md",
|
|
120
|
+
"expectedReference": "skills/feature-acceptance/references/playwright-patterns.md",
|
|
121
|
+
"expectedLane": "acceptance",
|
|
122
|
+
"requiredSignals": ["Playwright", "flaky"],
|
|
123
|
+
"rationale": "Playwright flaky 治理使用 feature-acceptance 的 E2E 与 patterns 参考。"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "grilling-ambiguous-decision",
|
|
127
|
+
"category": "decision",
|
|
128
|
+
"prompt": "我想给产品加多租户隔离,但还没想好按 schema 还是按行级隔离,你逐个问题追问我",
|
|
129
|
+
"expectedTarget": "skills/grilling/SKILL.md",
|
|
130
|
+
"expectedLane": "needs-decision",
|
|
131
|
+
"requiredSignals": ["one question", "decision"],
|
|
132
|
+
"rationale": "存在未决关键用户决策或显式追问时进入 grilling。"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "formal-spec-explicit",
|
|
136
|
+
"category": "spec",
|
|
137
|
+
"prompt": "先写一份正式 Spec 设计权限中心改造方案,等我审批后再实现",
|
|
138
|
+
"expectedTarget": "skills/spec-gate/SKILL.md",
|
|
139
|
+
"expectedLane": "formal-spec",
|
|
140
|
+
"requiredSignals": ["Spec", "approval"],
|
|
141
|
+
"rationale": "显式要求 formal Spec 必须进入 spec-gate 并等待用户批准。"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "formal-spec-high-risk-schema",
|
|
145
|
+
"category": "spec",
|
|
146
|
+
"prompt": "把订单表的主键从自增 ID 迁移为雪花 ID,直接开始改",
|
|
147
|
+
"expectedTarget": "skills/spec-gate/SKILL.md",
|
|
148
|
+
"expectedLane": "formal-spec",
|
|
149
|
+
"requiredSignals": ["schema", "spec-gate"],
|
|
150
|
+
"rationale": "持久化 schema 迁移命中高风险边界,应走 formal-spec 通道。"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "formal-spec-brainstorming-alias",
|
|
154
|
+
"category": "spec",
|
|
155
|
+
"prompt": "用 brainstorming 帮我规划一下新通知系统的设计文档",
|
|
156
|
+
"expectedTarget": "skills/spec-gate/SKILL.md",
|
|
157
|
+
"expectedLane": "formal-spec",
|
|
158
|
+
"requiredSignals": ["brainstorming", "/to-spec"],
|
|
159
|
+
"rationale": "旧称 brainstorming 路由至 formal-spec 并引导使用 /to-spec。"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "tickets-multi-session",
|
|
163
|
+
"category": "planning",
|
|
164
|
+
"prompt": "把这个已批准的大改 Spec 拆成可跨会话推进、有依赖关系的垂直 tickets",
|
|
165
|
+
"expectedTarget": "skills/to-tickets/SKILL.md",
|
|
166
|
+
"expectedLane": "tickets",
|
|
167
|
+
"requiredSignals": ["tickets", "approval"],
|
|
168
|
+
"rationale": "需要跨会话/tracker 依赖图时进入 to-tickets。"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "parallel-frontier-tickets",
|
|
172
|
+
"category": "delivery",
|
|
173
|
+
"prompt": "现在有两张已批准、无阻塞且修改不同模块的 frontier tickets,安全并行交付",
|
|
174
|
+
"expectedTarget": "skills/implement/SKILL.md",
|
|
175
|
+
"expectedReference": "skills/implement/references/parallel-delivery.md",
|
|
176
|
+
"expectedLane": "delivery-parallel",
|
|
177
|
+
"requiredSignals": ["parallel-delivery.md", "frontier"],
|
|
178
|
+
"rationale": "多张独立 frontier tickets 的并行交付已并入 implement 的 parallel-delivery 参考。"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "handoff-fresh-session",
|
|
182
|
+
"category": "context",
|
|
183
|
+
"prompt": "上下文快满了,帮我生成一份脱敏的 handoff 交接文档,我准备开新会话继续",
|
|
184
|
+
"expectedTarget": "skills/handoff/SKILL.md",
|
|
185
|
+
"expectedLane": "explicit-only",
|
|
186
|
+
"requiredSignals": ["handoff", "fresh session"],
|
|
187
|
+
"rationale": "明确要求交接/新会话时进入 handoff。"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "triage-external-issue",
|
|
191
|
+
"category": "triage",
|
|
192
|
+
"prompt": "帮我 triage 这个外部提交的 GitHub Issue,验证复现并整理成 agent-ready brief",
|
|
193
|
+
"expectedTarget": "skills/triage/SKILL.md",
|
|
194
|
+
"expectedLane": "explicit-only",
|
|
195
|
+
"requiredSignals": ["triage", "brief"],
|
|
196
|
+
"rationale": "明确要求 issue/PR triage 时进入 triage。"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "prototype-design-probe",
|
|
200
|
+
"category": "design",
|
|
201
|
+
"prompt": "写一个可扔掉的最小原型验证虚拟滚动在 10 万条数据下是否流畅",
|
|
202
|
+
"expectedTarget": "skills/prototype/SKILL.md",
|
|
203
|
+
"expectedLane": "design",
|
|
204
|
+
"requiredSignals": ["prototype", "probe"],
|
|
205
|
+
"rationale": "回答单个可运行设计问题的临时探针进入 prototype。"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "architecture-health-audit",
|
|
209
|
+
"category": "design",
|
|
210
|
+
"prompt": "对当前代码库做一次只读的架构健康度审计,找出浅模块加深机会",
|
|
211
|
+
"expectedTarget": "skills/improve-codebase-architecture/SKILL.md",
|
|
212
|
+
"expectedLane": "explicit-only",
|
|
213
|
+
"requiredSignals": ["architecture-health", "audit"],
|
|
214
|
+
"rationale": "明确要求架构健康度审计时进入 improve-codebase-architecture。"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "domain-modeling-invariants",
|
|
218
|
+
"category": "design",
|
|
219
|
+
"prompt": "梳理订阅计费的实体状态机、不变量和上下文边界",
|
|
220
|
+
"expectedTarget": "skills/domain-modeling/SKILL.md",
|
|
221
|
+
"expectedLane": "design",
|
|
222
|
+
"requiredSignals": ["entities", "invariants"],
|
|
223
|
+
"rationale": "业务概念、状态与不变量建模进入 domain-modeling。"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "codebase-deep-module",
|
|
227
|
+
"category": "design",
|
|
228
|
+
"prompt": "这个缓存层的接口把内部细节都漏给调用方了,帮我设计一个深模块和 seam",
|
|
229
|
+
"expectedTarget": "skills/codebase-design/SKILL.md",
|
|
230
|
+
"expectedLane": "design",
|
|
231
|
+
"requiredSignals": ["deep modules", "seams"],
|
|
232
|
+
"rationale": "深模块与接缝设计进入 codebase-design。"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "completion-evidence-gate",
|
|
236
|
+
"category": "verification",
|
|
237
|
+
"prompt": "改动写完了,准备告诉用户已经修复并可以提交 PR",
|
|
238
|
+
"expectedTarget": "rules/common/testing.md",
|
|
239
|
+
"expectedLane": "verification",
|
|
240
|
+
"requiredSignals": ["验证证据", "退出码"],
|
|
241
|
+
"rationale": "任何完成/修复/ready 声明前必须遵守 rules/common/testing.md。"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "new-feature-worktree-and-pr",
|
|
245
|
+
"category": "git",
|
|
246
|
+
"prompt": "我要开发一个新功能并创建 PR,帮我按规范拉分支和提交",
|
|
247
|
+
"expectedTarget": "rules/05-git-workflow.md",
|
|
248
|
+
"expectedLane": "git",
|
|
249
|
+
"requiredSignals": ["git worktree", "origin/main"],
|
|
250
|
+
"rationale": "新功能必须基于最新 origin/main 创建独立 worktree 与任务分支。"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
package/harness/manifest.json
CHANGED
|
@@ -50,23 +50,11 @@
|
|
|
50
50
|
"allowedTools": null,
|
|
51
51
|
"invocation": "implicit"
|
|
52
52
|
},
|
|
53
|
-
{
|
|
54
|
-
"name": "e2e-testing",
|
|
55
|
-
"path": "skills/e2e-testing/SKILL.md",
|
|
56
|
-
"owner": "skills/e2e-testing/SKILL.md",
|
|
57
|
-
"version": "0.1.1",
|
|
58
|
-
"compatibility": [
|
|
59
|
-
"claude-code",
|
|
60
|
-
"codex"
|
|
61
|
-
],
|
|
62
|
-
"allowedTools": null,
|
|
63
|
-
"invocation": "implicit"
|
|
64
|
-
},
|
|
65
53
|
{
|
|
66
54
|
"name": "feature-acceptance",
|
|
67
55
|
"path": "skills/feature-acceptance/SKILL.md",
|
|
68
56
|
"owner": "skills/feature-acceptance/SKILL.md",
|
|
69
|
-
"version": "0.1.
|
|
57
|
+
"version": "0.1.2",
|
|
70
58
|
"compatibility": [
|
|
71
59
|
"claude-code",
|
|
72
60
|
"codex"
|
|
@@ -158,18 +146,6 @@
|
|
|
158
146
|
"allowedTools": null,
|
|
159
147
|
"invocation": "implicit"
|
|
160
148
|
},
|
|
161
|
-
{
|
|
162
|
-
"name": "subagent-driven-development",
|
|
163
|
-
"path": "skills/subagent-driven-development/SKILL.md",
|
|
164
|
-
"owner": "skills/subagent-driven-development/SKILL.md",
|
|
165
|
-
"version": "0.1.1",
|
|
166
|
-
"compatibility": [
|
|
167
|
-
"claude-code",
|
|
168
|
-
"codex"
|
|
169
|
-
],
|
|
170
|
-
"allowedTools": null,
|
|
171
|
-
"invocation": "implicit"
|
|
172
|
-
},
|
|
173
149
|
{
|
|
174
150
|
"name": "systematic-debugging",
|
|
175
151
|
"path": "skills/systematic-debugging/SKILL.md",
|
|
@@ -249,7 +225,6 @@
|
|
|
249
225
|
"owner": "skills/using-superpowers/SKILL.md",
|
|
250
226
|
"surfaces": [
|
|
251
227
|
"AGENTS.md",
|
|
252
|
-
"rules/08-specialty-rules-index.md",
|
|
253
228
|
"rules/common/skills-learning.md"
|
|
254
229
|
],
|
|
255
230
|
"enforcement": "advisory"
|
|
@@ -301,8 +276,7 @@
|
|
|
301
276
|
"id": "ticket-delivery",
|
|
302
277
|
"owner": "skills/to-tickets/SKILL.md",
|
|
303
278
|
"surfaces": [
|
|
304
|
-
"skills/implement/SKILL.md"
|
|
305
|
-
"skills/subagent-driven-development/SKILL.md"
|
|
279
|
+
"skills/implement/SKILL.md"
|
|
306
280
|
],
|
|
307
281
|
"enforcement": "blocking"
|
|
308
282
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* 在代码编辑后检测静态禁止模式:console.log、debugger,
|
|
6
6
|
* 以及 TypeScript 文件中的 @ts-ignore、@ts-nocheck、`: any`、`as any`。
|
|
7
|
-
* 对应 rules/
|
|
7
|
+
* 对应 rules/02-implementation.md 的代码与安全禁止项;文档文件不受检查。
|
|
8
8
|
* 用于 PostToolUse hook,警告不阻塞。
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -66,7 +66,7 @@ function run(raw) {
|
|
|
66
66
|
|
|
67
67
|
return {
|
|
68
68
|
exitCode: 0,
|
|
69
|
-
stderr: `[Hook] 警告: ${filePath} 含禁止模式: ${hits.join('、')},请按 rules/
|
|
69
|
+
stderr: `[Hook] 警告: ${filePath} 含禁止模式: ${hits.join('、')},请按 rules/02-implementation.md 处理\n`
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-everything-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Claude Code and Codex harness with rules, skills, agents, hooks, and verification gates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
"verify": "node scripts/verify-harness.js",
|
|
20
20
|
"test:manifest": "node scripts/verify/skill-manifest-checks.test.js",
|
|
21
21
|
"test:invocation": "node scripts/verify/skill-invocation.test.js",
|
|
22
|
-
"test:
|
|
22
|
+
"test:scenarios": "node scripts/verify/scenario-checks.test.js",
|
|
23
23
|
"test:install-rules": "node scripts/verify/install-rules.test.js",
|
|
24
24
|
"test:learning": "node --test scripts/verify/learning.test.js",
|
|
25
25
|
"test:plugins": "node --test scripts/verify/plugin-distribution.test.js",
|
|
26
|
+
"eval:scenarios": "node scripts/eval-scenarios.js",
|
|
26
27
|
"verify:upstream": "node scripts/verify-upstream-capability-map.js",
|
|
27
28
|
"pack:dry-run": "npm pack --dry-run"
|
|
28
29
|
},
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"README.md",
|
|
42
43
|
"README.zh-CN.md",
|
|
43
44
|
"docs/plugins.md",
|
|
45
|
+
"evals/",
|
|
44
46
|
"settings.json",
|
|
45
47
|
"agents/",
|
|
46
48
|
"bin/",
|
package/rules/01-base.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
- 先理解用户目标和真实调用链,可查事实自行读取。只询问会实质改变结果且无法查明的用户决策。
|
|
4
4
|
- 实施前简述当前目标、预计修改范围和验收标准;用户已明确时直接沿用。已授权范围内自主完成,不重复索要确认;
|
|
5
5
|
必须扩大已约定的目标、修改边界或验收标准时,先说明必要性、影响与最小方案,获准后再扩大。
|
|
6
|
+
- 复杂或高风险修改前,先明确 3–5 条第一性原则(核心目标、不可变约束、冲突优先级、失败代价、可验证成功标准)并映射到实现或验证项。
|
|
6
7
|
- 改动必须对应当前任务的需求、失败用例或验收标准;保留已有用户改动,无关问题只记录,不自动纳入本次任务。
|
|
7
8
|
- 优先复用项目现有入口、标准库和已安装依赖;最后才写最小新增代码,并修在共同根因位置。
|
|
8
9
|
- 最小实现不得省略安全、输入校验、错误处理、兼容性、无障碍和必要验证。
|
|
9
10
|
- 目标项目的架构、lint、类型、测试和风格配置优先于本套通用默认值;没有配置时才使用相关规则的回退建议。
|
|
10
11
|
- 收尾核对完整实际差异(含新增文件),撤回本轮引入的无关改动;约定验收与必要审查验证通过后结束,不自行追加目标。
|
|
11
|
-
-
|
|
12
|
-
Git 与授权见 `rules/05-git-workflow.md`。不在 rules 重写 Skill 的状态机。
|
|
12
|
+
- 流程路由与升级条件由 `skills/using-superpowers/SKILL.md` 维护;验证范围见 `rules/common/testing.md`,Git 与授权见 `rules/05-git-workflow.md`。
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
- 沿用目标项目已有的错误边界、中间件或调用方处理约定;每个错误有明确处理责任,避免逐层重复捕获和提示。
|
|
17
17
|
- 降级、重试与批量部分失败应显式区分;异步拒绝必须有处理方。
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## 代码规模与注释
|
|
20
20
|
|
|
21
|
-
没有项目约束时,用函数约 80 行、参数 5 个、嵌套 4
|
|
22
|
-
|
|
21
|
+
- 没有项目约束时,用函数约 80 行、参数 5 个、嵌套 4 层作为职责审查提示。超限先判断职责和可读性,不为满足数值拆出透传层,也不机械压缩代码;文件和行长由 Hook 提示。
|
|
22
|
+
- 沿用项目文档惯例。注释说明不明显的原因、约束、兼容性处理、复杂算法或外部契约;公共 API 按项目要求提供文档。自解释代码不补逐句说明。
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## 代码与安全禁止 (CRITICAL)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
- 调试残留、类型抑制和耦合问题按目标项目标准检查;不得为掩盖真实错误添加抑制或绕过检查。`hooks/check-console-log.js` 对 `console.log`、`debugger`、`@ts-ignore`、`@ts-nocheck` 和 `any` 的提示属于兼容性警告,需结合真实用途判断。
|
|
27
|
+
- 禁止硬编码密钥、API key、token、secret 或密码(改用环境变量)、SQL 字符串拼接(改用参数化)、未校验外部输入、明文密码(改用 hash)、绕过验证或质量门 Hook,以及提交调试代码。
|
|
28
|
+
- 危险操作必须在沙箱或等价隔离环境中执行;安全敏感改动提交前按风险检查 SQL 注入、XSS、敏感信息泄露和依赖漏洞。发现违规时立即指出问题、解释原因并提供修复方案。
|
package/rules/05-git-workflow.md
CHANGED
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
- 需要隔离时,实现、验证、审查、提交都在任务 worktree 内完成,不改原始 checkout。
|
|
12
12
|
- 不创建嵌套 worktree,不丢弃或覆盖用户已有改动。
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## 提交格式与禁止项 (CRITICAL)
|
|
15
15
|
|
|
16
|
-
使用 `<type>(<scope>): <subject>`:`feat` 新功能、`fix` 修复、`docs` 文档、`style` 不影响逻辑的格式调整、`refactor` 重构、`perf` 性能、`test` 测试、`chore` 构建或工具。提交信息必须描述实际改动,例如 `feat(user): 添加用户登录功能`。
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
提交前确认:提交信息符合规范;代码已通过 lint;只暂存本次任务相关文件;PR 前验证结果已记录。代码与安全禁止项统一见 `rules/07-forbidden.md`。
|
|
16
|
+
- 使用 `<type>(<scope>): <subject>`:`feat` 新功能、`fix` 修复、`docs` 文档、`style` 不影响逻辑的格式调整、`refactor` 重构、`perf` 性能、`test` 测试、`chore` 构建或工具。提交信息必须描述实际改动,例如 `feat(user): 添加用户登录功能`。
|
|
17
|
+
- 提交前确认:提交信息符合规范;代码已通过 lint;只暂存本次任务相关文件;PR 前验证结果已记录。代码与安全禁止项见 `rules/02-implementation.md`。
|
|
18
|
+
- 禁止提交 `node_modules` 等依赖目录、`.env` 等敏感配置、`dist`/`build` 等应由 CI 生成的产物,以及无提交信息的提交。
|
|
21
19
|
|
|
22
20
|
## Superpowers 本地工件
|
|
23
21
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## 交付拓扑
|
|
10
10
|
|
|
11
|
-
to-tickets / implement /
|
|
11
|
+
to-tickets / implement(含 `skills/implement/references/parallel-delivery.md` 并行模式)的选择判据以 `skills/using-superpowers/SKILL.md` 为唯一权威来源;不能在无法证明安全并行时人为拆分任务。
|
|
12
12
|
|
|
13
13
|
## 上下文与权限
|
|
14
14
|
|
|
@@ -5,7 +5,7 @@ Git、分支、提交和外部授权以 `rules/05-git-workflow.md` 为准;验
|
|
|
5
5
|
## PR 契约
|
|
6
6
|
|
|
7
7
|
- PR 前完成选定的最终验证;描述只记录真实结果、未运行项和剩余风险。
|
|
8
|
-
- CI 至少覆盖适用的 lint/format、测试/构建和关键 E2E;失败制品保留清单见 `skills/e2e-testing
|
|
8
|
+
- CI 至少覆盖适用的 lint/format、测试/构建和关键 E2E;失败制品保留清单见 `skills/feature-acceptance/references/e2e-testing.md`。
|
|
9
9
|
- 新提交应取消同一 PR 的过期 CI 运行,避免重复消耗。
|
|
10
10
|
- 没有模板时,描述包含背景、核心改动、验证、风险与回滚。
|
|
11
11
|
|
package/rules/common/testing.md
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
|
|
31
31
|
新功能、bug 修复、重构引起的行为变化和公共 API 变化使用 `skills/test-driven-development/SKILL.md`;本规则不复制 RED/GREEN/REFACTOR 步骤。
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
复杂、高风险或行为变化应补充对抗性验证,主动覆盖异常输入(空值、缺失字段、损坏配置、未知枚举)、重复/并发执行与部分失败重试、特殊字符与跨平台路径、权限/磁盘/网络/依赖失败、历史数据与用户已有改动以及边界数值。
|
|
34
34
|
|
|
35
35
|
## 端到端测试
|
|
36
36
|
|
|
37
|
-
Playwright 的组织、等待、POM、CI 制品和 flake 处理以 `skills/e2e-testing
|
|
37
|
+
Playwright 的组织、等待、POM、CI 制品和 flake 处理以 `skills/feature-acceptance/references/e2e-testing.md` 为准;探索工具不能替代可重复的 E2E。本地多 worktree 运行时隔离端口和环境变量,启动服务必须等待 Web/API ready。CI 失败时按 `skills/feature-acceptance/references/e2e-testing.md` 保留失败制品。
|
|
38
38
|
|
|
39
39
|
## 浏览器验证
|
|
40
40
|
|