@protolabsai/proto 0.14.0

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 (85) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +286 -0
  3. package/dist/bundled/adversarial-verification/SKILL.md +98 -0
  4. package/dist/bundled/brainstorming/SKILL.md +171 -0
  5. package/dist/bundled/coding-agent-standards/SKILL.md +67 -0
  6. package/dist/bundled/dispatching-parallel-agents/SKILL.md +193 -0
  7. package/dist/bundled/executing-plans/SKILL.md +77 -0
  8. package/dist/bundled/finishing-a-development-branch/SKILL.md +213 -0
  9. package/dist/bundled/loop/SKILL.md +61 -0
  10. package/dist/bundled/qc-helper/SKILL.md +151 -0
  11. package/dist/bundled/qc-helper/docs/_meta.ts +30 -0
  12. package/dist/bundled/qc-helper/docs/common-workflow.md +571 -0
  13. package/dist/bundled/qc-helper/docs/configuration/_meta.ts +10 -0
  14. package/dist/bundled/qc-helper/docs/configuration/auth.md +366 -0
  15. package/dist/bundled/qc-helper/docs/configuration/memory.md +0 -0
  16. package/dist/bundled/qc-helper/docs/configuration/model-providers.md +542 -0
  17. package/dist/bundled/qc-helper/docs/configuration/qwen-ignore.md +55 -0
  18. package/dist/bundled/qc-helper/docs/configuration/settings.md +652 -0
  19. package/dist/bundled/qc-helper/docs/configuration/themes.md +160 -0
  20. package/dist/bundled/qc-helper/docs/configuration/trusted-folders.md +61 -0
  21. package/dist/bundled/qc-helper/docs/extension/_meta.ts +9 -0
  22. package/dist/bundled/qc-helper/docs/extension/extension-releasing.md +121 -0
  23. package/dist/bundled/qc-helper/docs/extension/getting-started-extensions.md +299 -0
  24. package/dist/bundled/qc-helper/docs/extension/introduction.md +303 -0
  25. package/dist/bundled/qc-helper/docs/features/_meta.ts +18 -0
  26. package/dist/bundled/qc-helper/docs/features/approval-mode.md +263 -0
  27. package/dist/bundled/qc-helper/docs/features/arena.md +218 -0
  28. package/dist/bundled/qc-helper/docs/features/checkpointing.md +77 -0
  29. package/dist/bundled/qc-helper/docs/features/commands.md +312 -0
  30. package/dist/bundled/qc-helper/docs/features/headless.md +318 -0
  31. package/dist/bundled/qc-helper/docs/features/hooks.md +343 -0
  32. package/dist/bundled/qc-helper/docs/features/language.md +139 -0
  33. package/dist/bundled/qc-helper/docs/features/lsp.md +453 -0
  34. package/dist/bundled/qc-helper/docs/features/mcp.md +281 -0
  35. package/dist/bundled/qc-helper/docs/features/sandbox.md +241 -0
  36. package/dist/bundled/qc-helper/docs/features/scheduled-tasks.md +139 -0
  37. package/dist/bundled/qc-helper/docs/features/skills.md +289 -0
  38. package/dist/bundled/qc-helper/docs/features/sub-agents.md +307 -0
  39. package/dist/bundled/qc-helper/docs/features/token-caching.md +29 -0
  40. package/dist/bundled/qc-helper/docs/ide-integration/_meta.ts +4 -0
  41. package/dist/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +182 -0
  42. package/dist/bundled/qc-helper/docs/ide-integration/ide-integration.md +144 -0
  43. package/dist/bundled/qc-helper/docs/integration-github-action.md +241 -0
  44. package/dist/bundled/qc-helper/docs/integration-jetbrains.md +81 -0
  45. package/dist/bundled/qc-helper/docs/integration-vscode.md +39 -0
  46. package/dist/bundled/qc-helper/docs/integration-zed.md +72 -0
  47. package/dist/bundled/qc-helper/docs/overview.md +64 -0
  48. package/dist/bundled/qc-helper/docs/quickstart.md +273 -0
  49. package/dist/bundled/qc-helper/docs/reference/_meta.ts +4 -0
  50. package/dist/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +72 -0
  51. package/dist/bundled/qc-helper/docs/reference/sdk-api.md +524 -0
  52. package/dist/bundled/qc-helper/docs/support/Uninstall.md +42 -0
  53. package/dist/bundled/qc-helper/docs/support/_meta.ts +6 -0
  54. package/dist/bundled/qc-helper/docs/support/tos-privacy.md +112 -0
  55. package/dist/bundled/qc-helper/docs/support/troubleshooting.md +123 -0
  56. package/dist/bundled/receiving-code-review/SKILL.md +226 -0
  57. package/dist/bundled/requesting-code-review/SKILL.md +115 -0
  58. package/dist/bundled/review/SKILL.md +123 -0
  59. package/dist/bundled/subagent-driven-development/SKILL.md +292 -0
  60. package/dist/bundled/subagent-driven-development/code-quality-reviewer-prompt.md +27 -0
  61. package/dist/bundled/subagent-driven-development/implementer-prompt.md +113 -0
  62. package/dist/bundled/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  63. package/dist/bundled/systematic-debugging/SKILL.md +305 -0
  64. package/dist/bundled/test-driven-development/SKILL.md +396 -0
  65. package/dist/bundled/using-git-worktrees/SKILL.md +223 -0
  66. package/dist/bundled/using-superpowers/SKILL.md +117 -0
  67. package/dist/bundled/verification-before-completion/SKILL.md +147 -0
  68. package/dist/bundled/writing-plans/SKILL.md +159 -0
  69. package/dist/bundled/writing-skills/SKILL.md +716 -0
  70. package/dist/cli.js +483432 -0
  71. package/dist/sandbox-macos-permissive-closed.sb +32 -0
  72. package/dist/sandbox-macos-permissive-open.sb +27 -0
  73. package/dist/sandbox-macos-permissive-proxied.sb +37 -0
  74. package/dist/sandbox-macos-restrictive-closed.sb +93 -0
  75. package/dist/sandbox-macos-restrictive-open.sb +96 -0
  76. package/dist/sandbox-macos-restrictive-proxied.sb +98 -0
  77. package/dist/vendor/ripgrep/COPYING +3 -0
  78. package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
  79. package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
  80. package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
  81. package/dist/vendor/ripgrep/x64-linux/rg +0 -0
  82. package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
  83. package/dist/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  84. package/dist/vendor/tree-sitter/tree-sitter.wasm +0 -0
  85. package/package.json +143 -0
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: brainstorming
3
+ description: 'You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.'
4
+ ---
5
+
6
+ # Brainstorming Ideas Into Designs
7
+
8
+ Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
9
+
10
+ Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
11
+
12
+ <HARD-GATE>
13
+ Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
14
+ </HARD-GATE>
15
+
16
+ ## Anti-Pattern: "This Is Too Simple To Need A Design"
17
+
18
+ Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
19
+
20
+ ## Checklist
21
+
22
+ You MUST create a task for each of these items and complete them in order:
23
+
24
+ 1. **Explore project context** — check files, docs, recent commits
25
+ 2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
26
+ 3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
27
+ 4. **Propose 2-3 approaches** — with trade-offs and your recommendation
28
+ 5. **Present design** — in sections scaled to their complexity, get user approval after each section
29
+ 6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
30
+ 7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
31
+ 8. **User reviews written spec** — ask user to review the spec file before proceeding
32
+ 9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
33
+
34
+ ## Process Flow
35
+
36
+ ```dot
37
+ digraph brainstorming {
38
+ "Explore project context" [shape=box];
39
+ "Visual questions ahead?" [shape=diamond];
40
+ "Offer Visual Companion
41
+ (own message, no other content)" [shape=box];
42
+ "Ask clarifying questions" [shape=box];
43
+ "Propose 2-3 approaches" [shape=box];
44
+ "Present design sections" [shape=box];
45
+ "User approves design?" [shape=diamond];
46
+ "Write design doc" [shape=box];
47
+ "Spec self-review
48
+ (fix inline)" [shape=box];
49
+ "User reviews spec?" [shape=diamond];
50
+ "Invoke writing-plans skill" [shape=doublecircle];
51
+
52
+ "Explore project context" -> "Visual questions ahead?";
53
+ "Visual questions ahead?" -> "Offer Visual Companion
54
+ (own message, no other content)" [label="yes"];
55
+ "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
56
+ "Offer Visual Companion
57
+ (own message, no other content)" -> "Ask clarifying questions";
58
+ "Ask clarifying questions" -> "Propose 2-3 approaches";
59
+ "Propose 2-3 approaches" -> "Present design sections";
60
+ "Present design sections" -> "User approves design?";
61
+ "User approves design?" -> "Present design sections" [label="no, revise"];
62
+ "User approves design?" -> "Write design doc" [label="yes"];
63
+ "Write design doc" -> "Spec self-review
64
+ (fix inline)";
65
+ "Spec self-review
66
+ (fix inline)" -> "User reviews spec?";
67
+ "User reviews spec?" -> "Write design doc" [label="changes requested"];
68
+ "User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
69
+ }
70
+ ```
71
+
72
+ **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
73
+
74
+ ## The Process
75
+
76
+ **Understanding the idea:**
77
+
78
+ - Check out the current project state first (files, docs, recent commits)
79
+ - Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
80
+ - If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
81
+ - For appropriately-scoped projects, ask questions one at a time to refine the idea
82
+ - Prefer multiple choice questions when possible, but open-ended is fine too
83
+ - Only one question per message - if a topic needs more exploration, break it into multiple questions
84
+ - Focus on understanding: purpose, constraints, success criteria
85
+
86
+ **Exploring approaches:**
87
+
88
+ - Propose 2-3 different approaches with trade-offs
89
+ - Present options conversationally with your recommendation and reasoning
90
+ - Lead with your recommended option and explain why
91
+
92
+ **Presenting the design:**
93
+
94
+ - Once you believe you understand what you're building, present the design
95
+ - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
96
+ - Ask after each section whether it looks right so far
97
+ - Cover: architecture, components, data flow, error handling, testing
98
+ - Be ready to go back and clarify if something doesn't make sense
99
+
100
+ **Design for isolation and clarity:**
101
+
102
+ - Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
103
+ - For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
104
+ - Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
105
+ - Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
106
+
107
+ **Working in existing codebases:**
108
+
109
+ - Explore the current structure before proposing changes. Follow existing patterns.
110
+ - Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
111
+ - Don't propose unrelated refactoring. Stay focused on what serves the current goal.
112
+
113
+ ## After the Design
114
+
115
+ **Documentation:**
116
+
117
+ - Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
118
+ - (User preferences for spec location override this default)
119
+ - Use elements-of-style:writing-clearly-and-concisely skill if available
120
+ - Commit the design document to git
121
+
122
+ **Spec Self-Review:**
123
+ After writing the spec document, look at it with fresh eyes:
124
+
125
+ 1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
126
+ 2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
127
+ 3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
128
+ 4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
129
+
130
+ Fix any issues inline. No need to re-review — just fix and move on.
131
+
132
+ **User Review Gate:**
133
+ After the spec review loop passes, ask the user to review the written spec before proceeding:
134
+
135
+ > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
136
+
137
+ Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
138
+
139
+ **Implementation:**
140
+
141
+ - Invoke the writing-plans skill to create a detailed implementation plan
142
+ - Do NOT invoke any other skill. writing-plans is the next step.
143
+
144
+ ## Key Principles
145
+
146
+ - **One question at a time** - Don't overwhelm with multiple questions
147
+ - **Multiple choice preferred** - Easier to answer than open-ended when possible
148
+ - **YAGNI ruthlessly** - Remove unnecessary features from all designs
149
+ - **Explore alternatives** - Always propose 2-3 approaches before settling
150
+ - **Incremental validation** - Present design, get approval before moving on
151
+ - **Be flexible** - Go back and clarify when something doesn't make sense
152
+
153
+ ## Visual Companion
154
+
155
+ A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
156
+
157
+ **Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
158
+
159
+ > "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
160
+
161
+ **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
162
+
163
+ **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
164
+
165
+ - **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
166
+ - **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
167
+
168
+ A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
169
+
170
+ If they agree to the companion, read the detailed guide before proceeding:
171
+ `skills/brainstorming/visual-companion.md`
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: coding-agent-standards
3
+ description: Implementation quality checklist for coding agents - ensures code changes meet production standards before completion
4
+ agentOnly: true
5
+ ---
6
+
7
+ # Coding Agent Standards
8
+
9
+ ## Purpose
10
+
11
+ Quality gate for coding agents. Load this skill before finalizing any implementation to verify the work meets production standards.
12
+
13
+ ## Pre-Completion Checklist
14
+
15
+ ### 1. Code Correctness
16
+
17
+ - [ ] All modified files compile without errors
18
+ - [ ] No unresolved type errors or missing imports
19
+ - [ ] No hardcoded values that should be configurable
20
+ - [ ] Error paths handled — no bare throws, no swallowed exceptions without logging
21
+ - [ ] Async operations have proper error handling (no unhandled Promise rejections)
22
+
23
+ ### 2. Integration Completeness
24
+
25
+ - [ ] Every new file has at least one non-test importer
26
+ - [ ] Every new service/class is wired to the runtime (not just passing tests in isolation)
27
+ - [ ] Every new export is reachable from the package entry point
28
+ - [ ] If types were changed, all consumers updated (no backward-compat shims)
29
+
30
+ ### 3. Side Effect Awareness
31
+
32
+ - [ ] File operations use correct paths (absolute, not relative)
33
+ - [ ] No accidental writes to directories outside the working tree
34
+ - [ ] Git operations target the correct branch
35
+ - [ ] Shell commands are safe (no unquoted variables, no glob expansion risks)
36
+
37
+ ### 4. Test Coverage
38
+
39
+ - [ ] Modified logic has corresponding test updates
40
+ - [ ] Edge cases tested: empty input, null, boundary values
41
+ - [ ] Tests actually assert the behavior (not just "no error thrown")
42
+
43
+ ### 5. Cleanup
44
+
45
+ - [ ] No debug console.log statements left in
46
+ - [ ] No commented-out code blocks
47
+ - [ ] No TODO/FIXME without a corresponding task
48
+ - [ ] No placeholder implementations or stub functions
49
+
50
+ ## How to Use
51
+
52
+ When loaded as a skill, review your changes against each section. Report any violations before marking the task complete. If a violation is found:
53
+
54
+ 1. Fix it immediately if possible
55
+ 2. If not fixable in scope, create a task describing the issue
56
+ 3. Never silently skip a check — always report the outcome
57
+
58
+ ## Verdict Format
59
+
60
+ ```
61
+ STANDARDS CHECK: [PASS | FAIL | PARTIAL]
62
+ - Correctness: [pass/fail] — [details if fail]
63
+ - Integration: [pass/fail] — [details if fail]
64
+ - Side Effects: [pass/fail] — [details if fail]
65
+ - Tests: [pass/fail/skipped] — [reason if skipped]
66
+ - Cleanup: [pass/fail] — [details if fail]
67
+ ```
@@ -0,0 +1,193 @@
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
+
38
+ - 3+ test files failing with different root causes
39
+ - Multiple subsystems broken independently
40
+ - Each problem can be understood without context from others
41
+ - No shared state between investigations
42
+
43
+ **Don't use when:**
44
+
45
+ - Failures are related (fix one might fix others)
46
+ - Need to understand full system state
47
+ - Agents would interfere with each other
48
+
49
+ ## The Pattern
50
+
51
+ ### 1. Identify Independent Domains
52
+
53
+ Group failures by what's broken:
54
+
55
+ - File A tests: Tool approval flow
56
+ - File B tests: Batch completion behavior
57
+ - File C tests: Abort functionality
58
+
59
+ Each domain is independent - fixing tool approval doesn't affect abort tests.
60
+
61
+ ### 2. Create Focused Agent Tasks
62
+
63
+ Each agent gets:
64
+
65
+ - **Specific scope:** One test file or subsystem
66
+ - **Clear goal:** Make these tests pass
67
+ - **Constraints:** Don't change other code
68
+ - **Expected output:** Summary of what you found and fixed
69
+
70
+ ### 3. Dispatch in Parallel
71
+
72
+ ```typescript
73
+ // In Claude Code / AI environment
74
+ Agent('Fix agent-tool-abort.test.ts failures');
75
+ Agent('Fix batch-completion-behavior.test.ts failures');
76
+ Agent('Fix tool-approval-race-conditions.test.ts failures');
77
+ // All three run concurrently
78
+ ```
79
+
80
+ ### 4. Review and Integrate
81
+
82
+ When agents return:
83
+
84
+ - Read each summary
85
+ - Verify fixes don't conflict
86
+ - Run full test suite
87
+ - Integrate all changes
88
+
89
+ ## Agent Prompt Structure
90
+
91
+ Good agent prompts are:
92
+
93
+ 1. **Focused** - One clear problem domain
94
+ 2. **Self-contained** - All context needed to understand the problem
95
+ 3. **Specific about output** - What should the agent return?
96
+
97
+ ```markdown
98
+ Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
99
+
100
+ 1. "should abort tool with partial output capture" - expects 'interrupted at' in message
101
+ 2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
102
+ 3. "should properly track pendingToolCount" - expects 3 results but gets 0
103
+
104
+ These are timing/race condition issues. Your task:
105
+
106
+ 1. Read the test file and understand what each test verifies
107
+ 2. Identify root cause - timing issues or actual bugs?
108
+ 3. Fix by:
109
+ - Replacing arbitrary timeouts with event-based waiting
110
+ - Fixing bugs in abort implementation if found
111
+ - Adjusting test expectations if testing changed behavior
112
+
113
+ Do NOT just increase timeouts - find the real issue.
114
+
115
+ Return: Summary of what you found and what you fixed.
116
+ ```
117
+
118
+ ## Common Mistakes
119
+
120
+ **❌ Too broad:** "Fix all the tests" - agent gets lost
121
+ **✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
122
+
123
+ **❌ No context:** "Fix the race condition" - agent doesn't know where
124
+ **✅ Context:** Paste the error messages and test names
125
+
126
+ **❌ No constraints:** Agent might refactor everything
127
+ **✅ Constraints:** "Do NOT change production code" or "Fix tests only"
128
+
129
+ **❌ Vague output:** "Fix it" - you don't know what changed
130
+ **✅ Specific:** "Return summary of root cause and changes"
131
+
132
+ ## When NOT to Use
133
+
134
+ **Related failures:** Fixing one might fix others - investigate together first
135
+ **Need full context:** Understanding requires seeing entire system
136
+ **Exploratory debugging:** You don't know what's broken yet
137
+ **Shared state:** Agents would interfere (editing same files, using same resources)
138
+
139
+ ## Real Example from Session
140
+
141
+ **Scenario:** 6 test failures across 3 files after major refactoring
142
+
143
+ **Failures:**
144
+
145
+ - agent-tool-abort.test.ts: 3 failures (timing issues)
146
+ - batch-completion-behavior.test.ts: 2 failures (tools not executing)
147
+ - tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
148
+
149
+ **Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
150
+
151
+ **Dispatch:**
152
+
153
+ ```
154
+ Agent 1 → Fix agent-tool-abort.test.ts
155
+ Agent 2 → Fix batch-completion-behavior.test.ts
156
+ Agent 3 → Fix tool-approval-race-conditions.test.ts
157
+ ```
158
+
159
+ **Results:**
160
+
161
+ - Agent 1: Replaced timeouts with event-based waiting
162
+ - Agent 2: Fixed event structure bug (threadId in wrong place)
163
+ - Agent 3: Added wait for async tool execution to complete
164
+
165
+ **Integration:** All fixes independent, no conflicts, full suite green
166
+
167
+ **Time saved:** 3 problems solved in parallel vs sequentially
168
+
169
+ ## Key Benefits
170
+
171
+ 1. **Parallelization** - Multiple investigations happen simultaneously
172
+ 2. **Focus** - Each agent has narrow scope, less context to track
173
+ 3. **Independence** - Agents don't interfere with each other
174
+ 4. **Speed** - 3 problems solved in time of 1
175
+
176
+ ## Verification
177
+
178
+ After agents return:
179
+
180
+ 1. **Review each summary** - Understand what changed
181
+ 2. **Check for conflicts** - Did agents edit same code?
182
+ 3. **Run full suite** - Verify all fixes work together
183
+ 4. **Spot check** - Agents can make systematic errors
184
+
185
+ ## Real-World Impact
186
+
187
+ From debugging session (2025-10-03):
188
+
189
+ - 6 failures across 3 files
190
+ - 3 agents dispatched in parallel
191
+ - All investigations completed concurrently
192
+ - All fixes integrated successfully
193
+ - Zero conflicts between agent changes
@@ -0,0 +1,77 @@
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 (such as Claude Code or Codex). 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
+
20
+ 1. Read plan file
21
+ 2. Review critically - identify any questions or concerns about the plan
22
+ 3. If concerns: Raise them with your human partner before starting
23
+ 4. If no concerns: Create TodoWrite and proceed
24
+
25
+ ### Step 2: Execute Tasks
26
+
27
+ For each task:
28
+
29
+ 1. Mark as in_progress
30
+ 2. Follow each step exactly (plan has bite-sized steps)
31
+ 3. Run verifications as specified
32
+ 4. Mark as completed
33
+
34
+ ### Step 3: Complete Development
35
+
36
+ After all tasks complete and verified:
37
+
38
+ - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
39
+ - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
40
+ - Follow that skill to verify tests, present options, execute choice
41
+
42
+ ## When to Stop and Ask for Help
43
+
44
+ **STOP executing immediately when:**
45
+
46
+ - Hit a blocker (missing dependency, test fails, instruction unclear)
47
+ - Plan has critical gaps preventing starting
48
+ - You don't understand an instruction
49
+ - Verification fails repeatedly
50
+
51
+ **Ask for clarification rather than guessing.**
52
+
53
+ ## When to Revisit Earlier Steps
54
+
55
+ **Return to Review (Step 1) when:**
56
+
57
+ - Partner updates the plan based on your feedback
58
+ - Fundamental approach needs rethinking
59
+
60
+ **Don't force through blockers** - stop and ask.
61
+
62
+ ## Remember
63
+
64
+ - Review plan critically first
65
+ - Follow plan steps exactly
66
+ - Don't skip verifications
67
+ - Reference skills when plan says to
68
+ - Stop when blocked, don't guess
69
+ - Never start implementation on main/master branch without explicit user consent
70
+
71
+ ## Integration
72
+
73
+ **Required workflow skills:**
74
+
75
+ - **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
76
+ - **superpowers:writing-plans** - Creates the plan this skill executes
77
+ - **superpowers:finishing-a-development-branch** - Complete development after all tasks