claude-everything-workflow 0.2.3 → 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 (51) 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 +11 -17
  7. package/README.md +107 -404
  8. package/README.zh-CN.md +158 -0
  9. package/agents/database-reviewer.md +0 -3
  10. package/docs/plugins.md +91 -0
  11. package/harness/manifest.json +8 -44
  12. package/package.json +8 -1
  13. package/references/git-worktrees.md +29 -0
  14. package/rules/05-git-workflow.md +2 -0
  15. package/rules/common/agent-orchestration.md +1 -1
  16. package/rules/common/context-hygiene.md +2 -0
  17. package/rules/common/skills-learning.md +1 -1
  18. package/rules/common/testing.md +7 -0
  19. package/scripts/install.ps1 +3 -1
  20. package/scripts/install.sh +3 -1
  21. package/scripts/retired-skill-files.json +9 -0
  22. package/scripts/verify/continuation-checks.test.js +101 -0
  23. package/scripts/verify/core.js +1 -0
  24. package/scripts/verify/grilling-spec-gate-checks.js +37 -6
  25. package/scripts/verify/install-rules.test.js +11 -2
  26. package/scripts/verify/metadata-checks.js +9 -23
  27. package/scripts/verify/plugin-distribution.test.js +40 -0
  28. package/scripts/verify/repository-checks.js +7 -22
  29. package/scripts/verify/skill-invocation.test.js +3 -2
  30. package/scripts/verify/skill-manifest-checks.js +1 -1
  31. package/scripts/verify/skill-manifest-checks.test.js +12 -0
  32. package/scripts/verify/workflow-checks.js +3 -69
  33. package/skills/README.md +3 -6
  34. package/skills/continuous-learning-v2/SKILL.md +4 -2
  35. package/skills/domain-modeling/SKILL.md +6 -4
  36. package/skills/feature-acceptance/SKILL.md +6 -2
  37. package/skills/grilling/SKILL.md +3 -2
  38. package/skills/handoff/agents/openai.yaml +3 -0
  39. package/skills/implement/SKILL.md +3 -3
  40. package/skills/improve-codebase-architecture/agents/openai.yaml +3 -0
  41. package/skills/spec-gate/SKILL.md +3 -1
  42. package/skills/subagent-driven-development/SKILL.md +1 -1
  43. package/skills/systematic-debugging/SKILL.md +34 -2
  44. package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
  45. package/skills/triage/agents/openai.yaml +3 -0
  46. package/skills/using-superpowers/SKILL.md +9 -5
  47. package/skills/using-superpowers/references/process-outcomes.md +10 -7
  48. package/references/agents/database-reviewer.md +0 -657
  49. package/skills/iterative-retrieval/SKILL.md +0 -84
  50. package/skills/using-git-worktrees/SKILL.md +0 -67
  51. package/skills/verification-before-completion/SKILL.md +0 -78
@@ -44,10 +44,10 @@ const ROUTING_SCENARIOS = [
44
44
  }],
45
45
  },
46
46
  {
47
- name: "user explicitly continues after blocking",
47
+ name: "authorized task continues after focused clarification",
48
48
  checks: [{
49
49
  file: PROCESS_OUTCOMES,
50
- tokens: ["new grilling session", "new Spec Gate", "do not resume the old call stack"],
50
+ tokens: ["grilling inline", "Wait for the user's answer", "new Spec Gate", "do not resume the old call stack"],
51
51
  }],
52
52
  },
53
53
  {
@@ -117,6 +117,7 @@ function checkSpecGateContract({ exists, read, fail, requireTokens }) {
117
117
  "Local-only artifact policy",
118
118
  "Do not stage or commit it.",
119
119
  "Spec Gate contract conflict",
120
+ "the user has explicitly approved it",
120
121
  ]);
121
122
  if (!exists(file)) return;
122
123
 
@@ -143,7 +144,13 @@ function checkRouterContract({ exists, read, fail, requireTokens }) {
143
144
  requireTokens(PROCESS_OUTCOMES, [
144
145
  "BLOCKED_BY_UNRESOLVED_DECISION",
145
146
  "decision map",
146
- "new grilling session",
147
+ "grilling inline",
148
+ "do not ask whether to continue clarification",
149
+ "Wait for the user's answer",
150
+ "Silence is not a decision or approval.",
151
+ "If the user pauses or ends the task, stop.",
152
+ "A new scope or external action still requires its own",
153
+ "authorization; clarification does not expand the original request.",
147
154
  "new Spec Gate",
148
155
  "do not resume the old call stack",
149
156
  "spec-gate",
@@ -151,15 +158,22 @@ function checkRouterContract({ exists, read, fail, requireTokens }) {
151
158
  if (!exists(file) || !exists(PROCESS_OUTCOMES)) return;
152
159
 
153
160
  const body = read(PROCESS_OUTCOMES);
154
- if (/BLOCKED_BY_UNRESOLVED_DECISION[\s\S]{0,240}(?:automatically|auto).*grilling/i.test(body)) {
155
- fail("Router must stop on Spec Gate blocking instead of automatically invoking grilling");
161
+ for (const staleGate of [
162
+ "Only an explicit choice to continue",
163
+ "Let the user choose to continue clarification",
164
+ "Stop without drafting, guessing, or invoking another Skill.",
165
+ "is terminal for the current call chain",
166
+ ]) {
167
+ if (body.includes(staleGate)) {
168
+ fail("Router must ask the missing decision within the authorized task, not request permission to clarify");
169
+ }
156
170
  }
157
171
  for (const scenario of ROUTING_SCENARIOS) {
158
172
  for (const check of scenario.checks) requireTokens(check.file, check.tokens);
159
173
  }
160
174
  }
161
175
 
162
- function checkSupportingSkills({ requireTokens }) {
176
+ function checkSupportingSkills({ exists, read, fail, requireTokens }) {
163
177
  requireTokens("skills/grilling/SKILL.md", [
164
178
  "Route context:",
165
179
  "Risk classification:",
@@ -172,7 +186,24 @@ function checkSupportingSkills({ requireTokens }) {
172
186
  "lifecycle",
173
187
  "CONTEXT.md",
174
188
  "approved Spec",
189
+ "Reuse existing maintenance authorization",
190
+ "within the approved paths and scope",
191
+ "If maintenance is not yet authorized, obtain approval before writing",
192
+ "New paths or scope",
175
193
  ]);
194
+ const domain = "skills/domain-modeling/SKILL.md";
195
+ if (exists(domain)) {
196
+ const body = read(domain).replace(/\s+/g, " ");
197
+ if (body.includes("When a term becomes stable, show the exact glossary change and obtain write approval before")) {
198
+ fail("Domain documentation must reuse in-scope maintenance authorization, not require per-term approval");
199
+ }
200
+ for (const constraint of [
201
+ "changes to confirmed decisions",
202
+ "unresolved consequential decisions require approval before the affected edit.",
203
+ ]) {
204
+ if (!body.includes(constraint)) fail(`${domain} should include ${constraint}`);
205
+ }
206
+ }
176
207
  requireTokens("skills/visual-companion/SKILL.md", [
177
208
  "user consent",
178
209
  "grilling owns the decision loop",
@@ -66,10 +66,13 @@ function checkInstallerEntrypoint() {
66
66
  // Seed an older installation to exercise retirement and policy replacement through the real CLI.
67
67
  for (const host of [".claude", ".codex"]) {
68
68
  const skills = path.join(profile, host, "skills");
69
- for (const retired of ["research", "wayfinder", "find-skills", "project-context"]) {
69
+ for (const retired of ["research", "wayfinder", "find-skills", "project-context", "iterative-retrieval", "using-git-worktrees", "verification-before-completion"]) {
70
70
  fs.mkdirSync(path.join(skills, retired), { recursive: true });
71
71
  const known = {
72
72
  research: ["SKILL.md"],
73
+ "iterative-retrieval": ["SKILL.md"],
74
+ "using-git-worktrees": ["SKILL.md"],
75
+ "verification-before-completion": ["SKILL.md"],
73
76
  wayfinder: ["SKILL.md", "agents/openai.yaml"],
74
77
  "find-skills": ["SKILL.md", "agents/openai.yaml", "references/skills-cli.md"],
75
78
  "project-context": ["SKILL.md", "agents/openai.yaml", "references/project-context-template.md"],
@@ -93,7 +96,9 @@ function checkInstallerEntrypoint() {
93
96
  read(path.join(sourceRoot, "rules/common/testing.md")));
94
97
  assert.match(read(path.join(profile, ".claude/CLAUDE.md")), /^@AGENTS\.md$/m);
95
98
  for (const host of [".claude", ".codex"]) {
96
- for (const retired of ["research", "wayfinder", "find-skills", "project-context"]) {
99
+ assert.equal(read(path.join(profile, host, "references/git-worktrees.md")),
100
+ read(path.join(sourceRoot, "references/git-worktrees.md")));
101
+ for (const retired of ["research", "wayfinder", "find-skills", "project-context", "iterative-retrieval", "using-git-worktrees", "verification-before-completion"]) {
97
102
  assert.equal(fs.existsSync(path.join(profile, host, "skills", retired, "SKILL.md")), false);
98
103
  const remaining = fs.readdirSync(path.join(profile, host, "skills", retired));
99
104
  assert.deepEqual(remaining, ["personal-notes.md"]);
@@ -101,6 +106,10 @@ function checkInstallerEntrypoint() {
101
106
  }
102
107
  assert.equal(fs.existsSync(path.join(profile, host, "skills/wayfinder/agents")), false);
103
108
  assert.equal(fs.existsSync(path.join(profile, host, "scripts/install-rules.js")), false);
109
+ assert.equal(fs.existsSync(path.join(profile, host, "scripts/verify/continuation-checks.test.js")), false,
110
+ "安装不应保留仅供包内验证的续接测试");
111
+ assert.equal(fs.existsSync(path.join(profile, host, "scripts/verify/plugin-distribution.test.js")), false,
112
+ "安装不应保留仅供包内验证的插件分发测试");
104
113
  assert.match(read(path.join(profile, host, "skills/handoff/agents/openai.yaml")),
105
114
  /allow_implicit_invocation: true/);
106
115
  }
@@ -29,7 +29,9 @@ const PACKAGE_ONLY_PATHS = [
29
29
  "scripts/verify/skill-manifest-checks.js",
30
30
  "scripts/verify/skill-manifest-checks.test.js",
31
31
  "scripts/verify/skill-invocation.test.js",
32
+ "scripts/verify/continuation-checks.test.js",
32
33
  "scripts/verify/install-rules.test.js",
34
+ "scripts/verify/plugin-distribution.test.js",
33
35
  ];
34
36
 
35
37
  function bindContext(context) {
@@ -101,9 +103,9 @@ function checkReadmeTreePaths() {
101
103
  if (!exists("README.md")) return;
102
104
 
103
105
  const body = read("README.md");
104
- const treeMatch = body.match(/## 目录结构[\s\S]*?```([\s\S]*?)```/);
106
+ const treeMatch = body.match(/## Repository structure[\s\S]*?```([\s\S]*?)```/);
105
107
  if (!treeMatch) {
106
- fail("README.md should include a directory tree under ## 目录结构");
108
+ fail("README.md should include a directory tree under ## Repository structure");
107
109
  return;
108
110
  }
109
111
 
@@ -220,10 +222,6 @@ function checkInstallerSurface(ps, sh) {
220
222
  }
221
223
 
222
224
  function checkInstallRuntimePolicy() {
223
- requireTokens("README.md", [
224
- "Codex 安装共享 Workflow 材料,不默认消费 Claude Code `settings.json`",
225
- "Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件而自动启用 Claude Code hooks",
226
- ]);
227
225
 
228
226
  requireTokens("scripts/install.ps1", [
229
227
  "Copy-ClaudeSettings",
@@ -550,13 +548,6 @@ function checkGitHubWorkflows() {
550
548
  }
551
549
  checkReleaseRecoveryBehavior();
552
550
 
553
- requireTokens("README.md", [
554
- "npm 发布",
555
- "版本号通过 PR",
556
- "ci.yml",
557
- "受信任的发布商",
558
- "npm 发布成功后才创建",
559
- ]);
560
551
  }
561
552
 
562
553
  function checkLearningPathPolicy() {
@@ -595,10 +586,6 @@ function checkLearningPathPolicy() {
595
586
  }
596
587
  }
597
588
 
598
- requireTokens("README.md", [
599
- "skills/learn/<category>/",
600
- "观察、候选和迁移来源",
601
- ]);
602
589
  requireTokens("commands/learn.md", [
603
590
  "/learn eval",
604
591
  "/learn evolve",
@@ -648,12 +635,6 @@ function checkSkillCategoryIndex() {
648
635
  }
649
636
  }
650
637
 
651
- requireTokens("README.md", [
652
- "Skill 分类索引",
653
- "物理目录保持平铺以兼容发现",
654
- "只有学习产物使用物理分类目录 `skills/learn/<category>/`",
655
- ]);
656
-
657
638
  requireTokens("rules/common/skills-learning.md", [
658
639
  "正式 skill 目录保持 `skills/<skill-name>/SKILL.md` 平铺结构",
659
640
  "分类维护在 `skills/README.md`",
@@ -707,6 +688,9 @@ function checkNpmPackageSurface() {
707
688
  ]);
708
689
 
709
690
  const packageFiles = JSON.parse(read("package.json")).files ?? [];
691
+ if (!packageFiles.includes("README.zh-CN.md")) {
692
+ fail("package.json should publish README.zh-CN.md so the language link works in the package");
693
+ }
710
694
  const publishesHomunculus = packageFiles.some((file) => {
711
695
  const normalized = file.replace(/\\/g, "/").replace(/^\.\//, "");
712
696
  return normalized === "homunculus" || normalized.startsWith("homunculus/");
@@ -733,6 +717,8 @@ function checkNpmPackageSurface() {
733
717
 
734
718
  function runMetadataChecks(context) {
735
719
  bindContext(context);
720
+ requireTokens("README.md", ["[简体中文](README.zh-CN.md)", "(LICENSE)"]);
721
+ requireTokens("README.zh-CN.md", ["[English](README.md)", "(LICENSE)"]);
736
722
  checkCommands();
737
723
  checkReadmeTreePaths();
738
724
  checkInstallRuntimePolicy();
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ const assert = require("node:assert/strict");
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+ const test = require("node:test");
7
+
8
+ const root = path.resolve(__dirname, "../..");
9
+ const readJson = (relative) => JSON.parse(fs.readFileSync(path.join(root, relative), "utf8"));
10
+
11
+ test("both marketplaces resolve to the same self-contained, versioned workflow package", () => {
12
+ const pkg = readJson("package.json");
13
+ const claude = readJson(".claude-plugin/plugin.json");
14
+ const codex = readJson(".codex-plugin/plugin.json");
15
+ for (const manifest of [claude, codex]) {
16
+ assert.equal(manifest.name, pkg.name);
17
+ assert.equal(manifest.version, pkg.version, "bump package and both plugin versions together");
18
+ }
19
+ const markets = [readJson(".claude-plugin/marketplace.json"), readJson(".agents/plugins/marketplace.json")];
20
+ for (const market of markets) {
21
+ assert.equal(market.name, "cew");
22
+ assert.equal(market.plugins.length, 1);
23
+ assert.equal(market.plugins[0].name, pkg.name);
24
+ const source = market.plugins[0].source;
25
+ assert.equal(path.resolve(root, typeof source === "string" ? source : source.path), root);
26
+ }
27
+ assert.ok(fs.existsSync(path.join(root, codex.skills, "using-superpowers/SKILL.md")));
28
+ assert.ok(!("hooks" in codex), "Claude hook events must not be advertised as Codex hooks");
29
+ const hooks = readJson(claude.hooks).hooks;
30
+ for (const groups of Object.values(hooks)) {
31
+ for (const group of groups) {
32
+ for (const hook of group.hooks) {
33
+ assert.ok(hook.command.includes("${CLAUDE_PLUGIN_ROOT}"));
34
+ assert.ok(!hook.command.includes("$HOME"));
35
+ const entry = hook.command.match(/\$\{CLAUDE_PLUGIN_ROOT\}\/([^\"]+)"/)[1];
36
+ assert.ok(fs.existsSync(path.join(root, entry)), entry);
37
+ }
38
+ }
39
+ }
40
+ });
@@ -23,7 +23,7 @@ function checkRouterAndAgentLinks() {
23
23
  "skills/grilling/SKILL.md",
24
24
  "spec-gate",
25
25
  "skills/systematic-debugging/SKILL.md",
26
- "skills/verification-before-completion/SKILL.md",
26
+ "rules/common/testing.md",
27
27
  "User instructions",
28
28
  ]);
29
29
 
@@ -220,10 +220,6 @@ function checkCodeReviewContracts() {
220
220
  "NOT RUN",
221
221
  ]);
222
222
 
223
- requireTokens("README.md", [
224
- "固定基点下按风险选择自审、独立或双轴审查",
225
- ]);
226
-
227
223
  requireTokens("skills/implement/references/ticket-delivery.md", [
228
224
  "pre-ticket base",
229
225
  "ticket as the Spec source",
@@ -248,7 +244,6 @@ function checkTrackerDeliveryLifecycle() {
248
244
 
249
245
  requireTokens("skills/implement/SKILL.md", [
250
246
  "rules/05-git-workflow.md",
251
- "skills/using-git-worktrees/SKILL.md",
252
247
  "clean baseline",
253
248
  "pre-delivery base",
254
249
  "不覆盖 commit、push 或创建 PR",
@@ -291,28 +286,18 @@ function checkTrackerDeliveryLifecycle() {
291
286
  }
292
287
 
293
288
  function checkExecutionSupportSkills() {
294
- requireTokens("skills/using-git-worktrees/SKILL.md", [
289
+ requireTokens("references/git-worktrees.md", [
295
290
  "git worktree add",
296
291
  "git worktree remove",
297
292
  "rules/05-git-workflow.md",
298
- "including a single-file feature",
293
+ "git status --short",
299
294
  ]);
300
295
 
301
- requireTokens("skills/verification-before-completion/SKILL.md", [
302
- "fresh verification evidence",
296
+ requireTokens("rules/common/testing.md", [
297
+ "本轮",
303
298
  "skills/systematic-debugging/SKILL.md",
304
- "skipped checks",
305
- "remaining risk",
306
- ]);
307
-
308
- requireTokens("skills/iterative-retrieval/SKILL.md", [
309
- "Dispatch",
310
- "Evaluate",
311
- "Refine",
312
- "最多跑 3 轮",
313
- "回传格式",
314
- "事实、证据和盲点缺口",
315
- "skills/using-superpowers/SKILL.md",
299
+ "未运行",
300
+ "剩余风险",
316
301
  ]);
317
302
 
318
303
  requireTokens("skills/feature-acceptance/SKILL.md", [
@@ -80,7 +80,8 @@ for (const name of ["handoff", "improve-codebase-architecture", "triage"]) {
80
80
  const policy = YAML.parse(fs.readFileSync(path.join(root, "skills", name, "agents/openai.yaml"), "utf8"));
81
81
  assert.equal(policy.policy.allow_implicit_invocation, true, name);
82
82
  }
83
- for (const name of ["research", "wayfinder", "find-skills", "project-context"]) {
83
+ for (const name of ["research", "wayfinder", "find-skills", "project-context", "iterative-retrieval", "using-git-worktrees", "verification-before-completion"]) {
84
84
  assert.equal(manifest.skills.some((skill) => skill.name === name), false);
85
+ assert.equal(fs.existsSync(path.join(root, "skills", name, "SKILL.md")), false, name);
85
86
  }
86
- console.log("Skill invocation tests passed (33 host-gate scenarios, three natural-language entries, four retired skills).");
87
+ console.log("Skill invocation tests passed (33 host-gate scenarios, three natural-language entries, seven retired skills).");
@@ -151,7 +151,7 @@ function validateManifest(manifest, { exists, skillPaths, read = () => "" }) {
151
151
  if (!safeOwnerPath) errors.push(`unsafe ownership owner: ${entry.id}`);
152
152
  const ownerPathExists = safeOwnerPath && exists(entry.owner);
153
153
  if (!ownerPathExists) errors.push(`owner path does not exist: ${entry.owner}`);
154
- if (!declaredPaths.has(entry.owner)) errors.push(`ownership owner must be a registered Skill: ${entry.id} -> ${entry.owner}`);
154
+ if (!declaredPaths.has(entry.owner) && !(safeOwnerPath && /^rules\/(?:common\/)?[a-z0-9-]+\.md$/.test(entry.owner))) errors.push(`ownership owner must be a registered Skill or rule: ${entry.id} -> ${entry.owner}`);
155
155
  if (!Array.isArray(entry.surfaces) || entry.surfaces.length === 0) errors.push(`ownership surfaces must be non-empty: ${entry.id}`);
156
156
  for (const surface of entry.surfaces || []) {
157
157
  if (!isSafeRelativePath(surface)) errors.push(`unsafe ownership surface: ${entry.id} -> ${surface}`);
@@ -34,6 +34,18 @@ function run() {
34
34
  read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
35
35
  }), []);
36
36
 
37
+ for (const owner of ["rules/05-git-workflow.md", "rules/common/testing.md", "README.md", "skills/unregistered/SKILL.md", "rules/../README.md"]) {
38
+ const ruleOwned = structuredClone(valid);
39
+ ruleOwned.ownership[0].owner = owner;
40
+ const errors = validateManifest(ruleOwned, {
41
+ exists: (file) => [owner, "AGENTS.md", "skills/demo-skill/SKILL.md"].includes(file),
42
+ skillPaths: ["skills/demo-skill/SKILL.md"],
43
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
44
+ });
45
+ if (owner === "rules/05-git-workflow.md" || owner === "rules/common/testing.md") assert.deepStrictEqual(errors, []);
46
+ else assert(errors.length > 0, `must reject non-rule owner: ${owner}`);
47
+ }
48
+
37
49
  const longDescription = structuredClone(valid);
38
50
  assert.match(validateManifest(longDescription, {
39
51
  exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
@@ -25,31 +25,7 @@ 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
31
  "# 执行原则",
@@ -218,13 +194,6 @@ function checkRouteOrdering() {
218
194
 
219
195
  function checkWorkflowDocuments() {
220
196
  runWorkflowOwnershipChecks({ read, fail, managedFiles });
221
- requireTokens("skills/iterative-retrieval/SKILL.md", [
222
- "事实、证据和盲点缺口",
223
- "复杂、高风险、多文件或长周期",
224
- "skills/grilling/SKILL.md",
225
- "skills/spec-gate/SKILL.md",
226
- "返回 `skills/using-superpowers/SKILL.md`",
227
- ]);
228
197
  requireTokens("skills/using-superpowers/SKILL.md", [
229
198
  "shortest applicable path",
230
199
  "File count, new features, and ordinary complexity affect",
@@ -277,15 +246,6 @@ function checkComplexityRules() {
277
246
  "rules/01-base.md should not classify new or multi-file behavior work as full-flow by default",
278
247
  );
279
248
  }
280
- requireTokens("README.md", [
281
- "直接提出 grilling 请求",
282
- "`/to-spec`",
283
- "`grilling` 是唯一需求澄清引擎",
284
- "默认最短闭环",
285
- "按风险逐级升级",
286
- "完整流程适用时",
287
- "明确低风险且无未决决策",
288
- ]);
289
249
  }
290
250
 
291
251
  function checkGrillingWorkflow() {
@@ -296,10 +256,6 @@ function checkGrillingWorkflow() {
296
256
  }
297
257
 
298
258
  function checkSuperpowersRoutingConsistency() {
299
- requireTokens("skills/iterative-retrieval/SKILL.md", [
300
- "返回 `skills/using-superpowers/SKILL.md` 重新路由",
301
- "不要自行枚举或调用下一 skill",
302
- ]);
303
259
  requireTokens("skills/using-superpowers/SKILL.md", [
304
260
  "explicit formal Spec",
305
261
  "high-risk boundary",
@@ -312,19 +268,6 @@ function checkSuperpowersRoutingConsistency() {
312
268
  "Spec Gate contract conflict",
313
269
  ]);
314
270
 
315
- const retrieval = read("skills/iterative-retrieval/SKILL.md");
316
- for (const staleRoute of [
317
- "交接到 `brainstorming`、`test-driven-development` 或 `executing-plans` skill",
318
- "再进入 `brainstorming`、`test-driven-development` 或 `executing-plans`",
319
- ]) {
320
- if (retrieval.includes(staleRoute)) {
321
- fail(
322
- "skills/iterative-retrieval/SKILL.md should return to the router " +
323
- `instead of enumerating follow-up skills: ${staleRoute}`,
324
- );
325
- }
326
- }
327
-
328
271
  }
329
272
 
330
273
  function readCapabilityManifest(manifestPath) {
@@ -588,6 +531,9 @@ function checkRemovedSkillReferences() {
588
531
  }
589
532
 
590
533
  const retiredSkills = [
534
+ "iterative-retrieval",
535
+ "using-git-worktrees",
536
+ "verification-before-completion",
591
537
  "discover-unknowns-zh",
592
538
  "skill-creator",
593
539
  "writing-plans",
@@ -618,18 +564,6 @@ function checkRemovedSkillReferences() {
618
564
  }
619
565
  }
620
566
 
621
- requireTokens("README.md", [
622
- "Skill 迁移说明",
623
- "`discover-unknowns-zh` 已退休",
624
- "`iterative-retrieval`",
625
- "`research`",
626
- "`prototype`",
627
- "`to-tickets`",
628
- "`implementation-notes`、`explainer` 和 `quiz` 工件链不再属于",
629
- "`skill-creator` 已退休",
630
- "`rules/common/skills-learning.md`",
631
- "scripts/upstream-capability-map.json",
632
- ]);
633
567
  requireTokens("scripts/retired-skill-files.json", retiredSkills);
634
568
  requireTokens("rules/common/skills-learning.md", [
635
569
  "Skill 创建和更新遵循本规则",
package/skills/README.md CHANGED
@@ -10,16 +10,14 @@
10
10
 
11
11
  ## Process / 门禁
12
12
 
13
- - `using-superpowers`:非平凡任务的 skill 路由、优先级和完成声明纪律。
13
+ - `using-superpowers`:工程交付及明确请求的工程工作流的 skill 路由、优先级和完成声明纪律。
14
14
  - `grilling`:对计划、设计或重大用户决策进行单问式压力测试。
15
15
  - `spec-gate`:显式 formal spec 或高风险任务的零访谈成稿、自审和用户批准门。
16
- - `using-git-worktrees`:新功能必须使用 worktree;其他隔离条件与复用方式按 Git 规则执行。
17
16
  - `to-tickets`:把已批准工作拆成 tracer-bullet tickets 和 blocking graph。
18
17
  - `implement`:执行用户授权的低风险 direct scope、已批准 Spec scope 或 frontier ticket;仅 ticket 路径 claim、resolve 并刷新 frontier。
19
18
  - `subagent-driven-development`:router 对已授权范围发现多个相互独立的 frontier tickets 时,分派到隔离 worktree 的 fresh subagent。
20
19
  - `triage`:对 Issue/外部 PR 分类、验证并形成 agent-ready brief。
21
20
  - `handoff`:将当前上下文脱敏压缩到临时 Markdown,供全新 session 接续。
22
- - `verification-before-completion`:完成、通过、已修复或 ready 声明前的新鲜验证门。
23
21
 
24
22
  ## 旁路设计能力
25
23
 
@@ -36,12 +34,11 @@
36
34
  - `systematic-debugging`:区分普通明确失败与疑难故障;预期 TDD RED 留在实现循环。
37
35
  - `resolving-merge-conflicts`:按双方原始意图逐 hunk 解决 merge/rebase 冲突。
38
36
  - `e2e-testing`:Playwright E2E 模式、CI、制品和 flaky 处理。
39
- - `feature-acceptance`:以真实证据、用例矩阵和二次审核完成用户功能验收。
37
+ - `feature-acceptance`:用户明确要求真实流程验收、截图或日志证据时,输出用例矩阵与复核结论。
40
38
 
41
39
  ## Harness / 上下文与编排
42
40
 
43
- - `iterative-retrieval`:事实、证据、盲点、subagent 和大仓库探索的迭代检索闭环。
44
- - `continuous-learning-v2`:Hook 观察、project/global instinct、学习评估和演化。
41
+ - `continuous-learning-v2`:学习系统的观察 Hook、project/global instinct、学习评估和演化。
45
42
 
46
43
  ## Learn / 学习沉淀
47
44
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: continuous-learning-v2
3
- description: "管理观察、instinct、学习评估和演化;仅在显式学习或 Hook 配置请求时使用。"
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`。
@@ -72,11 +72,13 @@ direct user approval to maintain domain docs during the session. In that mode:
72
72
 
73
73
  1. Use confirmed context and ADR locations from `docs/agent-workflow/project-context.md` when present,
74
74
  otherwise from existing repository conventions or the user's confirmed request.
75
- 2. When a term becomes stable, show the exact glossary change and obtain write approval before
76
- updating it inline.
77
- 3. Offer an ADR only when the decision is hard to reverse, surprising without context and the result
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
78
80
  of a real trade-off; show its path/content before writing.
79
- 4. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
81
+ 5. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
80
82
 
81
83
  Outside that mode, persistence after an approved Spec remains a router-selected ticket or implementation task.
82
84
  If project context is absent, do not invent a documentation layout.
@@ -1,12 +1,16 @@
1
1
  ---
2
2
  name: feature-acceptance
3
- description: "验收真实用户流程、界面和日志证据;用于确认修复或交付是否真正生效。"
3
+ description: "用于用户明确要求真实流程验收、截图或日志证据的任务;产出可复核的验收结论。"
4
4
  ---
5
5
 
6
6
  # 功能验收
7
7
 
8
8
  把验收请求转成可复现、可复核的结论。优先验证用户可观察的行为,不用代码阅读、模拟页面或单个 API 响应替代真实流程。
9
9
 
10
+ ## 何时使用
11
+
12
+ 仅在用户明确要求验收真实用户流程,或要求截图、视频、日志作为验收证据时使用。普通修复、一般“测一下”及完成前的常规验证按 `rules/common/testing.md` 执行。
13
+
10
14
  ## 输出协议
11
15
 
12
16
  每个用例和整体结论只能是 `PASS / FAIL / BLOCKED / NOT RUN`。
@@ -22,7 +26,7 @@ description: "验收真实用户流程、界面和日志证据;用于确认修
22
26
 
23
27
  - 需要新增或维护可提交、可在 CI 重跑的浏览器测试时,读取 `skills/e2e-testing/SKILL.md`,必要时委派 `agents/e2e-runner.md`。
24
28
  - 需要定位失败根因时,先读取 `skills/systematic-debugging/SKILL.md`,不要在验收报告中猜测修复方案。
25
- - 完成声明仍须遵守 `skills/verification-before-completion/SKILL.md` 的新鲜验证证据要求。
29
+ - 完成声明仍须遵守 `rules/common/testing.md` 的新鲜验证证据要求。
26
30
  - 仅在用例相互独立、运行环境允许且任务授权并行时并发执行;共享状态、顺序依赖或无并发授权时串行执行,并说明原因。
27
31
 
28
32
  ## 流程
@@ -13,7 +13,6 @@ Reference: https://github.com/mattpocock/skills/blob/main/skills/productivity/gr
13
13
 
14
14
  - Do not ask for discoverable facts. Inspect files, documentation, logs, history, and tools first.
15
15
  - Ask only about a user-owned decision whose alternatives materially change the result.
16
- - Route systematic evidence or blind-spot gaps back through `skills/using-superpowers/SKILL.md` for `skills/iterative-retrieval/SKILL.md`.
17
16
  - High risk alone does not trigger an interview. If high-risk work has a real unresolved user decision, resolve it and record `resume_target: spec-gate`.
18
17
  - Do not generate or approve a Spec, implement code, or own workflow continuation.
19
18
 
@@ -80,4 +79,6 @@ Use `resume_target: spec-gate` only when the router already classified the task
80
79
 
81
80
  For an explicit session, ask whether shared understanding has been reached. Do not act, write files, or enter implementation before confirmation. Inline mode may return without an extra confirmation gate when the blocking decision is resolved.
82
81
 
83
- After exit, return to `skills/using-superpowers/SKILL.md` for routing. A fresh session created after `BLOCKED_BY_UNRESOLVED_DECISION` must not resume the old Spec Gate call stack; it returns a new handoff to the router.
82
+ After exit, return to `skills/using-superpowers/SKILL.md` for routing. Inline clarification after
83
+ `BLOCKED_BY_UNRESOLVED_DECISION` returns the resolved decision and updated handoff to the router for a new
84
+ Spec Gate call; it does not resume incomplete drafting or approve the Spec.
@@ -1,2 +1,5 @@
1
+ interface:
2
+ display_name: "Handoff"
3
+ short_description: "Create a redacted handoff for an explicitly requested fresh session."
1
4
  policy:
2
5
  allow_implicit_invocation: true
@@ -23,8 +23,8 @@ description: Deliver one authorized scope through implementation, review, and ve
23
23
  检查 branch、worktree、staged、unstaged 和 untracked,记录 `git rev-parse HEAD` 为 pre-delivery base,
24
24
  并记录 task-owned 改动。已有无关改动必须排除,不能回滚。
25
25
 
26
- 是否创建 worktree 以 `rules/05-git-workflow.md` 为准;需要隔离时使用
27
- `skills/using-git-worktrees/SKILL.md`,不嵌套创建。只做必要 setup 与相关 baseline tests。
26
+ 是否创建 worktree 及具体操作按 `rules/05-git-workflow.md` 执行,不嵌套创建。
27
+ 只做必要 setup 与相关 baseline tests。
28
28
  只有 clean baseline 才进入实施;失败时记录命令、失败与工作区状态,返回 router 处理,不能伪装通过。
29
29
 
30
30
  ## 实施、审查与验证
@@ -37,7 +37,7 @@ description: Deliver one authorized scope through implementation, review, and ve
37
37
  范围合同作为 Spec source,按 `skills/code-review/SKILL.md` 选择相称的 review 模式。
38
38
  满足该 Skill 的低风险与验证条件时可自审;需要独立审查却无法启动时不得降级。
39
39
  修复 Critical/Important findings 后复核受影响的验收与审查项,不把部分完成报告为交付完成。
40
- 3. 逐条核对验收,按 `verification-before-completion` 运行 fresh commands。已在当前阶段运行且仍对应
40
+ 3. 逐条核对验收,按 `rules/common/testing.md` 运行 fresh commands。已在当前阶段运行且仍对应
41
41
  最终改动的证据可以复用;新改动、失败或未决风险才触发重跑。记录实际结果、未运行项和剩余风险。
42
42
 
43
43
  ## 收尾与授权
@@ -1,2 +1,5 @@
1
+ interface:
2
+ display_name: "Architecture Health Review"
3
+ short_description: "Audit architecture health and route selected findings to design."
1
4
  policy:
2
5
  allow_implicit_invocation: true
@@ -48,7 +48,9 @@ BLOCKED_BY_UNRESOLVED_DECISION
48
48
  - evidence
49
49
  ```
50
50
 
51
- This is a terminal outcome. Do not ask a question, generate options, choose for the user, add `resume_target`, or invoke grilling.
51
+ This ends only the current Spec drafting call. Return the outcome to `skills/using-superpowers/SKILL.md`
52
+ for continuation within the authorized task. Do not ask a question, generate options, choose for the user,
53
+ add `resume_target`, or invoke grilling here.
52
54
 
53
55
  If the same `decision_id` already has a confirmed resolution and evidence has not changed, report a `Spec Gate contract conflict` and stop. Reopen it only when reversal evidence appears or a foundational premise becomes invalid.
54
56