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,322 @@
|
|
|
1
|
+
# Verification Report Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/phases/XX-name/{phase_num}-VERIFICATION.md` — phase goal verification results.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## File Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
---
|
|
11
|
+
phase: XX-name
|
|
12
|
+
verified: YYYY-MM-DDTHH:MM:SSZ
|
|
13
|
+
status: passed | gaps_found | human_needed
|
|
14
|
+
score: N/M must-haves verified
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Phase {X}: {Name} Verification Report
|
|
18
|
+
|
|
19
|
+
**Phase Goal:** {goal from ROADMAP.md}
|
|
20
|
+
**Verified:** {timestamp}
|
|
21
|
+
**Status:** {passed | gaps_found | human_needed}
|
|
22
|
+
|
|
23
|
+
## Goal Achievement
|
|
24
|
+
|
|
25
|
+
### Observable Truths
|
|
26
|
+
|
|
27
|
+
| # | Truth | Status | Evidence |
|
|
28
|
+
|---|-------|--------|----------|
|
|
29
|
+
| 1 | {truth from must_haves} | ✓ VERIFIED | {what confirmed it} |
|
|
30
|
+
| 2 | {truth from must_haves} | ✗ FAILED | {what's wrong} |
|
|
31
|
+
| 3 | {truth from must_haves} | ? UNCERTAIN | {why can't verify} |
|
|
32
|
+
|
|
33
|
+
**Score:** {N}/{M} truths verified
|
|
34
|
+
|
|
35
|
+
### Required Artifacts
|
|
36
|
+
|
|
37
|
+
| Artifact | Expected | Status | Details |
|
|
38
|
+
|----------|----------|--------|---------|
|
|
39
|
+
| `src/components/Chat.tsx` | Message list component | ✓ EXISTS + SUBSTANTIVE | Exports ChatList, renders Message[], no stubs |
|
|
40
|
+
| `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | File exists but POST returns placeholder |
|
|
41
|
+
| `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Model defined with all fields |
|
|
42
|
+
|
|
43
|
+
**Artifacts:** {N}/{M} verified
|
|
44
|
+
|
|
45
|
+
### Key Link Verification
|
|
46
|
+
|
|
47
|
+
| From | To | Via | Status | Details |
|
|
48
|
+
|------|----|----|--------|---------|
|
|
49
|
+
| Chat.tsx | /api/chat | fetch in useEffect | ✓ WIRED | Line 23: `fetch('/api/chat')` with response handling |
|
|
50
|
+
| ChatInput | /api/chat POST | onSubmit handler | ✗ NOT WIRED | onSubmit only calls console.log |
|
|
51
|
+
| /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns hardcoded response, no DB call |
|
|
52
|
+
|
|
53
|
+
**Wiring:** {N}/{M} connections verified
|
|
54
|
+
|
|
55
|
+
## Requirements Coverage
|
|
56
|
+
|
|
57
|
+
| Requirement | Status | Blocking Issue |
|
|
58
|
+
|-------------|--------|----------------|
|
|
59
|
+
| {REQ-01}: {description} | ✓ SATISFIED | - |
|
|
60
|
+
| {REQ-02}: {description} | ✗ BLOCKED | API route is stub |
|
|
61
|
+
| {REQ-03}: {description} | ? NEEDS HUMAN | Can't verify WebSocket programmatically |
|
|
62
|
+
|
|
63
|
+
**Coverage:** {N}/{M} requirements satisfied
|
|
64
|
+
|
|
65
|
+
## Anti-Patterns Found
|
|
66
|
+
|
|
67
|
+
| File | Line | Pattern | Severity | Impact |
|
|
68
|
+
|------|------|---------|----------|--------|
|
|
69
|
+
| src/app/api/chat/route.ts | 12 | `// TODO: implement` | ⚠️ Warning | Indicates incomplete |
|
|
70
|
+
| src/components/Chat.tsx | 45 | `return <div>Placeholder</div>` | 🛑 Blocker | Renders no content |
|
|
71
|
+
| src/hooks/useChat.ts | - | File missing | 🛑 Blocker | Expected hook doesn't exist |
|
|
72
|
+
|
|
73
|
+
**Anti-patterns:** {N} found ({blockers} blockers, {warnings} warnings)
|
|
74
|
+
|
|
75
|
+
## Human Verification Required
|
|
76
|
+
|
|
77
|
+
{If no human verification needed:}
|
|
78
|
+
None — all verifiable items checked programmatically.
|
|
79
|
+
|
|
80
|
+
{If human verification needed:}
|
|
81
|
+
|
|
82
|
+
### 1. {Test Name}
|
|
83
|
+
**Test:** {What to do}
|
|
84
|
+
**Expected:** {What should happen}
|
|
85
|
+
**Why human:** {Why can't verify programmatically}
|
|
86
|
+
|
|
87
|
+
### 2. {Test Name}
|
|
88
|
+
**Test:** {What to do}
|
|
89
|
+
**Expected:** {What should happen}
|
|
90
|
+
**Why human:** {Why can't verify programmatically}
|
|
91
|
+
|
|
92
|
+
## Gaps Summary
|
|
93
|
+
|
|
94
|
+
{If no gaps:}
|
|
95
|
+
**No gaps found.** Phase goal achieved. Ready to proceed.
|
|
96
|
+
|
|
97
|
+
{If gaps found:}
|
|
98
|
+
|
|
99
|
+
### Critical Gaps (Block Progress)
|
|
100
|
+
|
|
101
|
+
1. **{Gap name}**
|
|
102
|
+
- Missing: {what's missing}
|
|
103
|
+
- Impact: {why this blocks the goal}
|
|
104
|
+
- Fix: {what needs to happen}
|
|
105
|
+
|
|
106
|
+
2. **{Gap name}**
|
|
107
|
+
- Missing: {what's missing}
|
|
108
|
+
- Impact: {why this blocks the goal}
|
|
109
|
+
- Fix: {what needs to happen}
|
|
110
|
+
|
|
111
|
+
### Non-Critical Gaps (Can Defer)
|
|
112
|
+
|
|
113
|
+
1. **{Gap name}**
|
|
114
|
+
- Issue: {what's wrong}
|
|
115
|
+
- Impact: {limited impact because...}
|
|
116
|
+
- Recommendation: {fix now or defer}
|
|
117
|
+
|
|
118
|
+
## Recommended Fix Plans
|
|
119
|
+
|
|
120
|
+
{If gaps found, generate fix plan recommendations:}
|
|
121
|
+
|
|
122
|
+
### {phase}-{next}-PLAN.md: {Fix Name}
|
|
123
|
+
|
|
124
|
+
**Objective:** {What this fixes}
|
|
125
|
+
|
|
126
|
+
**Tasks:**
|
|
127
|
+
1. {Task to fix gap 1}
|
|
128
|
+
2. {Task to fix gap 2}
|
|
129
|
+
3. {Verification task}
|
|
130
|
+
|
|
131
|
+
**Estimated scope:** {Small / Medium}
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### {phase}-{next+1}-PLAN.md: {Fix Name}
|
|
136
|
+
|
|
137
|
+
**Objective:** {What this fixes}
|
|
138
|
+
|
|
139
|
+
**Tasks:**
|
|
140
|
+
1. {Task}
|
|
141
|
+
2. {Task}
|
|
142
|
+
|
|
143
|
+
**Estimated scope:** {Small / Medium}
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Verification Metadata
|
|
148
|
+
|
|
149
|
+
**Verification approach:** Goal-backward (derived from phase goal)
|
|
150
|
+
**Must-haves source:** {PLAN.md frontmatter | derived from ROADMAP.md goal}
|
|
151
|
+
**Automated checks:** {N} passed, {M} failed
|
|
152
|
+
**Human checks required:** {N}
|
|
153
|
+
**Total verification time:** {duration}
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
*Verified: {timestamp}*
|
|
157
|
+
*Verifier: Claude (subagent)*
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Guidelines
|
|
163
|
+
|
|
164
|
+
**Status values:**
|
|
165
|
+
- `passed` — All must-haves verified, no blockers
|
|
166
|
+
- `gaps_found` — One or more critical gaps found
|
|
167
|
+
- `human_needed` — Automated checks pass but human verification required
|
|
168
|
+
|
|
169
|
+
**Evidence types:**
|
|
170
|
+
- For EXISTS: "File at path, exports X"
|
|
171
|
+
- For SUBSTANTIVE: "N lines, has patterns X, Y, Z"
|
|
172
|
+
- For WIRED: "Line N: code that connects A to B"
|
|
173
|
+
- For FAILED: "Missing because X" or "Stub because Y"
|
|
174
|
+
|
|
175
|
+
**Severity levels:**
|
|
176
|
+
- 🛑 Blocker: Prevents goal achievement, must fix
|
|
177
|
+
- ⚠️ Warning: Indicates incomplete but doesn't block
|
|
178
|
+
- ℹ️ Info: Notable but not problematic
|
|
179
|
+
|
|
180
|
+
**Fix plan generation:**
|
|
181
|
+
- Only generate if gaps_found
|
|
182
|
+
- Group related fixes into single plans
|
|
183
|
+
- Keep to 2-3 tasks per plan
|
|
184
|
+
- Include verification task in each plan
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Example
|
|
189
|
+
|
|
190
|
+
```markdown
|
|
191
|
+
---
|
|
192
|
+
phase: 03-chat
|
|
193
|
+
verified: 2025-01-15T14:30:00Z
|
|
194
|
+
status: gaps_found
|
|
195
|
+
score: 2/5 must-haves verified
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
# Phase 3: Chat Interface Verification Report
|
|
199
|
+
|
|
200
|
+
**Phase Goal:** Working chat interface where users can send and receive messages
|
|
201
|
+
**Verified:** 2025-01-15T14:30:00Z
|
|
202
|
+
**Status:** gaps_found
|
|
203
|
+
|
|
204
|
+
## Goal Achievement
|
|
205
|
+
|
|
206
|
+
### Observable Truths
|
|
207
|
+
|
|
208
|
+
| # | Truth | Status | Evidence |
|
|
209
|
+
|---|-------|--------|----------|
|
|
210
|
+
| 1 | User can see existing messages | ✗ FAILED | Component renders placeholder, not message data |
|
|
211
|
+
| 2 | User can type a message | ✓ VERIFIED | Input field exists with onChange handler |
|
|
212
|
+
| 3 | User can send a message | ✗ FAILED | onSubmit handler is console.log only |
|
|
213
|
+
| 4 | Sent message appears in list | ✗ FAILED | No state update after send |
|
|
214
|
+
| 5 | Messages persist across refresh | ? UNCERTAIN | Can't verify - send doesn't work |
|
|
215
|
+
|
|
216
|
+
**Score:** 1/5 truths verified
|
|
217
|
+
|
|
218
|
+
### Required Artifacts
|
|
219
|
+
|
|
220
|
+
| Artifact | Expected | Status | Details |
|
|
221
|
+
|----------|----------|--------|---------|
|
|
222
|
+
| `src/components/Chat.tsx` | Message list component | ✗ STUB | Returns `<div>Chat will be here</div>` |
|
|
223
|
+
| `src/components/ChatInput.tsx` | Message input | ✓ EXISTS + SUBSTANTIVE | Form with input, submit button, handlers |
|
|
224
|
+
| `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | GET returns [], POST returns { ok: true } |
|
|
225
|
+
| `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Message model with id, content, userId, createdAt |
|
|
226
|
+
|
|
227
|
+
**Artifacts:** 2/4 verified
|
|
228
|
+
|
|
229
|
+
### Key Link Verification
|
|
230
|
+
|
|
231
|
+
| From | To | Via | Status | Details |
|
|
232
|
+
|------|----|----|--------|---------|
|
|
233
|
+
| Chat.tsx | /api/chat GET | fetch | ✗ NOT WIRED | No fetch call in component |
|
|
234
|
+
| ChatInput | /api/chat POST | onSubmit | ✗ NOT WIRED | Handler only logs, doesn't fetch |
|
|
235
|
+
| /api/chat GET | database | prisma.message.findMany | ✗ NOT WIRED | Returns hardcoded [] |
|
|
236
|
+
| /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns { ok: true }, no DB call |
|
|
237
|
+
|
|
238
|
+
**Wiring:** 0/4 connections verified
|
|
239
|
+
|
|
240
|
+
## Requirements Coverage
|
|
241
|
+
|
|
242
|
+
| Requirement | Status | Blocking Issue |
|
|
243
|
+
|-------------|--------|----------------|
|
|
244
|
+
| CHAT-01: User can send message | ✗ BLOCKED | API POST is stub |
|
|
245
|
+
| CHAT-02: User can view messages | ✗ BLOCKED | Component is placeholder |
|
|
246
|
+
| CHAT-03: Messages persist | ✗ BLOCKED | No database integration |
|
|
247
|
+
|
|
248
|
+
**Coverage:** 0/3 requirements satisfied
|
|
249
|
+
|
|
250
|
+
## Anti-Patterns Found
|
|
251
|
+
|
|
252
|
+
| File | Line | Pattern | Severity | Impact |
|
|
253
|
+
|------|------|---------|----------|--------|
|
|
254
|
+
| src/components/Chat.tsx | 8 | `<div>Chat will be here</div>` | 🛑 Blocker | No actual content |
|
|
255
|
+
| src/app/api/chat/route.ts | 5 | `return Response.json([])` | 🛑 Blocker | Hardcoded empty |
|
|
256
|
+
| src/app/api/chat/route.ts | 12 | `// TODO: save to database` | ⚠️ Warning | Incomplete |
|
|
257
|
+
|
|
258
|
+
**Anti-patterns:** 3 found (2 blockers, 1 warning)
|
|
259
|
+
|
|
260
|
+
## Human Verification Required
|
|
261
|
+
|
|
262
|
+
None needed until automated gaps are fixed.
|
|
263
|
+
|
|
264
|
+
## Gaps Summary
|
|
265
|
+
|
|
266
|
+
### Critical Gaps (Block Progress)
|
|
267
|
+
|
|
268
|
+
1. **Chat component is placeholder**
|
|
269
|
+
- Missing: Actual message list rendering
|
|
270
|
+
- Impact: Users see "Chat will be here" instead of messages
|
|
271
|
+
- Fix: Implement Chat.tsx to fetch and render messages
|
|
272
|
+
|
|
273
|
+
2. **API routes are stubs**
|
|
274
|
+
- Missing: Database integration in GET and POST
|
|
275
|
+
- Impact: No data persistence, no real functionality
|
|
276
|
+
- Fix: Wire prisma calls in route handlers
|
|
277
|
+
|
|
278
|
+
3. **No wiring between frontend and backend**
|
|
279
|
+
- Missing: fetch calls in components
|
|
280
|
+
- Impact: Even if API worked, UI wouldn't call it
|
|
281
|
+
- Fix: Add useEffect fetch in Chat, onSubmit fetch in ChatInput
|
|
282
|
+
|
|
283
|
+
## Recommended Fix Plans
|
|
284
|
+
|
|
285
|
+
### 03-04-PLAN.md: Implement Chat API
|
|
286
|
+
|
|
287
|
+
**Objective:** Wire API routes to database
|
|
288
|
+
|
|
289
|
+
**Tasks:**
|
|
290
|
+
1. Implement GET /api/chat with prisma.message.findMany
|
|
291
|
+
2. Implement POST /api/chat with prisma.message.create
|
|
292
|
+
3. Verify: API returns real data, POST creates records
|
|
293
|
+
|
|
294
|
+
**Estimated scope:** Small
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
### 03-05-PLAN.md: Implement Chat UI
|
|
299
|
+
|
|
300
|
+
**Objective:** Wire Chat component to API
|
|
301
|
+
|
|
302
|
+
**Tasks:**
|
|
303
|
+
1. Implement Chat.tsx with useEffect fetch and message rendering
|
|
304
|
+
2. Wire ChatInput onSubmit to POST /api/chat
|
|
305
|
+
3. Verify: Messages display, new messages appear after send
|
|
306
|
+
|
|
307
|
+
**Estimated scope:** Small
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Verification Metadata
|
|
312
|
+
|
|
313
|
+
**Verification approach:** Goal-backward (derived from phase goal)
|
|
314
|
+
**Must-haves source:** 03-01-PLAN.md frontmatter
|
|
315
|
+
**Automated checks:** 2 passed, 8 failed
|
|
316
|
+
**Human checks required:** 0 (blocked by automated failures)
|
|
317
|
+
**Total verification time:** 2 min
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
*Verified: 2025-01-15T14:30:00Z*
|
|
321
|
+
*Verifier: Claude (subagent)*
|
|
322
|
+
```
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Add a new integer phase to the end of the current milestone in the roadmap. Automatically calculates next phase number, creates phase directory, and updates roadmap structure.
|
|
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="parse_arguments">
|
|
12
|
+
Parse the command arguments:
|
|
13
|
+
- All arguments become the phase description
|
|
14
|
+
- Example: `/gsd:add-phase Add authentication` → description = "Add authentication"
|
|
15
|
+
- Example: `/gsd:add-phase Fix critical performance issues` → description = "Fix critical performance issues"
|
|
16
|
+
|
|
17
|
+
If no arguments provided:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
ERROR: Phase description required
|
|
21
|
+
Usage: /gsd:add-phase <description>
|
|
22
|
+
Example: /gsd:add-phase Add authentication system
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Exit.
|
|
26
|
+
</step>
|
|
27
|
+
|
|
28
|
+
<step name="init_context">
|
|
29
|
+
Load phase operation context:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init phase-op "0")
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Check `roadmap_exists` from init JSON. If false:
|
|
36
|
+
```
|
|
37
|
+
ERROR: No roadmap found (.planning/ROADMAP.md)
|
|
38
|
+
Run /gsd:new-project to initialize.
|
|
39
|
+
```
|
|
40
|
+
Exit.
|
|
41
|
+
</step>
|
|
42
|
+
|
|
43
|
+
<step name="add_phase">
|
|
44
|
+
**Delegate the phase addition to gsd-tools:**
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
RESULT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs phase add "${description}")
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The CLI handles:
|
|
51
|
+
- Finding the highest existing integer phase number
|
|
52
|
+
- Calculating next phase number (max + 1)
|
|
53
|
+
- Generating slug from description
|
|
54
|
+
- Creating the phase directory (`.planning/phases/{NN}-{slug}/`)
|
|
55
|
+
- Inserting the phase entry into ROADMAP.md with Goal, Depends on, and Plans sections
|
|
56
|
+
|
|
57
|
+
Extract from result: `phase_number`, `padded`, `name`, `slug`, `directory`.
|
|
58
|
+
</step>
|
|
59
|
+
|
|
60
|
+
<step name="update_project_state">
|
|
61
|
+
Update STATE.md to reflect the new phase:
|
|
62
|
+
|
|
63
|
+
1. Read `.planning/STATE.md`
|
|
64
|
+
2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
|
|
65
|
+
```
|
|
66
|
+
- Phase {N} added: {description}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
If "Roadmap Evolution" section doesn't exist, create it.
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step name="completion">
|
|
73
|
+
Present completion summary:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Phase {N} added to current milestone:
|
|
77
|
+
- Description: {description}
|
|
78
|
+
- Directory: .planning/phases/{phase-num}-{slug}/
|
|
79
|
+
- Status: Not planned yet
|
|
80
|
+
|
|
81
|
+
Roadmap updated: .planning/ROADMAP.md
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## ▶ Next Up
|
|
86
|
+
|
|
87
|
+
**Phase {N}: {description}**
|
|
88
|
+
|
|
89
|
+
`/gsd:plan-phase {N}`
|
|
90
|
+
|
|
91
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
**Also available:**
|
|
96
|
+
- `/gsd:add-phase <description>` — add another phase
|
|
97
|
+
- Review roadmap
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
```
|
|
101
|
+
</step>
|
|
102
|
+
|
|
103
|
+
</process>
|
|
104
|
+
|
|
105
|
+
<success_criteria>
|
|
106
|
+
- [ ] `gsd-tools phase add` executed successfully
|
|
107
|
+
- [ ] Phase directory created
|
|
108
|
+
- [ ] Roadmap updated with new phase entry
|
|
109
|
+
- [ ] STATE.md updated with roadmap evolution note
|
|
110
|
+
- [ ] User informed of next steps
|
|
111
|
+
</success_criteria>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Capture an idea, task, or issue that surfaces during a GSD session as a structured todo for later work. Enables "thought → capture → continue" flow without losing context.
|
|
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="init_context">
|
|
12
|
+
Load todo context:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init todos)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Extract from init JSON: `commit_docs`, `date`, `timestamp`, `todo_count`, `todos`, `pending_dir`, `todos_dir_exists`.
|
|
19
|
+
|
|
20
|
+
Ensure directories exist:
|
|
21
|
+
```bash
|
|
22
|
+
mkdir -p .planning/todos/pending .planning/todos/done
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Note existing areas from the todos array for consistency in infer_area step.
|
|
26
|
+
</step>
|
|
27
|
+
|
|
28
|
+
<step name="extract_content">
|
|
29
|
+
**With arguments:** Use as the title/focus.
|
|
30
|
+
- `/gsd:add-todo Add auth token refresh` → title = "Add auth token refresh"
|
|
31
|
+
|
|
32
|
+
**Without arguments:** Analyze recent conversation to extract:
|
|
33
|
+
- The specific problem, idea, or task discussed
|
|
34
|
+
- Relevant file paths mentioned
|
|
35
|
+
- Technical details (error messages, line numbers, constraints)
|
|
36
|
+
|
|
37
|
+
Formulate:
|
|
38
|
+
- `title`: 3-10 word descriptive title (action verb preferred)
|
|
39
|
+
- `problem`: What's wrong or why this is needed
|
|
40
|
+
- `solution`: Approach hints or "TBD" if just an idea
|
|
41
|
+
- `files`: Relevant paths with line numbers from conversation
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="infer_area">
|
|
45
|
+
Infer area from file paths:
|
|
46
|
+
|
|
47
|
+
| Path pattern | Area |
|
|
48
|
+
|--------------|------|
|
|
49
|
+
| `src/api/*`, `api/*` | `api` |
|
|
50
|
+
| `src/components/*`, `src/ui/*` | `ui` |
|
|
51
|
+
| `src/auth/*`, `auth/*` | `auth` |
|
|
52
|
+
| `src/db/*`, `database/*` | `database` |
|
|
53
|
+
| `tests/*`, `__tests__/*` | `testing` |
|
|
54
|
+
| `docs/*` | `docs` |
|
|
55
|
+
| `.planning/*` | `planning` |
|
|
56
|
+
| `scripts/*`, `bin/*` | `tooling` |
|
|
57
|
+
| No files or unclear | `general` |
|
|
58
|
+
|
|
59
|
+
Use existing area from step 2 if similar match exists.
|
|
60
|
+
</step>
|
|
61
|
+
|
|
62
|
+
<step name="check_duplicates">
|
|
63
|
+
```bash
|
|
64
|
+
# Search for key words from title in existing todos
|
|
65
|
+
grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
If potential duplicate found:
|
|
69
|
+
1. Read the existing todo
|
|
70
|
+
2. Compare scope
|
|
71
|
+
|
|
72
|
+
If overlapping, use AskUserQuestion:
|
|
73
|
+
- header: "Duplicate?"
|
|
74
|
+
- question: "Similar todo exists: [title]. What would you like to do?"
|
|
75
|
+
- options:
|
|
76
|
+
- "Skip" — keep existing todo
|
|
77
|
+
- "Replace" — update existing with new context
|
|
78
|
+
- "Add anyway" — create as separate todo
|
|
79
|
+
</step>
|
|
80
|
+
|
|
81
|
+
<step name="create_file">
|
|
82
|
+
Use values from init context: `timestamp` and `date` are already available.
|
|
83
|
+
|
|
84
|
+
Generate slug for the title:
|
|
85
|
+
```bash
|
|
86
|
+
slug=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs generate-slug "$title" --raw)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Write to `.planning/todos/pending/${date}-${slug}.md`:
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
---
|
|
93
|
+
created: [timestamp]
|
|
94
|
+
title: [title]
|
|
95
|
+
area: [area]
|
|
96
|
+
files:
|
|
97
|
+
- [file:lines]
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Problem
|
|
101
|
+
|
|
102
|
+
[problem description - enough context for future Claude to understand weeks later]
|
|
103
|
+
|
|
104
|
+
## Solution
|
|
105
|
+
|
|
106
|
+
[approach hints or "TBD"]
|
|
107
|
+
```
|
|
108
|
+
</step>
|
|
109
|
+
|
|
110
|
+
<step name="update_state">
|
|
111
|
+
If `.planning/STATE.md` exists:
|
|
112
|
+
|
|
113
|
+
1. Use `todo_count` from init context (or re-run `init todos` if count changed)
|
|
114
|
+
2. Update "### Pending Todos" under "## Accumulated Context"
|
|
115
|
+
</step>
|
|
116
|
+
|
|
117
|
+
<step name="git_commit">
|
|
118
|
+
Commit the todo and any updated state:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: capture todo - [title]" --files .planning/todos/pending/[filename] .planning/STATE.md
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Tool respects `commit_docs` config and gitignore automatically.
|
|
125
|
+
|
|
126
|
+
Confirm: "Committed: docs: capture todo - [title]"
|
|
127
|
+
</step>
|
|
128
|
+
|
|
129
|
+
<step name="confirm">
|
|
130
|
+
```
|
|
131
|
+
Todo saved: .planning/todos/pending/[filename]
|
|
132
|
+
|
|
133
|
+
[title]
|
|
134
|
+
Area: [area]
|
|
135
|
+
Files: [count] referenced
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
Would you like to:
|
|
140
|
+
|
|
141
|
+
1. Continue with current work
|
|
142
|
+
2. Add another todo
|
|
143
|
+
3. View all todos (/gsd:check-todos)
|
|
144
|
+
```
|
|
145
|
+
</step>
|
|
146
|
+
|
|
147
|
+
</process>
|
|
148
|
+
|
|
149
|
+
<success_criteria>
|
|
150
|
+
- [ ] Directory structure exists
|
|
151
|
+
- [ ] Todo file created with valid frontmatter
|
|
152
|
+
- [ ] Problem section has enough context for future Claude
|
|
153
|
+
- [ ] No duplicates (checked and resolved)
|
|
154
|
+
- [ ] Area consistent with existing todos
|
|
155
|
+
- [ ] STATE.md updated if exists
|
|
156
|
+
- [ ] Todo and state committed to git
|
|
157
|
+
</success_criteria>
|