@brainervirus/workit-opencode 0.6.0 → 0.7.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 (83) hide show
  1. package/assets/commands/wk-changelog.md +2 -0
  2. package/assets/commands/wk-commit.md +2 -0
  3. package/assets/commands/wk-docs-refresh.md +2 -0
  4. package/assets/commands/wk-handoff.md +2 -0
  5. package/assets/commands/wk-implement.md +2 -0
  6. package/assets/commands/wk-init.md +2 -0
  7. package/assets/commands/wk-issue-update.md +2 -0
  8. package/assets/commands/wk-meetings.md +2 -0
  9. package/assets/commands/wk-pr.md +2 -0
  10. package/assets/commands/wk-release-notes.md +2 -0
  11. package/assets/commands/wk-status.md +2 -0
  12. package/assets/commands/wk-verify.md +2 -0
  13. package/assets/skills/wk-changelog/SKILL.md +15 -0
  14. package/assets/skills/wk-commit/SKILL.md +16 -0
  15. package/assets/skills/wk-docs-refresh/SKILL.md +15 -0
  16. package/assets/skills/wk-handoff/SKILL.md +17 -0
  17. package/assets/skills/wk-implement/SKILL.md +41 -0
  18. package/assets/skills/wk-init/SKILL.md +31 -0
  19. package/assets/skills/wk-issue-update/SKILL.md +27 -0
  20. package/assets/skills/wk-issue-update/references/youtrack-update-style.md +81 -0
  21. package/assets/skills/wk-meetings/SKILL.md +17 -0
  22. package/assets/skills/wk-pr/SKILL.md +27 -0
  23. package/assets/skills/wk-release-notes/SKILL.md +15 -0
  24. package/assets/skills/wk-status/SKILL.md +16 -0
  25. package/assets/skills/wk-verify/SKILL.md +16 -0
  26. package/assets/templates/execution-contract.md +58 -0
  27. package/assets/templates/greeting.md +1 -0
  28. package/assets/templates/headers.md +3 -0
  29. package/assets/templates/hygiene/.editorconfig +8 -0
  30. package/assets/templates/hygiene/.gitattributes +3 -0
  31. package/assets/templates/hygiene/CHANGELOG.md +14 -0
  32. package/assets/templates/hygiene/CONTRIBUTING.md +3 -0
  33. package/assets/templates/hygiene/LICENSE +21 -0
  34. package/assets/templates/hygiene/README.md +3 -0
  35. package/assets/templates/issue-update.md +6 -0
  36. package/assets/templates/plan-template.md +25 -0
  37. package/assets/templates/spec-template.md +51 -0
  38. package/assets/templates/superpowers-doc-contract.md +70 -0
  39. package/assets/vendor/superpowers/skills/brainstorming/SKILL.md +159 -0
  40. package/assets/vendor/superpowers/skills/brainstorming/scripts/frame-template.html +213 -0
  41. package/assets/vendor/superpowers/skills/brainstorming/scripts/helper.js +167 -0
  42. package/assets/vendor/superpowers/skills/brainstorming/scripts/server.cjs +723 -0
  43. package/assets/vendor/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  44. package/assets/vendor/superpowers/skills/brainstorming/visual-companion.md +222 -0
  45. package/assets/vendor/superpowers/skills/dispatching-parallel-agents/SKILL.md +185 -0
  46. package/assets/vendor/superpowers/skills/executing-plans/SKILL.md +70 -0
  47. package/assets/vendor/superpowers/skills/finishing-a-development-branch/SKILL.md +241 -0
  48. package/assets/vendor/superpowers/skills/receiving-code-review/SKILL.md +213 -0
  49. package/assets/vendor/superpowers/skills/requesting-code-review/SKILL.md +103 -0
  50. package/assets/vendor/superpowers/skills/requesting-code-review/code-reviewer.md +172 -0
  51. package/assets/vendor/superpowers/skills/subagent-driven-development/SKILL.md +418 -0
  52. package/assets/vendor/superpowers/skills/subagent-driven-development/implementer-prompt.md +139 -0
  53. package/assets/vendor/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +188 -0
  54. package/assets/vendor/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  55. package/assets/vendor/superpowers/skills/systematic-debugging/SKILL.md +296 -0
  56. package/assets/vendor/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  57. package/assets/vendor/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  58. package/assets/vendor/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  59. package/assets/vendor/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  60. package/assets/vendor/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  61. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  62. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  63. package/assets/vendor/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  64. package/assets/vendor/superpowers/skills/test-driven-development/SKILL.md +371 -0
  65. package/assets/vendor/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  66. package/assets/vendor/superpowers/skills/using-git-worktrees/SKILL.md +202 -0
  67. package/assets/vendor/superpowers/skills/using-superpowers/SKILL.md +62 -0
  68. package/assets/vendor/superpowers/skills/using-superpowers/references/antigravity-tools.md +23 -0
  69. package/assets/vendor/superpowers/skills/using-superpowers/references/codex-tools.md +39 -0
  70. package/assets/vendor/superpowers/skills/using-superpowers/references/pi-tools.md +16 -0
  71. package/assets/vendor/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  72. package/assets/vendor/superpowers/skills/writing-plans/SKILL.md +174 -0
  73. package/assets/vendor/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  74. package/assets/vendor/superpowers/skills/writing-skills/SKILL.md +689 -0
  75. package/assets/vendor/superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  76. package/assets/vendor/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  77. package/assets/vendor/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  78. package/assets/vendor/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  79. package/assets/vendor/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  80. package/dist/plugin.js +9046 -0
  81. package/package.json +17 -13
  82. package/src/bootstrap.ts +0 -65
  83. package/src/plugin.ts +0 -224
@@ -0,0 +1,49 @@
1
+ # Spec Document Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a spec document reviewer subagent.
4
+
5
+ **Purpose:** Verify the spec is complete, consistent, and ready for implementation planning.
6
+
7
+ **Dispatch after:** Spec document is written to docs/<slug>/
8
+
9
+ ```
10
+ Subagent (general-purpose):
11
+ description: "Review spec document"
12
+ prompt: |
13
+ You are a spec document reviewer. Verify this spec is complete and ready for planning.
14
+
15
+ **Spec to review:** [SPEC_FILE_PATH]
16
+
17
+ ## What to Check
18
+
19
+ | Category | What to Look For |
20
+ |----------|------------------|
21
+ | Completeness | TODOs, placeholders, "TBD", incomplete sections |
22
+ | Consistency | Internal contradictions, conflicting requirements |
23
+ | Clarity | Requirements ambiguous enough to cause someone to build the wrong thing |
24
+ | Scope | Focused enough for a single plan — not covering multiple independent subsystems |
25
+ | YAGNI | Unrequested features, over-engineering |
26
+
27
+ ## Calibration
28
+
29
+ **Only flag issues that would cause real problems during implementation planning.**
30
+ A missing section, a contradiction, or a requirement so ambiguous it could be
31
+ interpreted two different ways — those are issues. Minor wording improvements,
32
+ stylistic preferences, and "sections less detailed than others" are not.
33
+
34
+ Approve unless there are serious gaps that would lead to a flawed plan.
35
+
36
+ ## Output Format
37
+
38
+ ## Spec Review
39
+
40
+ **Status:** Approved | Issues Found
41
+
42
+ **Issues (if any):**
43
+ - [Section X]: [specific issue] - [why it matters for planning]
44
+
45
+ **Recommendations (advisory, do not block approval):**
46
+ - [suggestions for improvement]
47
+ ```
48
+
49
+ **Reviewer returns:** Status, Issues (if any), Recommendations
@@ -0,0 +1,222 @@
1
+ # Visual Companion Guide
2
+
3
+ Browser-based visual brainstorming companion for showing mockups, diagrams, and options.
4
+
5
+ ## When to Use
6
+
7
+ Decide per-question, not per-session. The test: **would the user understand this better by seeing it than reading it?**
8
+
9
+ **Use the browser** when the content itself is visual:
10
+
11
+ - **UI mockups** — wireframes, layouts, navigation structures, component designs
12
+ - **Architecture diagrams** — system components, data flow, relationship maps
13
+ - **Side-by-side visual comparisons** — comparing two layouts, two color schemes, two design directions
14
+ - **Design polish** — when the question is about look and feel, spacing, visual hierarchy
15
+ - **Spatial relationships** — state machines, flowcharts, entity relationships rendered as diagrams
16
+
17
+ **Use the terminal** when the content is text or tabular:
18
+
19
+ - **Requirements and scope questions** — "what does X mean?", "which features are in scope?"
20
+ - **Conceptual A/B/C choices** — picking between approaches described in words
21
+ - **Tradeoff lists** — pros/cons, comparison tables
22
+ - **Technical decisions** — API design, data modeling, architectural approach selection
23
+ - **Clarifying questions** — anything where the answer is words, not a visual preference
24
+
25
+ A question *about* a UI topic is not automatically a visual question. "What kind of wizard do you want?" is conceptual — use the terminal. "Which of these wizard layouts feels right?" is visual — use the browser.
26
+
27
+ ## How It Works
28
+
29
+ The server watches a directory for HTML files and serves the newest one to the browser. You write HTML content to `screen_dir`, the user sees it in their browser and can click to select options. Selections are recorded to `state_dir/events` that you read on your next turn.
30
+
31
+ **Content fragments vs full documents:** If your HTML file starts with `<!DOCTYPE` or `<html`, the server serves it as-is (just injects the helper script). Otherwise, the server automatically wraps your content in the frame template — adding the header, CSS theme, connection status, and all interactive infrastructure. **Write content fragments by default.** Only write full documents when you need complete control over the page.
32
+
33
+ The packaged browser-companion runtime is not shipped with this package; its
34
+ launcher scripts are excluded as vendored shell. Consult the upstream skill
35
+ source for launch instructions.
36
+
37
+ ## The Loop
38
+
39
+ 1. **Check server is alive**, then **write HTML** to a new file in `screen_dir`:
40
+ - **Required: confirm the server is alive before referring to the URL or pushing a screen.** Check that `$STATE_DIR/server-info` exists and `$STATE_DIR/server-stopped` does not. The server auto-exits after 4 hours idle (configurable with `--idle-timeout-minutes`).
41
+ - Use semantic filenames: `platform.html`, `visual-style.html`, `layout.html`
42
+ - **Never reuse filenames** — each screen gets a fresh file
43
+ - Use your file-creation tool — **never use cat/heredoc** (dumps noise into terminal)
44
+ - Server automatically serves the newest file
45
+
46
+ 2. **Tell user what to expect and end your turn:**
47
+ - Remind them of the URL (every step, not just first)
48
+ - Give a brief text summary of what's on screen (e.g., "Showing 3 layout options for the homepage")
49
+ - Ask them to respond in the terminal: "Take a look and let me know what you think. Click to select an option if you'd like."
50
+
51
+ 3. **On your next turn** — after the user responds in the terminal:
52
+ - Read `$STATE_DIR/events` if it exists — this contains the user's browser interactions (clicks, selections) as JSON lines
53
+ - Merge with the user's terminal text to get the full picture
54
+ - The terminal message is the primary feedback; `state_dir/events` provides structured interaction data
55
+
56
+ 4. **Iterate or advance** — if feedback changes current screen, write a new file (e.g., `layout-v2.html`). Only move to the next question when the current step is validated.
57
+
58
+ 5. **Unload when returning to terminal** — when the next step doesn't need the browser (e.g., a clarifying question, a tradeoff discussion), push a waiting screen to clear the stale content:
59
+
60
+ ```html
61
+ <!-- filename: waiting.html (or waiting-2.html, etc.) -->
62
+ <div style="display:flex;align-items:center;justify-content:center;min-height:60vh">
63
+ <p class="subtitle">Continuing in terminal...</p>
64
+ </div>
65
+ ```
66
+
67
+ This prevents the user from staring at a resolved choice while the conversation has moved on. When the next visual question comes up, push a new content file as usual.
68
+
69
+ 6. Repeat until done.
70
+
71
+ ## Writing Content Fragments
72
+
73
+ Write just the content that goes inside the page. The server wraps it in the frame template automatically (header, theme CSS, connection status, and all interactive infrastructure).
74
+
75
+ **Minimal example:**
76
+
77
+ ```html
78
+ <h2>Which layout works better?</h2>
79
+ <p class="subtitle">Consider readability and visual hierarchy</p>
80
+
81
+ <div class="options">
82
+ <div class="option" data-choice="a" onclick="toggleSelect(this)">
83
+ <div class="letter">A</div>
84
+ <div class="content">
85
+ <h3>Single Column</h3>
86
+ <p>Clean, focused reading experience</p>
87
+ </div>
88
+ </div>
89
+ <div class="option" data-choice="b" onclick="toggleSelect(this)">
90
+ <div class="letter">B</div>
91
+ <div class="content">
92
+ <h3>Two Column</h3>
93
+ <p>Sidebar navigation with main content</p>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ ```
98
+
99
+ That's it. No `<html>`, no CSS, no `<script>` tags needed. The server provides all of that.
100
+
101
+ ## CSS Classes Available
102
+
103
+ The frame template provides these CSS classes for your content:
104
+
105
+ ### Options (A/B/C choices)
106
+
107
+ ```html
108
+ <div class="options">
109
+ <div class="option" data-choice="a" onclick="toggleSelect(this)">
110
+ <div class="letter">A</div>
111
+ <div class="content">
112
+ <h3>Title</h3>
113
+ <p>Description</p>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ ```
118
+
119
+ **Multi-select:** Add `data-multiselect` to the container to let users select multiple options. Each click toggles the item's selected styling.
120
+
121
+ ```html
122
+ <div class="options" data-multiselect>
123
+ <!-- same option markup — users can select/deselect multiple -->
124
+ </div>
125
+ ```
126
+
127
+ ### Cards (visual designs)
128
+
129
+ ```html
130
+ <div class="cards">
131
+ <div class="card" data-choice="design1" onclick="toggleSelect(this)">
132
+ <div class="card-image"><!-- mockup content --></div>
133
+ <div class="card-body">
134
+ <h3>Name</h3>
135
+ <p>Description</p>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ ```
140
+
141
+ ### Mockup container
142
+
143
+ ```html
144
+ <div class="mockup">
145
+ <div class="mockup-header">Preview: Dashboard Layout</div>
146
+ <div class="mockup-body"><!-- your mockup HTML --></div>
147
+ </div>
148
+ ```
149
+
150
+ ### Split view (side-by-side)
151
+
152
+ ```html
153
+ <div class="split">
154
+ <div class="mockup"><!-- left --></div>
155
+ <div class="mockup"><!-- right --></div>
156
+ </div>
157
+ ```
158
+
159
+ ### Pros/Cons
160
+
161
+ ```html
162
+ <div class="pros-cons">
163
+ <div class="pros"><h4>Pros</h4><ul><li>Benefit</li></ul></div>
164
+ <div class="cons"><h4>Cons</h4><ul><li>Drawback</li></ul></div>
165
+ </div>
166
+ ```
167
+
168
+ ### Mock elements (wireframe building blocks)
169
+
170
+ ```html
171
+ <div class="mock-nav">Logo | Home | About | Contact</div>
172
+ <div style="display: flex;">
173
+ <div class="mock-sidebar">Navigation</div>
174
+ <div class="mock-content">Main content area</div>
175
+ </div>
176
+ <button class="mock-button">Action Button</button>
177
+ <input class="mock-input" placeholder="Input field">
178
+ <div class="placeholder">Placeholder area</div>
179
+ ```
180
+
181
+ ### Typography and sections
182
+
183
+ - `h2` — page title
184
+ - `h3` — section heading
185
+ - `.subtitle` — secondary text below title
186
+ - `.section` — content block with bottom margin
187
+ - `.label` — small uppercase label text
188
+
189
+ ## Browser Events Format
190
+
191
+ When the user clicks options in the browser, their interactions are recorded to `$STATE_DIR/events` (one JSON object per line). The file is cleared automatically when you push a new screen.
192
+
193
+ ```jsonl
194
+ {"type":"click","choice":"a","text":"Option A - Simple Layout","timestamp":1706000101}
195
+ {"type":"click","choice":"c","text":"Option C - Complex Grid","timestamp":1706000108}
196
+ {"type":"click","choice":"b","text":"Option B - Hybrid","timestamp":1706000115}
197
+ ```
198
+
199
+ The full event stream shows the user's exploration path — they may click multiple options before settling. The last `choice` event is typically the final selection, but the pattern of clicks can reveal hesitation or preferences worth asking about.
200
+
201
+ If `$STATE_DIR/events` doesn't exist, the user didn't interact with the browser — use only their terminal text.
202
+
203
+ ## Design Tips
204
+
205
+ - **Scale fidelity to the question** — wireframes for layout, polish for polish questions
206
+ - **Explain the question on each page** — "Which layout feels more professional?" not just "Pick one"
207
+ - **Iterate before advancing** — if feedback changes current screen, write a new version
208
+ - **2-4 options max** per screen
209
+ - **Use real content when it matters** — for a photography portfolio, use actual images (Unsplash). Placeholder content obscures design issues.
210
+ - **Keep mockups simple** — focus on layout and structure, not pixel-perfect design
211
+
212
+ ## File Naming
213
+
214
+ - Use semantic names: `platform.html`, `visual-style.html`, `layout.html`
215
+ - Never reuse filenames — each screen must be a new file
216
+ - For iterations: append version suffix like `layout-v2.html`, `layout-v3.html`
217
+ - Server serves newest file by modification time
218
+
219
+ ## Reference
220
+
221
+ - Frame template (CSS reference): `scripts/frame-template.html`
222
+ - Helper script (client-side): `scripts/helper.js`
@@ -0,0 +1,185 @@
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
+ **Time saved:** 3 problems solved in parallel vs sequentially
162
+
163
+ ## Key Benefits
164
+
165
+ 1. **Parallelization** - Multiple investigations happen simultaneously
166
+ 2. **Focus** - Each agent has narrow scope, less context to track
167
+ 3. **Independence** - Agents don't interfere with each other
168
+ 4. **Speed** - 3 problems solved in time of 1
169
+
170
+ ## Verification
171
+
172
+ After agents return:
173
+ 1. **Review each summary** - Understand what changed
174
+ 2. **Check for conflicts** - Did agents edit same code?
175
+ 3. **Run full suite** - Verify all fixes work together
176
+ 4. **Spot check** - Agents can make systematic errors
177
+
178
+ ## Real-World Impact
179
+
180
+ From debugging session (2025-10-03):
181
+ - 6 failures across 3 files
182
+ - 3 agents dispatched in parallel
183
+ - All investigations completed concurrently
184
+ - All fixes integrated successfully
185
+ - Zero conflicts between agent changes
@@ -0,0 +1,70 @@
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. The quality of its work will be significantly higher if run on a platform with subagent support (Claude Code, Codex CLI, Codex App, and Copilot 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. Read plan file
20
+ 2. Review critically - identify any questions or concerns about the plan
21
+ 3. If concerns: Raise them with your human partner before starting
22
+ 4. If no concerns: Create todos for the plan items and proceed
23
+
24
+ ### Step 2: Execute Tasks
25
+
26
+ For each task:
27
+ 1. Mark as in_progress
28
+ 2. Follow each step exactly (plan has bite-sized steps)
29
+ 3. Run verifications as specified
30
+ 4. Mark as completed
31
+
32
+ ### Step 3: Complete Development
33
+
34
+ After all tasks complete and verified:
35
+ - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
36
+ - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
37
+ - Follow that skill to verify tests, present options, execute choice
38
+
39
+ ## When to Stop and Ask for Help
40
+
41
+ **STOP executing immediately when:**
42
+ - Hit a blocker (missing dependency, test fails, instruction unclear)
43
+ - Plan has critical gaps preventing starting
44
+ - You don't understand an instruction
45
+ - Verification fails repeatedly
46
+
47
+ **Ask for clarification rather than guessing.**
48
+
49
+ ## When to Revisit Earlier Steps
50
+
51
+ **Return to Review (Step 1) when:**
52
+ - Partner updates the plan based on your feedback
53
+ - Fundamental approach needs rethinking
54
+
55
+ **Don't force through blockers** - stop and ask.
56
+
57
+ ## Remember
58
+ - Review plan critically first
59
+ - Follow plan steps exactly
60
+ - Don't skip verifications
61
+ - Reference skills when plan says to
62
+ - Stop when blocked, don't guess
63
+ - Never start implementation on main/master branch without explicit user consent
64
+
65
+ ## Integration
66
+
67
+ **Required workflow skills:**
68
+ - **superpowers:using-git-worktrees** - Ensures isolated workspace (creates one or verifies existing)
69
+ - **superpowers:writing-plans** - Creates the plan this skill executes
70
+ - **superpowers:finishing-a-development-branch** - Complete development after all tasks