@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,223 @@
1
+ ---
2
+ name: using-git-worktrees
3
+ description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
4
+ ---
5
+
6
+ # Using Git Worktrees
7
+
8
+ ## Overview
9
+
10
+ Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
11
+
12
+ **Core principle:** Systematic directory selection + safety verification = reliable isolation.
13
+
14
+ **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
15
+
16
+ ## Directory Selection Process
17
+
18
+ Follow this priority order:
19
+
20
+ ### 1. Check Existing Directories
21
+
22
+ ```bash
23
+ # Check in priority order
24
+ ls -d .worktrees 2>/dev/null # Preferred (hidden)
25
+ ls -d worktrees 2>/dev/null # Alternative
26
+ ```
27
+
28
+ **If found:** Use that directory. If both exist, `.worktrees` wins.
29
+
30
+ ### 2. Check CLAUDE.md
31
+
32
+ ```bash
33
+ grep -i "worktree.*director" CLAUDE.md 2>/dev/null
34
+ ```
35
+
36
+ **If preference specified:** Use it without asking.
37
+
38
+ ### 3. Ask User
39
+
40
+ If no directory exists and no CLAUDE.md preference:
41
+
42
+ ```
43
+ No worktree directory found. Where should I create worktrees?
44
+
45
+ 1. .worktrees/ (project-local, hidden)
46
+ 2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
47
+
48
+ Which would you prefer?
49
+ ```
50
+
51
+ ## Safety Verification
52
+
53
+ ### For Project-Local Directories (.worktrees or worktrees)
54
+
55
+ **MUST verify directory is ignored before creating worktree:**
56
+
57
+ ```bash
58
+ # Check if directory is ignored (respects local, global, and system gitignore)
59
+ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
60
+ ```
61
+
62
+ **If NOT ignored:**
63
+
64
+ Per Jesse's rule "Fix broken things immediately":
65
+
66
+ 1. Add appropriate line to .gitignore
67
+ 2. Commit the change
68
+ 3. Proceed with worktree creation
69
+
70
+ **Why critical:** Prevents accidentally committing worktree contents to repository.
71
+
72
+ ### For Global Directory (~/.config/superpowers/worktrees)
73
+
74
+ No .gitignore verification needed - outside project entirely.
75
+
76
+ ## Creation Steps
77
+
78
+ ### 1. Detect Project Name
79
+
80
+ ```bash
81
+ project=$(basename "$(git rev-parse --show-toplevel)")
82
+ ```
83
+
84
+ ### 2. Create Worktree
85
+
86
+ ```bash
87
+ # Determine full path
88
+ case $LOCATION in
89
+ .worktrees|worktrees)
90
+ path="$LOCATION/$BRANCH_NAME"
91
+ ;;
92
+ ~/.config/superpowers/worktrees/*)
93
+ path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
94
+ ;;
95
+ esac
96
+
97
+ # Create worktree with new branch
98
+ git worktree add "$path" -b "$BRANCH_NAME"
99
+ cd "$path"
100
+ ```
101
+
102
+ ### 3. Run Project Setup
103
+
104
+ Auto-detect and run appropriate setup:
105
+
106
+ ```bash
107
+ # Node.js
108
+ if [ -f package.json ]; then npm install; fi
109
+
110
+ # Rust
111
+ if [ -f Cargo.toml ]; then cargo build; fi
112
+
113
+ # Python
114
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
115
+ if [ -f pyproject.toml ]; then poetry install; fi
116
+
117
+ # Go
118
+ if [ -f go.mod ]; then go mod download; fi
119
+ ```
120
+
121
+ ### 4. Verify Clean Baseline
122
+
123
+ Run tests to ensure worktree starts clean:
124
+
125
+ ```bash
126
+ # Examples - use project-appropriate command
127
+ npm test
128
+ cargo test
129
+ pytest
130
+ go test ./...
131
+ ```
132
+
133
+ **If tests fail:** Report failures, ask whether to proceed or investigate.
134
+
135
+ **If tests pass:** Report ready.
136
+
137
+ ### 5. Report Location
138
+
139
+ ```
140
+ Worktree ready at <full-path>
141
+ Tests passing (<N> tests, 0 failures)
142
+ Ready to implement <feature-name>
143
+ ```
144
+
145
+ ## Quick Reference
146
+
147
+ | Situation | Action |
148
+ | -------------------------- | -------------------------- |
149
+ | `.worktrees/` exists | Use it (verify ignored) |
150
+ | `worktrees/` exists | Use it (verify ignored) |
151
+ | Both exist | Use `.worktrees/` |
152
+ | Neither exists | Check CLAUDE.md → Ask user |
153
+ | Directory not ignored | Add to .gitignore + commit |
154
+ | Tests fail during baseline | Report failures + ask |
155
+ | No package.json/Cargo.toml | Skip dependency install |
156
+
157
+ ## Common Mistakes
158
+
159
+ ### Skipping ignore verification
160
+
161
+ - **Problem:** Worktree contents get tracked, pollute git status
162
+ - **Fix:** Always use `git check-ignore` before creating project-local worktree
163
+
164
+ ### Assuming directory location
165
+
166
+ - **Problem:** Creates inconsistency, violates project conventions
167
+ - **Fix:** Follow priority: existing > CLAUDE.md > ask
168
+
169
+ ### Proceeding with failing tests
170
+
171
+ - **Problem:** Can't distinguish new bugs from pre-existing issues
172
+ - **Fix:** Report failures, get explicit permission to proceed
173
+
174
+ ### Hardcoding setup commands
175
+
176
+ - **Problem:** Breaks on projects using different tools
177
+ - **Fix:** Auto-detect from project files (package.json, etc.)
178
+
179
+ ## Example Workflow
180
+
181
+ ```
182
+ You: I'm using the using-git-worktrees skill to set up an isolated workspace.
183
+
184
+ [Check .worktrees/ - exists]
185
+ [Verify ignored - git check-ignore confirms .worktrees/ is ignored]
186
+ [Create worktree: git worktree add .worktrees/auth -b feature/auth]
187
+ [Run npm install]
188
+ [Run npm test - 47 passing]
189
+
190
+ Worktree ready at /Users/jesse/myproject/.worktrees/auth
191
+ Tests passing (47 tests, 0 failures)
192
+ Ready to implement auth feature
193
+ ```
194
+
195
+ ## Red Flags
196
+
197
+ **Never:**
198
+
199
+ - Create worktree without verifying it's ignored (project-local)
200
+ - Skip baseline test verification
201
+ - Proceed with failing tests without asking
202
+ - Assume directory location when ambiguous
203
+ - Skip CLAUDE.md check
204
+
205
+ **Always:**
206
+
207
+ - Follow directory priority: existing > CLAUDE.md > ask
208
+ - Verify directory is ignored for project-local
209
+ - Auto-detect and run project setup
210
+ - Verify clean test baseline
211
+
212
+ ## Integration
213
+
214
+ **Called by:**
215
+
216
+ - **brainstorming** (Phase 4) - REQUIRED when design is approved and implementation follows
217
+ - **subagent-driven-development** - REQUIRED before executing any tasks
218
+ - **executing-plans** - REQUIRED before executing any tasks
219
+ - Any skill needing isolated workspace
220
+
221
+ **Pairs with:**
222
+
223
+ - **finishing-a-development-branch** - REQUIRED for cleanup after work complete
@@ -0,0 +1,117 @@
1
+ ---
2
+ name: using-superpowers
3
+ description: Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
4
+ ---
5
+
6
+ <SUBAGENT-STOP>
7
+ If you were dispatched as a subagent to execute a specific task, skip this skill.
8
+ </SUBAGENT-STOP>
9
+
10
+ <EXTREMELY-IMPORTANT>
11
+ If you think there is even a 1% chance a skill might apply to what you are doing, you ABSOLUTELY MUST invoke the skill.
12
+
13
+ IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
14
+
15
+ This is not negotiable. This is not optional. You cannot rationalize your way out of this.
16
+ </EXTREMELY-IMPORTANT>
17
+
18
+ ## Instruction Priority
19
+
20
+ Superpowers skills override default system prompt behavior, but **user instructions always take precedence**:
21
+
22
+ 1. **User's explicit instructions** (CLAUDE.md, GEMINI.md, AGENTS.md, direct requests) — highest priority
23
+ 2. **Superpowers skills** — override default system behavior where they conflict
24
+ 3. **Default system prompt** — lowest priority
25
+
26
+ If CLAUDE.md, GEMINI.md, or AGENTS.md says "don't use TDD" and a skill says "always use TDD," follow the user's instructions. The user is in control.
27
+
28
+ ## How to Access Skills
29
+
30
+ **In Claude Code:** Use the `Skill` tool. When you invoke a skill, its content is loaded and presented to you—follow it directly. Never use the Read tool on skill files.
31
+
32
+ **In Copilot CLI:** Use the `skill` tool. Skills are auto-discovered from installed plugins. The `skill` tool works the same as Claude Code's `Skill` tool.
33
+
34
+ **In Gemini CLI:** Skills activate via the `activate_skill` tool. Gemini loads skill metadata at session start and activates the full content on demand.
35
+
36
+ **In other environments:** Check your platform's documentation for how skills are loaded.
37
+
38
+ ## Platform Adaptation
39
+
40
+ Skills use Claude Code tool names. Non-CC platforms: see `references/copilot-tools.md` (Copilot CLI), `references/codex-tools.md` (Codex) for tool equivalents. Gemini CLI users get the tool mapping loaded automatically via GEMINI.md.
41
+
42
+ # Using Skills
43
+
44
+ ## The Rule
45
+
46
+ **Invoke relevant or requested skills BEFORE any response or action.** Even a 1% chance a skill might apply means that you should invoke the skill to check. If an invoked skill turns out to be wrong for the situation, you don't need to use it.
47
+
48
+ ```dot
49
+ digraph skill_flow {
50
+ "User message received" [shape=doublecircle];
51
+ "About to EnterPlanMode?" [shape=doublecircle];
52
+ "Already brainstormed?" [shape=diamond];
53
+ "Invoke brainstorming skill" [shape=box];
54
+ "Might any skill apply?" [shape=diamond];
55
+ "Invoke Skill tool" [shape=box];
56
+ "Announce: 'Using [skill] to [purpose]'" [shape=box];
57
+ "Has checklist?" [shape=diamond];
58
+ "Create TodoWrite todo per item" [shape=box];
59
+ "Follow skill exactly" [shape=box];
60
+ "Respond (including clarifications)" [shape=doublecircle];
61
+
62
+ "About to EnterPlanMode?" -> "Already brainstormed?";
63
+ "Already brainstormed?" -> "Invoke brainstorming skill" [label="no"];
64
+ "Already brainstormed?" -> "Might any skill apply?" [label="yes"];
65
+ "Invoke brainstorming skill" -> "Might any skill apply?";
66
+
67
+ "User message received" -> "Might any skill apply?";
68
+ "Might any skill apply?" -> "Invoke Skill tool" [label="yes, even 1%"];
69
+ "Might any skill apply?" -> "Respond (including clarifications)" [label="definitely not"];
70
+ "Invoke Skill tool" -> "Announce: 'Using [skill] to [purpose]'";
71
+ "Announce: 'Using [skill] to [purpose]'" -> "Has checklist?";
72
+ "Has checklist?" -> "Create TodoWrite todo per item" [label="yes"];
73
+ "Has checklist?" -> "Follow skill exactly" [label="no"];
74
+ "Create TodoWrite todo per item" -> "Follow skill exactly";
75
+ }
76
+ ```
77
+
78
+ ## Red Flags
79
+
80
+ These thoughts mean STOP—you're rationalizing:
81
+
82
+ | Thought | Reality |
83
+ | ----------------------------------- | ------------------------------------------------------ |
84
+ | "This is just a simple question" | Questions are tasks. Check for skills. |
85
+ | "I need more context first" | Skill check comes BEFORE clarifying questions. |
86
+ | "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
87
+ | "I can check git/files quickly" | Files lack conversation context. Check for skills. |
88
+ | "Let me gather information first" | Skills tell you HOW to gather information. |
89
+ | "This doesn't need a formal skill" | If a skill exists, use it. |
90
+ | "I remember this skill" | Skills evolve. Read current version. |
91
+ | "This doesn't count as a task" | Action = task. Check for skills. |
92
+ | "The skill is overkill" | Simple things become complex. Use it. |
93
+ | "I'll just do this one thing first" | Check BEFORE doing anything. |
94
+ | "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
95
+ | "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
96
+
97
+ ## Skill Priority
98
+
99
+ When multiple skills could apply, use this order:
100
+
101
+ 1. **Process skills first** (brainstorming, debugging) - these determine HOW to approach the task
102
+ 2. **Implementation skills second** (frontend-design, mcp-builder) - these guide execution
103
+
104
+ "Let's build X" → brainstorming first, then implementation skills.
105
+ "Fix this bug" → debugging first, then domain-specific skills.
106
+
107
+ ## Skill Types
108
+
109
+ **Rigid** (TDD, debugging): Follow exactly. Don't adapt away discipline.
110
+
111
+ **Flexible** (patterns): Adapt principles to context.
112
+
113
+ The skill itself tells you which.
114
+
115
+ ## User Instructions
116
+
117
+ Instructions say WHAT, not HOW. "Add X" or "Fix Y" doesn't mean skip workflows.
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: verification-before-completion
3
+ description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
4
+ ---
5
+
6
+ # Verification Before Completion
7
+
8
+ ## Overview
9
+
10
+ Claiming work is complete without verification is dishonesty, not efficiency.
11
+
12
+ **Core principle:** Evidence before claims, always.
13
+
14
+ **Violating the letter of this rule is violating the spirit of this rule.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
20
+ ```
21
+
22
+ If you haven't run the verification command in this message, you cannot claim it passes.
23
+
24
+ ## The Gate Function
25
+
26
+ ```
27
+ BEFORE claiming any status or expressing satisfaction:
28
+
29
+ 1. IDENTIFY: What command proves this claim?
30
+ 2. RUN: Execute the FULL command (fresh, complete)
31
+ 3. READ: Full output, check exit code, count failures
32
+ 4. VERIFY: Does output confirm the claim?
33
+ - If NO: State actual status with evidence
34
+ - If YES: State claim WITH evidence
35
+ 5. ONLY THEN: Make the claim
36
+
37
+ Skip any step = lying, not verifying
38
+ ```
39
+
40
+ ## Common Failures
41
+
42
+ | Claim | Requires | Not Sufficient |
43
+ | --------------------- | ------------------------------- | ------------------------------ |
44
+ | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
45
+ | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
46
+ | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
47
+ | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
48
+ | Regression test works | Red-green cycle verified | Test passes once |
49
+ | Agent completed | VCS diff shows changes | Agent reports "success" |
50
+ | Requirements met | Line-by-line checklist | Tests passing |
51
+
52
+ ## Red Flags - STOP
53
+
54
+ - Using "should", "probably", "seems to"
55
+ - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
56
+ - About to commit/push/PR without verification
57
+ - Trusting agent success reports
58
+ - Relying on partial verification
59
+ - Thinking "just this once"
60
+ - Tired and wanting work over
61
+ - **ANY wording implying success without having run verification**
62
+
63
+ ## Rationalization Prevention
64
+
65
+ | Excuse | Reality |
66
+ | --------------------------------------- | ---------------------- |
67
+ | "Should work now" | RUN the verification |
68
+ | "I'm confident" | Confidence ≠ evidence |
69
+ | "Just this once" | No exceptions |
70
+ | "Linter passed" | Linter ≠ compiler |
71
+ | "Agent said success" | Verify independently |
72
+ | "I'm tired" | Exhaustion ≠ excuse |
73
+ | "Partial check is enough" | Partial proves nothing |
74
+ | "Different words so rule doesn't apply" | Spirit over letter |
75
+
76
+ ## Key Patterns
77
+
78
+ **Tests:**
79
+
80
+ ```
81
+ ✅ [Run test command] [See: 34/34 pass] "All tests pass"
82
+ ❌ "Should pass now" / "Looks correct"
83
+ ```
84
+
85
+ **Regression tests (TDD Red-Green):**
86
+
87
+ ```
88
+ ✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
89
+ ❌ "I've written a regression test" (without red-green verification)
90
+ ```
91
+
92
+ **Build:**
93
+
94
+ ```
95
+ ✅ [Run build] [See: exit 0] "Build passes"
96
+ ❌ "Linter passed" (linter doesn't check compilation)
97
+ ```
98
+
99
+ **Requirements:**
100
+
101
+ ```
102
+ ✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
103
+ ❌ "Tests pass, phase complete"
104
+ ```
105
+
106
+ **Agent delegation:**
107
+
108
+ ```
109
+ ✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
110
+ ❌ Trust agent report
111
+ ```
112
+
113
+ ## Why This Matters
114
+
115
+ From 24 failure memories:
116
+
117
+ - your human partner said "I don't believe you" - trust broken
118
+ - Undefined functions shipped - would crash
119
+ - Missing requirements shipped - incomplete features
120
+ - Time wasted on false completion → redirect → rework
121
+ - Violates: "Honesty is a core value. If you lie, you'll be replaced."
122
+
123
+ ## When To Apply
124
+
125
+ **ALWAYS before:**
126
+
127
+ - ANY variation of success/completion claims
128
+ - ANY expression of satisfaction
129
+ - ANY positive statement about work state
130
+ - Committing, PR creation, task completion
131
+ - Moving to next task
132
+ - Delegating to agents
133
+
134
+ **Rule applies to:**
135
+
136
+ - Exact phrases
137
+ - Paraphrases and synonyms
138
+ - Implications of success
139
+ - ANY communication suggesting completion/correctness
140
+
141
+ ## The Bottom Line
142
+
143
+ **No shortcuts for verification.**
144
+
145
+ Run the command. Read the output. THEN claim the result.
146
+
147
+ This is non-negotiable.
@@ -0,0 +1,159 @@
1
+ ---
2
+ name: writing-plans
3
+ description: Use when you have a spec or requirements for a multi-step task, before touching code
4
+ ---
5
+
6
+ # Writing Plans
7
+
8
+ ## Overview
9
+
10
+ Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
11
+
12
+ Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
13
+
14
+ **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
15
+
16
+ **Context:** This should be run in a dedicated worktree (created by brainstorming skill).
17
+
18
+ **Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`
19
+
20
+ - (User preferences for plan location override this default)
21
+
22
+ ## Scope Check
23
+
24
+ If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
25
+
26
+ ## File Structure
27
+
28
+ Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
29
+
30
+ - Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
31
+ - You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
32
+ - Files that change together should live together. Split by responsibility, not by technical layer.
33
+ - In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
34
+
35
+ This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
36
+
37
+ ## Bite-Sized Task Granularity
38
+
39
+ **Each step is one action (2-5 minutes):**
40
+
41
+ - "Write the failing test" - step
42
+ - "Run it to make sure it fails" - step
43
+ - "Implement the minimal code to make the test pass" - step
44
+ - "Run the tests and make sure they pass" - step
45
+ - "Commit" - step
46
+
47
+ ## Plan Document Header
48
+
49
+ **Every plan MUST start with this header:**
50
+
51
+ ```markdown
52
+ # [Feature Name] Implementation Plan
53
+
54
+ > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
55
+
56
+ **Goal:** [One sentence describing what this builds]
57
+
58
+ **Architecture:** [2-3 sentences about approach]
59
+
60
+ **Tech Stack:** [Key technologies/libraries]
61
+
62
+ ---
63
+ ```
64
+
65
+ ## Task Structure
66
+
67
+ ````markdown
68
+ ### Task N: [Component Name]
69
+
70
+ **Files:**
71
+
72
+ - Create: `exact/path/to/file.py`
73
+ - Modify: `exact/path/to/existing.py:123-145`
74
+ - Test: `tests/exact/path/to/test.py`
75
+
76
+ - [ ] **Step 1: Write the failing test**
77
+
78
+ ```python
79
+ def test_specific_behavior():
80
+ result = function(input)
81
+ assert result == expected
82
+ ```
83
+
84
+ - [ ] **Step 2: Run test to verify it fails**
85
+
86
+ Run: `pytest tests/path/test.py::test_name -v`
87
+ Expected: FAIL with "function not defined"
88
+
89
+ - [ ] **Step 3: Write minimal implementation**
90
+
91
+ ```python
92
+ def function(input):
93
+ return expected
94
+ ```
95
+
96
+ - [ ] **Step 4: Run test to verify it passes**
97
+
98
+ Run: `pytest tests/path/test.py::test_name -v`
99
+ Expected: PASS
100
+
101
+ - [ ] **Step 5: Commit**
102
+
103
+ ```bash
104
+ git add tests/path/test.py src/path/file.py
105
+ git commit -m "feat: add specific feature"
106
+ ```
107
+ ````
108
+
109
+ ## No Placeholders
110
+
111
+ Every step must contain the actual content an engineer needs. These are **plan failures** — never write them:
112
+
113
+ - "TBD", "TODO", "implement later", "fill in details"
114
+ - "Add appropriate error handling" / "add validation" / "handle edge cases"
115
+ - "Write tests for the above" (without actual test code)
116
+ - "Similar to Task N" (repeat the code — the engineer may be reading tasks out of order)
117
+ - Steps that describe what to do without showing how (code blocks required for code steps)
118
+ - References to types, functions, or methods not defined in any task
119
+
120
+ ## Remember
121
+
122
+ - Exact file paths always
123
+ - Complete code in every step — if a step changes code, show the code
124
+ - Exact commands with expected output
125
+ - DRY, YAGNI, TDD, frequent commits
126
+
127
+ ## Self-Review
128
+
129
+ After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
130
+
131
+ **1. Spec coverage:** Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
132
+
133
+ **2. Placeholder scan:** Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
134
+
135
+ **3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.
136
+
137
+ If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
138
+
139
+ ## Execution Handoff
140
+
141
+ After saving the plan, offer execution choice:
142
+
143
+ **"Plan complete and saved to `docs/superpowers/plans/<filename>.md`. Two execution options:**
144
+
145
+ **1. Subagent-Driven (recommended)** - I dispatch a fresh subagent per task, review between tasks, fast iteration
146
+
147
+ **2. Inline Execution** - Execute tasks in this session using executing-plans, batch execution with checkpoints
148
+
149
+ **Which approach?"**
150
+
151
+ **If Subagent-Driven chosen:**
152
+
153
+ - **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
154
+ - Fresh subagent per task + two-stage review
155
+
156
+ **If Inline Execution chosen:**
157
+
158
+ - **REQUIRED SUB-SKILL:** Use superpowers:executing-plans
159
+ - Batch execution with checkpoints for review