claude-everything-workflow 0.2.2 → 0.2.3

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 (77) hide show
  1. package/AGENTS.md +6 -5
  2. package/CLAUDE.md +1 -5
  3. package/README.md +57 -27
  4. package/agents/e2e-runner.md +8 -141
  5. package/commands/code-review.md +9 -30
  6. package/commands/pr.md +1 -6
  7. package/commands/verify.md +7 -11
  8. package/harness/manifest.json +346 -0
  9. package/package.json +7 -2
  10. package/rules/01-base.md +9 -26
  11. package/rules/02-code-size.md +5 -9
  12. package/rules/03-architecture.md +8 -22
  13. package/rules/04-error-handling.md +4 -5
  14. package/rules/05-git-workflow.md +4 -3
  15. package/rules/06-comments.md +3 -9
  16. package/rules/07-forbidden.md +4 -3
  17. package/rules/common/agent-orchestration.md +1 -3
  18. package/rules/common/hooks.md +2 -0
  19. package/rules/common/pr-automation.md +1 -1
  20. package/rules/common/skills-learning.md +1 -1
  21. package/rules/common/testing.md +3 -2
  22. package/scripts/install-rules.js +100 -0
  23. package/scripts/install.ps1 +27 -3
  24. package/scripts/install.sh +24 -2
  25. package/scripts/legacy-common-rule-hashes.json +78 -0
  26. package/scripts/retired-skill-files.json +17 -0
  27. package/scripts/upstream-capability-map.json +14 -9
  28. package/scripts/verify/grilling-spec-gate-checks.js +11 -5
  29. package/scripts/verify/install-rules.test.js +156 -0
  30. package/scripts/verify/metadata-checks.js +26 -3
  31. package/scripts/verify/repository-checks.js +35 -61
  32. package/scripts/verify/skill-invocation.test.js +86 -0
  33. package/scripts/verify/skill-manifest-checks.js +197 -0
  34. package/scripts/verify/skill-manifest-checks.test.js +123 -0
  35. package/scripts/verify/workflow-checks.js +26 -82
  36. package/scripts/verify-harness.js +2 -0
  37. package/scripts/verify-upstream-capability-map.js +2 -1
  38. package/skills/README.md +9 -10
  39. package/skills/code-review/SKILL.md +54 -41
  40. package/skills/codebase-design/SKILL.md +1 -1
  41. package/skills/continuous-learning-v2/SKILL.md +1 -1
  42. package/skills/domain-modeling/SKILL.md +3 -2
  43. package/skills/e2e-testing/SKILL.md +20 -310
  44. package/skills/e2e-testing/references/playwright-patterns.md +324 -0
  45. package/skills/feature-acceptance/SKILL.md +1 -1
  46. package/skills/grilling/SKILL.md +1 -1
  47. package/skills/handoff/SKILL.md +3 -4
  48. package/skills/handoff/agents/openai.yaml +2 -0
  49. package/skills/implement/SKILL.md +32 -81
  50. package/skills/implement/references/ticket-delivery.md +43 -0
  51. package/skills/improve-codebase-architecture/SKILL.md +1 -2
  52. package/skills/improve-codebase-architecture/agents/openai.yaml +2 -0
  53. package/skills/iterative-retrieval/SKILL.md +1 -1
  54. package/skills/prototype/SKILL.md +1 -1
  55. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  56. package/skills/spec-gate/SKILL.md +1 -1
  57. package/skills/subagent-driven-development/SKILL.md +2 -2
  58. package/skills/systematic-debugging/SKILL.md +9 -3
  59. package/skills/test-driven-development/SKILL.md +6 -2
  60. package/skills/to-tickets/SKILL.md +5 -3
  61. package/skills/triage/SKILL.md +4 -4
  62. package/skills/triage/agents/openai.yaml +2 -0
  63. package/skills/using-git-worktrees/SKILL.md +8 -5
  64. package/skills/using-superpowers/SKILL.md +27 -94
  65. package/skills/using-superpowers/references/process-outcomes.md +41 -0
  66. package/skills/verification-before-completion/SKILL.md +5 -4
  67. package/skills/visual-companion/SKILL.md +1 -1
  68. package/agents/architect.md +0 -59
  69. package/agents/code-reviewer.md +0 -28
  70. package/agents/planner.md +0 -40
  71. package/agents/tdd-guide.md +0 -101
  72. package/skills/find-skills/SKILL.md +0 -142
  73. package/skills/project-context/SKILL.md +0 -94
  74. package/skills/project-context/agents/openai.yaml +0 -6
  75. package/skills/project-context/references/project-context-template.md +0 -61
  76. package/skills/research/SKILL.md +0 -48
  77. package/skills/wayfinder/SKILL.md +0 -57
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ const assert = require("assert");
4
+ const { validateManifest } = require("./skill-manifest-checks");
5
+
6
+ function run() {
7
+ const valid = {
8
+ schemaVersion: 1,
9
+ skills: [
10
+ {
11
+ name: "demo-skill",
12
+ path: "skills/demo-skill/SKILL.md",
13
+ owner: "skills/demo-skill/SKILL.md",
14
+ version: "0.1.0",
15
+ compatibility: ["claude-code", "codex"],
16
+ allowedTools: null,
17
+ invocation: "implicit",
18
+ },
19
+ ],
20
+ ownership: [
21
+ {
22
+ id: "routing",
23
+ owner: "skills/demo-skill/SKILL.md",
24
+ surfaces: ["AGENTS.md"],
25
+ enforcement: "advisory",
26
+ },
27
+ ],
28
+ };
29
+
30
+ assert.deepStrictEqual(validateManifest(valid, {
31
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
32
+ skillPaths: ["skills/demo-skill/SKILL.md"],
33
+ // 元数据验证不应要求固定的流程正文;正文可以按需移到 references/。
34
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
35
+ }), []);
36
+
37
+ const longDescription = structuredClone(valid);
38
+ assert.match(validateManifest(longDescription, {
39
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
40
+ skillPaths: ["skills/demo-skill/SKILL.md"],
41
+ read: () => `---\nname: demo-skill\ndescription: ${"x".repeat(129)}\n---\n`,
42
+ }).join("\n"), /description exceeds/);
43
+
44
+ const duplicate = structuredClone(valid);
45
+ duplicate.skills.push({ ...duplicate.skills[0], name: "other", path: "skills/demo-skill/SKILL.md" });
46
+ assert.match(validateManifest(duplicate, {
47
+ exists: () => true,
48
+ skillPaths: ["skills/demo-skill/SKILL.md"],
49
+ }).join("\n"), /duplicate skill path/);
50
+
51
+ const missingOwner = structuredClone(valid);
52
+ missingOwner.ownership[0].owner = "rules/missing.md";
53
+ assert.match(validateManifest(missingOwner, {
54
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
55
+ skillPaths: ["skills/demo-skill/SKILL.md"],
56
+ }).join("\n"), /owner path does not exist/);
57
+
58
+ const unsafePath = structuredClone(valid);
59
+ unsafePath.skills[0].path = "../outside/SKILL.md";
60
+ assert.match(validateManifest(unsafePath, {
61
+ exists: () => true,
62
+ skillPaths: ["skills/demo-skill/SKILL.md"],
63
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
64
+ }).join("\n"), /unsafe skill path/);
65
+
66
+ const missingSkill = structuredClone(valid);
67
+ assert.match(validateManifest(missingSkill, {
68
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
69
+ skillPaths: ["skills/demo-skill/SKILL.md", "skills/other/SKILL.md"],
70
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
71
+ }).join("\n"), /missing from manifest/);
72
+
73
+ const duplicateOwner = structuredClone(valid);
74
+ duplicateOwner.skills.push({ ...duplicateOwner.skills[0], name: "other", path: "skills/other/SKILL.md", owner: "skills/demo-skill/SKILL.md" });
75
+ assert.match(validateManifest(duplicateOwner, {
76
+ exists: () => true,
77
+ skillPaths: ["skills/demo-skill/SKILL.md", "skills/other/SKILL.md"],
78
+ read: (file) => `---\nname: ${file.includes("other") ? "other" : "demo-skill"}\ndescription: demo\n---\n`,
79
+ }).join("\n"), /duplicate skill owner/);
80
+
81
+ const policyConflict = structuredClone(valid);
82
+ policyConflict.skills[0].invocation = "implicit";
83
+ assert.match(validateManifest(policyConflict, {
84
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md" || file === "skills/demo-skill/agents/openai.yaml",
85
+ skillPaths: ["skills/demo-skill/SKILL.md"],
86
+ read: (file) => file.endsWith("openai.yaml")
87
+ ? "policy:\n allow_implicit_invocation: false\n"
88
+ : "---\nname: demo-skill\ndescription: demo\n---\n",
89
+ }).join("\n"), /conflicts with policy/);
90
+
91
+ const explicitInvocationConflict = structuredClone(valid);
92
+ explicitInvocationConflict.skills[0].invocation = "explicit-only";
93
+ assert.match(validateManifest(explicitInvocationConflict, {
94
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
95
+ skillPaths: ["skills/demo-skill/SKILL.md"],
96
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
97
+ }).join("\n"), /must disable implicit invocation/);
98
+
99
+ const frontmatterPolicyConflict = structuredClone(valid);
100
+ assert.match(validateManifest(frontmatterPolicyConflict, {
101
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
102
+ skillPaths: ["skills/demo-skill/SKILL.md"],
103
+ read: () => "---\nname: demo-skill\ndescription: demo\ndisable-model-invocation: true\n---\n",
104
+ }).join("\n"), /conflicts with frontmatter/);
105
+
106
+ const missingPath = structuredClone(valid);
107
+ delete missingPath.skills[0].path;
108
+ assert.doesNotThrow(() => validateManifest(missingPath, {
109
+ exists: () => false,
110
+ skillPaths: [],
111
+ }));
112
+
113
+ const versionConflict = structuredClone(valid);
114
+ assert.match(validateManifest(versionConflict, {
115
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
116
+ skillPaths: ["skills/demo-skill/SKILL.md"],
117
+ read: () => "---\nname: demo-skill\ndescription: demo\nversion: 2.0.0\n---\n",
118
+ }).join("\n"), /version does not match frontmatter/);
119
+
120
+ console.log("skill manifest checks tests passed");
121
+ }
122
+
123
+ run();
@@ -52,11 +52,11 @@ function checkSuperpowersDevLoop() {
52
52
  checkReadmeWorkflowContract();
53
53
 
54
54
  requireTokens("rules/01-base.md", [
55
- "## 最小且正确的实现",
56
- "先理解真实调用链",
57
- "必要性",
58
- "复用现有实现",
59
- "标准库或平台原生能力",
55
+ "# 执行原则",
56
+ "先理解用户目标",
57
+ "真实调用链",
58
+ "复用项目现有入口",
59
+ "标准库",
60
60
  "已安装依赖",
61
61
  "最小新增代码",
62
62
  "skills/using-superpowers/SKILL.md",
@@ -70,36 +70,8 @@ function checkSuperpowersDevLoop() {
70
70
  "不凭记忆执行 skill",
71
71
  ]);
72
72
 
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
- ]);
73
+ // Skill 正文契约在各自的专门检查中维护;这里仅验证跨文件的闭环入口。
74
+ // 避免同一组流程词在多个检查点重复登记,允许 Skill 删除解释性文案。
103
75
 
104
76
  requireTokens("skills/test-driven-development/SKILL.md", [
105
77
  "## Red Test Gate",
@@ -161,13 +133,6 @@ function checkSuperpowersArtifactPolicy() {
161
133
  "Superpowers 生成的 Spec 和本地 tickets 仅用于本地工作流",
162
134
  "无论保存位置都不得暂存或提交",
163
135
  ]);
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
136
  const repoRoot = spawnSync("git", ["rev-parse", "--show-toplevel"], {
172
137
  cwd: root,
173
138
  encoding: "utf8",
@@ -255,16 +220,18 @@ function checkWorkflowDocuments() {
255
220
  runWorkflowOwnershipChecks({ read, fail, managedFiles });
256
221
  requireTokens("skills/iterative-retrieval/SKILL.md", [
257
222
  "事实、证据和盲点缺口",
258
- "低成本",
259
223
  "复杂、高风险、多文件或长周期",
260
224
  "skills/grilling/SKILL.md",
261
225
  "skills/spec-gate/SKILL.md",
262
226
  "返回 `skills/using-superpowers/SKILL.md`",
263
227
  ]);
228
+ requireTokens("skills/using-superpowers/SKILL.md", [
229
+ "shortest applicable path",
230
+ "File count, new features, and ordinary complexity affect",
231
+ "verification intensity, not the lane",
232
+ "A high-risk boundary",
233
+ ]);
264
234
  requireTokens("rules/01-base.md", [
265
- "默认走最短适用闭环",
266
- "多文件、新功能、普通行为变化和复杂度本身都不是完整流程触发条件",
267
- "高风险边界",
268
235
  "rules/common/testing.md",
269
236
  "skills/using-superpowers/SKILL.md",
270
237
  ]);
@@ -297,7 +264,6 @@ function checkWorkflowDocuments() {
297
264
  "rules/01-base.md",
298
265
  "rules/common/agent-orchestration.md",
299
266
  ]);
300
- requireTokens("agents/planner.md", ["to-tickets", "不写文件路径"]);
301
267
  }
302
268
 
303
269
  function checkComplexityRules() {
@@ -399,7 +365,9 @@ function checkCapabilityEntries(manifest, manifestPath) {
399
365
  fail(`${manifestPath} must map all 17 promoted engineering capabilities`);
400
366
  }
401
367
  for (const entry of capabilities) {
402
- if (!["covered", "adapted"].includes(entry.status)) {
368
+ const excluded = ["wayfinder", "setup-matt-pocock-skills"].includes(entry.upstream) && entry.status === "excluded" &&
369
+ typeof entry.reason === "string" && entry.reason.trim().length > 0;
370
+ if (!excluded && !["covered", "adapted"].includes(entry.status)) {
403
371
  fail(`${entry.upstream} is not capability-equivalent: ${entry.status}`);
404
372
  }
405
373
  if (!Array.isArray(entry.evidence) || entry.evidence.length === 0) {
@@ -432,7 +400,6 @@ function checkCapabilityRouting() {
432
400
  "explicit workflow advice?",
433
401
  "workflow advice mode",
434
402
  "explicit TDD request?",
435
- "agents/tdd-guide.md",
436
403
  "explicit E2E or Playwright request?",
437
404
  "skills/e2e-testing/SKILL.md",
438
405
  "agents/e2e-runner.md",
@@ -445,10 +412,7 @@ function checkCapabilityRouting() {
445
412
  "skills/subagent-driven-development/SKILL.md",
446
413
  "explicit prototype or runnable design question?",
447
414
  "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",
415
+ "external engineering fact or documentation question?",
452
416
  "skills/to-tickets/SKILL.md",
453
417
  "merge or rebase conflict?",
454
418
  "skills/resolving-merge-conflicts/SKILL.md",
@@ -485,11 +449,9 @@ function checkCapabilityFiles() {
485
449
  "skills/implement/SKILL.md",
486
450
  "skills/improve-codebase-architecture/SKILL.md",
487
451
  "skills/prototype/SKILL.md",
488
- "skills/research/SKILL.md",
489
452
  "skills/resolving-merge-conflicts/SKILL.md",
490
453
  "skills/to-tickets/SKILL.md",
491
454
  "skills/triage/SKILL.md",
492
- "skills/wayfinder/SKILL.md",
493
455
  ]) {
494
456
  if (!exists(file)) fail(`${file} is missing`);
495
457
  }
@@ -531,8 +493,6 @@ function checkDesignCapabilityContracts() {
531
493
  "interface as the test surface",
532
494
  ]);
533
495
  requireTokens("skills/improve-codebase-architecture/SKILL.md", [
534
- "disable-model-invocation: true",
535
- "deepening opportunities",
536
496
  "skills/codebase-design/SKILL.md",
537
497
  "skills/visual-companion/SKILL.md",
538
498
  "explicit consent",
@@ -555,13 +515,11 @@ function checkDesignCapabilityContracts() {
555
515
  }
556
516
 
557
517
  function checkDeliveryCapabilityContracts() {
558
- requireTokens("skills/research/SKILL.md", [
559
- "background subagent",
560
- "primary sources",
561
- "citing each claim",
562
- "Markdown report",
563
- ".unknowns/",
564
- ]);
518
+ if (exists("skills/research/SKILL.md")) fail("standalone research Skill must be retired");
519
+ const retired = JSON.parse(read("scripts/retired-skill-files.json"));
520
+ if (!retired.retired_skills?.research?.includes("SKILL.md")) {
521
+ fail("research retirement must clean up the installed entrypoint");
522
+ }
565
523
  requireTokens("skills/resolving-merge-conflicts/SKILL.md", [
566
524
  "primary sources",
567
525
  "one hunk at a time",
@@ -576,7 +534,6 @@ function checkDeliveryCapabilityContracts() {
576
534
  "ready-for-agent",
577
535
  ]);
578
536
  requireTokens("skills/triage/SKILL.md", [
579
- "disable-model-invocation: true",
580
537
  "needs-triage",
581
538
  "needs-info",
582
539
  "ready-for-agent",
@@ -585,16 +542,6 @@ function checkDeliveryCapabilityContracts() {
585
542
  "generated by AI during triage",
586
543
  "obtain confirmation",
587
544
  ]);
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
545
  requireTokens("skills/test-driven-development/SKILL.md", [
599
546
  "Public Seam",
600
547
  "测试和调用方应穿过同一个 seam",
@@ -603,7 +550,6 @@ function checkDeliveryCapabilityContracts() {
603
550
  "tracer bullet",
604
551
  ]);
605
552
  requireTokens("skills/handoff/SKILL.md", [
606
- "disable-model-invocation: true",
607
553
  "temporary directory",
608
554
  "private subdirectory",
609
555
  "0700",
@@ -646,10 +592,13 @@ function checkRemovedSkillReferences() {
646
592
  "skill-creator",
647
593
  "writing-plans",
648
594
  "executing-plans",
595
+ "wayfinder",
649
596
  ];
650
597
  const allowedRetirementFiles = new Set([
651
598
  "README.md",
652
599
  "scripts/retired-skill-files.json",
600
+ "scripts/upstream-capability-map.json",
601
+ "scripts/upstream-capability-baseline.json",
653
602
  ]);
654
603
 
655
604
  for (const skill of retiredSkills) {
@@ -682,14 +631,9 @@ function checkRemovedSkillReferences() {
682
631
  "scripts/upstream-capability-map.json",
683
632
  ]);
684
633
  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
634
  requireTokens("rules/common/skills-learning.md", [
691
635
  "Skill 创建和更新遵循本规则",
692
- "开放生态中的 skill 查找和安装由 `find-skills` 处理",
636
+ "开放生态中的 skill 查找和安装按用户明确请求使用宿主已有工具",
693
637
  ]);
694
638
  }
695
639
 
@@ -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,27 @@
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
13
  - `using-superpowers`:非平凡任务的 skill 路由、优先级和完成声明纪律。
8
14
  - `grilling`:对计划、设计或重大用户决策进行单问式压力测试。
9
15
  - `spec-gate`:显式 formal spec 或高风险任务的零访谈成稿、自审和用户批准门。
10
- - `using-git-worktrees`:脏工作区、高风险或并行任务的隔离工作区准备。
16
+ - `using-git-worktrees`:新功能必须使用 worktree;其他隔离条件与复用方式按 Git 规则执行。
11
17
  - `to-tickets`:把已批准工作拆成 tracer-bullet tickets 和 blocking graph。
12
18
  - `implement`:执行用户授权的低风险 direct scope、已批准 Spec scope 或 frontier ticket;仅 ticket 路径 claim、resolve 并刷新 frontier。
13
19
  - `subagent-driven-development`:router 对已授权范围发现多个相互独立的 frontier tickets 时,分派到隔离 worktree 的 fresh subagent。
14
- - `wayfinder`:为跨 session 的模糊工作维护 decision-ticket map/frontier。
15
20
  - `triage`:对 Issue/外部 PR 分类、验证并形成 agent-ready brief。
16
21
  - `handoff`:将当前上下文脱敏压缩到临时 Markdown,供全新 session 接续。
17
22
  - `verification-before-completion`:完成、通过、已修复或 ready 声明前的新鲜验证门。
18
23
 
19
24
  ## 旁路设计能力
20
25
 
21
- - `project-context`:显式配置项目工作追踪、领域文档和 ADR 的长期位置。
22
26
  - `domain-modeling`:领域术语、实体关系、不变量、生命周期和 bounded context 变化建模。
23
27
  - `codebase-design`:deep module、interface、seam、adapter、leverage 和 locality 设计词汇。
24
28
  - `improve-codebase-architecture`:扫描 deepening 机会、展示报告并收敛选中候选。
@@ -27,9 +31,9 @@
27
31
 
28
32
  ## Engineering / 开发实践
29
33
 
30
- - `code-review`:用两个隔离 subagent 并行执行 Standards 与 Spec 双轴审查。
34
+ - `code-review`:简单、明确、低风险且可验证的任务可自审;复杂或证据不足时使用一个独立子智能体,高风险使用 Standards/Spec 双轴;必要的独立审查不可用时阻塞。
31
35
  - `test-driven-development`:行为变化的 Red Test Gate。
32
- - `systematic-debugging`:失败、异常结果和 flaky 行为的根因调试。
36
+ - `systematic-debugging`:区分普通明确失败与疑难故障;预期 TDD RED 留在实现循环。
33
37
  - `resolving-merge-conflicts`:按双方原始意图逐 hunk 解决 merge/rebase 冲突。
34
38
  - `e2e-testing`:Playwright E2E 模式、CI、制品和 flaky 处理。
35
39
  - `feature-acceptance`:以真实证据、用例矩阵和二次审核完成用户功能验收。
@@ -37,13 +41,8 @@
37
41
  ## Harness / 上下文与编排
38
42
 
39
43
  - `iterative-retrieval`:事实、证据、盲点、subagent 和大仓库探索的迭代检索闭环。
40
- - `research`:后台一手来源调查与逐项引用的 Markdown 研究记录。
41
44
  - `continuous-learning-v2`:Hook 观察、project/global instinct、学习评估和演化。
42
45
 
43
- ## Meta / Skill 管理
44
-
45
- - `find-skills`:查找本地已有或开放生态中可安装的 agent skill。
46
-
47
46
  ## Learn / 学习沉淀
48
47
 
49
48
  学习目录 `learn/` 经 `/learn eval` 质量门确认学习模式,必须继续按 `skills/learn/<category>/` 分类保存。
@@ -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: "管理观察、instinct、学习评估和演化;仅在显式学习或 Hook 配置请求时使用。"
4
4
  version: 2.1.0
5
5
  ---
6
6
 
@@ -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,7 +70,8 @@ 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`.
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.
74
75
  2. When a term becomes stable, show the exact glossary change and obtain write approval before
75
76
  updating it inline.
76
77
  3. Offer an ADR only when the decision is hard to reverse, surprising without context and the result