claude-everything-workflow 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -245,6 +245,7 @@ claude-everything-Workflow/
245
245
  | ------------------ | ---------------------------------------------------------- |
246
246
  | `/pr` | 提交、推送和创建 PR 的标准工作流 |
247
247
  | `/verify` | 运行全面验证检查 |
248
+ | `/acceptance` | 对照需求、spec、plan、diff 和验证证据输出验收结论 |
248
249
  | `/learn-eval` | 从会话提取模式 (含质量门评估) |
249
250
  | `/instinct-status` | 查看学习状态和待审查报告 |
250
251
  | `/projects` | 查看 Continuous Learning 项目注册表 |
@@ -298,6 +299,7 @@ Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件
298
299
  -> 代码质量审查
299
300
  -> verification-before-completion 完成声明前确认新鲜验证证据
300
301
  -> /verify 质量门
302
+ -> /acceptance 验收结论
301
303
  -> /pr 提交/PR
302
304
  -> /learn-eval --preview 学习沉淀
303
305
  ```
@@ -310,11 +312,12 @@ Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件
310
312
  - 没有 review,不标记任务完成。
311
313
  - 没有新鲜验证证据,不声明完成、通过、已修复或 ready。
312
314
  - 没有 verify,不进入 PR。
315
+ - 没有 acceptance,不把复杂任务声明为验收通过。
313
316
  - 有脏工作区、并行任务或高风险改动时,先考虑 `using-git-worktrees`。
314
317
 
315
318
  复杂任务包括新功能、架构调整、多文件行为变化、高风险实现,以及需求存在多种合理解释的工作。简单问答、翻译、格式调整、窄范围文档修正和无行为变化的小修复,可以直接处理,但完成前仍需运行与改动范围匹配的最小验证。
316
319
 
317
- 收尾阶段按 `/verify` -> `/pr` -> `/learn-eval --preview` 推进。`/learn-eval --preview` 是非阻塞学习建议门,只在模式高频、稳定、可复用时保存。
320
+ 收尾阶段按 `/verify` -> `/acceptance` -> `/pr` -> `/learn-eval --preview` 推进。`/learn-eval --preview` 是非阻塞学习建议门,只在模式高频、稳定、可复用时保存。
318
321
 
319
322
  ## Continuous Learning v2
320
323
 
@@ -360,10 +363,11 @@ Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件
360
363
  6. 使用 /tdd 委派 tdd-guide 规划测试先行实现
361
364
  7. 关键路径使用 /e2e 委派 e2e-runner 维护 Playwright
362
365
  8. 使用 /verify 验证
363
- 9. 使用 /code-review 委派 code-reviewer 审查
364
- 10. 使用 /learn-eval 将稳定模式沉淀到 skills/learn/<category>/
365
- 11. 使用 /projects 查看项目级学习来源
366
- 12. 使用 /promote --dry-run 评估是否推广为全局直觉
367
- 13. 使用 /evolve 评估是否演化
368
- 14. 使用 /prune 清理已人工标记删除的直觉
366
+ 9. 使用 /acceptance 输出需求验收结论
367
+ 10. 使用 /code-review 委派 code-reviewer 审查
368
+ 11. 使用 /learn-eval 将稳定模式沉淀到 skills/learn/<category>/
369
+ 12. 使用 /projects 查看项目级学习来源
370
+ 13. 使用 /promote --dry-run 评估是否推广为全局直觉
371
+ 14. 使用 /evolve 评估是否演化
372
+ 15. 使用 /prune 清理已人工标记删除的直觉
369
373
  ```
@@ -0,0 +1,73 @@
1
+ ---
2
+ description: 验收实现是否满足需求、spec、plan 和验证证据
3
+ ---
4
+
5
+ # /acceptance - 需求验收
6
+
7
+ `/acceptance` 是 Verify Gate 之后、`/pr` 之前的验收入口,依赖 `commands/verify.md` 定义的验证证据。它不替代测试,也不发明新的执行器;它把现有 spec、plan、diff、测试结果和 `/verify` 输出整理成可审查的验收结论。
8
+
9
+ ## 使用方式
10
+
11
+ ```text
12
+ /acceptance
13
+ /acceptance docs/superpowers/specs/2026-06-16-feature-design.md
14
+ /acceptance --staged
15
+ ```
16
+
17
+ ## 输入来源
18
+
19
+ 按可用性读取:
20
+
21
+ 1. 用户指定的 spec、plan 或需求说明。
22
+ 2. `docs/superpowers/specs/` 中与当前任务相关的 design spec。
23
+ 3. `docs/superpowers/plans/` 中与当前任务相关的 implementation plan。
24
+ 4. 当前 `git diff` 或 `--staged` diff。
25
+ 5. 本轮已运行的测试、构建、lint、E2E、`/verify` 结果。
26
+
27
+ 如果缺少 spec 或 plan,仍可基于用户原始需求和 diff 做轻量验收,但必须标记“验收依据不足”。
28
+
29
+ ## 验收流程
30
+
31
+ 1. 提取需求点、验收标准和非目标。
32
+ 2. 对照 diff,判断每个需求是否有实现证据。
33
+ 3. 对照测试和 `/verify`,判断每个验收标准是否有验证证据。
34
+ 4. 检查是否有未运行项、失败项、范围外改动和剩余风险。
35
+ 5. 输出明确结论:通过、部分通过、失败或依据不足。
36
+
37
+ ## 输出格式
38
+
39
+ ```text
40
+ 验收结果: [通过/部分通过/失败/依据不足]
41
+
42
+ 需求覆盖:
43
+ - REQ-1: [通过/失败/未验证] — [实现证据路径或原因]
44
+
45
+ 验收标准:
46
+ - AC-1: [通过/失败/未验证] — [测试命令、人工检查或证据路径]
47
+
48
+ 测试证据:
49
+ - <command>: <passed/failed/not run> — <evidence>
50
+
51
+ 未验收项:
52
+ - [项目] — [原因]
53
+
54
+ 范围外改动:
55
+ - [文件/行为] — [是否需要回滚或说明]
56
+
57
+ 剩余风险:
58
+ - [风险 or 无已知剩余风险]
59
+ ```
60
+
61
+ ## 判定标准
62
+
63
+ - **通过**:需求覆盖完整,验收标准均有证据,关键验证通过,无阻塞风险。
64
+ - **部分通过**:核心路径通过,但存在非阻塞缺口、未运行检查或低风险未验收项。
65
+ - **失败**:需求缺失、关键验收标准失败、关键验证失败或存在阻塞风险。
66
+ - **依据不足**:没有足够的需求、spec、plan 或验证证据支撑验收结论。
67
+
68
+ ## 约束
69
+
70
+ - 不要把“测试通过”等同于“验收通过”;必须对照需求和验收标准。
71
+ - 不要声称验收通过,除非有实现证据和验证证据。
72
+ - 未运行检查必须写明原因。
73
+ - 发现缺口时,回到实现、测试或 `/verify` 阶段,不直接进入 `/pr`。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Claude Code and Codex harness with rules, skills, agents, hooks, and verification gates.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -291,6 +291,7 @@ function checkLearningPathPolicy() {
291
291
 
292
292
  function checkRouterTargets() {
293
293
  const expected = [
294
+ ["commands/acceptance.md", ["commands/verify.md"]],
294
295
  ["commands/code-review.md", ["agents/code-reviewer.md"]],
295
296
  [
296
297
  "commands/tdd.md",
@@ -328,6 +329,25 @@ function checkRouterTargets() {
328
329
  }
329
330
  }
330
331
 
332
+ function checkAcceptanceGate() {
333
+ requireTokens("README.md", [
334
+ "`/acceptance`",
335
+ "/verify` -> `/acceptance` -> `/pr`",
336
+ "没有 acceptance,不把复杂任务声明为验收通过",
337
+ ]);
338
+
339
+ requireTokens("commands/acceptance.md", [
340
+ "验收结果: [通过/部分通过/失败/依据不足]",
341
+ "需求覆盖:",
342
+ "验收标准:",
343
+ "测试证据:",
344
+ "未验收项:",
345
+ "范围外改动:",
346
+ "剩余风险:",
347
+ "不要把“测试通过”等同于“验收通过”",
348
+ ]);
349
+ }
350
+
331
351
  function checkNpmPackageSurface() {
332
352
  requireTokens("package.json", [
333
353
  '"name": "claude-everything-workflow"',
@@ -845,6 +865,7 @@ function main() {
845
865
  checkHookConfigReferences();
846
866
  checkLearningPathPolicy();
847
867
  checkRouterTargets();
868
+ checkAcceptanceGate();
848
869
  checkNpmPackageSurface();
849
870
  checkSkillLinks();
850
871
  checkRuleLoadingPolicy();