@nst173/superpowers-ccg 1.3.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 (97) hide show
  1. package/.agent/skills/brainstorming/SKILL.md +26 -0
  2. package/.agent/skills/coordinating-multi-model-work/SKILL.md +29 -0
  3. package/.agent/skills/executing-plans/SKILL.md +27 -0
  4. package/.agent/skills/using-superpowers/SKILL.md +29 -0
  5. package/.agent/skills/verifying-before-completion/SKILL.md +20 -0
  6. package/.agent/skills/writing-plans/SKILL.md +29 -0
  7. package/.cursor/agents/code-reviewer.md +22 -0
  8. package/.cursor/commands/brainstorm.md +11 -0
  9. package/.cursor/commands/execute-plan.md +12 -0
  10. package/.cursor/commands/write-plan.md +11 -0
  11. package/.cursor/hook-scripts/after-file-edit.mjs +3 -0
  12. package/.cursor/hook-scripts/before-shell-execution.mjs +3 -0
  13. package/.cursor/hook-scripts/session-end.mjs +3 -0
  14. package/.cursor/hooks.json +21 -0
  15. package/.cursor/mcp.json +20 -0
  16. package/.cursor/rules/checkpoint-protocol.mdc +11 -0
  17. package/.cursor/rules/orchestrator-routing.mdc +12 -0
  18. package/.cursor/rules/token-discipline.mdc +12 -0
  19. package/.cursor/skills/brainstorming/SKILL.md +26 -0
  20. package/.cursor/skills/coordinating-multi-model-work/SKILL.md +29 -0
  21. package/.cursor/skills/executing-plans/SKILL.md +27 -0
  22. package/.cursor/skills/using-superpowers/SKILL.md +29 -0
  23. package/.cursor/skills/verifying-before-completion/SKILL.md +20 -0
  24. package/.cursor/skills/writing-plans/SKILL.md +29 -0
  25. package/AGENTS.md +23 -0
  26. package/CLAUDE.md +78 -0
  27. package/GEMINI.md +27 -0
  28. package/LICENSE +21 -0
  29. package/README.md +171 -0
  30. package/agents/code-reviewer.md +54 -0
  31. package/cli/superpowers-ccg.mjs +8 -0
  32. package/commands/brainstorm.md +6 -0
  33. package/commands/execute-plan.md +6 -0
  34. package/commands/write-plan.md +6 -0
  35. package/config/antigravity/mcp_config.example.json +26 -0
  36. package/hooks/hooks.json +37 -0
  37. package/hooks/pre-tool-use-task.sh +4 -0
  38. package/hooks/run-hook.cmd +19 -0
  39. package/hooks/session-start.sh +72 -0
  40. package/hooks/user-prompt-submit.sh +31 -0
  41. package/package.json +56 -0
  42. package/skills/EVALUATION.md +201 -0
  43. package/skills/brainstorming/SKILL.md +120 -0
  44. package/skills/coordinating-multi-model-work/GATE.md +36 -0
  45. package/skills/coordinating-multi-model-work/INTEGRATION.md +51 -0
  46. package/skills/coordinating-multi-model-work/SKILL.md +51 -0
  47. package/skills/coordinating-multi-model-work/checkpoints.md +31 -0
  48. package/skills/coordinating-multi-model-work/cross-validation.md +37 -0
  49. package/skills/coordinating-multi-model-work/prompts/codex-base.md +40 -0
  50. package/skills/coordinating-multi-model-work/prompts/gemini-base.md +41 -0
  51. package/skills/coordinating-multi-model-work/review-chain.md +25 -0
  52. package/skills/coordinating-multi-model-work/routing-decision.md +50 -0
  53. package/skills/debugging-systematically/CREATION-LOG.md +119 -0
  54. package/skills/debugging-systematically/SKILL.md +325 -0
  55. package/skills/debugging-systematically/condition-based-waiting-example.ts +158 -0
  56. package/skills/debugging-systematically/condition-based-waiting.md +115 -0
  57. package/skills/debugging-systematically/defense-in-depth.md +122 -0
  58. package/skills/debugging-systematically/find-polluter.sh +63 -0
  59. package/skills/debugging-systematically/root-cause-tracing.md +169 -0
  60. package/skills/debugging-systematically/test-academic.md +14 -0
  61. package/skills/debugging-systematically/test-pressure-1.md +58 -0
  62. package/skills/debugging-systematically/test-pressure-2.md +68 -0
  63. package/skills/debugging-systematically/test-pressure-3.md +69 -0
  64. package/skills/developing-with-subagents/SKILL.md +51 -0
  65. package/skills/developing-with-subagents/code-quality-reviewer-prompt.md +30 -0
  66. package/skills/developing-with-subagents/implementer-prompt.md +41 -0
  67. package/skills/developing-with-subagents/spec-reviewer-prompt.md +25 -0
  68. package/skills/dispatching-parallel-agents/SKILL.md +195 -0
  69. package/skills/executing-plans/SKILL.md +67 -0
  70. package/skills/finishing-development-branches/SKILL.md +208 -0
  71. package/skills/practicing-test-driven-development/SKILL.md +346 -0
  72. package/skills/practicing-test-driven-development/testing-anti-patterns.md +299 -0
  73. package/skills/receiving-code-review/SKILL.md +221 -0
  74. package/skills/requesting-code-review/SKILL.md +127 -0
  75. package/skills/requesting-code-review/code-reviewer.md +146 -0
  76. package/skills/shared/multi-model-integration-section.md +32 -0
  77. package/skills/shared/protocol-threshold.md +46 -0
  78. package/skills/shared/supplementary-tools.md +132 -0
  79. package/skills/shared/task-format-reference.md +83 -0
  80. package/skills/using-git-worktrees/SKILL.md +225 -0
  81. package/skills/using-superpowers/SKILL.md +101 -0
  82. package/skills/verifying-before-completion/SKILL.md +159 -0
  83. package/skills/writing-plans/SKILL.md +55 -0
  84. package/skills/writing-skills/CHECKLIST.md +92 -0
  85. package/skills/writing-skills/SKILL.md +111 -0
  86. package/skills/writing-skills/STRUCTURE.md +208 -0
  87. package/skills/writing-skills/TESTING.md +155 -0
  88. package/skills/writing-skills/anthropic-best-practices.md +1150 -0
  89. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  90. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  91. package/skills/writing-skills/persuasion-principles.md +187 -0
  92. package/skills/writing-skills/render-graphs.js +168 -0
  93. package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  94. package/src/cli.mjs +165 -0
  95. package/src/constants.mjs +7 -0
  96. package/src/install.mjs +186 -0
  97. package/src/io.mjs +81 -0
@@ -0,0 +1,83 @@
1
+ # Native Task Format Reference
2
+
3
+ Skills that create native tasks (TaskCreate) MUST follow this format.
4
+
5
+ ## Task Description Template
6
+
7
+ Every TaskCreate description MUST follow this structure:
8
+
9
+ ### Required Sections
10
+
11
+ **Goal:** One sentence — what this task produces (not how).
12
+
13
+ **Files:**
14
+ - Create/Modify/Delete: `exact/path/to/file` (with line ranges for modifications)
15
+
16
+ **Acceptance Criteria:**
17
+ - [ ] Concrete, testable criterion
18
+ - [ ] Another criterion
19
+
20
+ **Verify:** `exact command to run` → expected output summary
21
+
22
+ ### Optional Sections (include when relevant)
23
+
24
+ **Context:** Why this task exists, what depends on it, architectural notes.
25
+ Only needed when the task can't be understood from Goal + Files alone.
26
+
27
+ **Steps:** Ordered implementation steps (only for multi-step tasks where order matters).
28
+ TDD cycles happen WITHIN steps, not as separate steps.
29
+
30
+ ## Metadata Schema
31
+
32
+ Embed metadata as a `json:metadata` code fence at the end of the TaskCreate description. The `metadata` parameter on TaskCreate is accepted but **not returned by TaskGet** — embedding in the description is the only reliable way.
33
+
34
+ | Key | Type | Required | Purpose |
35
+ |-----|------|----------|---------|
36
+ | `files` | string[] | yes | Paths to create/modify/delete |
37
+ | `verifyCommand` | string | yes | Command to verify task completion |
38
+ | `acceptanceCriteria` | string[] | yes | List of testable criteria |
39
+ | `estimatedScope` | "small" \| "medium" \| "large" | no | Relative effort indicator |
40
+
41
+ ### Example
42
+
43
+ ~~~yaml
44
+ TaskCreate:
45
+ subject: "Task 1: Add authentication middleware"
46
+ description: |
47
+ **Goal:** Add JWT verification middleware to all protected API routes.
48
+
49
+ **Files:**
50
+ - Create: `src/middleware/auth.py`
51
+ - Modify: `src/api/routes.py:45-60`
52
+
53
+ **Acceptance Criteria:**
54
+ - [ ] Requests without valid JWT return 401
55
+ - [ ] Requests with valid JWT pass through to handler
56
+ - [ ] Expired tokens return 401 with "token expired" message
57
+
58
+ **Verify:** `pytest tests/middleware/test_auth.py -v` → 3 tests pass
59
+
60
+ ```json:metadata
61
+ {"files": ["src/middleware/auth.py", "src/api/routes.py"], "verifyCommand": "pytest tests/middleware/test_auth.py -v", "acceptanceCriteria": ["Requests without valid JWT return 401", "Requests with valid JWT pass through", "Expired tokens return 401"]}
62
+ ```
63
+ activeForm: "Implementing authentication middleware"
64
+ ~~~
65
+
66
+ ## Task Granularity
67
+
68
+ ### The Right Scope
69
+
70
+ A task is **a coherent unit of work that produces a testable, committable outcome**.
71
+
72
+ **Scope test — ask these questions:**
73
+ 1. Does this task produce something I can verify independently? (if no → too small)
74
+ 2. Does it touch more than one concern? (if yes → too big)
75
+ 3. Would it get its own commit? (if no → too small; if commit message needs bullet points → too big)
76
+
77
+ ### TDD Within Tasks (Not Across Tasks)
78
+
79
+ TDD cycles (write test → verify fail → implement → verify pass) happen WITHIN a single task, not as separate tasks. The task is "Implement X with tests" — the TDD steps are execution detail, not task boundaries.
80
+
81
+ ### Commit Boundary = Task Boundary
82
+
83
+ Each task should produce exactly one commit. If a task needs multiple commits, split it. If separate tasks share a commit, merge them.
@@ -0,0 +1,225 @@
1
+ ---
2
+ name: using-git-worktrees
3
+ description: "Creates isolated git worktrees with smart directory selection for parallel branch work. Use when: starting feature work needing isolation, before executing implementation plans. Keywords: git worktree, isolated workspace, parallel branches, workspace isolation"
4
+ ---
5
+
6
+ # Using Git Worktrees
7
+
8
+ ## Contents
9
+ - [Overview](#overview)
10
+ - [Directory Selection Process](#directory-selection-process)
11
+ - [Worktree Creation](#worktree-creation)
12
+ - [Safety Verification](#safety-verification)
13
+ - [Next Steps](#next-steps)
14
+ - [Related Skills](#related-skills)
15
+
16
+ ## Overview
17
+
18
+ Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
19
+
20
+ **Core principle:** Systematic directory selection + safety verification = reliable isolation.
21
+
22
+ **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
23
+
24
+ ## Directory Selection Process
25
+
26
+ Follow this priority order:
27
+
28
+ ### 1. Check Existing Directories
29
+
30
+ ```bash
31
+ # Check in priority order
32
+ ls -d .worktrees 2>/dev/null # Preferred (hidden)
33
+ ls -d worktrees 2>/dev/null # Alternative
34
+ ```
35
+
36
+ **If found:** Use that directory. If both exist, `.worktrees` wins.
37
+
38
+ ### 2. Check CLAUDE.md
39
+
40
+ ```bash
41
+ grep -i "worktree.*director" CLAUDE.md 2>/dev/null
42
+ ```
43
+
44
+ **If preference specified:** Use it without asking.
45
+
46
+ ### 3. Ask User
47
+
48
+ If no directory exists and no CLAUDE.md preference:
49
+
50
+ ```
51
+ No worktree directory found. Where should I create worktrees?
52
+
53
+ 1. .worktrees/ (project-local, hidden)
54
+ 2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
55
+
56
+ Which would you prefer?
57
+ ```
58
+
59
+ ## Safety Verification
60
+
61
+ ### For Project-Local Directories (.worktrees or worktrees)
62
+
63
+ **MUST verify directory is ignored before creating worktree:**
64
+
65
+ ```bash
66
+ # Check if directory is ignored (respects local, global, and system gitignore)
67
+ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
68
+ ```
69
+
70
+ **If NOT ignored:**
71
+
72
+ Per Jesse's rule "Fix broken things immediately":
73
+ 1. Add appropriate line to .gitignore
74
+ 2. Commit the change
75
+ 3. Proceed with worktree creation
76
+
77
+ **Why critical:** Prevents accidentally committing worktree contents to repository.
78
+
79
+ ### For Global Directory (~/.config/superpowers/worktrees)
80
+
81
+ No .gitignore verification needed - outside project entirely.
82
+
83
+ ## Creation Steps
84
+
85
+ ### 1. Detect Project Name
86
+
87
+ ```bash
88
+ project=$(basename "$(git rev-parse --show-toplevel)")
89
+ ```
90
+
91
+ ### 2. Create Worktree
92
+
93
+ ```bash
94
+ # Determine full path
95
+ case $LOCATION in
96
+ .worktrees|worktrees)
97
+ path="$LOCATION/$BRANCH_NAME"
98
+ ;;
99
+ ~/.config/superpowers/worktrees/*)
100
+ path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
101
+ ;;
102
+ esac
103
+
104
+ # Create worktree with new branch
105
+ git worktree add "$path" -b "$BRANCH_NAME"
106
+ cd "$path"
107
+ ```
108
+
109
+ ### 3. Run Project Setup
110
+
111
+ Auto-detect and run appropriate setup:
112
+
113
+ ```bash
114
+ # Node.js
115
+ if [ -f package.json ]; then npm install; fi
116
+
117
+ # Rust
118
+ if [ -f Cargo.toml ]; then cargo build; fi
119
+
120
+ # Python
121
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
122
+ if [ -f pyproject.toml ]; then poetry install; fi
123
+
124
+ # Go
125
+ if [ -f go.mod ]; then go mod download; fi
126
+ ```
127
+
128
+ ### 4. Verify Clean Baseline
129
+
130
+ Run tests to ensure worktree starts clean:
131
+
132
+ ```bash
133
+ # Examples - use project-appropriate command
134
+ npm test
135
+ cargo test
136
+ pytest
137
+ go test ./...
138
+ ```
139
+
140
+ **If tests fail:** Report failures, ask whether to proceed or investigate.
141
+
142
+ **If tests pass:** Report ready.
143
+
144
+ ### 5. Report Location
145
+
146
+ ```
147
+ Worktree ready at <full-path>
148
+ Tests passing (<N> tests, 0 failures)
149
+ Ready to implement <feature-name>
150
+ ```
151
+
152
+ ## Quick Reference
153
+
154
+ | Situation | Action |
155
+ |-----------|--------|
156
+ | `.worktrees/` exists | Use it (verify ignored) |
157
+ | `worktrees/` exists | Use it (verify ignored) |
158
+ | Both exist | Use `.worktrees/` |
159
+ | Neither exists | Check CLAUDE.md → Ask user |
160
+ | Directory not ignored | Add to .gitignore + commit |
161
+ | Tests fail during baseline | Report failures + ask |
162
+ | No package.json/Cargo.toml | Skip dependency install |
163
+
164
+ ## Common Mistakes
165
+
166
+ ### Skipping ignore verification
167
+
168
+ - **Problem:** Worktree contents get tracked, pollute git status
169
+ - **Fix:** Always use `git check-ignore` before creating project-local worktree
170
+
171
+ ### Assuming directory location
172
+
173
+ - **Problem:** Creates inconsistency, violates project conventions
174
+ - **Fix:** Follow priority: existing > CLAUDE.md > ask
175
+
176
+ ### Proceeding with failing tests
177
+
178
+ - **Problem:** Can't distinguish new bugs from pre-existing issues
179
+ - **Fix:** Report failures, get explicit permission to proceed
180
+
181
+ ### Hardcoding setup commands
182
+
183
+ - **Problem:** Breaks on projects using different tools
184
+ - **Fix:** Auto-detect from project files (package.json, etc.)
185
+
186
+ ## Example Workflow
187
+
188
+ ```
189
+ You: I'm using the using-git-worktrees skill to set up an isolated workspace.
190
+
191
+ [Check .worktrees/ - exists]
192
+ [Verify ignored - git check-ignore confirms .worktrees/ is ignored]
193
+ [Create worktree: git worktree add .worktrees/auth -b feature/auth]
194
+ [Run npm install]
195
+ [Run npm test - 47 passing]
196
+
197
+ Worktree ready at /Users/jesse/myproject/.worktrees/auth
198
+ Tests passing (47 tests, 0 failures)
199
+ Ready to implement auth feature
200
+ ```
201
+
202
+ ## Red Flags
203
+
204
+ **Never:**
205
+ - Create worktree without verifying it's ignored (project-local)
206
+ - Skip baseline test verification
207
+ - Proceed with failing tests without asking
208
+ - Assume directory location when ambiguous
209
+ - Skip CLAUDE.md check
210
+
211
+ **Always:**
212
+ - Follow directory priority: existing > CLAUDE.md > ask
213
+ - Verify directory is ignored for project-local
214
+ - Auto-detect and run project setup
215
+ - Verify clean test baseline
216
+
217
+ ## Integration
218
+
219
+ **Called by:**
220
+ - **brainstorming** (Phase 4) - REQUIRED when design is approved and implementation follows
221
+ - Any skill needing isolated workspace
222
+
223
+ **Pairs with:**
224
+ - **finishing-development-branches** - REQUIRED for cleanup after work complete
225
+ - **executing-plans** or **developing-with-subagents** - Work happens in this worktree
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: using-superpowers
3
+ description: "Establishes how to find and use skills, requiring Skill tool invocation before any response. Use when: starting conversations, needing skill guidance. Keywords: skills, superpowers, skill discovery, getting started"
4
+ ---
5
+
6
+ > **⚠️ CRITICAL:**
7
+ >
8
+ > If you think there is even a 1% chance that a skill applies to what you're doing, you **must** invoke that skill.
9
+ >
10
+ > **If a skill applies to your task, you have no choice. You must use it.**
11
+ >
12
+ > This is non-negotiable. This is not optional. You cannot rationalize your way out.
13
+
14
+ ## How to Access Skills
15
+
16
+ **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.
17
+
18
+ **In other environments:** Check your platform's documentation for how skills are loaded.
19
+
20
+ # Using Skills
21
+
22
+ ## The Rule
23
+
24
+ **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.
25
+
26
+ ```dot
27
+ digraph skill_flow {
28
+ "User message received" [shape=doublecircle];
29
+ "Might any skill apply?" [shape=diamond];
30
+ "Invoke Skill tool" [shape=box];
31
+ "Announce: 'Using [skill] to [purpose]'" [shape=box];
32
+ "Has checklist?" [shape=diamond];
33
+ "Create TodoWrite todo per item" [shape=box];
34
+ "Follow skill exactly" [shape=box];
35
+ "Respond (including clarifications)" [shape=doublecircle];
36
+
37
+ "User message received" -> "Might any skill apply?";
38
+ "Might any skill apply?" -> "Invoke Skill tool" [label="yes, even 1%"];
39
+ "Might any skill apply?" -> "Respond (including clarifications)" [label="definitely not"];
40
+ "Invoke Skill tool" -> "Announce: 'Using [skill] to [purpose]'";
41
+ "Announce: 'Using [skill] to [purpose]'" -> "Has checklist?";
42
+ "Has checklist?" -> "Create TodoWrite todo per item" [label="yes"];
43
+ "Has checklist?" -> "Follow skill exactly" [label="no"];
44
+ "Create TodoWrite todo per item" -> "Follow skill exactly";
45
+ }
46
+ ```
47
+
48
+ ## Red Flags
49
+
50
+ These thoughts mean STOP—you're rationalizing:
51
+
52
+ | Thought | Reality |
53
+ |---------|---------|
54
+ | "This is just a simple question" | Questions are tasks. Check for skills. |
55
+ | "I need more context first" | Skill check comes BEFORE clarifying questions. |
56
+ | "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
57
+ | "I can check git/files quickly" | Files lack conversation context. Check for skills. |
58
+ | "Let me gather information first" | Skills tell you HOW to gather information. |
59
+ | "This doesn't need a formal skill" | If a skill exists, use it. |
60
+ | "I remember this skill" | Skills evolve. Read current version. |
61
+ | "This doesn't count as a task" | Action = task. Check for skills. |
62
+ | "The skill is overkill" | Simple things become complex. Use it. |
63
+ | "I'll just do this one thing first" | Check BEFORE doing anything. |
64
+ | "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
65
+ | "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
66
+
67
+ ## Skill Priority
68
+
69
+ When multiple skills could apply, use this order:
70
+
71
+ 1. **Process skills first** (brainstorming, debugging) - these determine HOW to approach the task
72
+ 2. **Implementation skills second** (frontend-design, mcp-builder) - these guide execution
73
+
74
+ "Let's build X" → brainstorming first, then implementation skills.
75
+ "Fix this bug" → debugging first, then domain-specific skills.
76
+
77
+ ## Skill Types
78
+
79
+ **Rigid** (TDD, debugging): Follow exactly. Don't adapt away discipline.
80
+
81
+ **Flexible** (patterns): Adapt principles to context.
82
+
83
+ The skill itself tells you which.
84
+
85
+ ## User Instructions
86
+
87
+ Instructions say WHAT, not HOW. "Add X" or "Fix Y" doesn't mean skip workflows.
88
+
89
+ ## Claude Model Strategy for Subagents
90
+
91
+ | Model | Use For |
92
+ |-------|---------|
93
+ | Opus (default) | Review, architecture, complex reasoning |
94
+ | `model: sonnet` | Implementation, coding |
95
+ | `model: haiku` | Exploration, search |
96
+
97
+ See `developing-with-subagents` for details.
98
+
99
+ ## Multi-Model Capability
100
+
101
+ If a task would benefit from specialized external models, use `superpowers:coordinating-multi-model-work`. See `skills/shared/multi-model-integration-section.md` for routing, invocation, and fallback rules.
@@ -0,0 +1,159 @@
1
+ ---
2
+ name: verifying-before-completion
3
+ description: "Requires running verification commands and confirming output before making success claims. Use when: about to claim work is complete, fixed, or passing, before committing or creating PRs. Keywords: verify, evidence, completion check, test output, proof"
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
+ ## Protocol Threshold (Required)
25
+
26
+ Follow `skills/shared/protocol-threshold.md`. The hook injects CP reminders automatically.
27
+
28
+ ## The Gate Function
29
+
30
+ **► CP3 (Quality Gate):** Before claiming completion, apply `coordinating-multi-model-work/checkpoints.md`.
31
+
32
+ ```
33
+ BEFORE claiming any status or expressing satisfaction:
34
+
35
+ 1. IDENTIFY: What command proves this claim?
36
+ 2. RUN: Execute the FULL command (fresh, complete)
37
+ 3. READ: Full output, check exit code, count failures
38
+ 4. VERIFY: Does output confirm the claim?
39
+ - If NO: State actual status with evidence
40
+ - If YES: State claim WITH evidence
41
+ 5. ONLY THEN: Make the claim
42
+
43
+ Skip any step = lying, not verifying
44
+ ```
45
+
46
+ ## Common Failures
47
+
48
+ | Claim | Requires | Not Sufficient |
49
+ | --------------------- | ------------------------------- | ------------------------------ |
50
+ | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
51
+ | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
52
+ | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
53
+ | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
54
+ | Regression test works | Red-green cycle verified | Test passes once |
55
+ | Agent completed | VCS diff shows changes | Agent reports "success" |
56
+ | Requirements met | Line-by-line checklist | Tests passing |
57
+
58
+ ## Red Flags - STOP
59
+
60
+ - Using "should", "probably", "seems to"
61
+ - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
62
+ - About to commit/push/PR without verification
63
+ - Trusting agent success reports
64
+ - Relying on partial verification
65
+ - Thinking "just this once"
66
+ - Tired and wanting work over
67
+ - **ANY wording implying success without having run verification**
68
+
69
+ ## Rationalization Prevention
70
+
71
+ | Excuse | Reality |
72
+ | --------------------------------------- | ---------------------- |
73
+ | "Should work now" | RUN the verification |
74
+ | "I'm confident" | Confidence ≠ evidence |
75
+ | "Just this once" | No exceptions |
76
+ | "Linter passed" | Linter ≠ compiler |
77
+ | "Agent said success" | Verify independently |
78
+ | "I'm tired" | Exhaustion ≠ excuse |
79
+ | "Partial check is enough" | Partial proves nothing |
80
+ | "Different words so rule doesn't apply" | Spirit over letter |
81
+
82
+ ## Key Patterns
83
+
84
+ **Tests:**
85
+
86
+ ```
87
+ ✅ [Run test command] [See: 34/34 pass] "All tests pass"
88
+ ❌ "Should pass now" / "Looks correct"
89
+ ```
90
+
91
+ **Regression tests (TDD Red-Green):**
92
+
93
+ ```
94
+ ✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
95
+ ❌ "I've written a regression test" (without red-green verification)
96
+ ```
97
+
98
+ **Build:**
99
+
100
+ ```
101
+ ✅ [Run build] [See: exit 0] "Build passes"
102
+ ❌ "Linter passed" (linter doesn't check compilation)
103
+ ```
104
+
105
+ **Requirements:**
106
+
107
+ ```
108
+ ✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
109
+ ❌ "Tests pass, phase complete"
110
+ ```
111
+
112
+ **Agent delegation:**
113
+
114
+ ```
115
+ ✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
116
+ ❌ Trust agent report
117
+ ```
118
+
119
+ ## Why This Matters
120
+
121
+ From 24 failure memories:
122
+
123
+ - your human partner said "I don't believe you" - trust broken
124
+ - Undefined functions shipped - would crash
125
+ - Missing requirements shipped - incomplete features
126
+ - Time wasted on false completion → redirect → rework
127
+ - Violates: "Honesty is a core value. If you lie, you'll be replaced."
128
+
129
+ ## When To Apply
130
+
131
+ **ALWAYS before:**
132
+
133
+ - ANY variation of success/completion claims
134
+ - ANY expression of satisfaction
135
+ - ANY positive statement about work state
136
+ - Committing, PR creation, task completion
137
+ - Moving to next task
138
+ - Delegating to agents
139
+
140
+ **Rule applies to:**
141
+
142
+ - Exact phrases
143
+ - Paraphrases and synonyms
144
+ - Implications of success
145
+ - ANY communication suggesting completion/correctness
146
+
147
+ ## The Bottom Line
148
+
149
+ **No shortcuts for verification.**
150
+
151
+ Run the command. Read the output. THEN claim the result.
152
+
153
+ This is non-negotiable.
154
+
155
+ ## Multi-Model Cross-Verification
156
+
157
+ See `skills/shared/multi-model-integration-section.md` for routing, invocation, and fallback rules.
158
+
159
+ **CRITICAL:** Cross-model verification is **additional** to, not a replacement for running actual commands. **Never claim success based solely on model confirmation.**
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: writing-plans
3
+ description: "Creates implementation plans made of bounded worker-owned tasks with explicit file sets, verification commands, and minimal execution context."
4
+ ---
5
+
6
+ # Writing Plans
7
+
8
+ ## Overview
9
+
10
+ Write plans for execution by external workers, not for a human narrator. Each task should be small enough that one worker can own it end-to-end without restating the whole project.
11
+
12
+ ## Rules
13
+
14
+ 1. Read the codebase and design docs only as much as needed.
15
+ 2. Break work into bounded tasks with explicit ownership.
16
+ 3. Each task must have:
17
+ - clear goal
18
+ - explicit file set
19
+ - acceptance criteria
20
+ - exact verify command
21
+ 4. Prefer one worker owner per task.
22
+ 5. Avoid two-pass tasks where one worker drafts code and Claude re-implements it.
23
+ 6. Use `cross-validation` only for architecture or genuine multi-domain conflicts.
24
+
25
+ ## Task Shape
26
+
27
+ ```markdown
28
+ ### Task N: [Short outcome]
29
+
30
+ **Owner:** `codex` | `gemini` | `auto`
31
+
32
+ **Files:**
33
+ - Modify: `path/to/file`
34
+ - Create: `path/to/file`
35
+
36
+ **Acceptance Criteria:**
37
+ - [criterion]
38
+ - [criterion]
39
+
40
+ **Verify:**
41
+ `exact command`
42
+
43
+ **Steps:**
44
+ 1. [small action]
45
+ 2. [small action]
46
+ 3. [small action]
47
+ ```
48
+
49
+ ## Execution Handoff
50
+
51
+ Plans should be executable one bounded task at a time.
52
+
53
+ After saving the plan, offer:
54
+ 1. Same-session execution with `developing-with-subagents`
55
+ 2. Dedicated execution session with `executing-plans`