claude-everything-workflow 0.2.13 → 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 (51) 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/docs/plugins.md +1 -1
  6. package/evals/routing-scenarios.json +19 -19
  7. package/harness/manifest.json +28 -62
  8. package/package.json +1 -1
  9. package/rules/common/performance.md +3 -1
  10. package/rules/common/testing.md +2 -8
  11. package/scripts/install-antigravity.js +242 -18
  12. package/scripts/retired-skill-files.json +25 -0
  13. package/scripts/upstream-capability-map.json +16 -13
  14. package/scripts/verify/install-rules.test.js +137 -3
  15. package/scripts/verify/skill-invocation.test.js +18 -2
  16. package/scripts/verify/skill-manifest-checks.js +1 -1
  17. package/scripts/verify/skill-manifest-checks.test.js +53 -0
  18. package/scripts/verify/workflow-checks.js +87 -8
  19. package/skills/README.md +2 -6
  20. package/skills/code-review/SKILL.md +1 -1
  21. package/skills/codebase-design/SKILL.md +7 -1
  22. package/skills/feature-acceptance/references/e2e-testing.md +8 -2
  23. package/skills/grilling/SKILL.md +1 -1
  24. package/skills/handoff/SKILL.md +2 -2
  25. package/skills/implement/SKILL.md +3 -2
  26. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  27. package/skills/spec-gate/SKILL.md +1 -1
  28. package/skills/systematic-debugging/SKILL.md +1 -1
  29. package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +1 -1
  30. package/skills/test-driven-development/SKILL.md +1 -1
  31. package/skills/to-tickets/SKILL.md +1 -1
  32. package/skills/triage/SKILL.md +2 -2
  33. package/skills/using-superpowers/SKILL.md +5 -5
  34. package/skills/using-superpowers/references/process-outcomes.md +1 -1
  35. package/skills/domain-modeling/SKILL.md +0 -103
  36. package/skills/improve-codebase-architecture/SKILL.md +0 -47
  37. package/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  38. package/skills/prototype/SKILL.md +0 -50
  39. package/skills/prototype/references/logic.md +0 -28
  40. package/skills/prototype/references/ui.md +0 -30
  41. package/skills/visual-companion/SKILL.md +0 -62
  42. package/skills/visual-companion/agents/openai.yaml +0 -4
  43. package/skills/visual-companion/references/guide.md +0 -298
  44. package/skills/visual-companion/scripts/frame-template.html +0 -243
  45. package/skills/visual-companion/scripts/helper.js +0 -167
  46. package/skills/visual-companion/scripts/pages.cjs +0 -28
  47. package/skills/visual-companion/scripts/server-utils.cjs +0 -82
  48. package/skills/visual-companion/scripts/server.cjs +0 -583
  49. package/skills/visual-companion/scripts/start-server.sh +0 -223
  50. package/skills/visual-companion/scripts/stop-server.sh +0 -120
  51. package/skills/visual-companion/scripts/websocket.cjs +0 -86
@@ -10,7 +10,7 @@ const MAX_SKILL_TOKENS = 5000;
10
10
  const MAX_DESCRIPTION_CHARS = 128;
11
11
  const NAME_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
12
12
  const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/;
13
- const COMPATIBILITIES = new Set(["claude-code", "codex"]);
13
+ const COMPATIBILITIES = new Set(["claude-code", "codex", "antigravity"]);
14
14
 
15
15
  function isSafeRelativePath(value) {
16
16
  return typeof value === "string" && value.length > 0 &&
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  const assert = require("assert");
4
+ const path = require("path");
5
+ const { createHarnessContext } = require("./core");
4
6
  const { validateManifest } = require("./skill-manifest-checks");
7
+ const { checkResidentContextBudget } = require("./workflow-checks");
5
8
 
6
9
  function run() {
7
10
  const valid = {
@@ -129,6 +132,56 @@ function run() {
129
132
  read: () => "---\nname: demo-skill\ndescription: demo\nversion: 2.0.0\n---\n",
130
133
  }).join("\n"), /version does not match frontmatter/);
131
134
 
135
+ const antigravityValid = structuredClone(valid);
136
+ antigravityValid.skills[0].compatibility = ["claude-code", "codex", "antigravity"];
137
+ assert.deepStrictEqual(validateManifest(antigravityValid, {
138
+ exists: (file) => file === "skills/demo-skill/SKILL.md" || file === "AGENTS.md",
139
+ skillPaths: ["skills/demo-skill/SKILL.md"],
140
+ read: () => "---\nname: demo-skill\ndescription: demo\n---\n",
141
+ }), []);
142
+
143
+ // Resident context budget check passes on repository and rejects over-budget fixtures.
144
+ const repoRoot = path.resolve(__dirname, "../..");
145
+ const repoCtx = createHarnessContext(repoRoot);
146
+ checkResidentContextBudget(repoCtx);
147
+ assert.deepStrictEqual(repoCtx.errors, []);
148
+
149
+ const overBudgetErrors = [];
150
+ checkResidentContextBudget(
151
+ {
152
+ root: repoRoot,
153
+ exists: (file) => file === "AGENTS.md" || file === "harness/manifest.json" || file === "skills/a/SKILL.md",
154
+ read: (file) => {
155
+ if (file === "AGENTS.md") return "x".repeat(200);
156
+ if (file === "harness/manifest.json") {
157
+ return JSON.stringify({
158
+ skills: [{ name: "a", path: "skills/a/SKILL.md", invocation: "implicit" }],
159
+ });
160
+ }
161
+ return `---\nname: a\ndescription: ${"y".repeat(60)}\n---\n`;
162
+ },
163
+ fail: (msg) => overBudgetErrors.push(msg),
164
+ },
165
+ {
166
+ maxAgentsChars: 100,
167
+ maxClaudeResidentRulesChars: 150,
168
+ maxImplicitSkillMetadataChars: 50,
169
+ maxAntigravitySkills: 5,
170
+ maxAntigravitySkillMetadataChars: 50,
171
+ },
172
+ () => ({
173
+ exposedSkills: Array.from({ length: 6 }, (_, i) => ({
174
+ name: `skill-${i}`,
175
+ description: "desc".repeat(10),
176
+ })),
177
+ }),
178
+ );
179
+ assert.match(overBudgetErrors.join("\n"), /AGENTS\.md exceeds resident budget/);
180
+ assert.match(overBudgetErrors.join("\n"), /Claude resident rules exceed budget/);
181
+ assert.match(overBudgetErrors.join("\n"), /Implicit skill metadata exceeds budget/);
182
+ assert.match(overBudgetErrors.join("\n"), /Antigravity exposed skills exceed budget/);
183
+ assert.match(overBudgetErrors.join("\n"), /Antigravity skill metadata exceeds budget/);
184
+
132
185
  console.log("skill manifest checks tests passed");
133
186
  }
134
187
 
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  const fs = require("fs");
4
+ const { parseFrontmatter } = require("./skill-manifest-checks");
5
+ const { resolveAntigravitySkillPlan } = require("../install-antigravity");
4
6
 
5
7
  const ROUTER_PATH = "skills/using-superpowers/SKILL.md";
6
8
  const MAX_ROUTER_LINES = 50;
9
+ const RESIDENT_CONTEXT_BUDGETS = {
10
+ maxAgentsChars: 1000,
11
+ maxClaudeResidentRulesChars: 4500,
12
+ maxImplicitSkillMetadataChars: 1150,
13
+ maxAntigravitySkills: 15,
14
+ maxAntigravitySkillMetadataChars: 1150,
15
+ };
7
16
  const EXPECTED_TOP_LEVEL_RULES = [
8
17
  "01-base.md",
9
18
  "02-implementation.md",
@@ -22,6 +31,10 @@ const RETIRED_SKILL_PATHS = [
22
31
  "skills/verification-before-completion/SKILL.md",
23
32
  "skills/subagent-driven-development/SKILL.md",
24
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",
25
38
  ];
26
39
  const RETIRED_RULE_PATHS = [
27
40
  "rules/07-forbidden.md",
@@ -108,12 +121,78 @@ function checkRetiredReferences({ managedFiles, isVerifierImplementation, read,
108
121
  }
109
122
  }
110
123
 
111
- function checkVisualCompanionSecurity({ requireTokens }) {
112
- requireTokens("skills/visual-companion/scripts/server.cjs", [
113
- "127.0.0.1",
114
- "isAuthorized(req)",
115
- "isAllowedWebSocketOrigin(req)",
116
- ]);
124
+ function checkResidentContextBudget(
125
+ { root, exists, read, fail },
126
+ budgets = RESIDENT_CONTEXT_BUDGETS,
127
+ planResolver = resolveAntigravitySkillPlan,
128
+ ) {
129
+ if (exists("AGENTS.md")) {
130
+ const agentsChars = read("AGENTS.md").length;
131
+ if (agentsChars > budgets.maxAgentsChars) {
132
+ fail(`AGENTS.md exceeds resident budget (${agentsChars} > ${budgets.maxAgentsChars} chars)`);
133
+ }
134
+ }
135
+
136
+ const claudeResidentFiles = [
137
+ "AGENTS.md",
138
+ "CLAUDE.md",
139
+ "rules/01-base.md",
140
+ "rules/02-implementation.md",
141
+ "rules/05-git-workflow.md",
142
+ ];
143
+ const claudeResidentChars = claudeResidentFiles
144
+ .filter((file) => exists(file))
145
+ .reduce((sum, file) => sum + read(file).length, 0);
146
+ if (claudeResidentChars > budgets.maxClaudeResidentRulesChars) {
147
+ fail(
148
+ `Claude resident rules exceed budget (${claudeResidentChars} > ${budgets.maxClaudeResidentRulesChars} chars)`,
149
+ );
150
+ }
151
+
152
+ if (exists("harness/manifest.json")) {
153
+ let manifest;
154
+ try {
155
+ manifest = JSON.parse(read("harness/manifest.json"));
156
+ } catch {
157
+ manifest = null;
158
+ }
159
+ if (Array.isArray(manifest?.skills)) {
160
+ let implicitChars = 0;
161
+ for (const skill of manifest.skills) {
162
+ if (skill?.invocation !== "implicit" || !skill?.path || !exists(skill.path)) continue;
163
+ try {
164
+ const fm = parseFrontmatter(read(skill.path));
165
+ implicitChars += String(skill.name || "").length + String(fm?.description || "").trim().length;
166
+ } catch {
167
+ // Invalid YAML is reported by skill-manifest-checks.
168
+ }
169
+ }
170
+ if (implicitChars > budgets.maxImplicitSkillMetadataChars) {
171
+ fail(
172
+ `Implicit skill metadata exceeds budget (${implicitChars} > ${budgets.maxImplicitSkillMetadataChars} chars)`,
173
+ );
174
+ }
175
+ }
176
+ }
177
+
178
+ if (root) {
179
+ const plan = planResolver(root);
180
+ if (plan.exposedSkills.length > budgets.maxAntigravitySkills) {
181
+ fail(
182
+ `Antigravity exposed skills exceed budget (${plan.exposedSkills.length} > ${budgets.maxAntigravitySkills})`,
183
+ );
184
+ }
185
+ const agMetadataChars = plan.exposedSkills.reduce(
186
+ (sum, skill) => sum + skill.name.length + skill.description.length,
187
+ 0,
188
+ );
189
+ if (agMetadataChars > budgets.maxAntigravitySkillMetadataChars) {
190
+ fail(
191
+ `Antigravity skill metadata exceeds budget (` +
192
+ `${agMetadataChars} > ${budgets.maxAntigravitySkillMetadataChars} chars)`,
193
+ );
194
+ }
195
+ }
117
196
  }
118
197
 
119
198
  function runWorkflowChecks(context) {
@@ -121,7 +200,7 @@ function runWorkflowChecks(context) {
121
200
  checkTopLevelRules(context);
122
201
  checkMergedSkillReferences(context);
123
202
  checkRetiredReferences(context);
124
- checkVisualCompanionSecurity(context);
203
+ checkResidentContextBudget(context);
125
204
  }
126
205
 
127
- module.exports = { runWorkflowChecks };
206
+ module.exports = { runWorkflowChecks, checkResidentContextBudget, RESIDENT_CONTEXT_BUDGETS };
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 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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: test-driven-development
3
- description: "Use for behavior changes with a test path: RED, minimal GREEN, REFACTOR, then verify."
3
+ description: "TDD cycle for testable behavior changes: RED, GREEN, REFACTOR."
4
4
  ---
5
5
 
6
6
  # Test-Driven Development
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: to-tickets
3
- description: Split an approved scope into demonstrable vertical tickets with real blocking edges; wait for approval.
3
+ description: Split approved scope into vertical tickets; wait for approval.
4
4
  ---
5
5
 
6
6
  # To Tickets
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: triage
3
- description: Use only for explicit issue or pull-request triage; classify evidence and produce an agent-ready brief.
3
+ description: "Explicit issue/PR triage: verify evidence, write agent brief."
4
4
  ---
5
5
 
6
6
  # Triage
@@ -33,7 +33,7 @@ Apply configured label strings rather than assuming canonical names.
33
33
  ## Decision Work
34
34
 
35
35
  Use `skills/grilling/SKILL.md` only when a consequential maintainer decision is missing. Use
36
- `skills/domain-modeling/SKILL.md` when terminology or ADR-worthy decisions change.
36
+ `skills/spec-gate/SKILL.md` when terminology or ADR-worthy decisions change.
37
37
 
38
38
  ## Mutations
39
39
 
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  name: using-superpowers
3
- description: Route engineering delivery and explicitly requested engineering workflows; resume their process outcomes.
3
+ description: Route non-trivial engineering workflows and resume outcomes.
4
4
  ---
5
5
 
6
6
  # Using Superpowers
7
7
 
8
- 仅用于工程交付(实现、调试、测试、审查)及显式工程工作流;普通问答、翻译、总结和资料检索直接处理。
8
+ 仅用于非琐碎工程交付(跨模块、高风险、排障、审查、Spec/多票)及显式工程工作流;普通问答、翻译、总结和资料检索直接处理。
9
9
  优先级:用户指令 / `AGENTS.md` / `CLAUDE.md` / 项目 Rules > Skills / Commands / Agents / Hooks > 默认行为。
10
10
 
11
11
  ## 选路原则
12
12
 
13
- - 选最短适用路径,只读当前阶段需要的 Skill,不预加载整条链路;简短说明选择后即执行。
14
- - 显式请求某一专职能力(如 `grilling`、`feature-acceptance`、`handoff`、`triage`、`prototype`、`improve-codebase-architecture`、`resolving-merge-conflicts`、`test-driven-development`、`code-review`)时,宿主按各 Skill 的 `description` 直接匹配,不再逐条在路由表重复列出。
15
- - 复杂度本身不触发额外门禁;`handoff`、`triage`、`improve-codebase-architecture` 仅在用户明确请求时使用。
13
+ - 选最短适用路径,只读当前阶段需要的 Skill,不预加载整条链路;多份规则或引用同轮并发读取。
14
+ - 明确、低风险的 1–2 文件小修(不涉及认证授权、持久化、公共契约或共享抽象)直接按核心红线与 `rules/common/testing.md` 实施,本地完成仅需新鲜测试证据;跨模块、>=3 文件、高风险及提 PR 前必须完成 `code-review` 独立审查。
15
+ - 显式请求专职能力(`grilling`、`feature-acceptance`、`handoff`、`triage`、`codebase-design`、`resolving-merge-conflicts`、`test-driven-development`、`code-review`)时按 `description` 直接命中;`handoff`、`triage` 仅在明确请求时使用。
16
16
 
17
17
  ## 三条交付通道
18
18
 
@@ -37,7 +37,7 @@ originating Skill to recommend a successor.
37
37
 
38
38
  ## Cross-session handoff
39
39
 
40
- When a prototype detour needs isolation or the current context is leaving its reliable reasoning zone,
40
+ When the current context is leaving its reliable reasoning zone,
41
41
  recommend a handoff and wait for the user's request or acceptance before creating the temporary
42
42
  document. A clear natural-language request is sufficient; do not require command syntax.
43
43
  The handoff ends the current flow; a fresh session references the returned path and enters the router.
@@ -1,103 +0,0 @@
1
- ---
2
- name: domain-modeling
3
- description: Model changes to business concepts, entities, states, relationships, invariants, or ownership; exclude ordinary refactors.
4
- ---
5
-
6
- # Domain Modeling
7
-
8
- Make domain changes explicit without becoming a workflow gate or a second clarification engine.
9
-
10
- ## Boundary
11
-
12
- Trigger only when the task introduces or changes at least one of:
13
-
14
- - domain terms and their precise meanings;
15
- - entities, value objects, or their relationships;
16
- - invariants and ownership rules;
17
- - lifecycle states or transitions;
18
- - a bounded context or the contract between contexts.
19
-
20
- Do not trigger for ordinary code complexity, a new module that reuses the existing model, or read-only use of established `CONTEXT.md` vocabulary.
21
-
22
- ## Inputs
23
-
24
- Consume verified repository facts, an optional confirmed grilling handoff, the current approved or
25
- draft Spec, and `docs/agent-workflow/project-context.md` when it exists. Do not ask the user for
26
- discoverable facts and do not own consequential user decisions.
27
-
28
- ## Workflow
29
-
30
- 1. Extract existing terms, entities, invariants, states, owners, and context boundaries from code and documents.
31
- 2. Identify what the task adds, removes, renames, or transfers.
32
- 3. State ambiguous terms and contract conflicts without silently resolving user-owned choices.
33
- 4. Produce the smallest model needed for the task: glossary, relationship list, invariants, lifecycle, boundary map, and ADR recommendation when relevant.
34
- 5. Return the model to the currently routed Skill; do not select or invoke the next workflow Skill.
35
-
36
- ## Output
37
-
38
- Use only the applicable parts:
39
-
40
- ```text
41
- Domain vocabulary:
42
- - Term: definition
43
-
44
- Entities and relationships:
45
- - Entity/value object: ownership and relationship
46
-
47
- Invariants:
48
- - invariant and enforcement boundary
49
-
50
- Lifecycle:
51
- - state -> event -> next state
52
-
53
- Bounded contexts:
54
- - context: responsibility and external contract
55
-
56
- ADR recommendations:
57
- - decision that merits a durable record
58
-
59
- Unresolved consequential decisions:
60
- - stable decision subject and evidence
61
- ```
62
-
63
- If an unresolved item changes product meaning, ownership, a public contract, persistence, or a high-cost boundary, return it to the current router/Spec Gate contract. Do not interview or choose for the user.
64
-
65
- ## Persistence Gate
66
-
67
- Default mode keeps output in the active handoff or Spec. Do not modify tracked `CONTEXT.md`, ADRs,
68
- schemas, or code merely because domain modeling triggered.
69
-
70
- **Persistent documentation mode** is enabled only by an explicit documented grilling request or
71
- direct user approval to maintain domain docs during the session. In that mode:
72
-
73
- 1. Use confirmed context and ADR locations from `docs/agent-workflow/project-context.md` when present,
74
- otherwise from existing repository conventions or the user's confirmed request.
75
- 2. Reuse existing maintenance authorization for stable glossary edits within the approved paths and scope;
76
- do not request per-term approval. Show the diff when reporting progress or completion.
77
- 3. If maintenance is not yet authorized, obtain approval before writing. New paths or scope, changes to
78
- confirmed decisions, and unresolved consequential decisions require approval before the affected edit.
79
- 4. Offer an ADR only when the decision is hard to reverse, surprising without context and the result
80
- of a real trade-off; show its path/content before writing.
81
- 5. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
82
-
83
- Outside that mode, persistence after an approved Spec remains a router-selected ticket or implementation task.
84
- If project context is absent, do not invent a documentation layout.
85
-
86
- ### Glossary shape
87
-
88
- - Define only project-specific domain terms in one or two sentences.
89
- - Choose one canonical term and list misleading synonyms under `Avoid`.
90
- - A single-context repository uses root `CONTEXT.md`; a real multi-context repository uses
91
- `CONTEXT-MAP.md` pointing to context-local glossaries.
92
-
93
- ### ADR shape
94
-
95
- - Use the configured ADR directory and the next sequential number.
96
- - Lead with one short paragraph covering context, decision and reason.
97
- - Add status, alternatives or consequences only when they carry durable information.
98
-
99
- ## Examples
100
-
101
- - Adding a subscription entity with trial, active, suspended, and cancelled lifecycle states triggers this Skill.
102
- - Renaming an internal helper while consuming unchanged billing vocabulary does not trigger it.
103
- - Moving authorization ownership between bounded contexts triggers it and may surface a high-risk decision for Spec Gate.
@@ -1,47 +0,0 @@
1
- ---
2
- name: improve-codebase-architecture
3
- description: Run an explicit read-only architecture-health audit and route selected findings to design or grilling.
4
- ---
5
-
6
- # Improve Codebase Architecture
7
-
8
- Origin: `mattpocock/skills@2ab9580`, adapted to this repository's visual consent and routing gates.
9
-
10
- ## 1. Scope and Explore
11
-
12
- Read `skills/codebase-design/SKILL.md`, relevant `CONTEXT.md`/`CONTEXT-MAP.md`, ADRs and project rules.
13
-
14
- - Use the user-named subsystem when supplied.
15
- - Otherwise inspect recent history for repeatedly changed areas before widening the scan.
16
- - Look for shallow modules, duplicated caller policy, message chains, pass-through layers, leaked
17
- ordering/error rules, and code that cannot be tested through a stable interface.
18
- - Apply the deletion test and classify dependency types before recommending a new seam.
19
- - Keep speculative candidates separate from evidence-backed friction.
20
-
21
- ## 2. Report
22
-
23
- For each candidate include:
24
-
25
- - files/modules and evidence;
26
- - current interface and leaked complexity;
27
- - proposed deepening direction, without committing to a final interface;
28
- - expected leverage, locality and test-surface improvement;
29
- - compatibility risk and recommendation strength: `Strong`, `Worth exploring` or `Speculative`;
30
- - a before/after relationship diagram.
31
-
32
- Prefer a compact Markdown report when visuals add little. When a visual report materially improves
33
- understanding, use `skills/visual-companion/SKILL.md` and obtain its explicit consent before starting
34
- the server or opening a URL. Never open a browser silently.
35
-
36
- End with one top recommendation. Do not implement it.
37
-
38
- ## 3. Decision Loop
39
-
40
- After the user chooses a candidate:
41
-
42
- 1. Use `skills/grilling/SKILL.md` for consequential choices.
43
- 2. Use `skills/domain-modeling/SKILL.md` when domain language or an ADR-worthy decision changes.
44
- 3. Use `skills/codebase-design/references/design-it-twice.md` when interface alternatives remain.
45
- 4. Return the resolved candidate to the central router for Spec/planning classification.
46
-
47
- Do not turn an architecture audit into an unapproved refactor.
@@ -1,5 +0,0 @@
1
- interface:
2
- display_name: "Architecture Health Review"
3
- short_description: "Audit architecture health and route selected findings to design."
4
- policy:
5
- allow_implicit_invocation: true
@@ -1,50 +0,0 @@
1
- ---
2
- name: prototype
3
- description: Build a throwaway runnable probe for one explicit design question; do not silently ship it.
4
- ---
5
-
6
- # Prototype
7
-
8
- Origin: `mattpocock/skills@2ab9580`, adapted to reuse this repository's secured visual companion.
9
-
10
- A prototype answers one question. It is not a production shortcut.
11
-
12
- ## Select the Branch
13
-
14
- - Logic, state transition, data shape or API feel → read `references/logic.md`.
15
- - Visual hierarchy, layout or interaction shape → read `references/ui.md` and
16
- `skills/visual-companion/SKILL.md`.
17
-
18
- If the branch is ambiguous and the user is unavailable, use surrounding code as evidence: backend
19
- or state code defaults to logic; page/component work defaults to UI. State the assumption.
20
-
21
- ## Shared Contract
22
-
23
- 1. Write the exact question at the top of the prototype.
24
- 2. Place throwaway code near the relevant module or route and name it visibly as a prototype.
25
- 3. Reuse the project's runtime and task runner; provide one command to run.
26
- 4. Keep state in memory unless persistence itself is the question.
27
- 5. Skip production polish, broad error handling, abstractions and tests.
28
- 6. Surface full relevant state after every action or variant change.
29
- 7. Never connect UI variants to real mutations.
30
- 8. Capture the answer: decision, evidence and remaining uncertainty.
31
- 9. Promote only the validated decision. Rewrite production code under normal TDD and review gates.
32
-
33
- Prototype creation is an authorized implementation step only when the user requested it. Commit,
34
- branch, browser and external-system actions keep their own approval requirements.
35
-
36
- ## Exit
37
-
38
- Return:
39
-
40
- ```text
41
- Prototype question:
42
- Branch and run command/URL:
43
- Observed answer:
44
- Validated decision:
45
- Discarded assumptions:
46
- Prototype cleanup/capture status:
47
- Next router input:
48
- ```
49
-
50
- Then return to `skills/using-superpowers/SKILL.md`. Do not silently continue into production code.