antigravity-init 1.0.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 (123) hide show
  1. package/.agent/agents/architect.md +211 -0
  2. package/.agent/agents/build-error-resolver.md +532 -0
  3. package/.agent/agents/code-reviewer.md +104 -0
  4. package/.agent/agents/doc-updater.md +452 -0
  5. package/.agent/agents/e2e-runner.md +708 -0
  6. package/.agent/agents/planner.md +119 -0
  7. package/.agent/agents/refactor-cleaner.md +306 -0
  8. package/.agent/agents/security-reviewer.md +545 -0
  9. package/.agent/agents/tdd-guide.md +280 -0
  10. package/.agent/rules/agents.md +49 -0
  11. package/.agent/rules/coding-style.md +70 -0
  12. package/.agent/rules/git-workflow.md +45 -0
  13. package/.agent/rules/hooks.md +46 -0
  14. package/.agent/rules/patterns.md +55 -0
  15. package/.agent/rules/performance.md +47 -0
  16. package/.agent/rules/security.md +36 -0
  17. package/.agent/rules/testing.md +30 -0
  18. package/.agent/skills/backend-patterns/SKILL.md +582 -0
  19. package/.agent/skills/brainstorming/SKILL.md +54 -0
  20. package/.agent/skills/coding-standards/SKILL.md +520 -0
  21. package/.agent/skills/dispatching-parallel-agents/SKILL.md +180 -0
  22. package/.agent/skills/executing-plans/SKILL.md +76 -0
  23. package/.agent/skills/finishing-a-development-branch/SKILL.md +200 -0
  24. package/.agent/skills/frontend-patterns/SKILL.md +631 -0
  25. package/.agent/skills/receiving-code-review/SKILL.md +213 -0
  26. package/.agent/skills/requesting-code-review/SKILL.md +105 -0
  27. package/.agent/skills/requesting-code-review/code-reviewer.md +48 -0
  28. package/.agent/skills/security-review/SKILL.md +494 -0
  29. package/.agent/skills/subagent-driven-development/SKILL.md +240 -0
  30. package/.agent/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
  31. package/.agent/skills/subagent-driven-development/implementer-prompt.md +78 -0
  32. package/.agent/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  33. package/.agent/skills/systematic-debugging/CREATION-LOG.md +119 -0
  34. package/.agent/skills/systematic-debugging/SKILL.md +296 -0
  35. package/.agent/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  36. package/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
  37. package/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
  38. package/.agent/skills/systematic-debugging/find-polluter.sh +63 -0
  39. package/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
  40. package/.agent/skills/systematic-debugging/test-academic.md +14 -0
  41. package/.agent/skills/systematic-debugging/test-pressure-1.md +58 -0
  42. package/.agent/skills/systematic-debugging/test-pressure-2.md +68 -0
  43. package/.agent/skills/systematic-debugging/test-pressure-3.md +69 -0
  44. package/.agent/skills/test-driven-development/SKILL.md +371 -0
  45. package/.agent/skills/test-driven-development/testing-anti-patterns.md +299 -0
  46. package/.agent/skills/ui-ux-pro-max/SKILL.md +292 -0
  47. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  48. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  49. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  50. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  51. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  52. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  53. package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  54. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  55. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  56. package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  57. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  58. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  59. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  60. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  61. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  62. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  63. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  64. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  65. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  66. package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
  67. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  68. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  69. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  70. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  71. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
  72. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
  73. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/search.cpython-314.pyc +0 -0
  74. package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
  75. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  76. package/.agent/skills/ui-ux-pro-max/scripts/search.py +106 -0
  77. package/.agent/skills/using-git-worktrees/SKILL.md +217 -0
  78. package/.agent/skills/using-superpowers/SKILL.md +87 -0
  79. package/.agent/skills/verification-before-completion/SKILL.md +139 -0
  80. package/.agent/skills/writing-plans/SKILL.md +116 -0
  81. package/.agent/skills/writing-skills/SKILL.md +655 -0
  82. package/.agent/skills/writing-skills/anthropic-best-practices.md +1150 -0
  83. package/.agent/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  84. package/.agent/skills/writing-skills/graphviz-conventions.dot +172 -0
  85. package/.agent/skills/writing-skills/persuasion-principles.md +187 -0
  86. package/.agent/skills/writing-skills/render-graphs.js +168 -0
  87. package/.agent/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  88. package/.agent/workflows/brainstorm.md +5 -0
  89. package/.agent/workflows/build-fix.md +212 -0
  90. package/.agent/workflows/code-review.md +169 -0
  91. package/.agent/workflows/execute-plan.md +5 -0
  92. package/.agent/workflows/tdd-workflow.md +166 -0
  93. package/.agent/workflows/ui-ux-pro-max.md +292 -0
  94. package/.agent/workflows/write-plan.md +5 -0
  95. package/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  96. package/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  97. package/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  98. package/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  99. package/.shared/ui-ux-pro-max/data/products.csv +97 -0
  100. package/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  101. package/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  102. package/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  103. package/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  104. package/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  105. package/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  106. package/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  107. package/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  108. package/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  109. package/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  110. package/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  111. package/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  112. package/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  113. package/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  114. package/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  115. package/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  116. package/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  117. package/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  118. package/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  119. package/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  120. package/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  121. package/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  122. package/bin/cli.js +53 -0
  123. package/package.json +30 -0
@@ -0,0 +1,240 @@
1
+ ---
2
+ name: subagent-driven-development
3
+ description: Use when executing implementation plans with independent tasks in the current session
4
+ ---
5
+
6
+ # Subagent-Driven Development
7
+
8
+ Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
9
+
10
+ **Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
11
+
12
+ ## When to Use
13
+
14
+ ```dot
15
+ digraph when_to_use {
16
+ "Have implementation plan?" [shape=diamond];
17
+ "Tasks mostly independent?" [shape=diamond];
18
+ "Stay in this session?" [shape=diamond];
19
+ "subagent-driven-development" [shape=box];
20
+ "executing-plans" [shape=box];
21
+ "Manual execution or brainstorm first" [shape=box];
22
+
23
+ "Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
24
+ "Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
25
+ "Tasks mostly independent?" -> "Stay in this session?" [label="yes"];
26
+ "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
27
+ "Stay in this session?" -> "subagent-driven-development" [label="yes"];
28
+ "Stay in this session?" -> "executing-plans" [label="no - parallel session"];
29
+ }
30
+ ```
31
+
32
+ **vs. Executing Plans (parallel session):**
33
+ - Same session (no context switch)
34
+ - Fresh subagent per task (no context pollution)
35
+ - Two-stage review after each task: spec compliance first, then code quality
36
+ - Faster iteration (no human-in-loop between tasks)
37
+
38
+ ## The Process
39
+
40
+ ```dot
41
+ digraph process {
42
+ rankdir=TB;
43
+
44
+ subgraph cluster_per_task {
45
+ label="Per Task";
46
+ "Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
47
+ "Implementer subagent asks questions?" [shape=diamond];
48
+ "Answer questions, provide context" [shape=box];
49
+ "Implementer subagent implements, tests, commits, self-reviews" [shape=box];
50
+ "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
51
+ "Spec reviewer subagent confirms code matches spec?" [shape=diamond];
52
+ "Implementer subagent fixes spec gaps" [shape=box];
53
+ "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [shape=box];
54
+ "Code quality reviewer subagent approves?" [shape=diamond];
55
+ "Implementer subagent fixes quality issues" [shape=box];
56
+ "Mark task complete in TodoWrite" [shape=box];
57
+ }
58
+
59
+ "Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
60
+ "More tasks remain?" [shape=diamond];
61
+ "Dispatch final code reviewer subagent for entire implementation" [shape=box];
62
+ "Use finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
63
+
64
+ "Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer subagent (./implementer-prompt.md)";
65
+ "Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
66
+ "Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
67
+ "Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
68
+ "Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
69
+ "Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
70
+ "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
71
+ "Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
72
+ "Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
73
+ "Spec reviewer subagent confirms code matches spec?" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="yes"];
74
+ "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
75
+ "Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
76
+ "Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="re-review"];
77
+ "Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
78
+ "Mark task complete in TodoWrite" -> "More tasks remain?";
79
+ "More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
80
+ "More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
81
+ "Dispatch final code reviewer subagent for entire implementation" -> "Use finishing-a-development-branch";
82
+ }
83
+ ```
84
+
85
+ ## Prompt Templates
86
+
87
+ - `./implementer-prompt.md` - Dispatch implementer subagent
88
+ - `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
89
+ - `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
90
+
91
+ ## Example Workflow
92
+
93
+ ```
94
+ You: I'm using Subagent-Driven Development to execute this plan.
95
+
96
+ [Read plan file once: docs/plans/feature-plan.md]
97
+ [Extract all 5 tasks with full text and context]
98
+ [Create TodoWrite with all tasks]
99
+
100
+ Task 1: Hook installation script
101
+
102
+ [Get Task 1 text and context (already extracted)]
103
+ [Dispatch implementation subagent with full task text + context]
104
+
105
+ Implementer: "Before I begin - should the hook be installed at user or system level?"
106
+
107
+ You: "User level (~/.config/superpowers/hooks/)"
108
+
109
+ Implementer: "Got it. Implementing now..."
110
+ [Later] Implementer:
111
+ - Implemented install-hook command
112
+ - Added tests, 5/5 passing
113
+ - Self-review: Found I missed --force flag, added it
114
+ - Committed
115
+
116
+ [Dispatch spec compliance reviewer]
117
+ Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
118
+
119
+ [Get git SHAs, dispatch code quality reviewer]
120
+ Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
121
+
122
+ [Mark Task 1 complete]
123
+
124
+ Task 2: Recovery modes
125
+
126
+ [Get Task 2 text and context (already extracted)]
127
+ [Dispatch implementation subagent with full task text + context]
128
+
129
+ Implementer: [No questions, proceeds]
130
+ Implementer:
131
+ - Added verify/repair modes
132
+ - 8/8 tests passing
133
+ - Self-review: All good
134
+ - Committed
135
+
136
+ [Dispatch spec compliance reviewer]
137
+ Spec reviewer: ❌ Issues:
138
+ - Missing: Progress reporting (spec says "report every 100 items")
139
+ - Extra: Added --json flag (not requested)
140
+
141
+ [Implementer fixes issues]
142
+ Implementer: Removed --json flag, added progress reporting
143
+
144
+ [Spec reviewer reviews again]
145
+ Spec reviewer: ✅ Spec compliant now
146
+
147
+ [Dispatch code quality reviewer]
148
+ Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
149
+
150
+ [Implementer fixes]
151
+ Implementer: Extracted PROGRESS_INTERVAL constant
152
+
153
+ [Code reviewer reviews again]
154
+ Code reviewer: ✅ Approved
155
+
156
+ [Mark Task 2 complete]
157
+
158
+ ...
159
+
160
+ [After all tasks]
161
+ [Dispatch final code-reviewer]
162
+ Final reviewer: All requirements met, ready to merge
163
+
164
+ Done!
165
+ ```
166
+
167
+ ## Advantages
168
+
169
+ **vs. Manual execution:**
170
+ - Subagents follow TDD naturally
171
+ - Fresh context per task (no confusion)
172
+ - Parallel-safe (subagents don't interfere)
173
+ - Subagent can ask questions (before AND during work)
174
+
175
+ **vs. Executing Plans:**
176
+ - Same session (no handoff)
177
+ - Continuous progress (no waiting)
178
+ - Review checkpoints automatic
179
+
180
+ **Efficiency gains:**
181
+ - No file reading overhead (controller provides full text)
182
+ - Controller curates exactly what context is needed
183
+ - Subagent gets complete information upfront
184
+ - Questions surfaced before work begins (not after)
185
+
186
+ **Quality gates:**
187
+ - Self-review catches issues before handoff
188
+ - Two-stage review: spec compliance, then code quality
189
+ - Review loops ensure fixes actually work
190
+ - Spec compliance prevents over/under-building
191
+ - Code quality ensures implementation is well-built
192
+
193
+ **Cost:**
194
+ - More subagent invocations (implementer + 2 reviewers per task)
195
+ - Controller does more prep work (extracting all tasks upfront)
196
+ - Review loops add iterations
197
+ - But catches issues early (cheaper than debugging later)
198
+
199
+ ## Red Flags
200
+
201
+ **Never:**
202
+ - Skip reviews (spec compliance OR code quality)
203
+ - Proceed with unfixed issues
204
+ - Dispatch multiple implementation subagents in parallel (conflicts)
205
+ - Make subagent read plan file (provide full text instead)
206
+ - Skip scene-setting context (subagent needs to understand where task fits)
207
+ - Ignore subagent questions (answer before letting them proceed)
208
+ - Accept "close enough" on spec compliance (spec reviewer found issues = not done)
209
+ - Skip review loops (reviewer found issues = implementer fixes = review again)
210
+ - Let implementer self-review replace actual review (both are needed)
211
+ - **Start code quality review before spec compliance is ✅** (wrong order)
212
+ - Move to next task while either review has open issues
213
+
214
+ **If subagent asks questions:**
215
+ - Answer clearly and completely
216
+ - Provide additional context if needed
217
+ - Don't rush them into implementation
218
+
219
+ **If reviewer finds issues:**
220
+ - Implementer (same subagent) fixes them
221
+ - Reviewer reviews again
222
+ - Repeat until approved
223
+ - Don't skip the re-review
224
+
225
+ **If subagent fails task:**
226
+ - Dispatch fix subagent with specific instructions
227
+ - Don't try to fix manually (context pollution)
228
+
229
+ ## Integration
230
+
231
+ **Required workflow skills:**
232
+ - **writing-plans** - Creates the plan this skill executes
233
+ - **requesting-code-review** - Code review template for reviewer subagents
234
+ - **finishing-a-development-branch** - Complete development after all tasks
235
+
236
+ **Subagents should use:**
237
+ - **test-driven-development** - Subagents follow TDD for each task
238
+
239
+ **Alternative workflow:**
240
+ - **executing-plans** - Use for parallel session instead of same-session execution
@@ -0,0 +1,20 @@
1
+ # Code Quality Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a code quality reviewer subagent.
4
+
5
+ **Purpose:** Verify implementation is well-built (clean, tested, maintainable)
6
+
7
+ **Only dispatch after spec compliance review passes.**
8
+
9
+ ```
10
+ Task tool (code-reviewer):
11
+ Use template at requesting-code-review/code-reviewer.md
12
+
13
+ WHAT_WAS_IMPLEMENTED: [from implementer's report]
14
+ PLAN_OR_REQUIREMENTS: Task N from [plan-file]
15
+ BASE_SHA: [commit before task]
16
+ HEAD_SHA: [current commit]
17
+ DESCRIPTION: [task summary]
18
+ ```
19
+
20
+ **Code reviewer returns:** Strengths, Issues (Critical/Important/Minor), Assessment
@@ -0,0 +1,78 @@
1
+ # Implementer Subagent Prompt Template
2
+
3
+ Use this template when dispatching an implementer subagent.
4
+
5
+ ```
6
+ Task tool (general-purpose):
7
+ description: "Implement Task N: [task name]"
8
+ prompt: |
9
+ You are implementing Task N: [task name]
10
+
11
+ ## Task Description
12
+
13
+ [FULL TEXT of task from plan - paste it here, don't make subagent read file]
14
+
15
+ ## Context
16
+
17
+ [Scene-setting: where this fits, dependencies, architectural context]
18
+
19
+ ## Before You Begin
20
+
21
+ If you have questions about:
22
+ - The requirements or acceptance criteria
23
+ - The approach or implementation strategy
24
+ - Dependencies or assumptions
25
+ - Anything unclear in the task description
26
+
27
+ **Ask them now.** Raise any concerns before starting work.
28
+
29
+ ## Your Job
30
+
31
+ Once you're clear on requirements:
32
+ 1. Implement exactly what the task specifies
33
+ 2. Write tests (following TDD if task says to)
34
+ 3. Verify implementation works
35
+ 4. Commit your work
36
+ 5. Self-review (see below)
37
+ 6. Report back
38
+
39
+ Work from: [directory]
40
+
41
+ **While you work:** If you encounter something unexpected or unclear, **ask questions**.
42
+ It's always OK to pause and clarify. Don't guess or make assumptions.
43
+
44
+ ## Before Reporting Back: Self-Review
45
+
46
+ Review your work with fresh eyes. Ask yourself:
47
+
48
+ **Completeness:**
49
+ - Did I fully implement everything in the spec?
50
+ - Did I miss any requirements?
51
+ - Are there edge cases I didn't handle?
52
+
53
+ **Quality:**
54
+ - Is this my best work?
55
+ - Are names clear and accurate (match what things do, not how they work)?
56
+ - Is the code clean and maintainable?
57
+
58
+ **Discipline:**
59
+ - Did I avoid overbuilding (YAGNI)?
60
+ - Did I only build what was requested?
61
+ - Did I follow existing patterns in the codebase?
62
+
63
+ **Testing:**
64
+ - Do tests actually verify behavior (not just mock behavior)?
65
+ - Did I follow TDD if required?
66
+ - Are tests comprehensive?
67
+
68
+ If you find issues during self-review, fix them now before reporting.
69
+
70
+ ## Report Format
71
+
72
+ When done, report:
73
+ - What you implemented
74
+ - What you tested and test results
75
+ - Files changed
76
+ - Self-review findings (if any)
77
+ - Any issues or concerns
78
+ ```
@@ -0,0 +1,61 @@
1
+ # Spec Compliance Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a spec compliance reviewer subagent.
4
+
5
+ **Purpose:** Verify implementer built what was requested (nothing more, nothing less)
6
+
7
+ ```
8
+ Task tool (general-purpose):
9
+ description: "Review spec compliance for Task N"
10
+ prompt: |
11
+ You are reviewing whether an implementation matches its specification.
12
+
13
+ ## What Was Requested
14
+
15
+ [FULL TEXT of task requirements]
16
+
17
+ ## What Implementer Claims They Built
18
+
19
+ [From implementer's report]
20
+
21
+ ## CRITICAL: Do Not Trust the Report
22
+
23
+ The implementer finished suspiciously quickly. Their report may be incomplete,
24
+ inaccurate, or optimistic. You MUST verify everything independently.
25
+
26
+ **DO NOT:**
27
+ - Take their word for what they implemented
28
+ - Trust their claims about completeness
29
+ - Accept their interpretation of requirements
30
+
31
+ **DO:**
32
+ - Read the actual code they wrote
33
+ - Compare actual implementation to requirements line by line
34
+ - Check for missing pieces they claimed to implement
35
+ - Look for extra features they didn't mention
36
+
37
+ ## Your Job
38
+
39
+ Read the implementation code and verify:
40
+
41
+ **Missing requirements:**
42
+ - Did they implement everything that was requested?
43
+ - Are there requirements they skipped or missed?
44
+ - Did they claim something works but didn't actually implement it?
45
+
46
+ **Extra/unneeded work:**
47
+ - Did they build things that weren't requested?
48
+ - Did they over-engineer or add unnecessary features?
49
+ - Did they add "nice to haves" that weren't in spec?
50
+
51
+ **Misunderstandings:**
52
+ - Did they interpret requirements differently than intended?
53
+ - Did they solve the wrong problem?
54
+ - Did they implement the right feature but wrong way?
55
+
56
+ **Verify by reading code, not by trusting report.**
57
+
58
+ Report:
59
+ - ✅ Spec compliant (if everything matches after code inspection)
60
+ - ❌ Issues found: [list specifically what's missing or extra, with file:line references]
61
+ ```
@@ -0,0 +1,119 @@
1
+ # Creation Log: Systematic Debugging Skill
2
+
3
+ Reference example of extracting, structuring, and bulletproofing a critical skill.
4
+
5
+ ## Source Material
6
+
7
+ Extracted debugging framework from `/Users/jesse/.claude/CLAUDE.md`:
8
+ - 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
9
+ - Core mandate: ALWAYS find root cause, NEVER fix symptoms
10
+ - Rules designed to resist time pressure and rationalization
11
+
12
+ ## Extraction Decisions
13
+
14
+ **What to include:**
15
+ - Complete 4-phase framework with all rules
16
+ - Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
17
+ - Pressure-resistant language ("even if faster", "even if I seem in a hurry")
18
+ - Concrete steps for each phase
19
+
20
+ **What to leave out:**
21
+ - Project-specific context
22
+ - Repetitive variations of same rule
23
+ - Narrative explanations (condensed to principles)
24
+
25
+ ## Structure Following skill-creation/SKILL.md
26
+
27
+ 1. **Rich when_to_use** - Included symptoms and anti-patterns
28
+ 2. **Type: technique** - Concrete process with steps
29
+ 3. **Keywords** - "root cause", "symptom", "workaround", "debugging", "investigation"
30
+ 4. **Flowchart** - Decision point for "fix failed" → re-analyze vs add more fixes
31
+ 5. **Phase-by-phase breakdown** - Scannable checklist format
32
+ 6. **Anti-patterns section** - What NOT to do (critical for this skill)
33
+
34
+ ## Bulletproofing Elements
35
+
36
+ Framework designed to resist rationalization under pressure:
37
+
38
+ ### Language Choices
39
+ - "ALWAYS" / "NEVER" (not "should" / "try to")
40
+ - "even if faster" / "even if I seem in a hurry"
41
+ - "STOP and re-analyze" (explicit pause)
42
+ - "Don't skip past" (catches the actual behavior)
43
+
44
+ ### Structural Defenses
45
+ - **Phase 1 required** - Can't skip to implementation
46
+ - **Single hypothesis rule** - Forces thinking, prevents shotgun fixes
47
+ - **Explicit failure mode** - "IF your first fix doesn't work" with mandatory action
48
+ - **Anti-patterns section** - Shows exactly what shortcuts look like
49
+
50
+ ### Redundancy
51
+ - Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
52
+ - "NEVER fix symptom" appears 4 times in different contexts
53
+ - Each phase has explicit "don't skip" guidance
54
+
55
+ ## Testing Approach
56
+
57
+ Created 4 validation tests following skills/meta/testing-skills-with-subagents:
58
+
59
+ ### Test 1: Academic Context (No Pressure)
60
+ - Simple bug, no time pressure
61
+ - **Result:** Perfect compliance, complete investigation
62
+
63
+ ### Test 2: Time Pressure + Obvious Quick Fix
64
+ - User "in a hurry", symptom fix looks easy
65
+ - **Result:** Resisted shortcut, followed full process, found real root cause
66
+
67
+ ### Test 3: Complex System + Uncertainty
68
+ - Multi-layer failure, unclear if can find root cause
69
+ - **Result:** Systematic investigation, traced through all layers, found source
70
+
71
+ ### Test 4: Failed First Fix
72
+ - Hypothesis doesn't work, temptation to add more fixes
73
+ - **Result:** Stopped, re-analyzed, formed new hypothesis (no shotgun)
74
+
75
+ **All tests passed.** No rationalizations found.
76
+
77
+ ## Iterations
78
+
79
+ ### Initial Version
80
+ - Complete 4-phase framework
81
+ - Anti-patterns section
82
+ - Flowchart for "fix failed" decision
83
+
84
+ ### Enhancement 1: TDD Reference
85
+ - Added link to skills/testing/test-driven-development
86
+ - Note explaining TDD's "simplest code" ≠ debugging's "root cause"
87
+ - Prevents confusion between methodologies
88
+
89
+ ## Final Outcome
90
+
91
+ Bulletproof skill that:
92
+ - ✅ Clearly mandates root cause investigation
93
+ - ✅ Resists time pressure rationalization
94
+ - ✅ Provides concrete steps for each phase
95
+ - ✅ Shows anti-patterns explicitly
96
+ - ✅ Tested under multiple pressure scenarios
97
+ - ✅ Clarifies relationship to TDD
98
+ - ✅ Ready for use
99
+
100
+ ## Key Insight
101
+
102
+ **Most important bulletproofing:** Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.
103
+
104
+ ## Usage Example
105
+
106
+ When encountering a bug:
107
+ 1. Load skill: skills/debugging/systematic-debugging
108
+ 2. Read overview (10 sec) - reminded of mandate
109
+ 3. Follow Phase 1 checklist - forced investigation
110
+ 4. If tempted to skip - see anti-pattern, stop
111
+ 5. Complete all phases - root cause found
112
+
113
+ **Time investment:** 5-10 minutes
114
+ **Time saved:** Hours of symptom-whack-a-mole
115
+
116
+ ---
117
+
118
+ *Created: 2025-10-03*
119
+ *Purpose: Reference example for skill extraction and bulletproofing*