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,255 @@
1
+ # Continuation Format
2
+
3
+ Standard format for presenting next steps after completing a command or workflow.
4
+
5
+ ## Core Structure
6
+
7
+ ```
8
+ ---
9
+
10
+ ## ▶ Next Up
11
+
12
+ **{identifier}: {name}** — {one-line description}
13
+
14
+ `{command to copy-paste}`
15
+
16
+ <sub>`/clear` first → fresh context window</sub>
17
+
18
+ ---
19
+
20
+ **Also available:**
21
+ - `{alternative option 1}` — description
22
+ - `{alternative option 2}` — description
23
+
24
+ ---
25
+ ```
26
+
27
+ ## Format Rules
28
+
29
+ 1. **Always show what it is** — name + description, never just a command path
30
+ 2. **Pull context from source** — ROADMAP.md for phases, PLAN.md `<objective>` for plans
31
+ 3. **Command in inline code** — backticks, easy to copy-paste, renders as clickable link
32
+ 4. **`/clear` explanation** — always include, keeps it concise but explains why
33
+ 5. **"Also available" not "Other options"** — sounds more app-like
34
+ 6. **Visual separators** — `---` above and below to make it stand out
35
+
36
+ ## Variants
37
+
38
+ ### Execute Next Plan
39
+
40
+ ```
41
+ ---
42
+
43
+ ## ▶ Next Up
44
+
45
+ **02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
46
+
47
+ `/gsd:execute-plan .planning/phases/02-auth/02-03-PLAN.md`
48
+
49
+ <sub>`/clear` first → fresh context window</sub>
50
+
51
+ ---
52
+
53
+ **Also available:**
54
+ - Review plan before executing
55
+ - `/gsd:list-phase-assumptions 2` — check assumptions
56
+
57
+ ---
58
+ ```
59
+
60
+ ### Execute Final Plan in Phase
61
+
62
+ Add note that this is the last plan and what comes after:
63
+
64
+ ```
65
+ ---
66
+
67
+ ## ▶ Next Up
68
+
69
+ **02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
70
+ <sub>Final plan in Phase 2</sub>
71
+
72
+ `/gsd:execute-plan .planning/phases/02-auth/02-03-PLAN.md`
73
+
74
+ <sub>`/clear` first → fresh context window</sub>
75
+
76
+ ---
77
+
78
+ **After this completes:**
79
+ - Phase 2 → Phase 3 transition
80
+ - Next: **Phase 3: Core Features** — User dashboard and settings
81
+
82
+ ---
83
+ ```
84
+
85
+ ### Plan a Phase
86
+
87
+ ```
88
+ ---
89
+
90
+ ## ▶ Next Up
91
+
92
+ **Phase 2: Authentication** — JWT login flow with refresh tokens
93
+
94
+ `/gsd:plan-phase 2`
95
+
96
+ <sub>`/clear` first → fresh context window</sub>
97
+
98
+ ---
99
+
100
+ **Also available:**
101
+ - `/gsd:discuss-phase 2` — gather context first
102
+ - `/gsd:research-phase 2` — investigate unknowns
103
+ - Review roadmap
104
+
105
+ ---
106
+ ```
107
+
108
+ ### Phase Complete, Ready for Next
109
+
110
+ Show completion status before next action:
111
+
112
+ ```
113
+ ---
114
+
115
+ ## ✓ Phase 2 Complete
116
+
117
+ 3/3 plans executed
118
+
119
+ ## ▶ Next Up
120
+
121
+ **Phase 3: Core Features** — User dashboard, settings, and data export
122
+
123
+ `/gsd:plan-phase 3`
124
+
125
+ <sub>`/clear` first → fresh context window</sub>
126
+
127
+ ---
128
+
129
+ **Also available:**
130
+ - `/gsd:discuss-phase 3` — gather context first
131
+ - `/gsd:research-phase 3` — investigate unknowns
132
+ - Review what Phase 2 built
133
+
134
+ ---
135
+ ```
136
+
137
+ ### Multiple Equal Options
138
+
139
+ When there's no clear primary action:
140
+
141
+ ```
142
+ ---
143
+
144
+ ## ▶ Next Up
145
+
146
+ **Phase 3: Core Features** — User dashboard, settings, and data export
147
+
148
+ **To plan directly:** `/gsd:plan-phase 3`
149
+
150
+ **To discuss context first:** `/gsd:discuss-phase 3`
151
+
152
+ **To research unknowns:** `/gsd:research-phase 3`
153
+
154
+ <sub>`/clear` first → fresh context window</sub>
155
+
156
+ ---
157
+ ```
158
+
159
+ ### Milestone Complete
160
+
161
+ ```
162
+ ---
163
+
164
+ ## 🎉 Milestone v1.0 Complete
165
+
166
+ All 4 phases shipped
167
+
168
+ ## ▶ Next Up
169
+
170
+ **Plan v1.1** — Enhanced features and optimizations
171
+
172
+ `/gsd:discuss-milestone`
173
+
174
+ <sub>`/clear` first → fresh context window</sub>
175
+
176
+ ---
177
+
178
+ **Also available:**
179
+ - `/gsd:new-milestone` — create directly if scope is clear
180
+ - Review accomplishments before moving on
181
+
182
+ ---
183
+ ```
184
+
185
+ ## Pulling Context
186
+
187
+ ### For phases (from ROADMAP.md):
188
+
189
+ ```markdown
190
+ ### Phase 2: Authentication
191
+ **Goal**: JWT login flow with refresh tokens
192
+ ```
193
+
194
+ Extract: `**Phase 2: Authentication** — JWT login flow with refresh tokens`
195
+
196
+ ### For plans (from ROADMAP.md):
197
+
198
+ ```markdown
199
+ Plans:
200
+ - [ ] 02-03: Add refresh token rotation
201
+ ```
202
+
203
+ Or from PLAN.md `<objective>`:
204
+
205
+ ```xml
206
+ <objective>
207
+ Add refresh token rotation with sliding expiry window.
208
+
209
+ Purpose: Extend session lifetime without compromising security.
210
+ </objective>
211
+ ```
212
+
213
+ Extract: `**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry`
214
+
215
+ ## Anti-Patterns
216
+
217
+ ### Don't: Command-only (no context)
218
+
219
+ ```
220
+ ## To Continue
221
+
222
+ Run `/clear`, then paste:
223
+ /gsd:execute-plan .planning/phases/02-auth/02-03-PLAN.md
224
+ ```
225
+
226
+ User has no idea what 02-03 is about.
227
+
228
+ ### Don't: Missing /clear explanation
229
+
230
+ ```
231
+ `/gsd:plan-phase 3`
232
+
233
+ Run /clear first.
234
+ ```
235
+
236
+ Doesn't explain why. User might skip it.
237
+
238
+ ### Don't: "Other options" language
239
+
240
+ ```
241
+ Other options:
242
+ - Review roadmap
243
+ ```
244
+
245
+ Sounds like an afterthought. Use "Also available:" instead.
246
+
247
+ ### Don't: Fenced code blocks for commands
248
+
249
+ ```
250
+ ```
251
+ /gsd:plan-phase 3
252
+ ```
253
+ ```
254
+
255
+ Fenced blocks inside templates create nesting ambiguity. Use inline backticks instead.
@@ -0,0 +1,254 @@
1
+ <overview>
2
+ Git integration for GSD framework.
3
+ </overview>
4
+
5
+ <core_principle>
6
+
7
+ **Commit outcomes, not process.**
8
+
9
+ The git log should read like a changelog of what shipped, not a diary of planning activity.
10
+ </core_principle>
11
+
12
+ <commit_points>
13
+
14
+ | Event | Commit? | Why |
15
+ | ----------------------- | ------- | ------------------------------------------------ |
16
+ | BRIEF + ROADMAP created | YES | Project initialization |
17
+ | PLAN.md created | NO | Intermediate - commit with plan completion |
18
+ | RESEARCH.md created | NO | Intermediate |
19
+ | DISCOVERY.md created | NO | Intermediate |
20
+ | **Task completed** | YES | Atomic unit of work (1 commit per task) |
21
+ | **Plan completed** | YES | Metadata commit (SUMMARY + STATE + ROADMAP) |
22
+ | Handoff created | YES | WIP state preserved |
23
+
24
+ </commit_points>
25
+
26
+ <git_check>
27
+
28
+ ```bash
29
+ [ -d .git ] && echo "GIT_EXISTS" || echo "NO_GIT"
30
+ ```
31
+
32
+ If NO_GIT: Run `git init` silently. GSD projects always get their own repo.
33
+ </git_check>
34
+
35
+ <commit_formats>
36
+
37
+ <format name="initialization">
38
+ ## Project Initialization (brief + roadmap together)
39
+
40
+ ```
41
+ docs: initialize [project-name] ([N] phases)
42
+
43
+ [One-liner from PROJECT.md]
44
+
45
+ Phases:
46
+ 1. [phase-name]: [goal]
47
+ 2. [phase-name]: [goal]
48
+ 3. [phase-name]: [goal]
49
+ ```
50
+
51
+ What to commit:
52
+
53
+ ```bash
54
+ git add .planning/
55
+ git commit
56
+ ```
57
+
58
+ </format>
59
+
60
+ <format name="task-completion">
61
+ ## Task Completion (During Plan Execution)
62
+
63
+ Each task gets its own commit immediately after completion.
64
+
65
+ ```
66
+ {type}({phase}-{plan}): {task-name}
67
+
68
+ - [Key change 1]
69
+ - [Key change 2]
70
+ - [Key change 3]
71
+ ```
72
+
73
+ **Commit types:**
74
+ - `feat` - New feature/functionality
75
+ - `fix` - Bug fix
76
+ - `test` - Test-only (TDD RED phase)
77
+ - `refactor` - Code cleanup (TDD REFACTOR phase)
78
+ - `perf` - Performance improvement
79
+ - `chore` - Dependencies, config, tooling
80
+
81
+ **Examples:**
82
+
83
+ ```bash
84
+ # Standard task
85
+ git add src/api/auth.ts src/types/user.ts
86
+ git commit -m "feat(08-02): create user registration endpoint
87
+
88
+ - POST /auth/register validates email and password
89
+ - Checks for duplicate users
90
+ - Returns JWT token on success
91
+ "
92
+
93
+ # TDD task - RED phase
94
+ git add src/__tests__/jwt.test.ts
95
+ git commit -m "test(07-02): add failing test for JWT generation
96
+
97
+ - Tests token contains user ID claim
98
+ - Tests token expires in 1 hour
99
+ - Tests signature verification
100
+ "
101
+
102
+ # TDD task - GREEN phase
103
+ git add src/utils/jwt.ts
104
+ git commit -m "feat(07-02): implement JWT generation
105
+
106
+ - Uses jose library for signing
107
+ - Includes user ID and expiry claims
108
+ - Signs with HS256 algorithm
109
+ "
110
+ ```
111
+
112
+ </format>
113
+
114
+ <format name="plan-completion">
115
+ ## Plan Completion (After All Tasks Done)
116
+
117
+ After all tasks committed, one final metadata commit captures plan completion.
118
+
119
+ ```
120
+ docs({phase}-{plan}): complete [plan-name] plan
121
+
122
+ Tasks completed: [N]/[N]
123
+ - [Task 1 name]
124
+ - [Task 2 name]
125
+ - [Task 3 name]
126
+
127
+ SUMMARY: .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
128
+ ```
129
+
130
+ What to commit:
131
+
132
+ ```bash
133
+ git add .planning/phases/XX-name/{phase}-{plan}-PLAN.md
134
+ git add .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
135
+ git add .planning/STATE.md
136
+ git add .planning/ROADMAP.md
137
+ git commit
138
+ ```
139
+
140
+ **Note:** Code files NOT included - already committed per-task.
141
+
142
+ </format>
143
+
144
+ <format name="handoff">
145
+ ## Handoff (WIP)
146
+
147
+ ```
148
+ wip: [phase-name] paused at task [X]/[Y]
149
+
150
+ Current: [task name]
151
+ [If blocked:] Blocked: [reason]
152
+ ```
153
+
154
+ What to commit:
155
+
156
+ ```bash
157
+ git add .planning/
158
+ git commit
159
+ ```
160
+
161
+ </format>
162
+ </commit_formats>
163
+
164
+ <example_log>
165
+
166
+ **Old approach (per-plan commits):**
167
+ ```
168
+ a7f2d1 feat(checkout): Stripe payments with webhook verification
169
+ 3e9c4b feat(products): catalog with search, filters, and pagination
170
+ 8a1b2c feat(auth): JWT with refresh rotation using jose
171
+ 5c3d7e feat(foundation): Next.js 15 + Prisma + Tailwind scaffold
172
+ 2f4a8d docs: initialize ecommerce-app (5 phases)
173
+ ```
174
+
175
+ **New approach (per-task commits):**
176
+ ```
177
+ # Phase 04 - Checkout
178
+ 1a2b3c docs(04-01): complete checkout flow plan
179
+ 4d5e6f feat(04-01): add webhook signature verification
180
+ 7g8h9i feat(04-01): implement payment session creation
181
+ 0j1k2l feat(04-01): create checkout page component
182
+
183
+ # Phase 03 - Products
184
+ 3m4n5o docs(03-02): complete product listing plan
185
+ 6p7q8r feat(03-02): add pagination controls
186
+ 9s0t1u feat(03-02): implement search and filters
187
+ 2v3w4x feat(03-01): create product catalog schema
188
+
189
+ # Phase 02 - Auth
190
+ 5y6z7a docs(02-02): complete token refresh plan
191
+ 8b9c0d feat(02-02): implement refresh token rotation
192
+ 1e2f3g test(02-02): add failing test for token refresh
193
+ 4h5i6j docs(02-01): complete JWT setup plan
194
+ 7k8l9m feat(02-01): add JWT generation and validation
195
+ 0n1o2p chore(02-01): install jose library
196
+
197
+ # Phase 01 - Foundation
198
+ 3q4r5s docs(01-01): complete scaffold plan
199
+ 6t7u8v feat(01-01): configure Tailwind and globals
200
+ 9w0x1y feat(01-01): set up Prisma with database
201
+ 2z3a4b feat(01-01): create Next.js 15 project
202
+
203
+ # Initialization
204
+ 5c6d7e docs: initialize ecommerce-app (5 phases)
205
+ ```
206
+
207
+ Each plan produces 2-4 commits (tasks + metadata). Clear, granular, bisectable.
208
+
209
+ </example_log>
210
+
211
+ <anti_patterns>
212
+
213
+ **Still don't commit (intermediate artifacts):**
214
+ - PLAN.md creation (commit with plan completion)
215
+ - RESEARCH.md (intermediate)
216
+ - DISCOVERY.md (intermediate)
217
+ - Minor planning tweaks
218
+ - "Fixed typo in roadmap"
219
+
220
+ **Do commit (outcomes):**
221
+ - Each task completion (feat/fix/test/refactor)
222
+ - Plan completion metadata (docs)
223
+ - Project initialization (docs)
224
+
225
+ **Key principle:** Commit working code and shipped outcomes, not planning process.
226
+
227
+ </anti_patterns>
228
+
229
+ <commit_strategy_rationale>
230
+
231
+ ## Why Per-Task Commits?
232
+
233
+ **Context engineering for AI:**
234
+ - Git history becomes primary context source for future Claude sessions
235
+ - `git log --grep="{phase}-{plan}"` shows all work for a plan
236
+ - `git diff <hash>^..<hash>` shows exact changes per task
237
+ - Less reliance on parsing SUMMARY.md = more context for actual work
238
+
239
+ **Failure recovery:**
240
+ - Task 1 committed ✅, Task 2 failed ❌
241
+ - Claude in next session: sees task 1 complete, can retry task 2
242
+ - Can `git reset --hard` to last successful task
243
+
244
+ **Debugging:**
245
+ - `git bisect` finds exact failing task, not just failing plan
246
+ - `git blame` traces line to specific task context
247
+ - Each commit is independently revertable
248
+
249
+ **Observability:**
250
+ - Solo developer + Claude workflow benefits from granular attribution
251
+ - Atomic commits are git best practice
252
+ - "Commit noise" irrelevant when consumer is Claude, not humans
253
+
254
+ </commit_strategy_rationale>