gsd-codex-cli 1.20.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.
- package/.codex/prompts/gsd-add-phase.md +44 -0
- package/.codex/prompts/gsd-add-todo.md +43 -0
- package/.codex/prompts/gsd-audit-milestone.md +43 -0
- package/.codex/prompts/gsd-check-todos.md +43 -0
- package/.codex/prompts/gsd-complete-milestone.md +43 -0
- package/.codex/prompts/gsd-debug.md +46 -0
- package/.codex/prompts/gsd-discuss-phase.md +43 -0
- package/.codex/prompts/gsd-execute-phase.md +43 -0
- package/.codex/prompts/gsd-help.md +43 -0
- package/.codex/prompts/gsd-insert-phase.md +43 -0
- package/.codex/prompts/gsd-list-phase-assumptions.md +43 -0
- package/.codex/prompts/gsd-map-codebase.md +43 -0
- package/.codex/prompts/gsd-new-milestone.md +43 -0
- package/.codex/prompts/gsd-new-project.md +43 -0
- package/.codex/prompts/gsd-pause-work.md +43 -0
- package/.codex/prompts/gsd-plan-milestone-gaps.md +43 -0
- package/.codex/prompts/gsd-plan-phase.md +43 -0
- package/.codex/prompts/gsd-progress.md +43 -0
- package/.codex/prompts/gsd-quick.md +43 -0
- package/.codex/prompts/gsd-remove-phase.md +43 -0
- package/.codex/prompts/gsd-research-phase.md +43 -0
- package/.codex/prompts/gsd-resume-work.md +43 -0
- package/.codex/prompts/gsd-set-profile.md +43 -0
- package/.codex/prompts/gsd-settings.md +43 -0
- package/.codex/prompts/gsd-update.md +43 -0
- package/.codex/prompts/gsd-verify-work.md +43 -0
- package/.codex/skills/get-shit-done-codex/SKILL.md +65 -0
- package/.codex/skills/get-shit-done-codex/references/compat.md +32 -0
- package/.codex/skills/get-shit-done-codex/references/windows.md +23 -0
- package/CHANGELOG.md +1434 -0
- package/LICENSE +21 -0
- package/README.md +690 -0
- package/agents/gsd-codebase-mapper.md +761 -0
- package/agents/gsd-debugger.md +1198 -0
- package/agents/gsd-executor.md +419 -0
- package/agents/gsd-integration-checker.md +423 -0
- package/agents/gsd-phase-researcher.md +469 -0
- package/agents/gsd-plan-checker.md +622 -0
- package/agents/gsd-planner.md +1159 -0
- package/agents/gsd-project-researcher.md +618 -0
- package/agents/gsd-research-synthesizer.md +236 -0
- package/agents/gsd-roadmapper.md +639 -0
- package/agents/gsd-verifier.md +541 -0
- package/bin/install-codex.js +100 -0
- package/bin/install.js +1806 -0
- package/commands/gsd/add-phase.md +39 -0
- package/commands/gsd/add-todo.md +42 -0
- package/commands/gsd/audit-milestone.md +42 -0
- package/commands/gsd/check-todos.md +41 -0
- package/commands/gsd/cleanup.md +18 -0
- package/commands/gsd/complete-milestone.md +136 -0
- package/commands/gsd/debug.md +162 -0
- package/commands/gsd/discuss-phase.md +87 -0
- package/commands/gsd/execute-phase.md +42 -0
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +22 -0
- package/commands/gsd/insert-phase.md +33 -0
- package/commands/gsd/join-discord.md +18 -0
- package/commands/gsd/list-phase-assumptions.md +50 -0
- package/commands/gsd/map-codebase.md +71 -0
- package/commands/gsd/new-milestone.md +51 -0
- package/commands/gsd/new-project.md +42 -0
- package/commands/gsd/pause-work.md +35 -0
- package/commands/gsd/plan-milestone-gaps.md +40 -0
- package/commands/gsd/plan-phase.md +44 -0
- package/commands/gsd/progress.md +24 -0
- package/commands/gsd/quick.md +40 -0
- package/commands/gsd/reapply-patches.md +110 -0
- package/commands/gsd/remove-phase.md +32 -0
- package/commands/gsd/research-phase.md +187 -0
- package/commands/gsd/resume-work.md +40 -0
- package/commands/gsd/set-profile.md +34 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/update.md +37 -0
- package/commands/gsd/verify-work.md +39 -0
- package/get-shit-done/bin/gsd-tools.cjs +5243 -0
- package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
- package/get-shit-done/references/checkpoints.md +775 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +248 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +92 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +196 -0
- package/get-shit-done/references/questioning.md +145 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/templates/DEBUG.md +159 -0
- package/get-shit-done/templates/UAT.md +247 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +36 -0
- package/get-shit-done/templates/context.md +283 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +567 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +552 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/state.md +176 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +246 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +111 -0
- package/get-shit-done/workflows/add-todo.md +157 -0
- package/get-shit-done/workflows/audit-milestone.md +242 -0
- package/get-shit-done/workflows/check-todos.md +176 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +674 -0
- package/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase.md +485 -0
- package/get-shit-done/workflows/execute-phase.md +408 -0
- package/get-shit-done/workflows/execute-plan.md +441 -0
- package/get-shit-done/workflows/health.md +156 -0
- package/get-shit-done/workflows/help.md +486 -0
- package/get-shit-done/workflows/insert-phase.md +129 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +327 -0
- package/get-shit-done/workflows/new-milestone.md +373 -0
- package/get-shit-done/workflows/new-project.md +1113 -0
- package/get-shit-done/workflows/pause-work.md +122 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
- package/get-shit-done/workflows/plan-phase.md +448 -0
- package/get-shit-done/workflows/progress.md +393 -0
- package/get-shit-done/workflows/quick.md +444 -0
- package/get-shit-done/workflows/remove-phase.md +154 -0
- package/get-shit-done/workflows/research-phase.md +74 -0
- package/get-shit-done/workflows/resume-project.md +306 -0
- package/get-shit-done/workflows/set-profile.md +80 -0
- package/get-shit-done/workflows/settings.md +200 -0
- package/get-shit-done/workflows/transition.md +539 -0
- package/get-shit-done/workflows/update.md +214 -0
- package/get-shit-done/workflows/verify-phase.md +242 -0
- package/get-shit-done/workflows/verify-work.md +570 -0
- package/hooks/dist/gsd-check-update.js +62 -0
- package/hooks/dist/gsd-statusline.js +91 -0
- package/package.json +54 -0
- package/scripts/build-hooks.js +42 -0
|
@@ -0,0 +1,306 @@
|
|
|
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 so "Where were we?" has an immediate, complete answer.
|
|
11
|
+
</purpose>
|
|
12
|
+
|
|
13
|
+
<required_reading>
|
|
14
|
+
@~/.claude/get-shit-done/references/continuation-format.md
|
|
15
|
+
</required_reading>
|
|
16
|
+
|
|
17
|
+
<process>
|
|
18
|
+
|
|
19
|
+
<step name="initialize">
|
|
20
|
+
Load all context in one call:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init resume)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Parse JSON for: `state_exists`, `roadmap_exists`, `project_exists`, `planning_exists`, `has_interrupted_agent`, `interrupted_agent_id`, `commit_docs`.
|
|
27
|
+
|
|
28
|
+
**If `state_exists` is true:** Proceed to load_state
|
|
29
|
+
**If `state_exists` is false but `roadmap_exists` or `project_exists` is true:** Offer to reconstruct STATE.md
|
|
30
|
+
**If `planning_exists` is false:** This is a new project - route to /gsd:new-project
|
|
31
|
+
</step>
|
|
32
|
+
|
|
33
|
+
<step name="load_state">
|
|
34
|
+
|
|
35
|
+
Read and parse STATE.md, then PROJECT.md:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
cat .planning/STATE.md
|
|
39
|
+
cat .planning/PROJECT.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**From STATE.md extract:**
|
|
43
|
+
|
|
44
|
+
- **Project Reference**: Core value and current focus
|
|
45
|
+
- **Current Position**: Phase X of Y, Plan A of B, Status
|
|
46
|
+
- **Progress**: Visual progress bar
|
|
47
|
+
- **Recent Decisions**: Key decisions affecting current work
|
|
48
|
+
- **Pending Todos**: Ideas captured during sessions
|
|
49
|
+
- **Blockers/Concerns**: Issues carried forward
|
|
50
|
+
- **Session Continuity**: Where we left off, any resume files
|
|
51
|
+
|
|
52
|
+
**From PROJECT.md extract:**
|
|
53
|
+
|
|
54
|
+
- **What This Is**: Current accurate description
|
|
55
|
+
- **Requirements**: Validated, Active, Out of Scope
|
|
56
|
+
- **Key Decisions**: Full decision log with outcomes
|
|
57
|
+
- **Constraints**: Hard limits on implementation
|
|
58
|
+
|
|
59
|
+
</step>
|
|
60
|
+
|
|
61
|
+
<step name="check_incomplete_work">
|
|
62
|
+
Look for incomplete work that needs attention:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Check for continue-here files (mid-plan resumption)
|
|
66
|
+
ls .planning/phases/*/.continue-here*.md 2>/dev/null
|
|
67
|
+
|
|
68
|
+
# Check for plans without summaries (incomplete execution)
|
|
69
|
+
for plan in .planning/phases/*/*-PLAN.md; do
|
|
70
|
+
summary="${plan/PLAN/SUMMARY}"
|
|
71
|
+
[ ! -f "$summary" ] && echo "Incomplete: $plan"
|
|
72
|
+
done 2>/dev/null
|
|
73
|
+
|
|
74
|
+
# Check for interrupted agents (use has_interrupted_agent and interrupted_agent_id from init)
|
|
75
|
+
if [ "$has_interrupted_agent" = "true" ]; then
|
|
76
|
+
echo "Interrupted agent: $interrupted_agent_id"
|
|
77
|
+
fi
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**If .continue-here file exists:**
|
|
81
|
+
|
|
82
|
+
- This is a mid-plan resumption point
|
|
83
|
+
- Read the file for specific resumption context
|
|
84
|
+
- Flag: "Found mid-plan checkpoint"
|
|
85
|
+
|
|
86
|
+
**If PLAN without SUMMARY exists:**
|
|
87
|
+
|
|
88
|
+
- Execution was started but not completed
|
|
89
|
+
- Flag: "Found incomplete plan execution"
|
|
90
|
+
|
|
91
|
+
**If interrupted agent found:**
|
|
92
|
+
|
|
93
|
+
- Subagent was spawned but session ended before completion
|
|
94
|
+
- Read agent-history.json for task details
|
|
95
|
+
- Flag: "Found interrupted agent"
|
|
96
|
+
</step>
|
|
97
|
+
|
|
98
|
+
<step name="present_status">
|
|
99
|
+
Present complete project status to user:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
103
|
+
║ PROJECT STATUS ║
|
|
104
|
+
╠══════════════════════════════════════════════════════════════╣
|
|
105
|
+
║ Building: [one-liner from PROJECT.md "What This Is"] ║
|
|
106
|
+
║ ║
|
|
107
|
+
║ Phase: [X] of [Y] - [Phase name] ║
|
|
108
|
+
║ Plan: [A] of [B] - [Status] ║
|
|
109
|
+
║ Progress: [██████░░░░] XX% ║
|
|
110
|
+
║ ║
|
|
111
|
+
║ Last activity: [date] - [what happened] ║
|
|
112
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
113
|
+
|
|
114
|
+
[If incomplete work found:]
|
|
115
|
+
⚠️ Incomplete work detected:
|
|
116
|
+
- [.continue-here file or incomplete plan]
|
|
117
|
+
|
|
118
|
+
[If interrupted agent found:]
|
|
119
|
+
⚠️ Interrupted agent detected:
|
|
120
|
+
Agent ID: [id]
|
|
121
|
+
Task: [task description from agent-history.json]
|
|
122
|
+
Interrupted: [timestamp]
|
|
123
|
+
|
|
124
|
+
Resume with: Task tool (resume parameter with agent ID)
|
|
125
|
+
|
|
126
|
+
[If pending todos exist:]
|
|
127
|
+
📋 [N] pending todos — /gsd:check-todos to review
|
|
128
|
+
|
|
129
|
+
[If blockers exist:]
|
|
130
|
+
⚠️ Carried concerns:
|
|
131
|
+
- [blocker 1]
|
|
132
|
+
- [blocker 2]
|
|
133
|
+
|
|
134
|
+
[If alignment is not ✓:]
|
|
135
|
+
⚠️ Brief alignment: [status] - [assessment]
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
</step>
|
|
139
|
+
|
|
140
|
+
<step name="determine_next_action">
|
|
141
|
+
Based on project state, determine the most logical next action:
|
|
142
|
+
|
|
143
|
+
**If interrupted agent exists:**
|
|
144
|
+
→ Primary: Resume interrupted agent (Task tool with resume parameter)
|
|
145
|
+
→ Option: Start fresh (abandon agent work)
|
|
146
|
+
|
|
147
|
+
**If .continue-here file exists:**
|
|
148
|
+
→ Primary: Resume from checkpoint
|
|
149
|
+
→ Option: Start fresh on current plan
|
|
150
|
+
|
|
151
|
+
**If incomplete plan (PLAN without SUMMARY):**
|
|
152
|
+
→ Primary: Complete the incomplete plan
|
|
153
|
+
→ Option: Abandon and move on
|
|
154
|
+
|
|
155
|
+
**If phase in progress, all plans complete:**
|
|
156
|
+
→ Primary: Transition to next phase
|
|
157
|
+
→ Option: Review completed work
|
|
158
|
+
|
|
159
|
+
**If phase ready to plan:**
|
|
160
|
+
→ Check if CONTEXT.md exists for this phase:
|
|
161
|
+
|
|
162
|
+
- If CONTEXT.md missing:
|
|
163
|
+
→ Primary: Discuss phase vision (how user imagines it working)
|
|
164
|
+
→ Secondary: Plan directly (skip context gathering)
|
|
165
|
+
- If CONTEXT.md exists:
|
|
166
|
+
→ Primary: Plan the phase
|
|
167
|
+
→ Option: Review roadmap
|
|
168
|
+
|
|
169
|
+
**If phase ready to execute:**
|
|
170
|
+
→ Primary: Execute next plan
|
|
171
|
+
→ Option: Review the plan first
|
|
172
|
+
</step>
|
|
173
|
+
|
|
174
|
+
<step name="offer_options">
|
|
175
|
+
Present contextual options based on project state:
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
What would you like to do?
|
|
179
|
+
|
|
180
|
+
[Primary action based on state - e.g.:]
|
|
181
|
+
1. Resume interrupted agent [if interrupted agent found]
|
|
182
|
+
OR
|
|
183
|
+
1. Execute phase (/gsd:execute-phase {phase})
|
|
184
|
+
OR
|
|
185
|
+
1. Discuss Phase 3 context (/gsd:discuss-phase 3) [if CONTEXT.md missing]
|
|
186
|
+
OR
|
|
187
|
+
1. Plan Phase 3 (/gsd:plan-phase 3) [if CONTEXT.md exists or discuss option declined]
|
|
188
|
+
|
|
189
|
+
[Secondary options:]
|
|
190
|
+
2. Review current phase status
|
|
191
|
+
3. Check pending todos ([N] pending)
|
|
192
|
+
4. Review brief alignment
|
|
193
|
+
5. Something else
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Note:** When offering phase planning, check for CONTEXT.md existence first:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
ls .planning/phases/XX-name/*-CONTEXT.md 2>/dev/null
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
If missing, suggest discuss-phase before plan. If exists, offer plan directly.
|
|
203
|
+
|
|
204
|
+
Wait for user selection.
|
|
205
|
+
</step>
|
|
206
|
+
|
|
207
|
+
<step name="route_to_workflow">
|
|
208
|
+
Based on user selection, route to appropriate workflow:
|
|
209
|
+
|
|
210
|
+
- **Execute plan** → Show command for user to run after clearing:
|
|
211
|
+
```
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## ▶ Next Up
|
|
215
|
+
|
|
216
|
+
**{phase}-{plan}: [Plan Name]** — [objective from PLAN.md]
|
|
217
|
+
|
|
218
|
+
`/gsd:execute-phase {phase}`
|
|
219
|
+
|
|
220
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
```
|
|
224
|
+
- **Plan phase** → Show command for user to run after clearing:
|
|
225
|
+
```
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## ▶ Next Up
|
|
229
|
+
|
|
230
|
+
**Phase [N]: [Name]** — [Goal from ROADMAP.md]
|
|
231
|
+
|
|
232
|
+
`/gsd:plan-phase [phase-number]`
|
|
233
|
+
|
|
234
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
**Also available:**
|
|
239
|
+
- `/gsd:discuss-phase [N]` — gather context first
|
|
240
|
+
- `/gsd:research-phase [N]` — investigate unknowns
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
```
|
|
244
|
+
- **Transition** → ./transition.md
|
|
245
|
+
- **Check todos** → Read .planning/todos/pending/, present summary
|
|
246
|
+
- **Review alignment** → Read PROJECT.md, compare to current state
|
|
247
|
+
- **Something else** → Ask what they need
|
|
248
|
+
</step>
|
|
249
|
+
|
|
250
|
+
<step name="update_session">
|
|
251
|
+
Before proceeding to routed workflow, update session continuity:
|
|
252
|
+
|
|
253
|
+
Update STATE.md:
|
|
254
|
+
|
|
255
|
+
```markdown
|
|
256
|
+
## Session Continuity
|
|
257
|
+
|
|
258
|
+
Last session: [now]
|
|
259
|
+
Stopped at: Session resumed, proceeding to [action]
|
|
260
|
+
Resume file: [updated if applicable]
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
This ensures if session ends unexpectedly, next resume knows the state.
|
|
264
|
+
</step>
|
|
265
|
+
|
|
266
|
+
</process>
|
|
267
|
+
|
|
268
|
+
<reconstruction>
|
|
269
|
+
If STATE.md is missing but other artifacts exist:
|
|
270
|
+
|
|
271
|
+
"STATE.md missing. Reconstructing from artifacts..."
|
|
272
|
+
|
|
273
|
+
1. Read PROJECT.md → Extract "What This Is" and Core Value
|
|
274
|
+
2. Read ROADMAP.md → Determine phases, find current position
|
|
275
|
+
3. Scan \*-SUMMARY.md files → Extract decisions, concerns
|
|
276
|
+
4. Count pending todos in .planning/todos/pending/
|
|
277
|
+
5. Check for .continue-here files → Session continuity
|
|
278
|
+
|
|
279
|
+
Reconstruct and write STATE.md, then proceed normally.
|
|
280
|
+
|
|
281
|
+
This handles cases where:
|
|
282
|
+
|
|
283
|
+
- Project predates STATE.md introduction
|
|
284
|
+
- File was accidentally deleted
|
|
285
|
+
- Cloning repo without full .planning/ state
|
|
286
|
+
</reconstruction>
|
|
287
|
+
|
|
288
|
+
<quick_resume>
|
|
289
|
+
If user says "continue" or "go":
|
|
290
|
+
- Load state silently
|
|
291
|
+
- Determine primary action
|
|
292
|
+
- Execute immediately without presenting options
|
|
293
|
+
|
|
294
|
+
"Continuing from [state]... [action]"
|
|
295
|
+
</quick_resume>
|
|
296
|
+
|
|
297
|
+
<success_criteria>
|
|
298
|
+
Resume is complete when:
|
|
299
|
+
|
|
300
|
+
- [ ] STATE.md loaded (or reconstructed)
|
|
301
|
+
- [ ] Incomplete work detected and flagged
|
|
302
|
+
- [ ] Clear status presented to user
|
|
303
|
+
- [ ] Contextual next actions offered
|
|
304
|
+
- [ ] User knows exactly where project stands
|
|
305
|
+
- [ ] Session continuity updated
|
|
306
|
+
</success_criteria>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Switch the model profile used by GSD agents. Controls which Claude model each agent uses, balancing quality vs token spend.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="validate">
|
|
12
|
+
Validate argument:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
if $ARGUMENTS.profile not in ["quality", "balanced", "budget"]:
|
|
16
|
+
Error: Invalid profile "$ARGUMENTS.profile"
|
|
17
|
+
Valid profiles: quality, balanced, budget
|
|
18
|
+
EXIT
|
|
19
|
+
```
|
|
20
|
+
</step>
|
|
21
|
+
|
|
22
|
+
<step name="ensure_and_load_config">
|
|
23
|
+
Ensure config exists and load current state:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs config-ensure-section
|
|
27
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs state load)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This creates `.planning/config.json` with defaults if missing and loads current config.
|
|
31
|
+
</step>
|
|
32
|
+
|
|
33
|
+
<step name="update_config">
|
|
34
|
+
Read current config from state load or directly:
|
|
35
|
+
|
|
36
|
+
Update `model_profile` field:
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"model_profile": "$ARGUMENTS.profile"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Write updated config back to `.planning/config.json`.
|
|
44
|
+
</step>
|
|
45
|
+
|
|
46
|
+
<step name="confirm">
|
|
47
|
+
Display confirmation with model table for selected profile:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
✓ Model profile set to: $ARGUMENTS.profile
|
|
51
|
+
|
|
52
|
+
Agents will now use:
|
|
53
|
+
|
|
54
|
+
[Show table from MODEL_PROFILES in gsd-tools.cjs for selected profile]
|
|
55
|
+
|
|
56
|
+
Example:
|
|
57
|
+
| Agent | Model |
|
|
58
|
+
|-------|-------|
|
|
59
|
+
| gsd-planner | opus |
|
|
60
|
+
| gsd-executor | sonnet |
|
|
61
|
+
| gsd-verifier | haiku |
|
|
62
|
+
| ... | ... |
|
|
63
|
+
|
|
64
|
+
Next spawned agents will use the new profile.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Map profile names:
|
|
68
|
+
- quality: use "quality" column from MODEL_PROFILES
|
|
69
|
+
- balanced: use "balanced" column from MODEL_PROFILES
|
|
70
|
+
- budget: use "budget" column from MODEL_PROFILES
|
|
71
|
+
</step>
|
|
72
|
+
|
|
73
|
+
</process>
|
|
74
|
+
|
|
75
|
+
<success_criteria>
|
|
76
|
+
- [ ] Argument validated
|
|
77
|
+
- [ ] Config file ensured
|
|
78
|
+
- [ ] Config updated with new model_profile
|
|
79
|
+
- [ ] Confirmation displayed with model table
|
|
80
|
+
</success_criteria>
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Interactive configuration of GSD workflow agents (research, plan_check, verifier) and model profile selection via multi-question prompt. Updates .planning/config.json with user preferences. Optionally saves settings as global defaults (~/.gsd/defaults.json) for future projects.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="ensure_and_load_config">
|
|
12
|
+
Ensure config exists and load current state:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs config-ensure-section
|
|
16
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs state load)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Creates `.planning/config.json` with defaults if missing and loads current config values.
|
|
20
|
+
</step>
|
|
21
|
+
|
|
22
|
+
<step name="read_current">
|
|
23
|
+
```bash
|
|
24
|
+
cat .planning/config.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Parse current values (default to `true` if not present):
|
|
28
|
+
- `workflow.research` — spawn researcher during plan-phase
|
|
29
|
+
- `workflow.plan_check` — spawn plan checker during plan-phase
|
|
30
|
+
- `workflow.verifier` — spawn verifier during execute-phase
|
|
31
|
+
- `model_profile` — which model each agent uses (default: `balanced`)
|
|
32
|
+
- `git.branching_strategy` — branching approach (default: `"none"`)
|
|
33
|
+
</step>
|
|
34
|
+
|
|
35
|
+
<step name="present_settings">
|
|
36
|
+
Use AskUserQuestion with current values pre-selected:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
AskUserQuestion([
|
|
40
|
+
{
|
|
41
|
+
question: "Which model profile for agents?",
|
|
42
|
+
header: "Model",
|
|
43
|
+
multiSelect: false,
|
|
44
|
+
options: [
|
|
45
|
+
{ label: "Quality", description: "Opus everywhere except verification (highest cost)" },
|
|
46
|
+
{ label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification" },
|
|
47
|
+
{ label: "Budget", description: "Sonnet for writing, Haiku for research/verification (lowest cost)" }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
question: "Spawn Plan Researcher? (researches domain before planning)",
|
|
52
|
+
header: "Research",
|
|
53
|
+
multiSelect: false,
|
|
54
|
+
options: [
|
|
55
|
+
{ label: "Yes", description: "Research phase goals before planning" },
|
|
56
|
+
{ label: "No", description: "Skip research, plan directly" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
question: "Spawn Plan Checker? (verifies plans before execution)",
|
|
61
|
+
header: "Plan Check",
|
|
62
|
+
multiSelect: false,
|
|
63
|
+
options: [
|
|
64
|
+
{ label: "Yes", description: "Verify plans meet phase goals" },
|
|
65
|
+
{ label: "No", description: "Skip plan verification" }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
question: "Spawn Execution Verifier? (verifies phase completion)",
|
|
70
|
+
header: "Verifier",
|
|
71
|
+
multiSelect: false,
|
|
72
|
+
options: [
|
|
73
|
+
{ label: "Yes", description: "Verify must-haves after execution" },
|
|
74
|
+
{ label: "No", description: "Skip post-execution verification" }
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
question: "Auto-advance pipeline? (discuss → plan → execute automatically)",
|
|
79
|
+
header: "Auto",
|
|
80
|
+
multiSelect: false,
|
|
81
|
+
options: [
|
|
82
|
+
{ label: "No (Recommended)", description: "Manual /clear + paste between stages" },
|
|
83
|
+
{ label: "Yes", description: "Chain stages via Task() subagents (same isolation)" }
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
question: "Git branching strategy?",
|
|
88
|
+
header: "Branching",
|
|
89
|
+
multiSelect: false,
|
|
90
|
+
options: [
|
|
91
|
+
{ label: "None (Recommended)", description: "Commit directly to current branch" },
|
|
92
|
+
{ label: "Per Phase", description: "Create branch for each phase (gsd/phase-{N}-{name})" },
|
|
93
|
+
{ label: "Per Milestone", description: "Create branch for entire milestone (gsd/{version}-{name})" }
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
])
|
|
97
|
+
```
|
|
98
|
+
</step>
|
|
99
|
+
|
|
100
|
+
<step name="update_config">
|
|
101
|
+
Merge new settings into existing config.json:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
...existing_config,
|
|
106
|
+
"model_profile": "quality" | "balanced" | "budget",
|
|
107
|
+
"workflow": {
|
|
108
|
+
"research": true/false,
|
|
109
|
+
"plan_check": true/false,
|
|
110
|
+
"verifier": true/false,
|
|
111
|
+
"auto_advance": true/false
|
|
112
|
+
},
|
|
113
|
+
"git": {
|
|
114
|
+
"branching_strategy": "none" | "phase" | "milestone"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Write updated config to `.planning/config.json`.
|
|
120
|
+
</step>
|
|
121
|
+
|
|
122
|
+
<step name="save_as_defaults">
|
|
123
|
+
Ask whether to save these settings as global defaults for future projects:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
AskUserQuestion([
|
|
127
|
+
{
|
|
128
|
+
question: "Save these as default settings for all new projects?",
|
|
129
|
+
header: "Defaults",
|
|
130
|
+
multiSelect: false,
|
|
131
|
+
options: [
|
|
132
|
+
{ label: "Yes", description: "New projects start with these settings (saved to ~/.gsd/defaults.json)" },
|
|
133
|
+
{ label: "No", description: "Only apply to this project" }
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
])
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
If "Yes": write the same config object (minus project-specific fields like `brave_search`) to `~/.gsd/defaults.json`:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
mkdir -p ~/.gsd
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Write `~/.gsd/defaults.json` with:
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"mode": <current>,
|
|
149
|
+
"depth": <current>,
|
|
150
|
+
"model_profile": <current>,
|
|
151
|
+
"commit_docs": <current>,
|
|
152
|
+
"parallelization": <current>,
|
|
153
|
+
"branching_strategy": <current>,
|
|
154
|
+
"workflow": {
|
|
155
|
+
"research": <current>,
|
|
156
|
+
"plan_check": <current>,
|
|
157
|
+
"verifier": <current>,
|
|
158
|
+
"auto_advance": <current>
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
</step>
|
|
163
|
+
|
|
164
|
+
<step name="confirm">
|
|
165
|
+
Display:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
169
|
+
GSD ► SETTINGS UPDATED
|
|
170
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
|
+
|
|
172
|
+
| Setting | Value |
|
|
173
|
+
|----------------------|-------|
|
|
174
|
+
| Model Profile | {quality/balanced/budget} |
|
|
175
|
+
| Plan Researcher | {On/Off} |
|
|
176
|
+
| Plan Checker | {On/Off} |
|
|
177
|
+
| Execution Verifier | {On/Off} |
|
|
178
|
+
| Auto-Advance | {On/Off} |
|
|
179
|
+
| Git Branching | {None/Per Phase/Per Milestone} |
|
|
180
|
+
| Saved as Defaults | {Yes/No} |
|
|
181
|
+
|
|
182
|
+
These settings apply to future /gsd:plan-phase and /gsd:execute-phase runs.
|
|
183
|
+
|
|
184
|
+
Quick commands:
|
|
185
|
+
- /gsd:set-profile <profile> — switch model profile
|
|
186
|
+
- /gsd:plan-phase --research — force research
|
|
187
|
+
- /gsd:plan-phase --skip-research — skip research
|
|
188
|
+
- /gsd:plan-phase --skip-verify — skip plan check
|
|
189
|
+
```
|
|
190
|
+
</step>
|
|
191
|
+
|
|
192
|
+
</process>
|
|
193
|
+
|
|
194
|
+
<success_criteria>
|
|
195
|
+
- [ ] Current config read
|
|
196
|
+
- [ ] User presented with 6 settings (profile + 4 workflow toggles + git branching)
|
|
197
|
+
- [ ] Config updated with model_profile, workflow, and git sections
|
|
198
|
+
- [ ] User offered to save as global defaults (~/.gsd/defaults.json)
|
|
199
|
+
- [ ] Changes confirmed to user
|
|
200
|
+
</success_criteria>
|