gsd-opencode 1.3.31

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 (68) hide show
  1. package/bin/install.js +222 -0
  2. package/command/gsd/add-phase.md +207 -0
  3. package/command/gsd/complete-milestone.md +105 -0
  4. package/command/gsd/consider-issues.md +201 -0
  5. package/command/gsd/create-roadmap.md +115 -0
  6. package/command/gsd/discuss-milestone.md +47 -0
  7. package/command/gsd/discuss-phase.md +60 -0
  8. package/command/gsd/execute-plan.md +128 -0
  9. package/command/gsd/help.md +315 -0
  10. package/command/gsd/insert-phase.md +227 -0
  11. package/command/gsd/list-phase-assumptions.md +50 -0
  12. package/command/gsd/map-codebase.md +84 -0
  13. package/command/gsd/new-milestone.md +59 -0
  14. package/command/gsd/new-project.md +316 -0
  15. package/command/gsd/pause-work.md +122 -0
  16. package/command/gsd/plan-fix.md +205 -0
  17. package/command/gsd/plan-phase.md +67 -0
  18. package/command/gsd/progress.md +316 -0
  19. package/command/gsd/remove-phase.md +338 -0
  20. package/command/gsd/research-phase.md +91 -0
  21. package/command/gsd/resume-work.md +40 -0
  22. package/command/gsd/verify-work.md +71 -0
  23. package/get-shit-done/references/checkpoints.md +287 -0
  24. package/get-shit-done/references/continuation-format.md +255 -0
  25. package/get-shit-done/references/git-integration.md +254 -0
  26. package/get-shit-done/references/plan-format.md +428 -0
  27. package/get-shit-done/references/principles.md +157 -0
  28. package/get-shit-done/references/questioning.md +162 -0
  29. package/get-shit-done/references/research-pitfalls.md +215 -0
  30. package/get-shit-done/references/scope-estimation.md +172 -0
  31. package/get-shit-done/references/tdd.md +263 -0
  32. package/get-shit-done/templates/codebase/architecture.md +255 -0
  33. package/get-shit-done/templates/codebase/concerns.md +310 -0
  34. package/get-shit-done/templates/codebase/conventions.md +307 -0
  35. package/get-shit-done/templates/codebase/integrations.md +280 -0
  36. package/get-shit-done/templates/codebase/stack.md +186 -0
  37. package/get-shit-done/templates/codebase/structure.md +285 -0
  38. package/get-shit-done/templates/codebase/testing.md +480 -0
  39. package/get-shit-done/templates/config.json +18 -0
  40. package/get-shit-done/templates/context.md +161 -0
  41. package/get-shit-done/templates/continue-here.md +78 -0
  42. package/get-shit-done/templates/discovery.md +146 -0
  43. package/get-shit-done/templates/issues.md +32 -0
  44. package/get-shit-done/templates/milestone-archive.md +123 -0
  45. package/get-shit-done/templates/milestone-context.md +93 -0
  46. package/get-shit-done/templates/milestone.md +115 -0
  47. package/get-shit-done/templates/phase-prompt.md +303 -0
  48. package/get-shit-done/templates/project.md +184 -0
  49. package/get-shit-done/templates/research.md +529 -0
  50. package/get-shit-done/templates/roadmap.md +196 -0
  51. package/get-shit-done/templates/state.md +210 -0
  52. package/get-shit-done/templates/summary.md +273 -0
  53. package/get-shit-done/templates/uat-issues.md +143 -0
  54. package/get-shit-done/workflows/complete-milestone.md +643 -0
  55. package/get-shit-done/workflows/create-milestone.md +416 -0
  56. package/get-shit-done/workflows/create-roadmap.md +481 -0
  57. package/get-shit-done/workflows/discovery-phase.md +293 -0
  58. package/get-shit-done/workflows/discuss-milestone.md +236 -0
  59. package/get-shit-done/workflows/discuss-phase.md +247 -0
  60. package/get-shit-done/workflows/execute-phase.md +1625 -0
  61. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  62. package/get-shit-done/workflows/map-codebase.md +434 -0
  63. package/get-shit-done/workflows/plan-phase.md +488 -0
  64. package/get-shit-done/workflows/research-phase.md +436 -0
  65. package/get-shit-done/workflows/resume-project.md +287 -0
  66. package/get-shit-done/workflows/transition.md +580 -0
  67. package/get-shit-done/workflows/verify-work.md +202 -0
  68. package/package.json +38 -0
@@ -0,0 +1,428 @@
1
+ <overview>
2
+ Claude-executable plans have a specific format that enables Claude to implement without interpretation. This reference defines what makes a plan executable vs. vague.
3
+
4
+ **Key insight:** PLAN.md IS the executable prompt. It contains everything Claude needs to execute the phase, including objective, context references, tasks, verification, success criteria, and output specification.
5
+ </overview>
6
+
7
+ <core_principle>
8
+ A plan is Claude-executable when Claude can read the PLAN.md and immediately start implementing without asking clarifying questions.
9
+
10
+ If Claude has to guess, interpret, or make assumptions - the task is too vague.
11
+ </core_principle>
12
+
13
+ <prompt_structure>
14
+ Every PLAN.md follows this XML structure:
15
+
16
+ ```markdown
17
+ ---
18
+ phase: XX-name
19
+ type: execute
20
+ domain: [optional]
21
+ ---
22
+
23
+ <objective>
24
+ [What and why]
25
+ Purpose: [...]
26
+ Output: [...]
27
+ </objective>
28
+
29
+ <context>
30
+ @.planning/PROJECT.md
31
+ @.planning/ROADMAP.md
32
+ @relevant/source/files.ts
33
+ </context>
34
+
35
+ <tasks>
36
+ <task type="auto">
37
+ <name>Task N: [Name]</name>
38
+ <files>[paths]</files>
39
+ <action>[what to do, what to avoid and WHY]</action>
40
+ <verify>[command/check]</verify>
41
+ <done>[criteria]</done>
42
+ </task>
43
+
44
+ <task type="checkpoint:human-verify" gate="blocking">
45
+ <what-built>[what Claude automated]</what-built>
46
+ <how-to-verify>[numbered verification steps]</how-to-verify>
47
+ <resume-signal>[how to continue - "approved" or describe issues]</resume-signal>
48
+ </task>
49
+
50
+ <task type="checkpoint:decision" gate="blocking">
51
+ <decision>[what needs deciding]</decision>
52
+ <context>[why this matters]</context>
53
+ <options>
54
+ <option id="option-a"><name>[Name]</name><pros>[pros]</pros><cons>[cons]</cons></option>
55
+ <option id="option-b"><name>[Name]</name><pros>[pros]</pros><cons>[cons]</cons></option>
56
+ </options>
57
+ <resume-signal>[how to indicate choice]</resume-signal>
58
+ </task>
59
+ </tasks>
60
+
61
+ <verification>
62
+ [Overall phase checks]
63
+ </verification>
64
+
65
+ <success_criteria>
66
+ [Measurable completion]
67
+ </success_criteria>
68
+
69
+ <output>
70
+ [SUMMARY.md specification]
71
+ </output>
72
+ ```
73
+
74
+ </prompt_structure>
75
+
76
+ <task_anatomy>
77
+ Every task has four required fields:
78
+
79
+ <field name="files">
80
+ **What it is**: Exact file paths that will be created or modified.
81
+
82
+ **Good**: `src/app/api/auth/login/route.ts`, `prisma/schema.prisma`
83
+ **Bad**: "the auth files", "relevant components"
84
+
85
+ Be specific. If you don't know the file path, figure it out first.
86
+ </field>
87
+
88
+ <field name="action">
89
+ **What it is**: Specific implementation instructions, including what to avoid and WHY.
90
+
91
+ **Good**: "Create POST endpoint that accepts {email, password}, validates using bcrypt against User table, returns JWT in httpOnly cookie with 15-min expiry. Use jose library (not jsonwebtoken - CommonJS issues with Next.js Edge runtime)."
92
+
93
+ **Bad**: "Add authentication", "Make login work"
94
+
95
+ Include: technology choices, data structures, behavior details, pitfalls to avoid.
96
+ </field>
97
+
98
+ <field name="verify">
99
+ **What it is**: How to prove the task is complete.
100
+
101
+ **Good**:
102
+
103
+ - `npm test` passes
104
+ - `curl -X POST /api/auth/login` returns 200 with Set-Cookie header
105
+ - Build completes without errors
106
+
107
+ **Bad**: "It works", "Looks good", "User can log in"
108
+
109
+ Must be executable - a command, a test, an observable behavior.
110
+ </field>
111
+
112
+ <field name="done">
113
+ **What it is**: Acceptance criteria - the measurable state of completion.
114
+
115
+ **Good**: "Valid credentials return 200 + JWT cookie, invalid credentials return 401"
116
+
117
+ **Bad**: "Authentication is complete"
118
+
119
+ Should be testable without subjective judgment.
120
+ </field>
121
+ </task_anatomy>
122
+
123
+ <task_types>
124
+ Tasks have a `type` attribute that determines how they execute:
125
+
126
+ <type name="auto">
127
+ **Default task type** - Claude executes autonomously.
128
+
129
+ **Structure:**
130
+
131
+ ```xml
132
+ <task type="auto">
133
+ <name>Task 3: Create login endpoint with JWT</name>
134
+ <files>src/app/api/auth/login/route.ts</files>
135
+ <action>POST endpoint accepting {email, password}. Query User by email, compare password with bcrypt. On match, create JWT with jose library, set as httpOnly cookie (15-min expiry). Return 200. On mismatch, return 401.</action>
136
+ <verify>curl -X POST localhost:3000/api/auth/login returns 200 with Set-Cookie header</verify>
137
+ <done>Valid credentials → 200 + cookie. Invalid → 401.</done>
138
+ </task>
139
+ ```
140
+
141
+ Use for: Everything Claude can do independently (code, tests, builds, file operations).
142
+ </type>
143
+
144
+ <type name="checkpoint:human-action">
145
+ **RARELY USED** - Only for actions with NO CLI/API. Claude automates everything possible first.
146
+
147
+ **Structure:**
148
+
149
+ ```xml
150
+ <task type="checkpoint:human-action" gate="blocking">
151
+ <action>[Unavoidable manual step - email link, 2FA code]</action>
152
+ <instructions>
153
+ [What Claude already automated]
154
+ [The ONE thing requiring human action]
155
+ </instructions>
156
+ <verification>[What Claude can check afterward]</verification>
157
+ <resume-signal>[How to continue]</resume-signal>
158
+ </task>
159
+ ```
160
+
161
+ Use ONLY for: Email verification links, SMS 2FA codes, manual approvals with no API, 3D Secure payment flows.
162
+
163
+ Do NOT use for: Anything with a CLI (Vercel, Stripe, Upstash, Railway, GitHub), builds, tests, file creation, deployments.
164
+
165
+ **Execution:** Claude automates everything with CLI/API, stops only for truly unavoidable manual steps.
166
+ </type>
167
+
168
+ <type name="checkpoint:human-verify">
169
+ **Human must verify Claude's work** - Visual checks, UX testing.
170
+
171
+ **Structure:**
172
+
173
+ ```xml
174
+ <task type="checkpoint:human-verify" gate="blocking">
175
+ <what-built>Responsive dashboard layout</what-built>
176
+ <how-to-verify>
177
+ 1. Run: npm run dev
178
+ 2. Visit: http://localhost:3000/dashboard
179
+ 3. Desktop (>1024px): Verify sidebar left, content right
180
+ 4. Tablet (768px): Verify sidebar collapses to hamburger
181
+ 5. Mobile (375px): Verify single column, bottom nav
182
+ 6. Check: No layout shift, no horizontal scroll
183
+ </how-to-verify>
184
+ <resume-signal>Type "approved" or describe issues</resume-signal>
185
+ </task>
186
+ ```
187
+
188
+ Use for: UI/UX verification, visual design checks, animation smoothness, accessibility testing.
189
+
190
+ **Execution:** Claude builds the feature, stops, provides testing instructions, waits for approval/feedback.
191
+ </type>
192
+
193
+ <type name="checkpoint:decision">
194
+ **Human must make implementation choice** - Direction-setting decisions.
195
+
196
+ **Structure:**
197
+
198
+ ```xml
199
+ <task type="checkpoint:decision" gate="blocking">
200
+ <decision>Select authentication provider</decision>
201
+ <context>We need user authentication. Three approaches with different tradeoffs:</context>
202
+ <options>
203
+ <option id="supabase">
204
+ <name>Supabase Auth</name>
205
+ <pros>Built-in with Supabase, generous free tier</pros>
206
+ <cons>Less customizable UI, tied to ecosystem</cons>
207
+ </option>
208
+ <option id="clerk">
209
+ <name>Clerk</name>
210
+ <pros>Beautiful pre-built UI, best DX</pros>
211
+ <cons>Paid after 10k MAU</cons>
212
+ </option>
213
+ <option id="nextauth">
214
+ <name>NextAuth.js</name>
215
+ <pros>Free, self-hosted, maximum control</pros>
216
+ <cons>More setup, you manage security</cons>
217
+ </option>
218
+ </options>
219
+ <resume-signal>Select: supabase, clerk, or nextauth</resume-signal>
220
+ </task>
221
+ ```
222
+
223
+ Use for: Technology selection, architecture decisions, design choices, feature prioritization.
224
+
225
+ **Execution:** Claude presents options with balanced pros/cons, waits for decision, proceeds with chosen direction.
226
+ </type>
227
+
228
+ **When to use checkpoints:**
229
+
230
+ - Visual/UX verification (after Claude builds) → `checkpoint:human-verify`
231
+ - Implementation direction choice → `checkpoint:decision`
232
+ - Truly unavoidable manual actions (email links, 2FA) → `checkpoint:human-action` (rare)
233
+
234
+ **When NOT to use checkpoints:**
235
+
236
+ - Anything with CLI/API (Claude automates it) → `type="auto"`
237
+ - Deployments (Vercel, Railway, Fly) → `type="auto"` with CLI
238
+ - Creating resources (Upstash, Stripe, GitHub) → `type="auto"` with CLI/API
239
+ - File operations, tests, builds → `type="auto"`
240
+
241
+ **Golden rule:** If Claude CAN automate it, Claude MUST automate it.
242
+
243
+ See `./checkpoints.md` for comprehensive checkpoint guidance.
244
+ </task_types>
245
+
246
+ <tdd_plans>
247
+ **TDD work uses dedicated plans.**
248
+
249
+ TDD features require 2-3 execution cycles (RED → GREEN → REFACTOR), each with file reads, test runs, and potential debugging. This is fundamentally heavier than standard tasks and would consume 50-60% of context if embedded in a multi-task plan.
250
+
251
+ **When to create a TDD plan:**
252
+ - Business logic with defined inputs/outputs
253
+ - API endpoints with request/response contracts
254
+ - Data transformations and parsing
255
+ - Validation rules
256
+ - Algorithms with testable behavior
257
+
258
+ **When to use standard plans (skip TDD):**
259
+ - UI layout and styling
260
+ - Configuration changes
261
+ - Glue code connecting existing components
262
+ - One-off scripts
263
+
264
+ **Heuristic:** Can you write `expect(fn(input)).toBe(output)` before writing `fn`?
265
+ → Yes: Create a TDD plan (one feature per plan)
266
+ → No: Use standard plan, add tests after if needed
267
+
268
+ See `./tdd.md` for TDD plan structure and execution guidance.
269
+ </tdd_plans>
270
+
271
+ <context_references>
272
+ Use @file references to load context for the prompt:
273
+
274
+ ```markdown
275
+ <context>
276
+ @.planning/PROJECT.md # Project vision
277
+ @.planning/ROADMAP.md # Phase structure
278
+ @.planning/phases/02-auth/DISCOVERY.md # Discovery results
279
+ @src/lib/db.ts # Existing database setup
280
+ @src/types/user.ts # Existing type definitions
281
+ </context>
282
+ ```
283
+
284
+ Reference files that Claude needs to understand before implementing.
285
+ </context_references>
286
+
287
+ <verification_section>
288
+ Overall phase verification (beyond individual task verification):
289
+
290
+ ```markdown
291
+ <verification>
292
+ Before declaring phase complete:
293
+ - [ ] `npm run build` succeeds without errors
294
+ - [ ] `npm test` passes all tests
295
+ - [ ] No TypeScript errors
296
+ - [ ] Feature works end-to-end manually
297
+ </verification>
298
+ ```
299
+
300
+ </verification_section>
301
+
302
+ <success_criteria_section>
303
+ Measurable criteria for phase completion:
304
+
305
+ ```markdown
306
+ <success_criteria>
307
+
308
+ - All tasks completed
309
+ - All verification checks pass
310
+ - No errors or warnings introduced
311
+ - JWT auth flow works end-to-end
312
+ - Protected routes redirect unauthenticated users
313
+ </success_criteria>
314
+ ```
315
+
316
+ </success_criteria_section>
317
+
318
+ <output_section>
319
+ Specify the SUMMARY.md structure:
320
+
321
+ ```markdown
322
+ <output>
323
+ After completion, create `.planning/phases/XX-name/SUMMARY.md`:
324
+
325
+ # Phase X: Name Summary
326
+
327
+ **[Substantive one-liner]**
328
+
329
+ ## Accomplishments
330
+
331
+ ## Files Created/Modified
332
+
333
+ ## Decisions Made
334
+
335
+ ## Issues Encountered
336
+
337
+ ## Next Phase Readiness
338
+
339
+ </output>
340
+ ```
341
+
342
+ </output_section>
343
+
344
+ <specificity_levels>
345
+ <too_vague>
346
+
347
+ ```xml
348
+ <task type="auto">
349
+ <name>Task 1: Add authentication</name>
350
+ <files>???</files>
351
+ <action>Implement auth</action>
352
+ <verify>???</verify>
353
+ <done>Users can authenticate</done>
354
+ </task>
355
+ ```
356
+
357
+ Claude: "How? What type? What library? Where?"
358
+ </too_vague>
359
+
360
+ <just_right>
361
+
362
+ ```xml
363
+ <task type="auto">
364
+ <name>Task 1: Create login endpoint with JWT</name>
365
+ <files>src/app/api/auth/login/route.ts</files>
366
+ <action>POST endpoint accepting {email, password}. Query User by email, compare password with bcrypt. On match, create JWT with jose library, set as httpOnly cookie (15-min expiry). Return 200. On mismatch, return 401. Use jose instead of jsonwebtoken (CommonJS issues with Edge).</action>
367
+ <verify>curl -X POST localhost:3000/api/auth/login -H "Content-Type: application/json" -d '{"email":"test@test.com","password":"test123"}' returns 200 with Set-Cookie header containing JWT</verify>
368
+ <done>Valid credentials → 200 + cookie. Invalid → 401. Missing fields → 400.</done>
369
+ </task>
370
+ ```
371
+
372
+ Claude can implement this immediately.
373
+ </just_right>
374
+
375
+ <note_on_tdd>
376
+ **TDD candidates get dedicated plans.**
377
+
378
+ If email validation warrants TDD, create a TDD plan for it. See `./tdd.md` for TDD plan structure.
379
+ </note_on_tdd>
380
+
381
+ <too_detailed>
382
+ Writing the actual code in the plan. Trust Claude to implement from clear instructions.
383
+ </too_detailed>
384
+ </specificity_levels>
385
+
386
+ <anti_patterns>
387
+ <vague_actions>
388
+
389
+ - "Set up the infrastructure"
390
+ - "Handle edge cases"
391
+ - "Make it production-ready"
392
+ - "Add proper error handling"
393
+
394
+ These require Claude to decide WHAT to do. Specify it.
395
+ </vague_actions>
396
+
397
+ <unverifiable_completion>
398
+
399
+ - "It works correctly"
400
+ - "User experience is good"
401
+ - "Code is clean"
402
+ - "Tests pass" (which tests? do they exist?)
403
+
404
+ These require subjective judgment. Make it objective.
405
+ </unverifiable_completion>
406
+
407
+ <missing_context>
408
+
409
+ - "Use the standard approach"
410
+ - "Follow best practices"
411
+ - "Like the other endpoints"
412
+
413
+ Claude doesn't know your standards. Be explicit.
414
+ </missing_context>
415
+ </anti_patterns>
416
+
417
+ <sizing_tasks>
418
+ Good task size: 15-60 minutes of Claude work.
419
+
420
+ **Too small**: "Add import statement for bcrypt" (combine with related task)
421
+ **Just right**: "Create login endpoint with JWT validation" (focused, specific)
422
+ **Too big**: "Implement full authentication system" (split into multiple plans)
423
+
424
+ If a task takes multiple sessions, break it down.
425
+ If a task is trivial, combine with related tasks.
426
+
427
+ **Note on scope:** If a phase has >3 tasks or spans multiple subsystems, split into multiple plans using the naming convention `{phase}-{plan}-PLAN.md`. See `./scope-estimation.md` for guidance.
428
+ </sizing_tasks>
@@ -0,0 +1,157 @@
1
+ <principles>
2
+ Core principles for the Gets Shit Done planning system.
3
+
4
+ <solo_developer_claude>
5
+
6
+ You are planning for ONE person (the user) and ONE implementer (Claude).
7
+ - No teams, stakeholders, ceremonies, coordination overhead
8
+ - User is the visionary/product owner
9
+ - Claude is the builder
10
+ - Estimate effort in Claude execution time, not human dev time
11
+ </solo_developer_claude>
12
+
13
+ <plans_are_prompts>
14
+
15
+ PLAN.md is not a document that gets transformed into a prompt.
16
+ PLAN.md IS the prompt. It contains:
17
+ - Objective (what and why)
18
+ - Context (@file references)
19
+ - Tasks (with verification criteria)
20
+ - Success criteria (measurable)
21
+
22
+ When planning a phase, you are writing the prompt that will execute it.
23
+ </plans_are_prompts>
24
+
25
+ <initialization_leverage>
26
+
27
+ The most leveraged moment is project initialization.
28
+ - Deep questioning here = better everything downstream
29
+ - Garbage in = garbage out
30
+ - Spend the tokens on context gathering
31
+ - Don't rush to "the work"
32
+ </initialization_leverage>
33
+
34
+ <scope_control>
35
+
36
+ Plans must complete within reasonable context usage.
37
+
38
+ **Quality degradation curve:**
39
+ - 0-30% context: Peak quality
40
+ - 30-50% context: Good quality
41
+ - 50-70% context: Degrading quality
42
+ - 70%+ context: Poor quality
43
+
44
+ **Solution:** Aggressive atomicity - split into small, focused plans.
45
+ - 2-3 tasks per plan maximum
46
+ - Each plan independently executable
47
+ - Better to have many small plans than few large ones
48
+ </scope_control>
49
+
50
+ <claude_automates>
51
+
52
+ If Claude CAN do it via CLI/API/tool, Claude MUST do it.
53
+
54
+ Checkpoints are for:
55
+ - **Verification** - Human confirms Claude's work (visual, UX)
56
+ - **Decision** - Human makes implementation choice
57
+
58
+ Not for:
59
+ - Deploying (use CLI)
60
+ - Creating resources (use CLI/API)
61
+ - Running builds/tests (use Bash)
62
+ - Writing files (use Write tool)
63
+ </claude_automates>
64
+
65
+ <deviation_rules>
66
+
67
+ Plans are guides, not straitjackets. During execution:
68
+
69
+ 1. **Auto-fix bugs** - Fix immediately, document
70
+ 2. **Auto-add critical** - Security/correctness gaps, add immediately
71
+ 3. **Auto-fix blockers** - Can't proceed, fix immediately
72
+ 4. **Ask about architectural** - Major changes, stop and ask
73
+ 5. **Log enhancements** - Nice-to-haves, log to Issues, continue
74
+ </deviation_rules>
75
+
76
+ <test_driven_when_beneficial>
77
+
78
+ Use TDD when the work WOULD benefit from it. Not dogma—pragmatism.
79
+
80
+ **TDD candidates (create dedicated TDD plan):**
81
+ - Business logic with defined inputs/outputs
82
+ - API endpoints and handlers
83
+ - Data transformations and parsing
84
+ - Validation rules
85
+ - State machines and workflows
86
+ - Anything where you can describe expected behavior before implementing
87
+
88
+ **Skip TDD (use standard plan):**
89
+ - UI layout and styling
90
+ - Exploratory prototyping
91
+ - One-off scripts and migrations
92
+ - Configuration changes
93
+ - Glue code with no logic
94
+
95
+ **Decision heuristic:**
96
+ Can you write `expect(fn(input)).toBe(output)` before writing `fn`?
97
+ → Yes: Create a TDD plan (one feature per plan)
98
+ → No: Standard plan, add tests after if needed
99
+
100
+ **Why TDD gets its own plan:**
101
+ TDD requires 2-3 execution cycles (RED → GREEN → REFACTOR), each with file reads, test runs, and potential debugging. This consumes 40-50% of context for a single feature. Dedicated TDD plans ensure full quality throughout the cycle.
102
+
103
+ **TDD plan structure:**
104
+ 1. Write failing test (RED) → commit
105
+ 2. Implement to pass (GREEN) → commit
106
+ 3. Refactor if needed → commit
107
+
108
+ This is about design quality, not test coverage metrics.
109
+
110
+ See `~/.config/opencode/get-shit-done/references/tdd.md` for TDD plan structure.
111
+ </test_driven_when_beneficial>
112
+
113
+ <ship_fast>
114
+
115
+ No enterprise process. No approval gates.
116
+
117
+ Plan → Execute → Ship → Learn → Repeat
118
+
119
+ Milestones mark shipped versions (v1.0 → v1.1 → v2.0).
120
+ </ship_fast>
121
+
122
+ <atomic_commits>
123
+
124
+ **Git commits = context engineering for Claude.**
125
+
126
+ Each task gets its own commit immediately after completion:
127
+ - Format: `{type}({phase}-{plan}): {task-description}`
128
+ - Types: feat, fix, test, refactor, perf, chore, docs
129
+ - One final metadata commit per plan: `docs({phase}-{plan}): complete [plan-name]`
130
+
131
+ **Why per-task commits:**
132
+ - Git history becomes primary context source for future Claude sessions
133
+ - `git bisect` finds exact failing task, not just failing plan
134
+ - Each task independently revertable
135
+ - Better failure recovery (task 1 committed ✅, retry task 2)
136
+ - Observability optimized for AI workflow, not human browsing
137
+
138
+ **Plans produce 3-4 commits total:**
139
+ - 2-3 task commits (working code)
140
+ - 1 metadata commit (SUMMARY + STATE + ROADMAP)
141
+
142
+ See `~/.config/opencode/get-shit-done/references/git-integration.md` for complete strategy.
143
+ </atomic_commits>
144
+
145
+ <anti_enterprise>
146
+
147
+ NEVER include:
148
+ - Team structures, RACI matrices
149
+ - Stakeholder management
150
+ - Sprint ceremonies
151
+ - Human dev time estimates (hours, days, weeks—Claude works differently)
152
+ - Change management processes
153
+ - Documentation for documentation's sake
154
+
155
+ If it sounds like corporate PM theater, delete it.
156
+ </anti_enterprise>
157
+ </principles>