simple-skills 1.2.0 → 1.3.1

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 (39) hide show
  1. package/README.md +12 -19
  2. package/package.json +1 -1
  3. package/skills/engineering/README.md +1 -0
  4. package/skills/engineering/ask-route/PHASE-BOUNDARIES.md +1 -1
  5. package/skills/engineering/ask-route/SKILL.md +4 -3
  6. package/skills/engineering/ask-route/agents/openai.yaml +1 -1
  7. package/skills/engineering/brainstorming/SKILL.md +2 -7
  8. package/skills/engineering/brainstorming/scripts/frame-template.html +299 -51
  9. package/skills/engineering/brainstorming/scripts/start-server.sh +4 -4
  10. package/skills/engineering/brainstorming/scripts/stop-server.sh +1 -1
  11. package/skills/engineering/brainstorming/spec-document-reviewer-prompt.md +1 -1
  12. package/skills/engineering/brainstorming/visual-companion.md +4 -4
  13. package/skills/engineering/canvas-design/SKILL.md +0 -1
  14. package/skills/engineering/code-review/SKILL.md +43 -1
  15. package/skills/engineering/finishing-a-development-branch/SKILL.md +1 -6
  16. package/skills/engineering/grill-with-docs/SKILL.md +0 -1
  17. package/skills/engineering/implement/SKILL.md +2 -1
  18. package/skills/engineering/requirement-workflow/SKILL.md +64 -0
  19. package/skills/engineering/subagent-driven-development/SKILL.md +14 -19
  20. package/skills/engineering/subagent-driven-development/scripts/review-package +1 -1
  21. package/skills/engineering/subagent-driven-development/scripts/sdd-workspace +3 -3
  22. package/skills/engineering/subagent-driven-development/scripts/task-brief +1 -5
  23. package/skills/engineering/systematic-debugging/SKILL.md +2 -15
  24. package/skills/engineering/to-spec/SKILL.md +0 -1
  25. package/skills/engineering/to-tickets/SKILL.md +0 -1
  26. package/skills/productivity/README.md +0 -1
  27. package/skills/productivity/wait-what/SKILL.md +1 -1
  28. package/skills/engineering/systematic-debugging/CREATION-LOG.md +0 -119
  29. package/skills/engineering/systematic-debugging/condition-based-waiting-example.ts +0 -158
  30. package/skills/engineering/systematic-debugging/condition-based-waiting.md +0 -115
  31. package/skills/engineering/systematic-debugging/defense-in-depth.md +0 -122
  32. package/skills/engineering/systematic-debugging/find-polluter.sh +0 -72
  33. package/skills/engineering/systematic-debugging/root-cause-tracing.md +0 -169
  34. package/skills/engineering/systematic-debugging/test-academic.md +0 -14
  35. package/skills/engineering/systematic-debugging/test-pressure-1.md +0 -58
  36. package/skills/engineering/systematic-debugging/test-pressure-2.md +0 -68
  37. package/skills/engineering/systematic-debugging/test-pressure-3.md +0 -69
  38. package/skills/productivity/to-questionnaire/SKILL.md +0 -53
  39. package/skills/productivity/to-questionnaire/agents/openai.yaml +0 -5
@@ -37,14 +37,14 @@
37
37
  scripts/start-server.sh --project-dir /path/to/project
38
38
 
39
39
  # 返回:{"type":"server-started","port":52341,"url":"http://localhost:52341",
40
- # "screen_dir":"/path/to/project/.superpowers/brainstorm/12345-1706000000"}
40
+ # "screen_dir":"/path/to/project/docs/brainstorm/12345-1706000000"}
41
41
  ```
42
42
 
43
43
  保存响应中的 `screen_dir`。告诉用户打开该 URL。
44
44
 
45
- **查找连接信息:** 服务器将其启动 JSON 写入 `$SCREEN_DIR/.server-info`。如果你在后台启动了服务器且没有捕获 stdout,读取该文件以获取 URL 和端口。使用 `--project-dir` 时,检查 `<project>/.superpowers/brainstorm/` 获取会话目录。
45
+ **查找连接信息:** 服务器将其启动 JSON 写入 `$SCREEN_DIR/.server-info`。如果你在后台启动了服务器且没有捕获 stdout,读取该文件以获取 URL 和端口。使用 `--project-dir` 时,检查 `<project>/docs/brainstorm/` 获取会话目录。
46
46
 
47
- **注意:** 传入项目根目录作为 `--project-dir`,这样原型会持久化在 `.superpowers/brainstorm/` 中,不会因服务器重启而丢失。不传的话,文件会保存到 `/tmp` 并在清理时被删除。提醒用户将 `.superpowers/` 添加到 `.gitignore`(如果尚未添加)。
47
+ **注意:** 传入项目根目录作为 `--project-dir`,这样原型会持久化在 `docs/brainstorm/` 中,不会因服务器重启而丢失。不传的话,文件会保存到 `/tmp` 并在清理时被删除。提醒用户将 `docs/` 添加到 `.gitignore`(如果尚未添加)。
48
48
 
49
49
  **按平台启动服务器:**
50
50
 
@@ -278,7 +278,7 @@ scripts/start-server.sh \
278
278
  scripts/stop-server.sh $SCREEN_DIR
279
279
  ```
280
280
 
281
- 如果会话使用了 `--project-dir`,原型文件会持久化在 `.superpowers/brainstorm/` 中以供日后参考。只有 `/tmp` 会话会在停止时被删除。
281
+ 如果会话使用了 `--project-dir`,原型文件会持久化在 `docs/brainstorm/` 中以供日后参考。只有 `/tmp` 会话会在停止时被删除。
282
282
 
283
283
  ## 参考
284
284
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: canvas-design
3
3
  description: 使用设计哲学在 .png 和 .pdf 文档中创建精美的视觉艺术。当用户要求创建海报、艺术品、设计或其他静态作品时应使用此技能。
4
- license: Complete terms in LICENSE.txt
5
4
  ---
6
5
 
7
6
  这些是创建设计哲学的说明——然后通过视觉表达的美学运动。仅输出 .md 文件、.pdf 文件和 .png 文件。
@@ -3,6 +3,10 @@ name: code-review
3
3
  description: 沿两个轴评审某个固定点(commit、branch、tag 或 merge-base)以来的变更——Standards(代码是否遵循本 repo 文档化的编码规范?)与 Spec(代码是否符合发起 issue/spec 的要求?)。两个评审以并行 sub-agent 运行,结果并排汇报。当用户想评审一个分支、一个 PR、进行中的变更,或要求「review since X」时使用。
4
4
  ---
5
5
 
6
+ # Code Review
7
+
8
+ 派遣代码审查子代理,在问题扩散之前发现它们。审查者获得的是精心组织的评估汇报。
9
+
6
10
  对 `HEAD` 与用户提供的固定点之间的 diff 做双轴评审:
7
11
 
8
12
  - **Standards** — 代码是否符合本 repo 文档化的编码规范?
@@ -12,11 +16,49 @@ description: 沿两个轴评审某个固定点(commit、branch、tag 或 merge
12
16
 
13
17
  issue tracker 应当已经提供给你了——如果 `docs/agents/issue-tracker.md` 缺失,运行 `/setup-simple-skills`。
14
18
 
19
+ **核心原则:** 早审查,勤审查。
20
+
21
+ ## 检查内容
22
+
23
+ 包括但不限于:
24
+
25
+ **计划对齐:**
26
+ - 实现是否匹配计划 / 需求?
27
+ - 偏差是有道理的改进,还是有问题的偏离?
28
+ - 计划中的所有功能都到位了吗?
29
+
30
+ **代码质量:**
31
+ - 关注点分离清晰吗?
32
+ - 错误处理到位吗?
33
+ - 该有类型安全的地方有吗?
34
+ - DRY 但没有过早抽象?
35
+ - 边界情况处理了吗?
36
+
37
+ **架构:**
38
+ - 设计决策合理吗?
39
+ - 可扩展性和性能合理吗?
40
+ - 有没有安全隐患?
41
+ - 与周围代码集成是否干净?
42
+
43
+ **测试:**
44
+ - 测试验证的是真实行为,不是 mock?
45
+ - 边界情况覆盖了吗?
46
+ - 该有集成测试的地方有吗?
47
+ - 所有测试都通过吗?
48
+
49
+ **生产就绪:**
50
+ - 如果改了 schema,有迁移策略吗?
51
+ - 考虑了向后兼容吗?
52
+ - 文档完整吗?
53
+ - 没有明显 bug?
54
+
15
55
  ## 流程
16
56
 
17
57
  ### 1. 钉住固定点
18
58
 
19
- 用户指定的就是固定点——commit SHA、分支名、tag、`main`、`HEAD~5` 等等。如果没指定,就问。
59
+ 用户指定的就是固定点——commit SHA、分支名、tag、`main`、`HEAD~5` 等等。
60
+ 如果没指定,审查范围就是当前完成的任务或进行中的变更。
61
+ 如果不存在进行中的任务,就问。
20
62
 
21
63
  把 diff 命令一次性记录下来:`git diff <fixed-point>...HEAD`(三点语法,即与 merge-base 比较)。同时用 `git log <fixed-point>..HEAD --oneline` 记下提交列表。
22
64
 
@@ -1,11 +1,6 @@
1
1
  ---
2
2
  name: finishing-a-development-branch
3
3
  description: 当实现完成、所有测试通过、需要决定如何集成这份工作时使用
4
- version: "1.0.0"
5
- license: MIT
6
- metadata:
7
- hermes:
8
- tags: [git, workflow]
9
4
  ---
10
5
 
11
6
  # 收尾一个开发分支
@@ -155,7 +150,7 @@ git branch -D <feature-branch>
155
150
 
156
151
  **如果 `GIT_DIR == GIT_COMMON`:** 普通仓库,无 worktree 可清理。结束。
157
152
 
158
- **如果 `WORKTREE_PATH` 在 `.worktrees/` 或 `worktrees/` 之下:** 这是 Superpowers 创建的 worktree——我们负责清理:
153
+ **如果 `WORKTREE_PATH` 在 `.worktrees/` 或 `worktrees/` 之下:** 这是 AI Agent 创建的 worktree——我们负责清理:
159
154
 
160
155
  ```bash
161
156
  git worktree remove "$WORKTREE_PATH"
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: grill-with-docs
3
3
  description: 通过不间断的访谈式追问打磨计划或设计,过程中同步产出文档(ADR 与术语表)。
4
- disable-model-invocation: true
5
4
  ---
6
5
 
7
6
  运行 `/grilling` 会话,并使用 `/domain-modeling` skill。
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: implement
3
3
  description: "基于规格说明或一组工单实现一项工作。"
4
- disable-model-invocation: true
5
4
  ---
6
5
 
7
6
  实现用户在规格说明或工单中描述的工作。
8
7
 
8
+ 当在当前会话中执行包含独立任务的实现计划时使用 /subagent-driven-development
9
+
9
10
  尽可能使用 /tdd,限于事先约定的 seam。
10
11
 
11
12
  定期运行类型检查,定期运行单个测试文件,最后运行一次完整测试套件。
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: requirement-workflow
3
+ description: 用户提出一个需求并要求方案设计或开发时必须使用。作为需求开发流程的编排器,引导用户按阶段推进——设计 → 规格 → 票据 → 实施 → 评审 → 维护,并在每一阶段路由到对应 skill。当用户提出需求、新功能、方案设计、实现请求,或说"我要做个功能/帮我开发/设计一下"时触发。
4
+ ---
5
+
6
+ # 需求开发流程编排
7
+
8
+ 用户提出需求并要开发时,不要直接开写。按下面流程走,每阶段落到对应 skill。**用户是流程的主人,每阶段推进前先跟用户确认。**
9
+
10
+ ## 流程总览
11
+
12
+ ```
13
+ 设计 → 规格 → [票据] → 实施 → 评审 → 维护
14
+ ```
15
+
16
+ ## 1. 设计
17
+
18
+ > 只对高风险、高耦合的功能做。节奏快的团队、小改动直接跳过,从规格开始。
19
+
20
+ - **`/brainstorming`** — 给出多个可行方案,供用户挑选
21
+ - **`/grill-with-docs`** — 通过提问澄清需求,产出文档:`CONTEXT.md`、`docs/adr/*`(有工作目录时)
22
+ - **注**:`/grill-*` 成本比想象的高。只对高风险、高耦合的功能模块使用,小改动跳过。
23
+
24
+ ## 2. 编写方案、规格
25
+
26
+ - **`/to-spec`** — 把当前对话转化为一份 spec 发布到 issue tracker。不做访谈,只综合已讨论内容。
27
+
28
+ ## 3. 拆分成多个可追踪的 ticket(可选)
29
+
30
+ > 大需求推荐,小需求跳过。
31
+
32
+ - **`/to-tickets`** — 把 spec 拆成一组 tracer-bullet 票据,每张声明其阻塞边。
33
+
34
+ ## 4. 实施
35
+
36
+ - **`/implement`** — 构建 spec 或票据描述的工作,内部驱动 `/tdd`,提交前跑 `/code-review`。
37
+ - **多 ticket 时一次只 implement 一个**:`/implement #01`、`/implement #02`……
38
+
39
+ ## 5. 代码 review
40
+
41
+ - **`/code-review`** — 对 diff 做双轴评审:Standards + Spec。以并行子 agent 运行。
42
+
43
+ ## 6. 维护
44
+
45
+ 按用户处境路由:
46
+
47
+ - **重构** → `/improve-codebase-architecture`
48
+ - **bug 定位** → `/systematic-debugging`(先系统化定位根本原因)→ `/diagnosing-bugs`(疑难 bug 的纪律化诊断)
49
+ - **跨会话交接** → `/handoff`,交接后在干净窗口继续
50
+
51
+ ## 用户处境判断
52
+
53
+ 用户消息可能只描述处境而非点名流程。按此路由:
54
+
55
+ | 用户要求 | 路由到 |
56
+ | --- | --- |
57
+ | 头脑风暴/多方案 | `/brainstorming` |
58
+ | 澄清需求、产出文档 | `/grill-with-docs` / `/grill-me` |
59
+ | 把讨论写成规格 | `/to-spec` |
60
+ | 大需求拆分 | `/to-tickets` |
61
+ | 按规格实施 | `/implement` |
62
+ | 评审代码 | `/code-review` |
63
+ | 重构 | `/improve-codebase-architecture` |
64
+ | 排查 bug | `/systematic-debugging` / `/diagnosing-bugs` |
@@ -1,11 +1,6 @@
1
1
  ---
2
2
  name: subagent-driven-development
3
3
  description: 当在当前会话中执行包含独立任务的实现计划时使用
4
- version: "1.0.0"
5
- license: MIT
6
- metadata:
7
- hermes:
8
- tags: [agents, development]
9
4
  ---
10
5
 
11
6
  # 子智能体驱动开发
@@ -75,10 +70,10 @@ digraph process {
75
70
 
76
71
  "准备: 工作树、查账本、读计划、起飞前审查" [shape=box];
77
72
  "还有任务?" [shape=diamond];
78
- "分派最终代码审查者 (../requesting-code-review/code-reviewer.md)" [shape=box];
73
+ "分派最终代码审查者 (../code-review/code-reviewer.md)" [shape=box];
79
74
  "最终审查有发现? 一次修复分派、一次定向复审、裁定残留项" [shape=box];
80
75
  "最终审查干净: 删除本计划的工作区" [shape=box];
81
- "使用 superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
76
+ "使用 /finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
82
77
 
83
78
  "准备: 工作树、查账本、读计划、起飞前审查" -> "分派实现子智能体 (./implementer-prompt.md)";
84
79
  "分派实现子智能体 (./implementer-prompt.md)" -> "实现者有疑问?";
@@ -104,21 +99,21 @@ digraph process {
104
99
  "把发现连同裁定搁置进账本" -> "往账本追加完成行,标记待办完成";
105
100
  "往账本追加完成行,标记待办完成" -> "还有任务?";
106
101
  "还有任务?" -> "分派实现子智能体 (./implementer-prompt.md)" [label="是"];
107
- "还有任务?" -> "分派最终代码审查者 (../requesting-code-review/code-reviewer.md)" [label="否"];
108
- "分派最终代码审查者 (../requesting-code-review/code-reviewer.md)" -> "最终审查有发现? 一次修复分派、一次定向复审、裁定残留项";
102
+ "还有任务?" -> "分派最终代码审查者 (../code-review/code-reviewer.md)" [label="否"];
103
+ "分派最终代码审查者 (../code-review/code-reviewer.md)" -> "最终审查有发现? 一次修复分派、一次定向复审、裁定残留项";
109
104
  "最终审查有发现? 一次修复分派、一次定向复审、裁定残留项" -> "最终审查干净: 删除本计划的工作区";
110
- "最终审查干净: 删除本计划的工作区" -> "使用 superpowers:finishing-a-development-branch";
105
+ "最终审查干净: 删除本计划的工作区" -> "使用 /finishing-a-development-branch";
111
106
  }
112
107
  ```
113
108
 
114
109
  ## 准备
115
110
 
116
- 确保工作发生在一个隔离的工作区里:用 superpowers:using-git-worktrees 创建一个,或者核实已有的那个。没有你人类伙伴的明确同意,绝不在 main/master 分支上开始实现。
111
+ 确保工作发生在一个隔离的工作区里:用 /using-git-worktrees 创建一个,或者核实已有的那个。没有你人类伙伴的明确同意,绝不在 main/master 分支上开始实现。
117
112
 
118
113
  会话记忆无法在上下文压缩(compaction)中存活。在真实会话里,丢失了位置的控制者曾重新分派整段已经完成的任务序列——这是观察到的最昂贵的失败。把进度记在一个账本文件里,而不只是记在待办里。
119
114
 
120
- - **每个计划拥有自己的工作区:** 技能启动时,运行本技能的 `scripts/sdd-workspace PLAN_FILE`——它会打印这个计划专属的、被 git 忽略的目录(`<repo-root>/.superpowers/sdd/<计划文件名>/`),**本计划**的一切产物都放在那里:账本、简报、报告、审查包。别的计划的目录不属于你,不读也不写。
121
- - 到 `<工作区>/progress.md` 查本计划的账本。如果它的第一行点名的是你的计划文件,那么带有 `Task <N>: complete` 行的任务就是**已完成**——不要重新分派它们;从第一个没有该行的任务处继续。如果某个任务的最后一行是一轮修复,说明它正卡在修复循环中:从下一轮继续。如果账本第一行点名的是**另一个**计划文件——或者你在旧的扁平路径 `.superpowers/sdd/progress.md` 发现了一个游离的账本——那是别人的进度:原地别动,另起你自己的新账本。
115
+ - **每个计划拥有自己的工作区:** 技能启动时,运行本技能的 `scripts/sdd-workspace PLAN_FILE`——它会打印这个计划专属的、被 git 忽略的目录(`<repo-root>/docs/sdd/<计划文件名>/`),**本计划**的一切产物都放在那里:账本、简报、报告、审查包。别的计划的目录不属于你,不读也不写。
116
+ - 到 `<工作区>/progress.md` 查本计划的账本。如果它的第一行点名的是你的计划文件,那么带有 `Task <N>: complete` 行的任务就是**已完成**——不要重新分派它们;从第一个没有该行的任务处继续。如果某个任务的最后一行是一轮修复,说明它正卡在修复循环中:从下一轮继续。如果账本第一行点名的是**另一个**计划文件——或者你在旧的扁平路径 `docs/sdd/progress.md` 发现了一个游离的账本——那是别人的进度:原地别动,另起你自己的新账本。
122
117
  - 创建账本时,把它的身份写在第一行:`# SDD ledger — plan: <计划文件路径>`。
123
118
  - 这个账本是你的恢复地图:它点名的那些提交,即使你的上下文已经不记得创建过它们,也确实存在于 git 中。压缩之后,相信账本和 `git log`,而不是你自己的记忆。
124
119
  - `git clean -fdx` 会毁掉这个工作区(它是被 git 忽略的临时文件);万一发生了,就从 `git log` 恢复。
@@ -250,7 +245,7 @@ digraph process {
250
245
 
251
246
  ## 最终审查
252
247
 
253
- 覆盖整个分支的最终审查也拿到一个审查包:运行 `scripts/review-package PLAN_FILE MERGE_BASE HEAD`(MERGE_BASE = 分支起点的那个提交,例如 `git merge-base main HEAD`),把打印出的路径放进最终审查的分派里,这样最终审查者读一个文件就行,不必用 git 命令重新推导整个分支的 diff。用可用的最强模型分派(见"模型选择"),使用 superpowers:requesting-code-review 的 [code-reviewer.md](../requesting-code-review/code-reviewer.md)。把它指向账本里那些"延后的 Minor"和"已搁置"的行,让它甄别哪些必须在合并前修掉。
248
+ 覆盖整个分支的最终审查也拿到一个审查包:运行 `scripts/review-package PLAN_FILE MERGE_BASE HEAD`(MERGE_BASE = 分支起点的那个提交,例如 `git merge-base main HEAD`),把打印出的路径放进最终审查的分派里,这样最终审查者读一个文件就行,不必用 git 命令重新推导整个分支的 diff。用可用的最强模型分派(见"模型选择"),使用 /code-review 的 [code-reviewer.md](../code-review/code-reviewer.md)。把它指向账本里那些"延后的 Minor"和"已搁置"的行,让它甄别哪些必须在合并前修掉。
254
249
 
255
250
  如果覆盖整个分支的最终审查返回了发现,用**一个**修复子智能体带着**完整的**发现清单去分派——不要一条发现一个修复者。逐条发现各派一个修复者,每个都要重建上下文、重跑测试套件;真实会话里,一次最终审查的修复浪潮花掉的成本超过它全部任务的总和。然后对这波修复跑**恰好一次**定向复审(对修复区间跑 `scripts/review-package PLAN_FILE FIX_BASE HEAD`,用 [re-review-prompt.md](re-review-prompt.md))。残留的发现按任务循环里熔断那套来裁定:带裁定搁置,或者在承重项上停下。**没有第二波修复**——残留的承重发现会在 finishing-a-development-branch 呈现选项时浮到你人类伙伴面前。
256
251
 
@@ -258,7 +253,7 @@ digraph process {
258
253
 
259
254
  当覆盖整个分支的最终审查干净、且它的修复已合并时,删除**本计划**的工作区(`rm -rf <工作区>`)——现在 git 历史就是记录了。同级目录属于别的计划,别去动它们。
260
255
 
261
- 使用 superpowers:finishing-a-development-branch。
256
+ 使用 /finishing-a-development-branch。
262
257
 
263
258
  ## 常见的合理化借口
264
259
 
@@ -279,8 +274,8 @@ digraph process {
279
274
  你:我正在用子智能体驱动开发来执行这个计划。
280
275
 
281
276
  [准备:工作树已核实]
282
- [把计划文件读一遍:docs/superpowers/plans/feature-plan.md]
283
- [解析工作区:scripts/sdd-workspace docs/superpowers/plans/feature-plan.md —— 里面没有账本,全新开始]
277
+ [把计划文件读一遍:docs/plans/feature-plan.md]
278
+ [解析工作区:scripts/sdd-workspace docs/plans/feature-plan.md —— 里面没有账本,全新开始]
284
279
  [为所有任务创建待办]
285
280
 
286
281
  任务 1:Hook 安装脚本
@@ -289,7 +284,7 @@ digraph process {
289
284
 
290
285
  实现者:"开始之前——这个 hook 应该装在用户级还是系统级?"
291
286
 
292
- 你:"用户级(~/.config/superpowers/hooks/)"
287
+ 你:"用户级(~/.config/hooks/)"
293
288
 
294
289
  实现者:[稍后]
295
290
  - 实现了 install-hook 命令
@@ -337,5 +332,5 @@ digraph process {
337
332
 
338
333
  [删除本计划的工作区 —— 现在记录活在 git 里]
339
334
 
340
- 搞定!使用 superpowers:finishing-a-development-branch。
335
+ 搞定!使用 /finishing-a-development-branch。
341
336
  ```
@@ -5,7 +5,7 @@
5
5
  # tasks intact.
6
6
  #
7
7
  # Usage: review-package PLAN_FILE BASE HEAD [OUTFILE]
8
- # Default OUTFILE: <repo-root>/.superpowers/sdd/<plan-basename>/review-<base7>..<head7>.diff
8
+ # Default OUTFILE: <repo-root>/docs/sdd/<plan-basename>/review-<base7>..<head7>.diff
9
9
  # (named per range, so a re-review after fixes gets a distinct fresh file).
10
10
  set -euo pipefail
11
11
 
@@ -3,7 +3,7 @@
3
3
  # short-lived artifacts: task briefs, implementer reports, review packages,
4
4
  # and the progress ledger. Print the plan directory's absolute path.
5
5
  #
6
- # One directory per plan (.superpowers/sdd/<plan-basename>/) so a follow-up
6
+ # One directory per plan (docs/sdd/<plan-basename>/) so a follow-up
7
7
  # plan in the same working tree can never read or overwrite another plan's
8
8
  # artifacts. A stale ledger misread as current progress makes controllers
9
9
  # skip whole task sequences — plan-scoping removes that failure structurally.
@@ -11,7 +11,7 @@
11
11
  # The workspace lives in the working tree (not under .git/) because Claude Code
12
12
  # treats .git/ as a protected path and denies agent writes there — which blocks
13
13
  # an implementer subagent from writing its report file. A self-ignoring
14
- # .gitignore at .superpowers/sdd/ keeps every plan's workspace out of
14
+ # .gitignore at docs/sdd/ keeps every plan's workspace out of
15
15
  # `git status` and out of accidental commits without modifying any tracked file.
16
16
  #
17
17
  # Single source of truth for the workspace location, so task-brief and
@@ -33,7 +33,7 @@ slug=$(basename "$plan" .md)
33
33
  || { echo "cannot derive a workspace name from: $plan" >&2; exit 2; }
34
34
 
35
35
  root=$(git rev-parse --show-toplevel)
36
- base="$root/.superpowers/sdd"
36
+ base="$root/docs/sdd"
37
37
  dir="$base/$slug"
38
38
  mkdir -p "$dir"
39
39
  printf '*\n' > "$base/.gitignore"
@@ -4,13 +4,9 @@
4
4
  # through the controller's context.
5
5
  #
6
6
  # Usage: task-brief PLAN_FILE TASK_NUMBER [OUTFILE]
7
- # Default OUTFILE: <repo-root>/.superpowers/sdd/<plan-basename>/task-<N>-brief.md
7
+ # Default OUTFILE: <repo-root>/docs/sdd/<plan-basename>/task-<N>-brief.md
8
8
  # (per plan and per worktree; concurrent runs of the SAME plan in the same
9
9
  # working tree share it).
10
- #
11
- # 中文 fork 适配:上游只识别英文任务标题 "## Task N",而 superpowers-zh
12
- # 的 writing-plans 产出的是 "### 任务 N:..."。下方 awk 同时匹配
13
- # "Task" 与 "任务",两种计划都能抽取。
14
10
  set -euo pipefail
15
11
 
16
12
  if [ $# -lt 2 ] || [ $# -gt 3 ]; then
@@ -1,11 +1,6 @@
1
1
  ---
2
2
  name: systematic-debugging
3
3
  description: 遇到任何 bug、测试失败或异常行为时使用,在提出修复方案之前执行
4
- version: "1.0.0"
5
- license: MIT
6
- metadata:
7
- hermes:
8
- tags: [debugging]
9
4
  ---
10
5
 
11
6
  # 系统化调试
@@ -162,7 +157,7 @@ metadata:
162
157
  - 尽可能用自动化测试
163
158
  - 没有测试框架就写一次性测试脚本
164
159
  - 修复前必须先有测试
165
- - 使用 `superpowers:test-driven-development` 技能来编写规范的失败测试
160
+ - 使用 `/tdd` 技能来编写规范的失败测试
166
161
 
167
162
  2. **实施单一修复**
168
163
  - 修复已定位的根本原因
@@ -174,7 +169,7 @@ metadata:
174
169
  - 测试现在通过了吗?
175
170
  - 其他测试没有被破坏吧?
176
171
  - 问题真的解决了吗?
177
- - 宣称成功之前,使用 `superpowers:verification-before-completion` 技能
172
+ - 宣称成功之前,使用 `/verification-before-completion` 技能
178
173
 
179
174
  4. **如果修复不起作用**
180
175
  - 停下来
@@ -262,11 +257,3 @@ metadata:
262
257
 
263
258
  **但是:** 95% 的"找不到根因"其实是排查不充分。
264
259
 
265
- ## 辅助技术
266
-
267
- 以下技术是系统化调试的组成部分,可在本目录中找到:
268
-
269
- - **`root-cause-tracing.md`** - 沿调用栈反向追踪 bug,找到最初的触发点
270
- - **`defense-in-depth.md`** - 找到根因后,在多个层级添加校验
271
- - **`condition-based-waiting.md`** - 用条件轮询替代硬编码等待时间
272
-
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: to-spec
3
3
  description: 把当前对话转化为一份 spec 并发布到项目 issue tracker——不做访谈,只综合你们已经讨论过的内容。
4
- disable-model-invocation: true
5
4
  ---
6
5
 
7
6
  本 skill 接收当前对话上下文和代码库理解,产出一份 spec。不要访谈用户——只综合你已经知道的内容。
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: to-tickets
3
3
  description: 把计划、spec 或当前对话拆解为一组 tracer-bullet 票据,每张票据声明其阻塞边,发布到配置好的 tracker——本地以文本形式每票据一个文件,或在真实 tracker 上使用原生阻塞链接。
4
- disable-model-invocation: true
5
4
  ---
6
5
 
7
6
  # To Tickets
@@ -9,7 +9,6 @@
9
9
  - **[grill-me](./grill-me/SKILL.md)** — 接受一场毫不留情的盘问,围绕一个计划或设计,直到设计树的每一条分支都有结论。
10
10
  - **[handoff](./handoff/SKILL.md)** — 将当前对话压缩成一份交接文档,让另一个 agent 可以继续这项工作。
11
11
  - **[teach](./teach/SKILL.md)** — 跨多个会话教用户一项新技能或概念,以当前目录作为有状态的教学工作区。
12
- - **[to-questionnaire](./to-questionnaire/SKILL.md)** — 把一个你无法独自回答的决策变成一份 Markdown 问卷,交给唯一能回答的人——异步填写,或在会议中一起完成。
13
12
  - **[wait-what](./wait-what/SKILL.md)** — 在某条消息没听懂的那一刻触发。agent 会补上你缺失的上下文,用平实的语言、借助你 `CONTEXT.md` 中的词汇重新讲述。
14
13
 
15
14
  ## Model-invoked
@@ -4,4 +4,4 @@ description: 停。刚才那条消息没听懂——重新讲一遍。
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
- 等等——我没跟上你刚才讲到的位置。重新讲一遍:给我一点上下文,用 ASD-STE100 简化技术英语(Simplified Technical English)来说,并使用 `CONTEXT.md` 中的统一语言(ubiquitous language)。
7
+ 等等——我没跟上你刚才讲到的位置。重新讲一遍:给我一点上下文,使用 `CONTEXT.md` 中的统一语言(ubiquitous language)。
@@ -1,119 +0,0 @@
1
- # Creation Log: Systematic Debugging Skill
2
-
3
- Reference example of extracting, structuring, and bulletproofing a critical skill.
4
-
5
- ## Source Material
6
-
7
- Extracted debugging framework from `/Users/jesse/.claude/CLAUDE.md`:
8
- - 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
9
- - Core mandate: ALWAYS find root cause, NEVER fix symptoms
10
- - Rules designed to resist time pressure and rationalization
11
-
12
- ## Extraction Decisions
13
-
14
- **What to include:**
15
- - Complete 4-phase framework with all rules
16
- - Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
17
- - Pressure-resistant language ("even if faster", "even if I seem in a hurry")
18
- - Concrete steps for each phase
19
-
20
- **What to leave out:**
21
- - Project-specific context
22
- - Repetitive variations of same rule
23
- - Narrative explanations (condensed to principles)
24
-
25
- ## Structure Following skill-creation/SKILL.md
26
-
27
- 1. **Rich when_to_use** - Included symptoms and anti-patterns
28
- 2. **Type: technique** - Concrete process with steps
29
- 3. **Keywords** - "root cause", "symptom", "workaround", "debugging", "investigation"
30
- 4. **Flowchart** - Decision point for "fix failed" → re-analyze vs add more fixes
31
- 5. **Phase-by-phase breakdown** - Scannable checklist format
32
- 6. **Anti-patterns section** - What NOT to do (critical for this skill)
33
-
34
- ## Bulletproofing Elements
35
-
36
- Framework designed to resist rationalization under pressure:
37
-
38
- ### Language Choices
39
- - "ALWAYS" / "NEVER" (not "should" / "try to")
40
- - "even if faster" / "even if I seem in a hurry"
41
- - "STOP and re-analyze" (explicit pause)
42
- - "Don't skip past" (catches the actual behavior)
43
-
44
- ### Structural Defenses
45
- - **Phase 1 required** - Can't skip to implementation
46
- - **Single hypothesis rule** - Forces thinking, prevents shotgun fixes
47
- - **Explicit failure mode** - "IF your first fix doesn't work" with mandatory action
48
- - **Anti-patterns section** - Shows exactly what shortcuts look like
49
-
50
- ### Redundancy
51
- - Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
52
- - "NEVER fix symptom" appears 4 times in different contexts
53
- - Each phase has explicit "don't skip" guidance
54
-
55
- ## Testing Approach
56
-
57
- Created 4 validation tests following skills/meta/testing-skills-with-subagents:
58
-
59
- ### Test 1: Academic Context (No Pressure)
60
- - Simple bug, no time pressure
61
- - **Result:** Perfect compliance, complete investigation
62
-
63
- ### Test 2: Time Pressure + Obvious Quick Fix
64
- - User "in a hurry", symptom fix looks easy
65
- - **Result:** Resisted shortcut, followed full process, found real root cause
66
-
67
- ### Test 3: Complex System + Uncertainty
68
- - Multi-layer failure, unclear if can find root cause
69
- - **Result:** Systematic investigation, traced through all layers, found source
70
-
71
- ### Test 4: Failed First Fix
72
- - Hypothesis doesn't work, temptation to add more fixes
73
- - **Result:** Stopped, re-analyzed, formed new hypothesis (no shotgun)
74
-
75
- **All tests passed.** No rationalizations found.
76
-
77
- ## Iterations
78
-
79
- ### Initial Version
80
- - Complete 4-phase framework
81
- - Anti-patterns section
82
- - Flowchart for "fix failed" decision
83
-
84
- ### Enhancement 1: TDD Reference
85
- - Added link to skills/testing/test-driven-development
86
- - Note explaining TDD's "simplest code" ≠ debugging's "root cause"
87
- - Prevents confusion between methodologies
88
-
89
- ## Final Outcome
90
-
91
- Bulletproof skill that:
92
- - ✅ Clearly mandates root cause investigation
93
- - ✅ Resists time pressure rationalization
94
- - ✅ Provides concrete steps for each phase
95
- - ✅ Shows anti-patterns explicitly
96
- - ✅ Tested under multiple pressure scenarios
97
- - ✅ Clarifies relationship to TDD
98
- - ✅ Ready for use
99
-
100
- ## Key Insight
101
-
102
- **Most important bulletproofing:** Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.
103
-
104
- ## Usage Example
105
-
106
- When encountering a bug:
107
- 1. Load skill: skills/debugging/systematic-debugging
108
- 2. Read overview (10 sec) - reminded of mandate
109
- 3. Follow Phase 1 checklist - forced investigation
110
- 4. If tempted to skip - see anti-pattern, stop
111
- 5. Complete all phases - root cause found
112
-
113
- **Time investment:** 5-10 minutes
114
- **Time saved:** Hours of symptom-whack-a-mole
115
-
116
- ---
117
-
118
- *Created: 2025-10-03*
119
- *Purpose: Reference example for skill extraction and bulletproofing*