claude-everything-workflow 0.1.2 → 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.2",
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",
@@ -210,6 +210,24 @@ function Install-SharedDirs {
210
210
  }
211
211
  }
212
212
 
213
+ function Remove-PackageOnlyPaths {
214
+ param([string]$Destination)
215
+
216
+ $packageOnlyFiles = @(
217
+ "scripts\install.sh",
218
+ "scripts\install.ps1"
219
+ )
220
+
221
+ foreach ($relative in $packageOnlyFiles) {
222
+ $target = Join-Path $Destination $relative
223
+ if (Test-Path -LiteralPath $target -PathType Leaf) {
224
+ Invoke-InstallCommand `
225
+ -Description "Remove-Item '$target'" `
226
+ -Action { Remove-Item -LiteralPath $target -Force }
227
+ }
228
+ }
229
+ }
230
+
213
231
  function Remove-ObsoleteWorkflowPaths {
214
232
  param([string]$Destination)
215
233
 
@@ -260,6 +278,7 @@ function Install-ClaudeWorkflow {
260
278
  Copy-ClaudeSettings -Source (Join-Path $RootDir "settings.json") -Destination $settingsPath
261
279
  Convert-ClaudeSettingsHookPaths -SettingsPath $settingsPath
262
280
  Install-SharedDirs -Destination $dest
281
+ Remove-PackageOnlyPaths -Destination $dest
263
282
  }
264
283
 
265
284
  function Install-CodexWorkflow {
@@ -273,6 +292,7 @@ function Install-CodexWorkflow {
273
292
  Remove-ObsoleteWorkflowPaths -Destination $dest
274
293
  Copy-ConfigFile -Source (Join-Path $RootDir "AGENTS.md") -Destination (Join-Path $dest "AGENTS.md")
275
294
  Install-SharedDirs -Destination $dest
295
+ Remove-PackageOnlyPaths -Destination $dest
276
296
  }
277
297
 
278
298
  if ($InstallClaude) {
@@ -153,6 +153,19 @@ install_shared_dirs() {
153
153
  copy_dir references "$dest"
154
154
  }
155
155
 
156
+ remove_package_only_paths() {
157
+ local dest="$1"
158
+
159
+ for file in \
160
+ "scripts/install.sh" \
161
+ "scripts/install.ps1"
162
+ do
163
+ if [ -f "$dest/$file" ]; then
164
+ run rm -f "$dest/$file"
165
+ fi
166
+ done
167
+ }
168
+
156
169
  remove_obsolete_workflow_paths() {
157
170
  local dest="$1"
158
171
  local file
@@ -189,6 +202,7 @@ install_claude() {
189
202
  copy_file "$ROOT_DIR/AGENTS.md" "$dest/AGENTS.md"
190
203
  copy_claude_settings "$ROOT_DIR/settings.json" "$dest/settings.json"
191
204
  install_shared_dirs "$dest"
205
+ remove_package_only_paths "$dest"
192
206
  }
193
207
 
194
208
  install_codex() {
@@ -199,6 +213,7 @@ install_codex() {
199
213
  remove_obsolete_workflow_paths "$dest"
200
214
  copy_file "$ROOT_DIR/AGENTS.md" "$dest/AGENTS.md"
201
215
  install_shared_dirs "$dest"
216
+ remove_package_only_paths "$dest"
202
217
  }
203
218
 
204
219
  require_rsync
@@ -164,11 +164,15 @@ function checkInstallRuntimePolicy() {
164
164
  "Copy-ClaudeSettings",
165
165
  "Install-CodexWorkflow",
166
166
  "Copy-ConfigFile -Source (Join-Path $RootDir \"AGENTS.md\")",
167
+ "Remove-PackageOnlyPaths",
168
+ "scripts\\install.ps1",
167
169
  ]);
168
170
  requireTokens("scripts/install.sh", [
169
171
  "copy_claude_settings",
170
172
  "install_codex()",
171
173
  "copy_file \"$ROOT_DIR/AGENTS.md\" \"$dest/AGENTS.md\"",
174
+ "remove_package_only_paths",
175
+ "scripts/install.sh",
172
176
  ]);
173
177
 
174
178
  const ps = read("scripts/install.ps1");
@@ -287,6 +291,7 @@ function checkLearningPathPolicy() {
287
291
 
288
292
  function checkRouterTargets() {
289
293
  const expected = [
294
+ ["commands/acceptance.md", ["commands/verify.md"]],
290
295
  ["commands/code-review.md", ["agents/code-reviewer.md"]],
291
296
  [
292
297
  "commands/tdd.md",
@@ -324,6 +329,25 @@ function checkRouterTargets() {
324
329
  }
325
330
  }
326
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
+
327
351
  function checkNpmPackageSurface() {
328
352
  requireTokens("package.json", [
329
353
  '"name": "claude-everything-workflow"',
@@ -841,6 +865,7 @@ function main() {
841
865
  checkHookConfigReferences();
842
866
  checkLearningPathPolicy();
843
867
  checkRouterTargets();
868
+ checkAcceptanceGate();
844
869
  checkNpmPackageSurface();
845
870
  checkSkillLinks();
846
871
  checkRuleLoadingPolicy();
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-