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,287 @@
1
+ <trigger>
2
+ Use this workflow when:
3
+ - Starting a new session on an existing project
4
+ - User says "continue", "what's next", "where were we", "resume"
5
+ - Any planning operation when .planning/ already exists
6
+ - User returns after time away from project
7
+ </trigger>
8
+
9
+ <purpose>
10
+ Instantly restore full project context and present clear status.
11
+ Enables seamless session continuity for fully autonomous workflows.
12
+
13
+ "Where were we?" should have an immediate, complete answer.
14
+ </purpose>
15
+
16
+ <process>
17
+
18
+ <step name="detect_existing_project">
19
+ Check if this is an existing project:
20
+
21
+ ```bash
22
+ ls .planning/STATE.md 2>/dev/null && echo "Project exists"
23
+ ls .planning/ROADMAP.md 2>/dev/null && echo "Roadmap exists"
24
+ ls .planning/PROJECT.md 2>/dev/null && echo "Project file exists"
25
+ ```
26
+
27
+ **If STATE.md exists:** Proceed to load_state
28
+ **If only ROADMAP.md/PROJECT.md exist:** Offer to reconstruct STATE.md
29
+ **If .planning/ doesn't exist:** This is a new project - route to /gsd:new-project
30
+ </step>
31
+
32
+ <step name="load_state">
33
+
34
+ Read and parse STATE.md, then PROJECT.md:
35
+
36
+ ```bash
37
+ cat .planning/STATE.md
38
+ cat .planning/PROJECT.md
39
+ ```
40
+
41
+ **From STATE.md extract:**
42
+
43
+ - **Project Reference**: Core value and current focus
44
+ - **Current Position**: Phase X of Y, Plan A of B, Status
45
+ - **Progress**: Visual progress bar
46
+ - **Recent Decisions**: Key decisions affecting current work
47
+ - **Deferred Issues**: Open items awaiting attention
48
+ - **Blockers/Concerns**: Issues carried forward
49
+ - **Session Continuity**: Where we left off, any resume files
50
+
51
+ **From PROJECT.md extract:**
52
+
53
+ - **What This Is**: Current accurate description
54
+ - **Requirements**: Validated, Active, Out of Scope
55
+ - **Key Decisions**: Full decision log with outcomes
56
+ - **Constraints**: Hard limits on implementation
57
+
58
+ </step>
59
+
60
+ <step name="check_incomplete_work">
61
+ Look for incomplete work that needs attention:
62
+
63
+ ```bash
64
+ # Check for continue-here files (mid-plan resumption)
65
+ ls .planning/phases/*/.continue-here*.md 2>/dev/null
66
+
67
+ # Check for plans without summaries (incomplete execution)
68
+ for plan in .planning/phases/*/*-PLAN.md; do
69
+ summary="${plan/PLAN/SUMMARY}"
70
+ [ ! -f "$summary" ] && echo "Incomplete: $plan"
71
+ done 2>/dev/null
72
+ ```
73
+
74
+ **If .continue-here file exists:**
75
+
76
+ - This is a mid-plan resumption point
77
+ - Read the file for specific resumption context
78
+ - Flag: "Found mid-plan checkpoint"
79
+
80
+ **If PLAN without SUMMARY exists:**
81
+
82
+ - Execution was started but not completed
83
+ - Flag: "Found incomplete plan execution"
84
+ </step>
85
+
86
+ <step name="present_status">
87
+ Present complete project status to user:
88
+
89
+ ```
90
+ ╔══════════════════════════════════════════════════════════════╗
91
+ ║ PROJECT STATUS ║
92
+ ╠══════════════════════════════════════════════════════════════╣
93
+ ║ Building: [one-liner from PROJECT.md "What This Is"] ║
94
+ ║ ║
95
+ ║ Phase: [X] of [Y] - [Phase name] ║
96
+ ║ Plan: [A] of [B] - [Status] ║
97
+ ║ Progress: [██████░░░░] XX% ║
98
+ ║ ║
99
+ ║ Last activity: [date] - [what happened] ║
100
+ ╚══════════════════════════════════════════════════════════════╝
101
+
102
+ [If incomplete work found:]
103
+ ⚠️ Incomplete work detected:
104
+ - [.continue-here file or incomplete plan]
105
+
106
+ [If deferred issues exist:]
107
+ 📋 [N] deferred issues awaiting attention
108
+
109
+ [If blockers exist:]
110
+ ⚠️ Carried concerns:
111
+ - [blocker 1]
112
+ - [blocker 2]
113
+
114
+ [If alignment is not ✓:]
115
+ ⚠️ Brief alignment: [status] - [assessment]
116
+ ```
117
+
118
+ </step>
119
+
120
+ <step name="determine_next_action">
121
+ Based on project state, determine the most logical next action:
122
+
123
+ **If .continue-here file exists:**
124
+ → Primary: Resume from checkpoint
125
+ → Option: Start fresh on current plan
126
+
127
+ **If incomplete plan (PLAN without SUMMARY):**
128
+ → Primary: Complete the incomplete plan
129
+ → Option: Abandon and move on
130
+
131
+ **If phase in progress, all plans complete:**
132
+ → Primary: Transition to next phase
133
+ → Option: Review completed work
134
+
135
+ **If phase ready to plan:**
136
+ → Check if CONTEXT.md exists for this phase:
137
+
138
+ - If CONTEXT.md missing:
139
+ → Primary: Discuss phase vision (how user imagines it working)
140
+ → Secondary: Plan directly (skip context gathering)
141
+ - If CONTEXT.md exists:
142
+ → Primary: Plan the phase
143
+ → Option: Review roadmap
144
+
145
+ **If phase ready to execute:**
146
+ → Primary: Execute next plan
147
+ → Option: Review the plan first
148
+ </step>
149
+
150
+ <step name="offer_options">
151
+ Present contextual options based on project state:
152
+
153
+ ```
154
+ What would you like to do?
155
+
156
+ [Primary action based on state - e.g.:]
157
+ 1. Resume from checkpoint (/gsd:execute-plan .planning/phases/XX-name/.continue-here-02-01.md)
158
+ OR
159
+ 1. Execute next plan (/gsd:execute-plan .planning/phases/XX-name/02-02-PLAN.md)
160
+ OR
161
+ 1. Discuss Phase 3 context (/gsd:discuss-phase 3) [if CONTEXT.md missing]
162
+ OR
163
+ 1. Plan Phase 3 (/gsd:plan-phase 3) [if CONTEXT.md exists or discuss option declined]
164
+
165
+ [Secondary options:]
166
+ 2. Review current phase status
167
+ 3. Check deferred issues ([N] open)
168
+ 4. Review brief alignment
169
+ 5. Something else
170
+ ```
171
+
172
+ **Note:** When offering phase planning, check for CONTEXT.md existence first:
173
+
174
+ ```bash
175
+ ls .planning/phases/XX-name/CONTEXT.md 2>/dev/null
176
+ ```
177
+
178
+ If missing, suggest discuss-phase before plan. If exists, offer plan directly.
179
+
180
+ Wait for user selection.
181
+ </step>
182
+
183
+ <step name="route_to_workflow">
184
+ Based on user selection, route to appropriate workflow:
185
+
186
+ - **Execute plan** → Show command for user to run after clearing:
187
+ ```
188
+ ---
189
+
190
+ ## ▶ Next Up
191
+
192
+ **{phase}-{plan}: [Plan Name]** — [objective from PLAN.md]
193
+
194
+ `/gsd:execute-plan [path]`
195
+
196
+ <sub>`/clear` first → fresh context window</sub>
197
+
198
+ ---
199
+ ```
200
+ - **Plan phase** → Show command for user to run after clearing:
201
+ ```
202
+ ---
203
+
204
+ ## ▶ Next Up
205
+
206
+ **Phase [N]: [Name]** — [Goal from ROADMAP.md]
207
+
208
+ `/gsd:plan-phase [phase-number]`
209
+
210
+ <sub>`/clear` first → fresh context window</sub>
211
+
212
+ ---
213
+
214
+ **Also available:**
215
+ - `/gsd:discuss-phase [N]` — gather context first
216
+ - `/gsd:research-phase [N]` — investigate unknowns
217
+
218
+ ---
219
+ ```
220
+ - **Transition** → ./transition.md
221
+ - **Review issues** → Read ISSUES.md, present summary
222
+ - **Review alignment** → Read PROJECT.md, compare to current state
223
+ - **Something else** → Ask what they need
224
+ </step>
225
+
226
+ <step name="update_session">
227
+ Before proceeding to routed workflow, update session continuity:
228
+
229
+ Update STATE.md:
230
+
231
+ ```markdown
232
+ ## Session Continuity
233
+
234
+ Last session: [now]
235
+ Stopped at: Session resumed, proceeding to [action]
236
+ Resume file: [updated if applicable]
237
+ ```
238
+
239
+ This ensures if session ends unexpectedly, next resume knows the state.
240
+ </step>
241
+
242
+ </process>
243
+
244
+ <reconstruction>
245
+ If STATE.md is missing but other artifacts exist:
246
+
247
+ "STATE.md missing. Reconstructing from artifacts..."
248
+
249
+ 1. Read PROJECT.md → Extract "What This Is" and Core Value
250
+ 2. Read ROADMAP.md → Determine phases, find current position
251
+ 3. Scan \*-SUMMARY.md files → Extract decisions, issues, concerns
252
+ 4. Read ISSUES.md → Count deferred issues
253
+ 5. Check for .continue-here files → Session continuity
254
+
255
+ Reconstruct and write STATE.md, then proceed normally.
256
+
257
+ This handles cases where:
258
+
259
+ - Project predates STATE.md introduction
260
+ - File was accidentally deleted
261
+ - Cloning repo without full .planning/ state
262
+ </reconstruction>
263
+
264
+ <quick_resume>
265
+ For users who want minimal friction:
266
+
267
+ If user says just "continue" or "go":
268
+
269
+ - Load state silently
270
+ - Determine primary action
271
+ - Execute immediately without presenting options
272
+
273
+ "Continuing from [state]... [action]"
274
+
275
+ This enables fully autonomous "just keep going" workflow.
276
+ </quick_resume>
277
+
278
+ <success_criteria>
279
+ Resume is complete when:
280
+
281
+ - [ ] STATE.md loaded (or reconstructed)
282
+ - [ ] Incomplete work detected and flagged
283
+ - [ ] Clear status presented to user
284
+ - [ ] Contextual next actions offered
285
+ - [ ] User knows exactly where project stands
286
+ - [ ] Session continuity updated
287
+ </success_criteria>