@jspg-ai/coding-bb 0.0.1 → 0.0.2-beta.22

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 (145) hide show
  1. package/cbb/bin/cbb.js +6 -0
  2. package/cbb/bin/cbbm.js +6 -0
  3. package/cbb/dev-standards/rules/cbb-ai-behavior.md +103 -103
  4. package/cbb/dev-standards/rules/cbb-priority.md +55 -55
  5. package/cbb/lib/install/claude-code.js +2 -0
  6. package/cbb/lib/install/init.js +496 -290
  7. package/cbb/lib/install/opencode.js +31 -0
  8. package/cbb/lib/install/qoder.js +2 -0
  9. package/cbb/lib/install/workspaces.js +53 -13
  10. package/cbb/lib/openspec/index.js +3 -3
  11. package/cbb/lib/superpowers/index.js +1 -1
  12. package/cbb/lib/utils/check-update.js +16 -14
  13. package/cbb/lib/utils/gitignore.js +2 -1
  14. package/cbb/lib/utils/output.js +92 -4
  15. package/cbb/lib/utils/version.js +2 -31
  16. package/cbb/lib/wiki/cli.js +25 -25
  17. package/cbb/lib/wiki/index.js +16 -16
  18. package/cbb/tools/cbb-design-to-wiki/SKILL.md +14 -14
  19. package/cbb/tools/cbb-wiki-ops/SKILL.md +22 -22
  20. package/cbb/worktrees/_shared/scripts/find-target-worktree.js +2 -2
  21. package/cbb/worktrees/_shared/scripts/find-workspace-root.js +7 -7
  22. package/cbb/worktrees/_shared/scripts/push-core.js +18 -0
  23. package/cbb/worktrees/commands/{close.md → worktree-close.md} +8 -8
  24. package/cbb/worktrees/commands/{init.md → worktree-init.md} +9 -9
  25. package/cbb/worktrees/commands/{push.md → worktree-push.md} +3 -3
  26. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/SKILL.md +20 -20
  27. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/check-env.js +4 -4
  28. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/check-unarchived.js +1 -1
  29. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/delete-branches.js +3 -3
  30. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/discover-apps.js +6 -6
  31. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-close}/scripts/find-target-worktree.js +2 -2
  32. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-close}/scripts/find-workspace-root.js +7 -7
  33. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/remove-worktrees.js +4 -4
  34. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/safety-check.js +4 -4
  35. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/SKILL.md +81 -107
  36. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/auto-open.js +1 -1
  37. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-env-deep.js +4 -4
  38. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-env.js +6 -6
  39. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/check-repos.js +4 -4
  40. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/create-branches.js +4 -4
  41. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/create-worktrees.js +8 -7
  42. package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-init}/scripts/find-workspace-root.js +7 -7
  43. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/install-ai.js +33 -33
  44. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/parse-config.js +7 -7
  45. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/push-branches.js +9 -7
  46. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-init}/scripts/push-core.js +18 -0
  47. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/sync-repos.js +10 -12
  48. package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-init}/scripts/update-gitignore.js +19 -6
  49. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/SKILL.md +16 -16
  50. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/commit-worktrees.js +2 -2
  51. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/find-target-worktree.js +2 -2
  52. package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-push}/scripts/find-workspace-root.js +7 -7
  53. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/push-core.js +18 -0
  54. package/cbb/worktrees/skills/{openspec-push-worktrees → cbb-worktree-push}/scripts/push-worktrees.js +7 -5
  55. package/config/workspace-config.sample.json +18 -0
  56. package/config/workspaces.json +11 -6
  57. package/openspec/.version +6 -6
  58. package/openspec/commands/apply.md +7 -7
  59. package/openspec/commands/archive.md +7 -7
  60. package/openspec/commands/bulk-archive.md +7 -7
  61. package/openspec/commands/continue.md +7 -7
  62. package/openspec/commands/explore.md +7 -7
  63. package/openspec/commands/ff.md +7 -7
  64. package/openspec/commands/new.md +7 -7
  65. package/openspec/commands/onboard.md +7 -7
  66. package/openspec/commands/propose.md +7 -7
  67. package/openspec/commands/sync.md +7 -7
  68. package/openspec/commands/update.md +7 -7
  69. package/openspec/commands/verify.md +7 -7
  70. package/openspec/skills/openspec-apply-change/SKILL.md +187 -187
  71. package/openspec/skills/openspec-archive-change/SKILL.md +181 -181
  72. package/openspec/skills/openspec-bulk-archive-change/SKILL.md +338 -338
  73. package/openspec/skills/openspec-continue-change/SKILL.md +117 -117
  74. package/openspec/skills/openspec-explore/SKILL.md +342 -342
  75. package/openspec/skills/openspec-ff-change/SKILL.md +116 -116
  76. package/openspec/skills/openspec-new-change/SKILL.md +76 -76
  77. package/openspec/skills/openspec-onboard/SKILL.md +560 -560
  78. package/openspec/skills/openspec-propose/SKILL.md +162 -162
  79. package/openspec/skills/openspec-sync-specs/SKILL.md +261 -261
  80. package/openspec/skills/openspec-update-change/SKILL.md +90 -90
  81. package/openspec/skills/openspec-verify-change/SKILL.md +174 -174
  82. package/package.json +4 -3
  83. package/superpowers/.version +6 -6
  84. package/superpowers/skills/brainstorming/SKILL.md +250 -250
  85. package/superpowers/skills/brainstorming/scripts/helper.js +167 -167
  86. package/superpowers/skills/brainstorming/scripts/start-server.sh +209 -209
  87. package/superpowers/skills/brainstorming/scripts/stop-server.sh +120 -120
  88. package/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -49
  89. package/superpowers/skills/brainstorming/visual-companion.md +299 -299
  90. package/superpowers/skills/dispatching-parallel-agents/SKILL.md +167 -167
  91. package/superpowers/skills/executing-plans/SKILL.md +64 -64
  92. package/superpowers/skills/finishing-a-development-branch/SKILL.md +225 -225
  93. package/superpowers/skills/receiving-code-review/SKILL.md +205 -205
  94. package/superpowers/skills/requesting-code-review/SKILL.md +95 -95
  95. package/superpowers/skills/requesting-code-review/code-reviewer.md +181 -181
  96. package/superpowers/skills/subagent-driven-development/SKILL.md +568 -568
  97. package/superpowers/skills/subagent-driven-development/implementer-prompt.md +154 -154
  98. package/superpowers/skills/subagent-driven-development/re-review-prompt.md +115 -115
  99. package/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +207 -207
  100. package/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -119
  101. package/superpowers/skills/systematic-debugging/SKILL.md +283 -283
  102. package/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
  103. package/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -115
  104. package/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -122
  105. package/superpowers/skills/systematic-debugging/find-polluter.sh +72 -72
  106. package/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -169
  107. package/superpowers/skills/systematic-debugging/test-academic.md +14 -14
  108. package/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -58
  109. package/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -68
  110. package/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -69
  111. package/superpowers/skills/test-driven-development/SKILL.md +320 -320
  112. package/superpowers/skills/test-driven-development/writing-good-tests.md +198 -198
  113. package/superpowers/skills/using-git-worktrees/SKILL.md +167 -167
  114. package/superpowers/skills/using-superpowers/SKILL.md +63 -63
  115. package/superpowers/skills/using-superpowers/references/antigravity-tools.md +23 -23
  116. package/superpowers/skills/using-superpowers/references/codex-tools.md +108 -108
  117. package/superpowers/skills/using-superpowers/references/gemini-tools.md +63 -63
  118. package/superpowers/skills/using-superpowers/references/hermes-tools.md +56 -56
  119. package/superpowers/skills/using-superpowers/references/pi-tools.md +16 -16
  120. package/superpowers/skills/verification-before-completion/SKILL.md +120 -120
  121. package/superpowers/skills/writing-plans/SKILL.md +171 -171
  122. package/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -49
  123. package/superpowers/skills/writing-skills/SKILL.md +679 -679
  124. package/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -1150
  125. package/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -189
  126. package/superpowers/skills/writing-skills/persuasion-principles.md +187 -187
  127. package/superpowers/skills/writing-skills/render-graphs.js +169 -169
  128. package/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -384
  129. package/cbb/worktrees/commands/extend.md +0 -65
  130. package/cbb/worktrees/skills/openspec-close-worktree/scripts/find-target-worktree.js +0 -96
  131. package/cbb/worktrees/skills/openspec-extend-worktree/SKILL.md +0 -390
  132. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/check-env.js +0 -95
  133. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/check-repos.js +0 -98
  134. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/create-branches-and-worktrees.js +0 -135
  135. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/install-ai.js +0 -150
  136. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/list-available-apps.js +0 -88
  137. package/cbb/worktrees/skills/openspec-extend-worktree/scripts/sync-repos.js +0 -93
  138. package/cbb/worktrees/skills/openspec-init-worktree/scripts/find-workspace-root.js +0 -67
  139. package/cbb/worktrees/skills/openspec-init-worktree/scripts/generate-app-options.js +0 -93
  140. package/cbb/worktrees/skills/openspec-init-worktree/scripts/push-core.js +0 -136
  141. package/cbb/worktrees/skills/openspec-push-worktrees/scripts/silence-popup.js +0 -23
  142. package/config/config.sample.json +0 -16
  143. /package/cbb/worktrees/skills/{openspec-close-worktree → cbb-worktree-close}/scripts/silence-popup.js +0 -0
  144. /package/cbb/worktrees/skills/{openspec-extend-worktree → cbb-worktree-init}/scripts/silence-popup.js +0 -0
  145. /package/cbb/worktrees/skills/{openspec-init-worktree → cbb-worktree-push}/scripts/silence-popup.js +0 -0
@@ -1,167 +1,167 @@
1
- ---
2
- name: dispatching-parallel-agents
3
- description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
4
- ---
5
-
6
- # Dispatching Parallel Agents
7
-
8
- ## Overview
9
-
10
- You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
11
-
12
- When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
13
-
14
- **Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
15
-
16
- ## When to Use
17
-
18
- ```dot
19
- digraph when_to_use {
20
- "Multiple failures?" [shape=diamond];
21
- "Are they independent?" [shape=diamond];
22
- "Single agent investigates all" [shape=box];
23
- "One agent per problem domain" [shape=box];
24
- "Can they work in parallel?" [shape=diamond];
25
- "Sequential agents" [shape=box];
26
- "Parallel dispatch" [shape=box];
27
-
28
- "Multiple failures?" -> "Are they independent?" [label="yes"];
29
- "Are they independent?" -> "Single agent investigates all" [label="no - related"];
30
- "Are they independent?" -> "Can they work in parallel?" [label="yes"];
31
- "Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
32
- "Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
33
- }
34
- ```
35
-
36
- **Use when:**
37
- - 3+ test files failing with different root causes
38
- - Multiple subsystems broken independently
39
- - Each problem can be understood without context from others
40
- - No shared state between investigations
41
-
42
- **Don't use when:**
43
- - Failures are related (fix one might fix others)
44
- - Need to understand full system state
45
- - Agents would interfere with each other
46
-
47
- ## The Pattern
48
-
49
- ### 1. Identify Independent Domains
50
-
51
- Group failures by what's broken:
52
- - File A tests: Tool approval flow
53
- - File B tests: Batch completion behavior
54
- - File C tests: Abort functionality
55
-
56
- Each domain is independent - fixing tool approval doesn't affect abort tests.
57
-
58
- ### 2. Create Focused Agent Tasks
59
-
60
- Each agent gets:
61
- - **Specific scope:** One test file or subsystem
62
- - **Clear goal:** Make these tests pass
63
- - **Constraints:** Don't change other code
64
- - **Expected output:** Summary of what you found and fixed
65
-
66
- ### 3. Dispatch in Parallel
67
-
68
- Issue all three subagent dispatches in the same response — they run in parallel:
69
-
70
- ```text
71
- Subagent (general-purpose): "Fix agent-tool-abort.test.ts failures"
72
- Subagent (general-purpose): "Fix batch-completion-behavior.test.ts failures"
73
- Subagent (general-purpose): "Fix tool-approval-race-conditions.test.ts failures"
74
- # All three run concurrently.
75
- ```
76
-
77
- Multiple dispatch calls in one response = parallel execution. One per response = sequential.
78
-
79
- ### 4. Review and Integrate
80
-
81
- When agents return:
82
- - Read each summary
83
- - Verify fixes don't conflict
84
- - Run full test suite
85
- - Integrate all changes
86
-
87
- ## Agent Prompt Structure
88
-
89
- Good agent prompts are:
90
- 1. **Focused** - One clear problem domain
91
- 2. **Self-contained** - All context needed to understand the problem
92
- 3. **Specific about output** - What should the agent return?
93
-
94
- ```markdown
95
- Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
96
-
97
- 1. "should abort tool with partial output capture" - expects 'interrupted at' in message
98
- 2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
99
- 3. "should properly track pendingToolCount" - expects 3 results but gets 0
100
-
101
- These are timing/race condition issues. Your task:
102
-
103
- 1. Read the test file and understand what each test verifies
104
- 2. Identify root cause - timing issues or actual bugs?
105
- 3. Fix by:
106
- - Replacing arbitrary timeouts with event-based waiting
107
- - Fixing bugs in abort implementation if found
108
- - Adjusting test expectations if testing changed behavior
109
-
110
- Do NOT just increase timeouts - find the real issue.
111
-
112
- Return: Summary of what you found and what you fixed.
113
- ```
114
-
115
- ## Common Mistakes
116
-
117
- **❌ Too broad:** "Fix all the tests" - agent gets lost
118
- **✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
119
-
120
- **❌ No context:** "Fix the race condition" - agent doesn't know where
121
- **✅ Context:** Paste the error messages and test names
122
-
123
- **❌ No constraints:** Agent might refactor everything
124
- **✅ Constraints:** "Do NOT change production code" or "Fix tests only"
125
-
126
- **❌ Vague output:** "Fix it" - you don't know what changed
127
- **✅ Specific:** "Return summary of root cause and changes"
128
-
129
- ## When NOT to Use
130
-
131
- **Related failures:** Fixing one might fix others - investigate together first
132
- **Need full context:** Understanding requires seeing entire system
133
- **Exploratory debugging:** You don't know what's broken yet
134
- **Shared state:** Agents would interfere (editing same files, using same resources)
135
-
136
- ## Real Example from Session
137
-
138
- **Scenario:** 6 test failures across 3 files after major refactoring
139
-
140
- **Failures:**
141
- - agent-tool-abort.test.ts: 3 failures (timing issues)
142
- - batch-completion-behavior.test.ts: 2 failures (tools not executing)
143
- - tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
144
-
145
- **Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
146
-
147
- **Dispatch:**
148
- ```
149
- Agent 1 → Fix agent-tool-abort.test.ts
150
- Agent 2 → Fix batch-completion-behavior.test.ts
151
- Agent 3 → Fix tool-approval-race-conditions.test.ts
152
- ```
153
-
154
- **Results:**
155
- - Agent 1: Replaced timeouts with event-based waiting
156
- - Agent 2: Fixed event structure bug (threadId in wrong place)
157
- - Agent 3: Added wait for async tool execution to complete
158
-
159
- **Integration:** All fixes independent, no conflicts, full suite green
160
-
161
- ## Verification
162
-
163
- After agents return:
164
- 1. **Review each summary** - Understand what changed
165
- 2. **Check for conflicts** - Did agents edit same code?
166
- 3. **Run full suite** - Verify all fixes work together
167
- 4. **Spot check** - Agents can make systematic errors
1
+ ---
2
+ name: dispatching-parallel-agents
3
+ description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
4
+ ---
5
+
6
+ # Dispatching Parallel Agents
7
+
8
+ ## Overview
9
+
10
+ You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
11
+
12
+ When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
13
+
14
+ **Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
15
+
16
+ ## When to Use
17
+
18
+ ```dot
19
+ digraph when_to_use {
20
+ "Multiple failures?" [shape=diamond];
21
+ "Are they independent?" [shape=diamond];
22
+ "Single agent investigates all" [shape=box];
23
+ "One agent per problem domain" [shape=box];
24
+ "Can they work in parallel?" [shape=diamond];
25
+ "Sequential agents" [shape=box];
26
+ "Parallel dispatch" [shape=box];
27
+
28
+ "Multiple failures?" -> "Are they independent?" [label="yes"];
29
+ "Are they independent?" -> "Single agent investigates all" [label="no - related"];
30
+ "Are they independent?" -> "Can they work in parallel?" [label="yes"];
31
+ "Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
32
+ "Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
33
+ }
34
+ ```
35
+
36
+ **Use when:**
37
+ - 3+ test files failing with different root causes
38
+ - Multiple subsystems broken independently
39
+ - Each problem can be understood without context from others
40
+ - No shared state between investigations
41
+
42
+ **Don't use when:**
43
+ - Failures are related (fix one might fix others)
44
+ - Need to understand full system state
45
+ - Agents would interfere with each other
46
+
47
+ ## The Pattern
48
+
49
+ ### 1. Identify Independent Domains
50
+
51
+ Group failures by what's broken:
52
+ - File A tests: Tool approval flow
53
+ - File B tests: Batch completion behavior
54
+ - File C tests: Abort functionality
55
+
56
+ Each domain is independent - fixing tool approval doesn't affect abort tests.
57
+
58
+ ### 2. Create Focused Agent Tasks
59
+
60
+ Each agent gets:
61
+ - **Specific scope:** One test file or subsystem
62
+ - **Clear goal:** Make these tests pass
63
+ - **Constraints:** Don't change other code
64
+ - **Expected output:** Summary of what you found and fixed
65
+
66
+ ### 3. Dispatch in Parallel
67
+
68
+ Issue all three subagent dispatches in the same response — they run in parallel:
69
+
70
+ ```text
71
+ Subagent (general-purpose): "Fix agent-tool-abort.test.ts failures"
72
+ Subagent (general-purpose): "Fix batch-completion-behavior.test.ts failures"
73
+ Subagent (general-purpose): "Fix tool-approval-race-conditions.test.ts failures"
74
+ # All three run concurrently.
75
+ ```
76
+
77
+ Multiple dispatch calls in one response = parallel execution. One per response = sequential.
78
+
79
+ ### 4. Review and Integrate
80
+
81
+ When agents return:
82
+ - Read each summary
83
+ - Verify fixes don't conflict
84
+ - Run full test suite
85
+ - Integrate all changes
86
+
87
+ ## Agent Prompt Structure
88
+
89
+ Good agent prompts are:
90
+ 1. **Focused** - One clear problem domain
91
+ 2. **Self-contained** - All context needed to understand the problem
92
+ 3. **Specific about output** - What should the agent return?
93
+
94
+ ```markdown
95
+ Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
96
+
97
+ 1. "should abort tool with partial output capture" - expects 'interrupted at' in message
98
+ 2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
99
+ 3. "should properly track pendingToolCount" - expects 3 results but gets 0
100
+
101
+ These are timing/race condition issues. Your task:
102
+
103
+ 1. Read the test file and understand what each test verifies
104
+ 2. Identify root cause - timing issues or actual bugs?
105
+ 3. Fix by:
106
+ - Replacing arbitrary timeouts with event-based waiting
107
+ - Fixing bugs in abort implementation if found
108
+ - Adjusting test expectations if testing changed behavior
109
+
110
+ Do NOT just increase timeouts - find the real issue.
111
+
112
+ Return: Summary of what you found and what you fixed.
113
+ ```
114
+
115
+ ## Common Mistakes
116
+
117
+ **❌ Too broad:** "Fix all the tests" - agent gets lost
118
+ **✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
119
+
120
+ **❌ No context:** "Fix the race condition" - agent doesn't know where
121
+ **✅ Context:** Paste the error messages and test names
122
+
123
+ **❌ No constraints:** Agent might refactor everything
124
+ **✅ Constraints:** "Do NOT change production code" or "Fix tests only"
125
+
126
+ **❌ Vague output:** "Fix it" - you don't know what changed
127
+ **✅ Specific:** "Return summary of root cause and changes"
128
+
129
+ ## When NOT to Use
130
+
131
+ **Related failures:** Fixing one might fix others - investigate together first
132
+ **Need full context:** Understanding requires seeing entire system
133
+ **Exploratory debugging:** You don't know what's broken yet
134
+ **Shared state:** Agents would interfere (editing same files, using same resources)
135
+
136
+ ## Real Example from Session
137
+
138
+ **Scenario:** 6 test failures across 3 files after major refactoring
139
+
140
+ **Failures:**
141
+ - agent-tool-abort.test.ts: 3 failures (timing issues)
142
+ - batch-completion-behavior.test.ts: 2 failures (tools not executing)
143
+ - tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
144
+
145
+ **Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
146
+
147
+ **Dispatch:**
148
+ ```
149
+ Agent 1 → Fix agent-tool-abort.test.ts
150
+ Agent 2 → Fix batch-completion-behavior.test.ts
151
+ Agent 3 → Fix tool-approval-race-conditions.test.ts
152
+ ```
153
+
154
+ **Results:**
155
+ - Agent 1: Replaced timeouts with event-based waiting
156
+ - Agent 2: Fixed event structure bug (threadId in wrong place)
157
+ - Agent 3: Added wait for async tool execution to complete
158
+
159
+ **Integration:** All fixes independent, no conflicts, full suite green
160
+
161
+ ## Verification
162
+
163
+ After agents return:
164
+ 1. **Review each summary** - Understand what changed
165
+ 2. **Check for conflicts** - Did agents edit same code?
166
+ 3. **Run full suite** - Verify all fixes work together
167
+ 4. **Spot check** - Agents can make systematic errors
@@ -1,64 +1,64 @@
1
- ---
2
- name: executing-plans
3
- description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
4
- ---
5
-
6
- # Executing Plans
7
-
8
- ## Overview
9
-
10
- Load plan, review critically, execute all tasks, report when complete.
11
-
12
- **Announce at start:** "I'm using the executing-plans skill to implement this plan."
13
-
14
- **Note:** Tell your human partner that Superpowers works much better with access to subagents (Claude Code, Codex CLI, Codex App, Copilot CLI, and Gemini CLI all qualify; see the per-platform tool refs in `../using-superpowers/references/`). If subagents are available, use superpowers:subagent-driven-development instead of this skill.
15
-
16
- ## The Process
17
-
18
- ### Step 1: Load and Review Plan
19
- 1. Ensure an isolated workspace: use superpowers:using-git-worktrees to create one or verify the existing one
20
- 2. Read plan file
21
- 3. Review critically - identify any questions or concerns about the plan
22
- 4. If concerns: Raise them with your human partner before starting
23
- 5. If no concerns: Create todos for the plan items and proceed
24
-
25
- ### Step 2: Execute Tasks
26
-
27
- For each task:
28
- 1. Mark as in_progress
29
- 2. Follow each step exactly (plan has bite-sized steps)
30
- 3. Run verifications as specified
31
- 4. Mark as completed
32
-
33
- ### Step 3: Complete Development
34
-
35
- After all tasks complete and verified:
36
- - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
37
- - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
38
- - Follow that skill to verify tests, present options, execute choice
39
-
40
- ## When to Stop and Ask for Help
41
-
42
- **STOP executing immediately when:**
43
- - Hit a blocker (missing dependency, test fails, instruction unclear)
44
- - Plan has critical gaps preventing starting
45
- - You don't understand an instruction
46
- - Verification fails repeatedly
47
-
48
- **Ask for clarification rather than guessing.**
49
-
50
- ## When to Revisit Earlier Steps
51
-
52
- **Return to Review (Step 1) when:**
53
- - Partner updates the plan based on your feedback
54
- - Fundamental approach needs rethinking
55
-
56
- **Don't force through blockers** - stop and ask.
57
-
58
- ## Remember
59
- - Review plan critically first
60
- - Follow plan steps exactly
61
- - Don't skip verifications
62
- - Reference skills when plan says to
63
- - Stop when blocked, don't guess
64
- - Never start implementation on main/master branch without explicit user consent
1
+ ---
2
+ name: executing-plans
3
+ description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
4
+ ---
5
+
6
+ # Executing Plans
7
+
8
+ ## Overview
9
+
10
+ Load plan, review critically, execute all tasks, report when complete.
11
+
12
+ **Announce at start:** "I'm using the executing-plans skill to implement this plan."
13
+
14
+ **Note:** Tell your human partner that Superpowers works much better with access to subagents (Claude Code, Codex CLI, Codex App, Copilot CLI, and Gemini CLI all qualify; see the per-platform tool refs in `../using-superpowers/references/`). If subagents are available, use superpowers:subagent-driven-development instead of this skill.
15
+
16
+ ## The Process
17
+
18
+ ### Step 1: Load and Review Plan
19
+ 1. Ensure an isolated workspace: use superpowers:using-git-worktrees to create one or verify the existing one
20
+ 2. Read plan file
21
+ 3. Review critically - identify any questions or concerns about the plan
22
+ 4. If concerns: Raise them with your human partner before starting
23
+ 5. If no concerns: Create todos for the plan items and proceed
24
+
25
+ ### Step 2: Execute Tasks
26
+
27
+ For each task:
28
+ 1. Mark as in_progress
29
+ 2. Follow each step exactly (plan has bite-sized steps)
30
+ 3. Run verifications as specified
31
+ 4. Mark as completed
32
+
33
+ ### Step 3: Complete Development
34
+
35
+ After all tasks complete and verified:
36
+ - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
37
+ - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
38
+ - Follow that skill to verify tests, present options, execute choice
39
+
40
+ ## When to Stop and Ask for Help
41
+
42
+ **STOP executing immediately when:**
43
+ - Hit a blocker (missing dependency, test fails, instruction unclear)
44
+ - Plan has critical gaps preventing starting
45
+ - You don't understand an instruction
46
+ - Verification fails repeatedly
47
+
48
+ **Ask for clarification rather than guessing.**
49
+
50
+ ## When to Revisit Earlier Steps
51
+
52
+ **Return to Review (Step 1) when:**
53
+ - Partner updates the plan based on your feedback
54
+ - Fundamental approach needs rethinking
55
+
56
+ **Don't force through blockers** - stop and ask.
57
+
58
+ ## Remember
59
+ - Review plan critically first
60
+ - Follow plan steps exactly
61
+ - Don't skip verifications
62
+ - Reference skills when plan says to
63
+ - Stop when blocked, don't guess
64
+ - Never start implementation on main/master branch without explicit user consent