claude-everything-workflow 0.2.2 → 0.2.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.
Files changed (92) hide show
  1. package/.agents/plugins/marketplace.json +12 -0
  2. package/.claude-plugin/hooks.json +33 -0
  3. package/.claude-plugin/marketplace.json +12 -0
  4. package/.claude-plugin/plugin.json +10 -0
  5. package/.codex-plugin/plugin.json +20 -0
  6. package/AGENTS.md +13 -18
  7. package/CLAUDE.md +1 -5
  8. package/README.md +101 -368
  9. package/README.zh-CN.md +158 -0
  10. package/agents/database-reviewer.md +0 -3
  11. package/agents/e2e-runner.md +8 -141
  12. package/commands/code-review.md +9 -30
  13. package/commands/pr.md +1 -6
  14. package/commands/verify.md +7 -11
  15. package/docs/plugins.md +91 -0
  16. package/harness/manifest.json +310 -0
  17. package/package.json +14 -2
  18. package/references/git-worktrees.md +29 -0
  19. package/rules/01-base.md +9 -26
  20. package/rules/02-code-size.md +5 -9
  21. package/rules/03-architecture.md +8 -22
  22. package/rules/04-error-handling.md +4 -5
  23. package/rules/05-git-workflow.md +6 -3
  24. package/rules/06-comments.md +3 -9
  25. package/rules/07-forbidden.md +4 -3
  26. package/rules/common/agent-orchestration.md +2 -4
  27. package/rules/common/context-hygiene.md +2 -0
  28. package/rules/common/hooks.md +2 -0
  29. package/rules/common/pr-automation.md +1 -1
  30. package/rules/common/skills-learning.md +2 -2
  31. package/rules/common/testing.md +10 -2
  32. package/scripts/install-rules.js +100 -0
  33. package/scripts/install.ps1 +29 -3
  34. package/scripts/install.sh +26 -2
  35. package/scripts/legacy-common-rule-hashes.json +78 -0
  36. package/scripts/retired-skill-files.json +26 -0
  37. package/scripts/upstream-capability-map.json +14 -9
  38. package/scripts/verify/continuation-checks.test.js +101 -0
  39. package/scripts/verify/core.js +1 -0
  40. package/scripts/verify/grilling-spec-gate-checks.js +48 -11
  41. package/scripts/verify/install-rules.test.js +165 -0
  42. package/scripts/verify/metadata-checks.js +35 -26
  43. package/scripts/verify/plugin-distribution.test.js +40 -0
  44. package/scripts/verify/repository-checks.js +39 -80
  45. package/scripts/verify/skill-invocation.test.js +87 -0
  46. package/scripts/verify/skill-manifest-checks.js +197 -0
  47. package/scripts/verify/skill-manifest-checks.test.js +135 -0
  48. package/scripts/verify/workflow-checks.js +28 -150
  49. package/scripts/verify-harness.js +2 -0
  50. package/scripts/verify-upstream-capability-map.js +2 -1
  51. package/skills/README.md +11 -15
  52. package/skills/code-review/SKILL.md +54 -41
  53. package/skills/codebase-design/SKILL.md +1 -1
  54. package/skills/continuous-learning-v2/SKILL.md +4 -2
  55. package/skills/domain-modeling/SKILL.md +9 -6
  56. package/skills/e2e-testing/SKILL.md +20 -310
  57. package/skills/e2e-testing/references/playwright-patterns.md +324 -0
  58. package/skills/feature-acceptance/SKILL.md +6 -2
  59. package/skills/grilling/SKILL.md +4 -3
  60. package/skills/handoff/SKILL.md +3 -4
  61. package/skills/handoff/agents/openai.yaml +5 -0
  62. package/skills/implement/SKILL.md +32 -81
  63. package/skills/implement/references/ticket-delivery.md +43 -0
  64. package/skills/improve-codebase-architecture/SKILL.md +1 -2
  65. package/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  66. package/skills/prototype/SKILL.md +1 -1
  67. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  68. package/skills/spec-gate/SKILL.md +4 -2
  69. package/skills/subagent-driven-development/SKILL.md +3 -3
  70. package/skills/systematic-debugging/SKILL.md +41 -3
  71. package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
  72. package/skills/test-driven-development/SKILL.md +6 -2
  73. package/skills/to-tickets/SKILL.md +5 -3
  74. package/skills/triage/SKILL.md +4 -4
  75. package/skills/triage/agents/openai.yaml +5 -0
  76. package/skills/using-superpowers/SKILL.md +33 -96
  77. package/skills/using-superpowers/references/process-outcomes.md +44 -0
  78. package/skills/visual-companion/SKILL.md +1 -1
  79. package/agents/architect.md +0 -59
  80. package/agents/code-reviewer.md +0 -28
  81. package/agents/planner.md +0 -40
  82. package/agents/tdd-guide.md +0 -101
  83. package/references/agents/database-reviewer.md +0 -657
  84. package/skills/find-skills/SKILL.md +0 -142
  85. package/skills/iterative-retrieval/SKILL.md +0 -84
  86. package/skills/project-context/SKILL.md +0 -94
  87. package/skills/project-context/agents/openai.yaml +0 -6
  88. package/skills/project-context/references/project-context-template.md +0 -61
  89. package/skills/research/SKILL.md +0 -48
  90. package/skills/using-git-worktrees/SKILL.md +0 -64
  91. package/skills/verification-before-completion/SKILL.md +0 -77
  92. package/skills/wayfinder/SKILL.md +0 -57
@@ -25,38 +25,14 @@ function bindContext(context) {
25
25
  } = context);
26
26
  }
27
27
 
28
- function checkReadmeWorkflowContract() {
29
- requireTokens("README.md", [
30
- "Ticket-first 工程交付闭环",
31
- "using-superpowers",
32
- "?key=",
33
- "4 小时",
34
- "using-git-worktrees",
35
- "iterative-retrieval",
36
- "to-tickets",
37
- "implement",
38
- "subagent-driven-development",
39
- "verification-before-completion",
40
- "完整流程适用时",
41
- "没有批准的必需 Spec 不进入 ticket 或 implement",
42
- "没有用户审核不进入实现",
43
- "没有 failing test,不写行为代码",
44
- "没有 review 不标记任务完成",
45
- "没有新鲜验证证据,不声明完成、通过、已修复或 ready",
46
- "没有 verify,不进入 PR",
47
- "`/learn eval --preview` 是非阻塞学习建议门",
48
- ]);
49
- }
50
-
51
28
  function checkSuperpowersDevLoop() {
52
- checkReadmeWorkflowContract();
53
29
 
54
30
  requireTokens("rules/01-base.md", [
55
- "## 最小且正确的实现",
56
- "先理解真实调用链",
57
- "必要性",
58
- "复用现有实现",
59
- "标准库或平台原生能力",
31
+ "# 执行原则",
32
+ "先理解用户目标",
33
+ "真实调用链",
34
+ "复用项目现有入口",
35
+ "标准库",
60
36
  "已安装依赖",
61
37
  "最小新增代码",
62
38
  "skills/using-superpowers/SKILL.md",
@@ -70,36 +46,8 @@ function checkSuperpowersDevLoop() {
70
46
  "不凭记忆执行 skill",
71
47
  ]);
72
48
 
73
- requireTokens("skills/spec-gate/SKILL.md", [
74
- "# Spec Gate",
75
- "READY_FOR_USER_REVIEW",
76
- "User Review Gate",
77
- ]);
78
-
79
- requireTokens("skills/to-tickets/SKILL.md", [
80
- "tracer bullet",
81
- "blocking edges",
82
- "fresh context",
83
- "file paths",
84
- "code snippets",
85
- ]);
86
-
87
- requireTokens("skills/implement/SKILL.md", [
88
- "一个 fresh context",
89
- "test-driven-development",
90
- "ticket as the Spec source",
91
- ]);
92
-
93
- requireTokens("skills/subagent-driven-development/SKILL.md", [
94
- "frontier ticket",
95
- "fresh subagent",
96
- "one ticket",
97
- "Do not generate a detailed implementation plan",
98
- "controller-owned integration worktree",
99
- "integrate-and-verify gate",
100
- "task-owned untracked files",
101
- "every selected ticket body as the combined Spec source",
102
- ]);
49
+ // Skill 正文契约在各自的专门检查中维护;这里仅验证跨文件的闭环入口。
50
+ // 避免同一组流程词在多个检查点重复登记,允许 Skill 删除解释性文案。
103
51
 
104
52
  requireTokens("skills/test-driven-development/SKILL.md", [
105
53
  "## Red Test Gate",
@@ -161,13 +109,6 @@ function checkSuperpowersArtifactPolicy() {
161
109
  "Superpowers 生成的 Spec 和本地 tickets 仅用于本地工作流",
162
110
  "无论保存位置都不得暂存或提交",
163
111
  ]);
164
- requireTokens("skills/spec-gate/SKILL.md", [
165
- "Local-only artifact policy",
166
- "Treat every generated design Spec as a local workflow artifact",
167
- "Do not stage or commit it.",
168
- ]);
169
- requireTokens("skills/to-tickets/SKILL.md", ["Local tracker", "one file per ticket"]);
170
-
171
112
  const repoRoot = spawnSync("git", ["rev-parse", "--show-toplevel"], {
172
113
  cwd: root,
173
114
  encoding: "utf8",
@@ -253,18 +194,13 @@ function checkRouteOrdering() {
253
194
 
254
195
  function checkWorkflowDocuments() {
255
196
  runWorkflowOwnershipChecks({ read, fail, managedFiles });
256
- requireTokens("skills/iterative-retrieval/SKILL.md", [
257
- "事实、证据和盲点缺口",
258
- "低成本",
259
- "复杂、高风险、多文件或长周期",
260
- "skills/grilling/SKILL.md",
261
- "skills/spec-gate/SKILL.md",
262
- "返回 `skills/using-superpowers/SKILL.md`",
197
+ requireTokens("skills/using-superpowers/SKILL.md", [
198
+ "shortest applicable path",
199
+ "File count, new features, and ordinary complexity affect",
200
+ "verification intensity, not the lane",
201
+ "A high-risk boundary",
263
202
  ]);
264
203
  requireTokens("rules/01-base.md", [
265
- "默认走最短适用闭环",
266
- "多文件、新功能、普通行为变化和复杂度本身都不是完整流程触发条件",
267
- "高风险边界",
268
204
  "rules/common/testing.md",
269
205
  "skills/using-superpowers/SKILL.md",
270
206
  ]);
@@ -297,7 +233,6 @@ function checkWorkflowDocuments() {
297
233
  "rules/01-base.md",
298
234
  "rules/common/agent-orchestration.md",
299
235
  ]);
300
- requireTokens("agents/planner.md", ["to-tickets", "不写文件路径"]);
301
236
  }
302
237
 
303
238
  function checkComplexityRules() {
@@ -311,15 +246,6 @@ function checkComplexityRules() {
311
246
  "rules/01-base.md should not classify new or multi-file behavior work as full-flow by default",
312
247
  );
313
248
  }
314
- requireTokens("README.md", [
315
- "直接提出 grilling 请求",
316
- "`/to-spec`",
317
- "`grilling` 是唯一需求澄清引擎",
318
- "默认最短闭环",
319
- "按风险逐级升级",
320
- "完整流程适用时",
321
- "明确低风险且无未决决策",
322
- ]);
323
249
  }
324
250
 
325
251
  function checkGrillingWorkflow() {
@@ -330,10 +256,6 @@ function checkGrillingWorkflow() {
330
256
  }
331
257
 
332
258
  function checkSuperpowersRoutingConsistency() {
333
- requireTokens("skills/iterative-retrieval/SKILL.md", [
334
- "返回 `skills/using-superpowers/SKILL.md` 重新路由",
335
- "不要自行枚举或调用下一 skill",
336
- ]);
337
259
  requireTokens("skills/using-superpowers/SKILL.md", [
338
260
  "explicit formal Spec",
339
261
  "high-risk boundary",
@@ -346,19 +268,6 @@ function checkSuperpowersRoutingConsistency() {
346
268
  "Spec Gate contract conflict",
347
269
  ]);
348
270
 
349
- const retrieval = read("skills/iterative-retrieval/SKILL.md");
350
- for (const staleRoute of [
351
- "交接到 `brainstorming`、`test-driven-development` 或 `executing-plans` skill",
352
- "再进入 `brainstorming`、`test-driven-development` 或 `executing-plans`",
353
- ]) {
354
- if (retrieval.includes(staleRoute)) {
355
- fail(
356
- "skills/iterative-retrieval/SKILL.md should return to the router " +
357
- `instead of enumerating follow-up skills: ${staleRoute}`,
358
- );
359
- }
360
- }
361
-
362
271
  }
363
272
 
364
273
  function readCapabilityManifest(manifestPath) {
@@ -399,7 +308,9 @@ function checkCapabilityEntries(manifest, manifestPath) {
399
308
  fail(`${manifestPath} must map all 17 promoted engineering capabilities`);
400
309
  }
401
310
  for (const entry of capabilities) {
402
- if (!["covered", "adapted"].includes(entry.status)) {
311
+ const excluded = ["wayfinder", "setup-matt-pocock-skills"].includes(entry.upstream) && entry.status === "excluded" &&
312
+ typeof entry.reason === "string" && entry.reason.trim().length > 0;
313
+ if (!excluded && !["covered", "adapted"].includes(entry.status)) {
403
314
  fail(`${entry.upstream} is not capability-equivalent: ${entry.status}`);
404
315
  }
405
316
  if (!Array.isArray(entry.evidence) || entry.evidence.length === 0) {
@@ -432,7 +343,6 @@ function checkCapabilityRouting() {
432
343
  "explicit workflow advice?",
433
344
  "workflow advice mode",
434
345
  "explicit TDD request?",
435
- "agents/tdd-guide.md",
436
346
  "explicit E2E or Playwright request?",
437
347
  "skills/e2e-testing/SKILL.md",
438
348
  "agents/e2e-runner.md",
@@ -445,10 +355,7 @@ function checkCapabilityRouting() {
445
355
  "skills/subagent-driven-development/SKILL.md",
446
356
  "explicit prototype or runnable design question?",
447
357
  "skills/prototype/SKILL.md",
448
- "primary-source research or cited research artifact?",
449
- "skills/research/SKILL.md",
450
- "huge effort beyond one session?",
451
- "skills/wayfinder/SKILL.md",
358
+ "external engineering fact or documentation question?",
452
359
  "skills/to-tickets/SKILL.md",
453
360
  "merge or rebase conflict?",
454
361
  "skills/resolving-merge-conflicts/SKILL.md",
@@ -485,11 +392,9 @@ function checkCapabilityFiles() {
485
392
  "skills/implement/SKILL.md",
486
393
  "skills/improve-codebase-architecture/SKILL.md",
487
394
  "skills/prototype/SKILL.md",
488
- "skills/research/SKILL.md",
489
395
  "skills/resolving-merge-conflicts/SKILL.md",
490
396
  "skills/to-tickets/SKILL.md",
491
397
  "skills/triage/SKILL.md",
492
- "skills/wayfinder/SKILL.md",
493
398
  ]) {
494
399
  if (!exists(file)) fail(`${file} is missing`);
495
400
  }
@@ -531,8 +436,6 @@ function checkDesignCapabilityContracts() {
531
436
  "interface as the test surface",
532
437
  ]);
533
438
  requireTokens("skills/improve-codebase-architecture/SKILL.md", [
534
- "disable-model-invocation: true",
535
- "deepening opportunities",
536
439
  "skills/codebase-design/SKILL.md",
537
440
  "skills/visual-companion/SKILL.md",
538
441
  "explicit consent",
@@ -555,13 +458,11 @@ function checkDesignCapabilityContracts() {
555
458
  }
556
459
 
557
460
  function checkDeliveryCapabilityContracts() {
558
- requireTokens("skills/research/SKILL.md", [
559
- "background subagent",
560
- "primary sources",
561
- "citing each claim",
562
- "Markdown report",
563
- ".unknowns/",
564
- ]);
461
+ if (exists("skills/research/SKILL.md")) fail("standalone research Skill must be retired");
462
+ const retired = JSON.parse(read("scripts/retired-skill-files.json"));
463
+ if (!retired.retired_skills?.research?.includes("SKILL.md")) {
464
+ fail("research retirement must clean up the installed entrypoint");
465
+ }
565
466
  requireTokens("skills/resolving-merge-conflicts/SKILL.md", [
566
467
  "primary sources",
567
468
  "one hunk at a time",
@@ -576,7 +477,6 @@ function checkDeliveryCapabilityContracts() {
576
477
  "ready-for-agent",
577
478
  ]);
578
479
  requireTokens("skills/triage/SKILL.md", [
579
- "disable-model-invocation: true",
580
480
  "needs-triage",
581
481
  "needs-info",
582
482
  "ready-for-agent",
@@ -585,16 +485,6 @@ function checkDeliveryCapabilityContracts() {
585
485
  "generated by AI during triage",
586
486
  "obtain confirmation",
587
487
  ]);
588
- requireTokens("skills/wayfinder/SKILL.md", [
589
- "disable-model-invocation: true",
590
- "Destination",
591
- "Decisions so far",
592
- "Not yet specified",
593
- "frontier",
594
- "one ticket per session",
595
- "WAY_CLEAR",
596
- "to-tickets",
597
- ]);
598
488
  requireTokens("skills/test-driven-development/SKILL.md", [
599
489
  "Public Seam",
600
490
  "测试和调用方应穿过同一个 seam",
@@ -603,7 +493,6 @@ function checkDeliveryCapabilityContracts() {
603
493
  "tracer bullet",
604
494
  ]);
605
495
  requireTokens("skills/handoff/SKILL.md", [
606
- "disable-model-invocation: true",
607
496
  "temporary directory",
608
497
  "private subdirectory",
609
498
  "0700",
@@ -642,14 +531,20 @@ function checkRemovedSkillReferences() {
642
531
  }
643
532
 
644
533
  const retiredSkills = [
534
+ "iterative-retrieval",
535
+ "using-git-worktrees",
536
+ "verification-before-completion",
645
537
  "discover-unknowns-zh",
646
538
  "skill-creator",
647
539
  "writing-plans",
648
540
  "executing-plans",
541
+ "wayfinder",
649
542
  ];
650
543
  const allowedRetirementFiles = new Set([
651
544
  "README.md",
652
545
  "scripts/retired-skill-files.json",
546
+ "scripts/upstream-capability-map.json",
547
+ "scripts/upstream-capability-baseline.json",
653
548
  ]);
654
549
 
655
550
  for (const skill of retiredSkills) {
@@ -669,27 +564,10 @@ function checkRemovedSkillReferences() {
669
564
  }
670
565
  }
671
566
 
672
- requireTokens("README.md", [
673
- "Skill 迁移说明",
674
- "`discover-unknowns-zh` 已退休",
675
- "`iterative-retrieval`",
676
- "`research`",
677
- "`prototype`",
678
- "`to-tickets`",
679
- "`implementation-notes`、`explainer` 和 `quiz` 工件链不再属于",
680
- "`skill-creator` 已退休",
681
- "`rules/common/skills-learning.md`",
682
- "scripts/upstream-capability-map.json",
683
- ]);
684
567
  requireTokens("scripts/retired-skill-files.json", retiredSkills);
685
- requireTokens("skills/find-skills/SKILL.md", [
686
- "name: find-skills",
687
- "npx skills find",
688
- "Verify Quality Before Recommending",
689
- ]);
690
568
  requireTokens("rules/common/skills-learning.md", [
691
569
  "Skill 创建和更新遵循本规则",
692
- "开放生态中的 skill 查找和安装由 `find-skills` 处理",
570
+ "开放生态中的 skill 查找和安装按用户明确请求使用宿主已有工具",
693
571
  ]);
694
572
  }
695
573
 
@@ -4,6 +4,7 @@
4
4
  const path = require("path");
5
5
  const { createHarnessContext } = require("./verify/core");
6
6
  const { runMetadataChecks } = require("./verify/metadata-checks");
7
+ const { runSkillManifestChecks } = require("./verify/skill-manifest-checks");
7
8
  const { runRepositoryChecks } = require("./verify/repository-checks");
8
9
  const { runWorkflowChecks } = require("./verify/workflow-checks");
9
10
  const { runRuntimeChecks } = require("./verify/runtime-checks");
@@ -13,6 +14,7 @@ function main() {
13
14
  const context = createHarnessContext(root);
14
15
 
15
16
  runMetadataChecks(context);
17
+ runSkillManifestChecks(context);
16
18
  runRepositoryChecks(context);
17
19
  runWorkflowChecks(context);
18
20
  runRuntimeChecks(context);
@@ -105,7 +105,8 @@ function main(argv = process.argv.slice(2)) {
105
105
  if (upstreamRoot) verifyClone(upstreamRoot, manifest, baseline);
106
106
  process.stdout.write(
107
107
  `Verified upstream ${manifest.upstream.commit.slice(0, 7)}: ` +
108
- `${manifest.capabilities.length} Engineering capabilities + handoff\n`,
108
+ `${manifest.capabilities.length} Engineering mappings ` +
109
+ `(${manifest.capabilities.filter((entry) => entry.status === "excluded").length} excluded) + handoff\n`,
109
110
  );
110
111
  }
111
112
 
package/skills/README.md CHANGED
@@ -2,23 +2,25 @@
2
2
 
3
3
  正式 skill 保持 `skills/<skill-name>/SKILL.md` 平铺结构,兼容 Claude Code、Codex 和打包安装的发现方式。分类只在本索引维护,不用物理嵌套目录;需要长材料时,放到对应 skill 的 `references/`。
4
4
 
5
+ 入口只维护选择与通用约束:`using-superpowers` 的过程返回处理在 `references/process-outcomes.md`,`implement` 的 ticket 状态机在 `references/ticket-delivery.md`。只在对应模式读取;普通直接交付不加载这两份引用。
6
+
7
+ 调用策略登记在 `harness/manifest.json`,由 `npm run verify` 按宿主校验。`implicit` 允许模型在命中描述与正文条件时调用,不等于授权外部写入;本项目需要明确请求的入口接受自然语言,不要求用户再输入 `/name` 或 `$name`;路由不能把任务复杂度当作用户请求。Skill 正文仍按命中后加载,不能把分类索引当作全量加载清单。
8
+
9
+ 实施、审查、领域设计、E2E、原型、视觉辅助和 `/learn` 依赖的能力允许工作流按条件调用,仍遵守各自的用户请求、同意和写入边界。`handoff`、`improve-codebase-architecture`、`triage` 仅在用户明确请求相应任务时使用;宿主允许模型识别自然语言请求,正文仍限制任务范围。
10
+
5
11
  ## Process / 门禁
6
12
 
7
- - `using-superpowers`:非平凡任务的 skill 路由、优先级和完成声明纪律。
13
+ - `using-superpowers`:工程交付及明确请求的工程工作流的 skill 路由、优先级和完成声明纪律。
8
14
  - `grilling`:对计划、设计或重大用户决策进行单问式压力测试。
9
15
  - `spec-gate`:显式 formal spec 或高风险任务的零访谈成稿、自审和用户批准门。
10
- - `using-git-worktrees`:脏工作区、高风险或并行任务的隔离工作区准备。
11
16
  - `to-tickets`:把已批准工作拆成 tracer-bullet tickets 和 blocking graph。
12
17
  - `implement`:执行用户授权的低风险 direct scope、已批准 Spec scope 或 frontier ticket;仅 ticket 路径 claim、resolve 并刷新 frontier。
13
18
  - `subagent-driven-development`:router 对已授权范围发现多个相互独立的 frontier tickets 时,分派到隔离 worktree 的 fresh subagent。
14
- - `wayfinder`:为跨 session 的模糊工作维护 decision-ticket map/frontier。
15
19
  - `triage`:对 Issue/外部 PR 分类、验证并形成 agent-ready brief。
16
20
  - `handoff`:将当前上下文脱敏压缩到临时 Markdown,供全新 session 接续。
17
- - `verification-before-completion`:完成、通过、已修复或 ready 声明前的新鲜验证门。
18
21
 
19
22
  ## 旁路设计能力
20
23
 
21
- - `project-context`:显式配置项目工作追踪、领域文档和 ADR 的长期位置。
22
24
  - `domain-modeling`:领域术语、实体关系、不变量、生命周期和 bounded context 变化建模。
23
25
  - `codebase-design`:deep module、interface、seam、adapter、leverage 和 locality 设计词汇。
24
26
  - `improve-codebase-architecture`:扫描 deepening 机会、展示报告并收敛选中候选。
@@ -27,22 +29,16 @@
27
29
 
28
30
  ## Engineering / 开发实践
29
31
 
30
- - `code-review`:用两个隔离 subagent 并行执行 Standards 与 Spec 双轴审查。
32
+ - `code-review`:简单、明确、低风险且可验证的任务可自审;复杂或证据不足时使用一个独立子智能体,高风险使用 Standards/Spec 双轴;必要的独立审查不可用时阻塞。
31
33
  - `test-driven-development`:行为变化的 Red Test Gate。
32
- - `systematic-debugging`:失败、异常结果和 flaky 行为的根因调试。
34
+ - `systematic-debugging`:区分普通明确失败与疑难故障;预期 TDD RED 留在实现循环。
33
35
  - `resolving-merge-conflicts`:按双方原始意图逐 hunk 解决 merge/rebase 冲突。
34
36
  - `e2e-testing`:Playwright E2E 模式、CI、制品和 flaky 处理。
35
- - `feature-acceptance`:以真实证据、用例矩阵和二次审核完成用户功能验收。
37
+ - `feature-acceptance`:用户明确要求真实流程验收、截图或日志证据时,输出用例矩阵与复核结论。
36
38
 
37
39
  ## Harness / 上下文与编排
38
40
 
39
- - `iterative-retrieval`:事实、证据、盲点、subagent 和大仓库探索的迭代检索闭环。
40
- - `research`:后台一手来源调查与逐项引用的 Markdown 研究记录。
41
- - `continuous-learning-v2`:Hook 观察、project/global instinct、学习评估和演化。
42
-
43
- ## Meta / Skill 管理
44
-
45
- - `find-skills`:查找本地已有或开放生态中可安装的 agent skill。
41
+ - `continuous-learning-v2`:学习系统的观察 Hook、project/global instinct、学习评估和演化。
46
42
 
47
43
  ## Learn / 学习沉淀
48
44
 
@@ -1,50 +1,63 @@
1
1
  ---
2
2
  name: code-review
3
- description: "Review changes since a user-supplied fixed point with two parallel subagents: one for repository standards and Fowler smell heuristics, one for Spec compliance. Use for branch, PR, or work-in-progress review before completion."
3
+ description: Review a fixed diff and confirmed scope; use self-review for verifiable low-risk work and independent review as risk grows.
4
4
  ---
5
5
 
6
6
  # Code Review
7
7
 
8
- Origin: `mattpocock/skills@2ab9580`, adapted to this repository's fixed-base and no-implicit-write rules.
8
+ Origin: `mattpocock/skills@2ab9580`, adapted to fixed-base review and proportionate verification.
9
+ Review depth belongs here; callers supply the scope, base, risk and available evidence.
9
10
 
10
11
  ## Pin the review package
11
12
 
12
- 1. Resolve the user-supplied base with `git rev-parse`. Never infer a missing base. Only explicit
13
- `--staged` review has no branch base.
14
- 2. Select one review package:
15
- - committed branch: `git diff <base>...HEAD` plus `git log <base>..HEAD --oneline`;
16
- - active no-commit/mixed worktree: `git diff <base>`, which includes committed changes plus
17
- tracked staged and unstaged changes relative to the base;
18
- - explicit staged-only review: `git diff --cached`.
19
- 3. For branch and worktree modes, list task-owned untracked files explicitly and include their complete
20
- content/diff because Git does not include untracked files. Record unrelated dirty files as excluded.
21
- 4. Capture the selected package once and give the identical package to both reviewers.
22
- 5. Stop as `BLOCKED` when a required base is invalid or the intended review package is empty.
23
- 6. Resolve the Spec source in order: explicit `--spec`, tracker reference in commits, matching durable
24
- Spec/plan, then user confirmation that no Spec exists.
25
- 7. Read repository standards and only the rules relevant to the changed areas.
26
-
27
- ## Run two isolated axes
28
-
29
- Spawn two parallel subagents with isolated contexts. Do not ask one reviewer to simulate both axes.
30
-
31
- - **Standards reviewer**: load `references/standards-reviewer-prompt.md`, the fixed review package,
32
- relevant repository standards, and the complete smell baseline from that prompt.
33
- - **Spec reviewer**: load `references/spec-reviewer-prompt.md`, the same fixed review package, and
34
- the complete Spec source. Skip this subagent only when the user confirms there is no Spec.
35
-
36
- Both are read-only. They must not edit files or influence one another. If the runtime cannot create
37
- two isolated review contexts, return `BLOCKED`; do not silently collapse them into one reviewer.
38
-
39
- ## Aggregate
40
-
41
- Report the two results side by side under `## Standards` and `## Spec`. Do not merge or rerank
42
- findings across axes. Preserve each axis's severity order and evidence.
43
-
44
- End with:
45
-
46
- - finding count and worst severity within each axis;
47
- - checks not run;
48
- - the minimal required fixes or missing input.
49
-
50
- After fixes, rerun both axes against the same base and current full review package.
13
+ 1. Resolve the user-supplied or caller-recorded base with `git rev-parse`. A pre-delivery/pre-ticket base
14
+ is valid input. Never invent a missing base; explicit `--staged` review needs none.
15
+ 2. Select the package:
16
+ - committed branch: `git diff <base>...HEAD` and `git log <base>..HEAD --oneline`;
17
+ - active worktree: `git diff <base>` includes committed changes and tracked staged and unstaged edits;
18
+ - staged-only: `git diff --cached`.
19
+ 3. Include task-owned untracked files in full; exclude unrelated dirty files explicitly.
20
+ 4. Use an explicit Spec, the caller's direct-scope contract/approved Spec/ticket, or confirmed user
21
+ acceptance criteria. Only then inspect tracker references or matching durable documents if needed.
22
+ Do not ask again for a base or scope the caller already supplied. Never infer requirements from the diff.
23
+ 5. Missing base or required acceptance evidence is `BLOCKED`. An intentionally empty package is `NO CHANGES`.
24
+ For a standalone review with no confirmed requirements, report the Spec axis as `NOT RUN` without
25
+ requiring an extra user confirmation; implementation completion still requires its acceptance criteria.
26
+
27
+ ## Select review depth
28
+
29
+ `--mode auto` is the default. Select by risk and verification evidence, not file count, model generation
30
+ or confidence. State the selected mode and reason briefly.
31
+
32
+ | Mode | Trigger | Execution |
33
+ | --- | --- | --- |
34
+ | self | Clear requirements, local and reversible low-risk changes, with direct checks or relevant tests covering the result; no unresolved risk or repeated unexpected failures | The implementing agent checks the diff against requirements and relevant rules, then provides verification evidence; no review subagent |
35
+ | independent | Cross-module behavior, complex dependencies, hidden constraints, insufficient verification, repeated unexpected failures, or an explicit request for independent review | One fresh read-only subagent checks Standards and Spec against the same package |
36
+ | dual | High-risk changes such as authorization, persistent data, destructive operations or public contracts, or an explicit request for two isolated axes | Spawn two parallel subagents: separate Standards and Spec reviewers |
37
+
38
+ `--mode self|independent|dual` may request a mode, but cannot weaken the review required by the scope or
39
+ project. Self-review requires every self condition above; otherwise use independent, or dual for high
40
+ risk. Reassess if the scope grows or verification exposes a gap. Review never replaces required tests.
41
+
42
+ For self-review, keep the result concise and use relevant existing checks or direct inspection; do not
43
+ load the independent-review prompts, invent low-value tests, or write a long checklist just for ceremony.
44
+ The implementing agent cannot serve as its own independent reviewer.
45
+
46
+ For independent or dual review, load `references/standards-reviewer-prompt.md` and
47
+ `references/spec-reviewer-prompt.md` only for the reviewer that needs them. Repository standards override
48
+ smell heuristics. Each independent context receives only the frozen package, relevant rules, confirmed
49
+ scope and verification evidence. Reviewers are read-only and must not influence each other.
50
+
51
+ When independent or dual review is selected, lack of agent capacity is never a reason to downgrade to
52
+ self. If parallelism is unavailable, run dual axes sequentially in fresh isolated contexts. If no
53
+ independent context is available, return `BLOCKED`, mark review `NOT RUN`, and do not claim completion.
54
+
55
+ ## Report and follow-up
56
+
57
+ Report mode, base and scope source, then separate `Standards` and `Spec` findings with evidence and severity.
58
+ Do not merge or rerank findings across axes. Include checks not run and remaining risks.
59
+ For self-review with no findings, a short conclusion and verification evidence are sufficient.
60
+
61
+ Fix Critical/Important findings before completion. Recheck affected axes against the same base and updated
62
+ package; rerun both when scope, shared behavior or review assumptions change. Reuse checks whose relevant
63
+ inputs are unchanged. A task's complete acceptance and required verification remain completion gates.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: codebase-design
3
- description: "Design or improve deep modules, interfaces, seams, adapters, leverage, locality, and testability. Use when a module interface is too broad, callers carry duplicated complexity, tests reach through internals, or architecture work needs the Matt Pocock deep-module vocabulary."
3
+ description: Design deep modules and seams when interfaces leak complexity or tests cross internals.
4
4
  ---
5
5
 
6
6
  # Codebase Design
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: continuous-learning-v2
3
- description: 基于直觉的学习系统。用于配置或审查 Hook 观察、project/global instinct、置信度、项目推广、迁移和演化为 skills/commands/agents 的流程。
3
+ description: "管理学习系统的观察 Hook、instinct 评估、迁移和演化;用于明确配置或管理该学习系统的请求。"
4
4
  version: 2.1.0
5
5
  ---
6
6
 
@@ -10,11 +10,13 @@ version: 2.1.0
10
10
 
11
11
  ## 何时使用
12
12
 
13
- - 配置或排查自动观察 Hook。
13
+ - 配置或排查学习系统的自动观察 Hook。
14
14
  - 查看、审查、迁移 project/global instincts。
15
15
  - 判断 project instinct 是否应推广到 global。
16
16
  - 评估 instinct 是否应演化为 skill、command 或 agent。
17
17
 
18
+ 其他 Hook 配置和一般知识学习问题不触发本 skill。
19
+
18
20
  ## 核心模型
19
21
 
20
22
  - **Observation**:Hook 记录工具调用,默认写入 `${XDG_DATA_HOME:-~/.local/share}/ecc-homunculus/projects/<project-id>/observations.jsonl`。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: domain-modeling
3
- description: "Model domain vocabulary, entity relationships, invariants, lifecycle transitions, and bounded context changes. Use only when a task introduces or changes domain concepts or ownership boundaries; do not trigger for ordinary code complexity, file count, or merely consuming existing CONTEXT.md vocabulary."
3
+ description: Model changes to business concepts, entities, states, relationships, invariants, or ownership; exclude ordinary refactors.
4
4
  ---
5
5
 
6
6
  # Domain Modeling
@@ -70,12 +70,15 @@ schemas, or code merely because domain modeling triggered.
70
70
  **Persistent documentation mode** is enabled only by an explicit documented grilling request or
71
71
  direct user approval to maintain domain docs during the session. In that mode:
72
72
 
73
- 1. Use the confirmed context and ADR locations from `docs/agent-workflow/project-context.md`.
74
- 2. When a term becomes stable, show the exact glossary change and obtain write approval before
75
- updating it inline.
76
- 3. Offer an ADR only when the decision is hard to reverse, surprising without context and the result
73
+ 1. Use confirmed context and ADR locations from `docs/agent-workflow/project-context.md` when present,
74
+ otherwise from existing repository conventions or the user's confirmed request.
75
+ 2. Reuse existing maintenance authorization for stable glossary edits within the approved paths and scope;
76
+ do not request per-term approval. Show the diff when reporting progress or completion.
77
+ 3. If maintenance is not yet authorized, obtain approval before writing. New paths or scope, changes to
78
+ confirmed decisions, and unresolved consequential decisions require approval before the affected edit.
79
+ 4. Offer an ADR only when the decision is hard to reverse, surprising without context and the result
77
80
  of a real trade-off; show its path/content before writing.
78
- 4. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
81
+ 5. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
79
82
 
80
83
  Outside that mode, persistence after an approved Spec remains a router-selected ticket or implementation task.
81
84
  If project context is absent, do not invent a documentation layout.