claude-everything-workflow 0.2.14 → 0.2.15

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 (47) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/AGENTS.md +13 -23
  4. package/commands/pr.md +1 -1
  5. package/evals/routing-scenarios.json +19 -19
  6. package/harness/manifest.json +0 -52
  7. package/package.json +1 -1
  8. package/rules/common/testing.md +2 -8
  9. package/scripts/install-antigravity.js +8 -1
  10. package/scripts/retired-skill-files.json +25 -0
  11. package/scripts/upstream-capability-map.json +16 -13
  12. package/scripts/verify/install-rules.test.js +15 -2
  13. package/scripts/verify/skill-invocation.test.js +14 -2
  14. package/scripts/verify/workflow-checks.js +9 -14
  15. package/skills/README.md +2 -6
  16. package/skills/code-review/SKILL.md +1 -1
  17. package/skills/codebase-design/SKILL.md +7 -1
  18. package/skills/feature-acceptance/references/e2e-testing.md +8 -2
  19. package/skills/grilling/SKILL.md +1 -1
  20. package/skills/handoff/SKILL.md +2 -2
  21. package/skills/implement/SKILL.md +3 -2
  22. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  23. package/skills/spec-gate/SKILL.md +1 -1
  24. package/skills/systematic-debugging/SKILL.md +1 -1
  25. package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +1 -1
  26. package/skills/test-driven-development/SKILL.md +1 -1
  27. package/skills/to-tickets/SKILL.md +1 -1
  28. package/skills/triage/SKILL.md +2 -2
  29. package/skills/using-superpowers/SKILL.md +5 -6
  30. package/skills/using-superpowers/references/process-outcomes.md +1 -1
  31. package/skills/domain-modeling/SKILL.md +0 -103
  32. package/skills/improve-codebase-architecture/SKILL.md +0 -47
  33. package/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  34. package/skills/prototype/SKILL.md +0 -50
  35. package/skills/prototype/references/logic.md +0 -28
  36. package/skills/prototype/references/ui.md +0 -30
  37. package/skills/visual-companion/SKILL.md +0 -62
  38. package/skills/visual-companion/agents/openai.yaml +0 -4
  39. package/skills/visual-companion/references/guide.md +0 -298
  40. package/skills/visual-companion/scripts/frame-template.html +0 -243
  41. package/skills/visual-companion/scripts/helper.js +0 -167
  42. package/skills/visual-companion/scripts/pages.cjs +0 -28
  43. package/skills/visual-companion/scripts/server-utils.cjs +0 -82
  44. package/skills/visual-companion/scripts/server.cjs +0 -583
  45. package/skills/visual-companion/scripts/start-server.sh +0 -223
  46. package/skills/visual-companion/scripts/stop-server.sh +0 -120
  47. package/skills/visual-companion/scripts/websocket.cjs +0 -86
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Evidence-based engineering workflows: implement, debug, review and verify.",
5
5
  "author": { "name": "xu91102" },
6
6
  "homepage": "https://github.com/xu91102/claude-everything-Workflow",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Evidence-based engineering workflows: implement, debug, review and verify.",
5
5
  "author": { "name": "xu91102" },
6
6
  "homepage": "https://github.com/xu91102/claude-everything-Workflow",
package/AGENTS.md CHANGED
@@ -1,30 +1,20 @@
1
1
  # 项目配置
2
2
 
3
- ## 用户沟通
3
+ ## 沟通
4
4
 
5
- - 面向用户先说结论,再说明原因、影响和下一步;不要先堆日志、内部实现或术语。
6
- - 默认使用日常中文。必须使用专业术语、错误码或英文缩写时,紧跟一句解释它对用户意味着什么。
7
- - 解释变更、故障或排查结果时,简单说明;明确区分已确认事实、推测和阻塞项。
8
- - 除非用户要求,不贴大段原始日志、命令或实现细节;只保留支持结论所需的最小证据。
9
- - 同一事实只说一次;简单任务短答,复杂任务按需展开。进展只报告新发现、阻塞和关键决定,不逐条播报工具操作。
10
- - 工具结果优先读取相关片段,大结果只展示摘要并保留原文入口、实际退出码和关键错误,不凭截断结果判定成功。
5
+ - 先结论后原因与下一步;日常中文,术语/缩写紧跟通俗解释,区分事实、推测与阻塞。
6
+ - 同一事实只说一次,简单任务短答;不逐条播报工具操作,不贴大段原始日志,大结果只报摘要、退出码与原文路径,不凭截断判通过。
11
7
 
12
- ## 工程入口与核心红线
8
+ ## 工程入口与红线
13
9
 
14
- - 工程交付(实现、修复、测试、审查)先进入 `using-superpowers` 判断路径;若请求已明确命中单一专职 Skill(如排障、审查、解决冲突、验收、PR/验证),可直接读取该 Skill,不必先绕道读路由。需要多份 Skill 或规则时同一轮并发读取。
15
- - 禁止硬编码密钥/token/密码、SQL 拼接、未校验外部输入、明文密码、绕过验证或质量门 Hook,以及提交调试残留、依赖目录或敏感配置。
16
- - 需要复用用户已登录的 Chrome 做交互式验证时,按 `rules/common/testing.md` 的“浏览器验证”执行;不要新开浏览器验证登录态页面。
10
+ - 明确且低风险的 1–2 文件小修直接按核心红线与 `rules/common/testing.md` 实施验证,不必绕道 `using-superpowers`;需决策、正式 Spec、跨模块/高风险改动、多票并行或显式流程时再读对应 Skill / `using-superpowers`,多份文档同轮并发读取。
11
+ - 禁止硬编码密钥/token/密码、SQL 拼接、未校验外部输入、明文密码、绕过验证或 Hook,以及提交调试残留、依赖目录或敏感配置。
12
+ - 复用已登录 Chrome 做交互验证时按 `skills/feature-acceptance/references/e2e-testing.md` 执行,不新开浏览器。
17
13
 
18
- ## 规则加载策略
14
+ ## 规则按需加载
19
15
 
20
- - 规则按需读取,不要默认全量加载 `rules/` 或 `rules/common/`。
21
- - `rules/...` 先查项目根 `rules/`;不存在时,Antigravity(Gemini)回退 `~/.gemini/config/plugins/claude-everything-workflow/references/rules/`,Codex 回退 `~/.codex/rules/`,Claude Code 顶层规则回退 `~/.claude/rules/`,专项 `rules/common/...` 回退 `~/.claude/references/rules/common/...`。升级时保留的个人修改优先于同名分发参考。
22
-
23
- ## 规则索引
24
-
25
- | 规则文件 | 内容与触发场景 |
26
- | ---------------------- | -------------------------------------------------------- |
27
- | `01-base.md` | 执行原则、第一性原则与流程边界;实现或审查前读取 |
28
- | `02-implementation.md` | 架构与兼容、错误处理、代码规模、注释、代码与安全禁止项 |
29
- | `05-git-workflow.md` | Worktree 分支开发、提交格式、提交禁止项与 PR 授权边界 |
30
- | `common/*` | 专项参考区(测试/验证、PR、上下文卫生、编排、Hook、性能、Harness、学习),仅对应场景按需读取 |
16
+ - 按需读取,不默认全量加载 `rules/` 或 `rules/common/`;先查项目根 `rules/`,否则按宿主回退(Antigravity `~/.gemini/config/plugins/claude-everything-workflow/references/rules/`、Codex `~/.codex/rules/`、Claude `~/.claude/rules/` 与 `~/.claude/references/rules/`),个人修改优先。
17
+ - `01-base.md`:执行原则、第一性原则与流程边界
18
+ - `02-implementation.md`:架构兼容、错误处理、代码规模与安全禁止项
19
+ - `05-git-workflow.md`:Worktree 分支开发、提交格式与 PR 授权边界
20
+ - `common/*`:按需参考(测试/验证、PR、上下文卫生、编排、Hook、性能、Harness、学习)
package/commands/pr.md CHANGED
@@ -4,7 +4,7 @@ description: 提交、推送和创建 Pull Request 的标准工作流
4
4
 
5
5
  # /pr - 提交与创建 PR
6
6
 
7
- `/pr` 是 Superpowers 风格闭环中的 PR Gate。进入本命令前必须已有 `/verify` 或等价验证结果;如果验证失败或未运行关键检查,先回到验证和修复阶段,除非用户明确授权带风险继续。
7
+ `/pr` 是 Superpowers 风格闭环中的 PR Gate。进入本命令前必须已有 `/verify` 或等价验证结果,并确保已完成 `skills/code-review/SKILL.md` 独立只读审查(含此前跳过逐次审查的 1–2 文件低风险小修);如果验证失败或未运行关键检查,先回到验证和修复阶段,除非用户明确授权带风险继续。
8
8
 
9
9
  把当前工作区中的有效改动整理成可提交、可审阅、可追踪的 PR。
10
10
 
@@ -203,32 +203,32 @@
203
203
  "requiredSignals": ["triage", "brief"],
204
204
  "rationale": "明确要求 issue/PR triage 时进入 triage。"
205
205
  },
206
- {
207
- "id": "prototype-design-probe",
208
- "category": "design",
209
- "prompt": "写一个可扔掉的最小原型验证虚拟滚动在 10 万条数据下是否流畅",
210
- "expectedTarget": "skills/prototype/SKILL.md",
211
- "expectedLane": "design",
212
- "requiredSignals": ["prototype", "probe"],
213
- "rationale": "回答单个可运行设计问题的临时探针进入 prototype。"
214
- },
215
206
  {
216
207
  "id": "architecture-health-audit",
217
208
  "category": "design",
218
209
  "prompt": "对当前代码库做一次只读的架构健康度审计,找出浅模块加深机会",
219
- "expectedTarget": "skills/improve-codebase-architecture/SKILL.md",
210
+ "expectedTarget": "skills/codebase-design/SKILL.md",
220
211
  "expectedLane": "explicit-only",
221
- "requiredSignals": ["architecture-health", "audit"],
222
- "rationale": "明确要求架构健康度审计时进入 improve-codebase-architecture。"
212
+ "requiredSignals": ["deep modules", "audit"],
213
+ "rationale": "架构健康度审计已并入 codebase-design,保持深模块与只读审计统一入口。"
223
214
  },
224
215
  {
225
- "id": "domain-modeling-invariants",
226
- "category": "design",
227
- "prompt": "梳理订阅计费的实体状态机、不变量和上下文边界",
228
- "expectedTarget": "skills/domain-modeling/SKILL.md",
229
- "expectedLane": "design",
230
- "requiredSignals": ["entities", "invariants"],
231
- "rationale": "业务概念、状态与不变量建模进入 domain-modeling。"
216
+ "id": "cache-friendly-session-model",
217
+ "category": "performance",
218
+ "prompt": "长会话中途模型切来切去老是掉缓存,应该怎么控制模型选择和上下文成本?",
219
+ "expectedTarget": "rules/common/performance.md",
220
+ "expectedLane": "performance",
221
+ "requiredSignals": ["Prompt Cache", "子代理"],
222
+ "rationale": "会话边界选型、前缀稳定与上下文成本约束由 rules/common/performance.md 维护。"
223
+ },
224
+ {
225
+ "id": "tiny-fix-pr-review-boundary",
226
+ "category": "review",
227
+ "prompt": "刚修完几个小 bug 准备提 PR,还需要启动独立子代理审查吗?",
228
+ "expectedTarget": "skills/code-review/SKILL.md",
229
+ "expectedLane": "review",
230
+ "requiredSignals": ["PR", "independent"],
231
+ "rationale": "本地低风险 1–2 文件小修可先凭测试完成,但提 PR 前与跨模块/高风险改动仍须进入 code-review 独立审查。"
232
232
  },
233
233
  {
234
234
  "id": "codebase-deep-module",
@@ -41,19 +41,6 @@
41
41
  "allowedTools": null,
42
42
  "invocation": "implicit"
43
43
  },
44
- {
45
- "name": "domain-modeling",
46
- "path": "skills/domain-modeling/SKILL.md",
47
- "owner": "skills/domain-modeling/SKILL.md",
48
- "version": "0.1.2",
49
- "compatibility": [
50
- "claude-code",
51
- "codex",
52
- "antigravity"
53
- ],
54
- "allowedTools": null,
55
- "invocation": "implicit"
56
- },
57
44
  {
58
45
  "name": "feature-acceptance",
59
46
  "path": "skills/feature-acceptance/SKILL.md",
@@ -106,32 +93,6 @@
106
93
  "allowedTools": null,
107
94
  "invocation": "explicit-only"
108
95
  },
109
- {
110
- "name": "improve-codebase-architecture",
111
- "path": "skills/improve-codebase-architecture/SKILL.md",
112
- "owner": "skills/improve-codebase-architecture/SKILL.md",
113
- "version": "0.1.1",
114
- "compatibility": [
115
- "claude-code",
116
- "codex",
117
- "antigravity"
118
- ],
119
- "allowedTools": null,
120
- "invocation": "implicit"
121
- },
122
- {
123
- "name": "prototype",
124
- "path": "skills/prototype/SKILL.md",
125
- "owner": "skills/prototype/SKILL.md",
126
- "version": "0.1.1",
127
- "compatibility": [
128
- "claude-code",
129
- "codex",
130
- "antigravity"
131
- ],
132
- "allowedTools": null,
133
- "invocation": "implicit"
134
- },
135
96
  {
136
97
  "name": "resolving-merge-conflicts",
137
98
  "path": "skills/resolving-merge-conflicts/SKILL.md",
@@ -222,19 +183,6 @@
222
183
  ],
223
184
  "allowedTools": null,
224
185
  "invocation": "implicit"
225
- },
226
- {
227
- "name": "visual-companion",
228
- "path": "skills/visual-companion/SKILL.md",
229
- "owner": "skills/visual-companion/SKILL.md",
230
- "version": "0.1.1",
231
- "compatibility": [
232
- "claude-code",
233
- "codex",
234
- "antigravity"
235
- ],
236
- "allowedTools": null,
237
- "invocation": "implicit"
238
186
  }
239
187
  ],
240
188
  "ownership": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Claude Code, Codex, and Antigravity harness with rules, skills, agents, hooks, and verification gates.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -32,12 +32,6 @@
32
32
 
33
33
  复杂、高风险或行为变化应补充对抗性验证,主动覆盖异常输入(空值、缺失字段、损坏配置、未知枚举)、重复/并发执行与部分失败重试、特殊字符与跨平台路径、权限/磁盘/网络/依赖失败、历史数据与用户已有改动以及边界数值。
34
34
 
35
- ## 端到端测试
35
+ ## 端到端与浏览器验证
36
36
 
37
- Playwright 的组织、等待、POM、CI 制品和 flake 处理以 `skills/feature-acceptance/references/e2e-testing.md` 为准;探索工具不能替代可重复的 E2E。本地多 worktree 运行时隔离端口和环境变量,启动服务必须等待 Web/API ready。CI 失败时按 `skills/feature-acceptance/references/e2e-testing.md` 保留失败制品。
38
-
39
- ## 浏览器验证
40
-
41
- - 需要登录态时复用已有会话;连接失败不另开浏览器绕过。
42
- - 操作前确认目标页面,不关闭或修改无关页面。
43
- - 可复跑测试使用独立测试登录态,不依赖用户日常会话。
37
+ - Playwright E2E 与复用已登录 Chrome 的浏览器验证见 `skills/feature-acceptance/references/e2e-testing.md`。
@@ -249,6 +249,13 @@ function rewriteRelocatedSkillScript(text) {
249
249
  );
250
250
  }
251
251
 
252
+ function tailorAntigravityAgents(text) {
253
+ return text.replace(
254
+ /(Antigravity `~\/\.gemini\/config\/plugins\/claude-everything-workflow\/references\/rules\/`[^)]*)/,
255
+ `(\`${PLUGIN_HOME_REF}/references/rules/\`)`,
256
+ );
257
+ }
258
+
252
259
  function writeManagedFile({ pluginRoot, relative, content, mode, backupId, dryRun, log }) {
253
260
  const target = checkedPath(pluginRoot, relative);
254
261
  const next = Buffer.isBuffer(content) ? content : Buffer.from(content, "utf8");
@@ -556,7 +563,7 @@ function installAntigravity({
556
563
  writeManagedFile({
557
564
  pluginRoot,
558
565
  relative: "rules/AGENTS.md",
559
- content: fs.readFileSync(path.join(sourceRoot, "AGENTS.md")),
566
+ content: tailorAntigravityAgents(fs.readFileSync(path.join(sourceRoot, "AGENTS.md"), "utf8")),
560
567
  backupId,
561
568
  dryRun,
562
569
  log,
@@ -115,6 +115,31 @@
115
115
  "e2e-testing": [
116
116
  "SKILL.md",
117
117
  "references/playwright-patterns.md"
118
+ ],
119
+ "visual-companion": [
120
+ "SKILL.md",
121
+ "agents/openai.yaml",
122
+ "references/guide.md",
123
+ "scripts/frame-template.html",
124
+ "scripts/helper.js",
125
+ "scripts/pages.cjs",
126
+ "scripts/server-utils.cjs",
127
+ "scripts/server.cjs",
128
+ "scripts/start-server.sh",
129
+ "scripts/stop-server.sh",
130
+ "scripts/websocket.cjs"
131
+ ],
132
+ "prototype": [
133
+ "SKILL.md",
134
+ "references/logic.md",
135
+ "references/ui.md"
136
+ ],
137
+ "domain-modeling": [
138
+ "SKILL.md"
139
+ ],
140
+ "improve-codebase-architecture": [
141
+ "SKILL.md",
142
+ "agents/openai.yaml"
118
143
  ]
119
144
  }
120
145
  }
@@ -41,17 +41,18 @@
41
41
  },
42
42
  {
43
43
  "upstream": "domain-modeling",
44
- "status": "adapted",
44
+ "status": "excluded",
45
45
  "evidence": [
46
- "skills/domain-modeling/SKILL.md"
47
- ]
46
+ "scripts/retired-skill-files.json",
47
+ "skills/spec-gate/SKILL.md"
48
+ ],
49
+ "reason": "Standalone domain-modeling Skill is retired; consequential domain changes go through grilling and spec-gate."
48
50
  },
49
51
  {
50
52
  "upstream": "grill-with-docs",
51
53
  "status": "adapted",
52
54
  "evidence": [
53
- "skills/grilling/SKILL.md",
54
- "skills/domain-modeling/SKILL.md"
55
+ "skills/grilling/SKILL.md"
55
56
  ]
56
57
  },
57
58
  {
@@ -65,17 +66,19 @@
65
66
  "upstream": "improve-codebase-architecture",
66
67
  "status": "adapted",
67
68
  "evidence": [
68
- "skills/improve-codebase-architecture/SKILL.md"
69
- ]
69
+ "skills/codebase-design/SKILL.md",
70
+ "skills/codebase-design/references/deepening.md"
71
+ ],
72
+ "reason": "Standalone audit Skill is retired; codebase-design covers deep-module design and read-only audit."
70
73
  },
71
74
  {
72
75
  "upstream": "prototype",
73
- "status": "adapted",
76
+ "status": "excluded",
74
77
  "evidence": [
75
- "skills/prototype/SKILL.md",
76
- "skills/prototype/references/logic.md",
77
- "skills/visual-companion/SKILL.md"
78
- ]
78
+ "scripts/retired-skill-files.json",
79
+ "README.md"
80
+ ],
81
+ "reason": "Standalone throwaway prototype and visual-companion Skills are retired to keep the resident skill surface lean."
79
82
  },
80
83
  {
81
84
  "upstream": "research",
@@ -145,7 +148,7 @@
145
148
  "upstream": "handoff",
146
149
  "source_group": "productivity",
147
150
  "status": "adapted",
148
- "reason": "The promoted Engineering router requires it for prototype detours and context-window crossings.",
151
+ "reason": "The promoted Engineering router requires it for context-window crossings.",
149
152
  "evidence": [
150
153
  "skills/handoff/SKILL.md",
151
154
  "skills/using-superpowers/SKILL.md"
@@ -658,13 +658,16 @@ function checkInstallerEntrypoint() {
658
658
  assert.equal(manifest.name, pkg.name);
659
659
  assert.equal(manifest.version, pkg.version);
660
660
  assert.deepEqual(fs.readdirSync(path.join(agRoot, "rules")), ["AGENTS.md"]);
661
- assert.match(read(path.join(agRoot, "rules/AGENTS.md")), /plugins\/claude-everything-workflow\/references\/rules\//);
661
+ const agAgents = read(path.join(agRoot, "rules/AGENTS.md"));
662
+ assert.match(agAgents, /plugins\/claude-everything-workflow\/references\/rules\//);
663
+ assert.doesNotMatch(agAgents, /~\/\.codex\/rules\//);
664
+ assert.doesNotMatch(agAgents, /~\/\.claude\/rules\//);
662
665
  assert.equal(read(path.join(agRoot, "references/rules/common/testing.md")),
663
666
  read(path.join(sourceRoot, "rules/common/testing.md")));
664
667
  assert.equal(fs.existsSync(path.join(agRoot, "skills/README.md")), false);
665
668
  const agSkills = fs.readdirSync(path.join(agRoot, "skills"), { withFileTypes: true })
666
669
  .filter((entry) => entry.isDirectory());
667
- assert.equal(agSkills.length, 19);
670
+ assert.equal(agSkills.length, 15);
668
671
  for (const relocated of ["implement", "to-spec", "continuous-learning-v2"]) {
669
672
  assert.equal(
670
673
  fs.existsSync(path.join(agRoot, "skills", relocated)),
@@ -880,6 +883,11 @@ function checkAntigravityOnlyInstaller() {
880
883
  fs.mkdirSync(path.join(agRoot, "skills/research"), { recursive: true });
881
884
  fs.writeFileSync(path.join(agRoot, "skills/research/SKILL.md"), "Old distributed content\n");
882
885
  fs.writeFileSync(path.join(agRoot, "skills/research/personal-notes.md"), "Keep my notes\n");
886
+ for (const retired of ["visual-companion", "prototype", "domain-modeling", "improve-codebase-architecture"]) {
887
+ fs.mkdirSync(path.join(agRoot, "skills", retired), { recursive: true });
888
+ fs.writeFileSync(path.join(agRoot, "skills", retired, "SKILL.md"), `Old ${retired}\n`);
889
+ }
890
+ fs.writeFileSync(path.join(agRoot, "skills/prototype/user-note.md"), "Keep prototype note\n");
883
891
  fs.writeFileSync(legacyAgents, "Keep legacy user file\n");
884
892
 
885
893
  const runCli = (extra = []) => {
@@ -907,6 +915,11 @@ function checkAntigravityOnlyInstaller() {
907
915
  assert.match(first.stdout, /\.gemini[\\/]AGENTS\.md/);
908
916
  assert.equal(fs.existsSync(path.join(agRoot, "skills/research/SKILL.md")), false);
909
917
  assert.equal(read(path.join(agRoot, "skills/research/personal-notes.md")), "Keep my notes\n");
918
+ for (const retired of ["visual-companion", "domain-modeling", "improve-codebase-architecture"]) {
919
+ assert.equal(fs.existsSync(path.join(agRoot, "skills", retired)), false, `retired ${retired} must be cleaned`);
920
+ }
921
+ assert.equal(fs.existsSync(path.join(agRoot, "skills/prototype/SKILL.md")), false);
922
+ assert.equal(read(path.join(agRoot, "skills/prototype/user-note.md")), "Keep prototype note\n");
910
923
 
911
924
  const agImpl = path.join(agRoot, "references/rules/02-implementation.md");
912
925
  const customized = read(agImpl) + "\nKeep Antigravity personal rule.\n";
@@ -80,7 +80,7 @@ assert.equal(implement?.invocation, "explicit-only");
80
80
  const routerBody = fs.readFileSync(path.join(root, "skills/using-superpowers/SKILL.md"), "utf8");
81
81
  assert.match(routerBody, /-> read-reference skills\/implement\/SKILL\.md/);
82
82
  assert.deepEqual(validateNativeRoutes(manifest, routerBody), []);
83
- for (const name of ["handoff", "improve-codebase-architecture", "triage"]) {
83
+ for (const name of ["handoff", "triage"]) {
84
84
  const entry = manifest.skills.find((skill) => skill.name === name);
85
85
  assert.equal(entry?.invocation, "implicit", name);
86
86
  const body = fs.readFileSync(path.join(root, entry.path), "utf8");
@@ -89,7 +89,19 @@ for (const name of ["handoff", "improve-codebase-architecture", "triage"]) {
89
89
  const policy = YAML.parse(fs.readFileSync(path.join(root, "skills", name, "agents/openai.yaml"), "utf8"));
90
90
  assert.equal(policy.policy.allow_implicit_invocation, true, name);
91
91
  }
92
- for (const name of ["research", "wayfinder", "find-skills", "project-context", "iterative-retrieval", "using-git-worktrees", "verification-before-completion"]) {
92
+ for (const name of [
93
+ "research",
94
+ "wayfinder",
95
+ "find-skills",
96
+ "project-context",
97
+ "iterative-retrieval",
98
+ "using-git-worktrees",
99
+ "verification-before-completion",
100
+ "visual-companion",
101
+ "prototype",
102
+ "domain-modeling",
103
+ "improve-codebase-architecture",
104
+ ]) {
93
105
  assert.equal(manifest.skills.some((skill) => skill.name === name), false);
94
106
  assert.equal(fs.existsSync(path.join(root, "skills", name, "SKILL.md")), false, name);
95
107
  }
@@ -7,11 +7,11 @@ const { resolveAntigravitySkillPlan } = require("../install-antigravity");
7
7
  const ROUTER_PATH = "skills/using-superpowers/SKILL.md";
8
8
  const MAX_ROUTER_LINES = 50;
9
9
  const RESIDENT_CONTEXT_BUDGETS = {
10
- maxAgentsChars: 1800,
11
- maxClaudeResidentRulesChars: 5200,
12
- maxImplicitSkillMetadataChars: 2200,
13
- maxAntigravitySkills: 19,
14
- maxAntigravitySkillMetadataChars: 2100,
10
+ maxAgentsChars: 1000,
11
+ maxClaudeResidentRulesChars: 4500,
12
+ maxImplicitSkillMetadataChars: 1150,
13
+ maxAntigravitySkills: 15,
14
+ maxAntigravitySkillMetadataChars: 1150,
15
15
  };
16
16
  const EXPECTED_TOP_LEVEL_RULES = [
17
17
  "01-base.md",
@@ -31,6 +31,10 @@ const RETIRED_SKILL_PATHS = [
31
31
  "skills/verification-before-completion/SKILL.md",
32
32
  "skills/subagent-driven-development/SKILL.md",
33
33
  "skills/e2e-testing/SKILL.md",
34
+ "skills/visual-companion/SKILL.md",
35
+ "skills/prototype/SKILL.md",
36
+ "skills/domain-modeling/SKILL.md",
37
+ "skills/improve-codebase-architecture/SKILL.md",
34
38
  ];
35
39
  const RETIRED_RULE_PATHS = [
36
40
  "rules/07-forbidden.md",
@@ -117,14 +121,6 @@ function checkRetiredReferences({ managedFiles, isVerifierImplementation, read,
117
121
  }
118
122
  }
119
123
 
120
- function checkVisualCompanionSecurity({ requireTokens }) {
121
- requireTokens("skills/visual-companion/scripts/server.cjs", [
122
- "127.0.0.1",
123
- "isAuthorized(req)",
124
- "isAllowedWebSocketOrigin(req)",
125
- ]);
126
- }
127
-
128
124
  function checkResidentContextBudget(
129
125
  { root, exists, read, fail },
130
126
  budgets = RESIDENT_CONTEXT_BUDGETS,
@@ -204,7 +200,6 @@ function runWorkflowChecks(context) {
204
200
  checkTopLevelRules(context);
205
201
  checkMergedSkillReferences(context);
206
202
  checkRetiredReferences(context);
207
- checkVisualCompanionSecurity(context);
208
203
  checkResidentContextBudget(context);
209
204
  }
210
205
 
package/skills/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  调用策略登记在 `harness/manifest.json`,由 `npm run verify` 按宿主校验。`implicit` 允许模型在命中描述与正文条件时调用,不等于授权外部写入;本项目需要明确请求的入口接受自然语言,不要求用户再输入 `/name` 或 `$name`;路由不能把任务复杂度当作用户请求。Skill 正文仍按命中后加载,不能把分类索引当作全量加载清单。
8
8
 
9
- 实施、审查、领域设计、E2E、原型、视觉辅助和 `/learn` 依赖的能力允许工作流按条件调用,仍遵守各自的用户请求、同意和写入边界。`handoff`、`improve-codebase-architecture`、`triage` 仅在用户明确请求相应任务时使用;宿主允许模型识别自然语言请求,正文仍限制任务范围。
9
+ 实施、审查、E2E 和 `/learn` 依赖的能力允许工作流按条件调用,仍遵守各自的用户请求、同意和写入边界。`handoff`、`triage` 仅在用户明确请求相应任务时使用;宿主允许模型识别自然语言请求,正文仍限制任务范围。
10
10
 
11
11
  ## Process / 门禁
12
12
 
@@ -20,11 +20,7 @@
20
20
 
21
21
  ## 旁路设计能力
22
22
 
23
- - `domain-modeling`:领域术语、实体关系、不变量、生命周期和 bounded context 变化建模。
24
- - `codebase-design`:deep module、interface、seam、adapter、leverage 和 locality 设计词汇。
25
- - `improve-codebase-architecture`:扫描 deepening 机会、展示报告并收敛选中候选。
26
- - `prototype`:用 logic TUI 或视觉 UI 原型回答一个可运行的设计问题。
27
- - `visual-companion`:经用户同意后,在安全本地浏览器中展示视觉方案和图示。
23
+ - `codebase-design`:deep module、interface、seam、adapter、leverage、locality 设计及只读架构审计。
28
24
 
29
25
  ## Engineering / 开发实践
30
26
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-review
3
- description: Review a fixed diff and confirmed scope with an independent read-only subagent, escalating to dual-axis review as risk grows.
3
+ description: Independent read-only diff review; dual-axis for high risk.
4
4
  ---
5
5
 
6
6
  # Code Review
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: codebase-design
3
- description: Design deep modules and seams when interfaces leak complexity or tests cross internals.
3
+ description: Design deep modules/seams or run read-only architecture audit.
4
4
  ---
5
5
 
6
6
  # Codebase Design
@@ -44,6 +44,12 @@ question is specifically about a module, interface or seam.
44
44
  Read `references/deepening.md` when merging shallow modules or changing dependencies. Read
45
45
  `references/design-it-twice.md` when alternative interfaces need independent exploration.
46
46
 
47
+ ## Read-Only Architecture Audit
48
+
49
+ When the user explicitly requests an architecture-health audit, inspect high-churn subsystems for
50
+ shallow modules, pass-through layers, or leaked ordering/error invariants and report evidence-backed
51
+ deepening candidates without modifying files.
52
+
47
53
  ## Output
48
54
 
49
55
  ```text
@@ -7,16 +7,22 @@
7
7
  1. 读取 `package.json`、lockfile、CI 配置和现有测试目录,确认包管理器与脚本。
8
8
  2. 查找 `playwright.config.*`、`tests/e2e/`、`e2e/`、`BASE_URL`、启动命令和测试数据准备方式。
9
9
  3. 优先使用项目已有依赖和 `npx playwright test`;缺少浏览器时再处理安装。
10
- 4. 交互式探索和定位用 chrome-devtools MCP 连接用户已打开的 Chrome(`--autoConnect`),不新开浏览器;细节见 `rules/common/testing.md` 的“浏览器验证”,它不替代最终测试或报告。
10
+ 4. 交互式探索和定位用 chrome-devtools MCP 连接用户已打开的 Chrome(`--autoConnect`),不新开浏览器;细节见下方“浏览器验证”,它不替代最终测试或报告。
11
11
 
12
12
  ## 执行契约
13
13
 
14
14
  - 用 Page Object Model(POM)或项目已有等价抽象组织稳定定位器;优先 `getByRole`、`getByTestId` 和条件等待。
15
15
  - 覆盖用户指定的关键旅程,并补正常、边界和错误路径;禁止用 `waitForTimeout` 掩盖竞态。
16
- - 本地先运行与改动相关的最小集合;关键路径或新增测试重复运行以检查 flaky。
16
+ - 本地先运行与改动相关的最小集合;关键路径或新增测试重复运行以检查 flaky。多 worktree 本地并行运行 E2E 时隔离端口与环境变量,启动服务后必须等待 Web/API ready。
17
17
  - 失败先读取 CLI 输出、trace、screenshot、video 和 HTML report,再判断是产品缺陷、测试缺陷还是环境问题。
18
18
  - CI 失败保留 `playwright-report`、`test-results`、trace、screenshot 和 video;修复后至少复跑失败用例。
19
19
 
20
+ ## 浏览器验证
21
+
22
+ - 需要登录态时复用已有会话;连接失败不另开浏览器绕过。
23
+ - 操作前确认目标页面,不关闭或修改无关页面。
24
+ - 可复跑测试使用独立测试登录态,不依赖用户日常会话。
25
+
20
26
  ## 最小配置要求
21
27
 
22
28
  项目没有现成 E2E 基础设施时,才新增最小 `playwright.config.*`、测试目录和脚本。配置应明确 `baseURL`、`webServer`、`trace: 'on-first-retry'`、`screenshot: 'only-on-failure'` 和失败制品保存策略。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: grilling
3
- description: Resolve a consequential user-owned decision one question at a time; do not ask discoverable facts.
3
+ description: Resolve consequential user decisions one question at a time.
4
4
  ---
5
5
 
6
6
  # Grilling
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: handoff
3
- description: Create a redacted handoff for an explicitly requested fresh session or context boundary.
3
+ description: Create redacted handoff doc for an explicit fresh session.
4
4
  ---
5
5
 
6
6
  # Handoff
@@ -11,7 +11,7 @@ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's write-safety a
11
11
 
12
12
  ## Preconditions
13
13
 
14
- - Use only for a fresh session or an intentional prototype branch. Built-in compaction is for continuing
14
+ - Use only for an explicitly requested fresh session. Built-in compaction is for continuing
15
15
  the same conversation at a phase boundary.
16
16
  - Create the handoff only when the user explicitly requests it or accepts a concrete handoff proposal.
17
17
  Ordinary language, `/handoff`, and `$handoff` are valid requests; do not require repeated invocation.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement
3
- description: Internal delivery procedure selected by using-superpowers for one authorized scope.
3
+ description: Internal delivery flow selected by using-superpowers.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -37,10 +37,11 @@ disable-model-invocation: true
37
37
  `test-driven-development` 的垂直切片推进;纯文档或没有可测试行为的整理运行对应校验。
38
38
  已确认失败原因正确的预期 TDD RED 继续 GREEN,不触发调试。其他失败按
39
39
  `systematic-debugging` 的分级入口处理,不跳过真实失败。
40
- 2. 用 pre-delivery base 冻结包含 task-owned committed、staged、unstaged、untracked 的完整审查包,
40
+ 2. 跨模块、>=3 文件、高风险改动或已批准 Spec / ticket 交付:用 pre-delivery base 冻结包含 task-owned committed、staged、unstaged、untracked 的完整审查包,
41
41
  范围合同作为 Spec source,按 `skills/code-review/SKILL.md` 启动独立只读子代理(`independent` 或 `dual`)完成审查;
42
42
  实施者不得自我审查,独立审查不可用时返回 `BLOCKED`,不得降级。
43
43
  修复 Critical/Important findings 后复核受影响的验收与审查项,不把部分完成报告为交付完成。
44
+ (1–2 文件低风险本地小修可先凭新鲜验证证据完成,提 PR 前仍须通过 `code-review` 独立审查。)
44
45
  3. 逐条核对验收,按 `rules/common/testing.md` 运行 fresh commands。已在当前阶段运行且仍对应
45
46
  最终改动的证据可以复用;新改动、失败或未决风险才触发重跑。记录实际结果、未运行项和剩余风险。
46
47
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: resolving-merge-conflicts
3
- description: Resolve an active merge or rebase conflict hunk by hunk with verification.
3
+ description: Resolve active merge/rebase conflicts hunk by hunk.
4
4
  ---
5
5
 
6
6
  # Resolving Merge Conflicts
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: spec-gate
3
- description: Create and self-review a formal Spec (/to-spec) for explicit or costly-to-reverse work; wait for approval.
3
+ description: Draft/self-review formal Spec (/to-spec); wait for approval.
4
4
  ---
5
5
 
6
6
  # Spec Gate
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: systematic-debugging
3
- description: Diagnose bugs, recurring or flaky failures, slowness, and performance regressions; exclude expected TDD RED.
3
+ description: Diagnose bugs, flaky failures, slowness, and performance regressions.
4
4
  ---
5
5
 
6
6
  # Systematic Debugging
@@ -126,4 +126,4 @@ Required before declaring done:
126
126
  - [ ] Throwaway prototypes deleted (or moved to a clearly-marked debug location)
127
127
  - [ ] The hypothesis that turned out correct is stated in the commit / PR message — so the next debugger learns
128
128
 
129
- **Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to the `/improve-codebase-architecture` skill with the specifics. Make the recommendation **after** the fix is in, not before — you have more information now than when you started.
129
+ **Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to `skills/codebase-design/SKILL.md` with the specifics. Make the recommendation **after** the fix is in, not before — you have more information now than when you started.