@undeemed/get-shit-done-codex 1.6.12 → 1.20.3
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/README.md +40 -7
- 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.js +108 -102
- package/commands/gsd/add-phase.md +17 -185
- package/commands/gsd/add-todo.md +23 -163
- package/commands/gsd/audit-milestone.md +3 -219
- package/commands/gsd/check-todos.md +20 -196
- package/commands/gsd/cleanup.md +18 -0
- package/commands/gsd/complete-milestone.md +2 -2
- package/commands/gsd/debug.md +13 -0
- package/commands/gsd/discuss-phase.md +13 -6
- package/commands/gsd/execute-phase.md +4 -266
- package/commands/gsd/health.md +22 -0
- package/commands/gsd/help.md +8 -369
- package/commands/gsd/insert-phase.md +9 -203
- package/commands/gsd/join-discord.md +18 -0
- package/commands/gsd/list-phase-assumptions.md +4 -4
- package/commands/gsd/map-codebase.md +1 -1
- package/commands/gsd/new-milestone.md +16 -682
- package/commands/gsd/new-project.md +12 -866
- package/commands/gsd/new-project.md.bak +1041 -0
- package/commands/gsd/pause-work.md +17 -105
- package/commands/gsd/plan-milestone-gaps.md +3 -247
- package/commands/gsd/plan-phase.md +13 -444
- package/commands/gsd/progress.md +5 -337
- package/commands/gsd/quick.md +40 -0
- package/commands/gsd/reapply-patches.md +110 -0
- package/commands/gsd/remove-phase.md +9 -315
- package/commands/gsd/research-phase.md +27 -20
- package/commands/gsd/resume-work.md +2 -2
- package/commands/gsd/set-profile.md +34 -0
- package/commands/gsd/settings.md +36 -0
- package/commands/gsd/update.md +25 -160
- package/commands/gsd/verify-work.md +6 -186
- 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 +270 -283
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +7 -13
- 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 +5 -1
- package/get-shit-done/references/verification-patterns.md +17 -0
- package/get-shit-done/templates/DEBUG.md +4 -4
- package/get-shit-done/templates/UAT.md +1 -1
- package/get-shit-done/templates/codebase/architecture.md +1 -1
- package/get-shit-done/templates/codebase/concerns.md +1 -1
- package/get-shit-done/templates/codebase/conventions.md +1 -1
- package/get-shit-done/templates/codebase/structure.md +9 -9
- package/get-shit-done/templates/config.json +10 -0
- package/get-shit-done/templates/context.md +7 -15
- package/get-shit-done/templates/continue-here.md +1 -1
- package/get-shit-done/templates/phase-prompt.md +32 -41
- package/get-shit-done/templates/planner-subagent-prompt.md +4 -4
- package/get-shit-done/templates/project.md +1 -1
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +1 -1
- package/get-shit-done/templates/research.md +27 -4
- package/get-shit-done/templates/state.md +1 -31
- 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 +5 -28
- package/get-shit-done/templates/user-setup.md +8 -20
- package/get-shit-done/templates/verification-report.md +3 -3
- 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 +225 -301
- package/get-shit-done/workflows/diagnose-issues.md +3 -17
- package/get-shit-done/workflows/discovery-phase.md +11 -15
- package/get-shit-done/workflows/discuss-phase.md +105 -42
- package/get-shit-done/workflows/execute-phase.md +205 -349
- package/get-shit-done/workflows/execute-plan.md +179 -1569
- 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 +9 -9
- package/get-shit-done/workflows/map-codebase.md +56 -18
- 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 +18 -23
- 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 +78 -103
- package/get-shit-done/workflows/update.md +214 -0
- package/get-shit-done/workflows/verify-phase.md +109 -496
- package/get-shit-done/workflows/verify-work.md +22 -15
- package/hooks/dist/gsd-check-update.js +66 -0
- package/hooks/dist/gsd-statusline.js +91 -0
- package/package.json +19 -3
- package/scripts/build-hooks.js +42 -0
- package/commands/gsd/whats-new.md +0 -124
package/commands/gsd/debug.md
CHANGED
|
@@ -28,6 +28,17 @@ ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
|
28
28
|
|
|
29
29
|
<process>
|
|
30
30
|
|
|
31
|
+
## 0. Initialize Context
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
INIT=$(node ~/.codex/get-shit-done/bin/gsd-tools.cjs state load)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Extract `commit_docs` from init JSON. Resolve debugger model:
|
|
38
|
+
```bash
|
|
39
|
+
DEBUGGER_MODEL=$(node ~/.codex/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-debugger --raw)
|
|
40
|
+
```
|
|
41
|
+
|
|
31
42
|
## 1. Check Active Sessions
|
|
32
43
|
|
|
33
44
|
If active sessions exist AND no $ARGUMENTS:
|
|
@@ -82,6 +93,7 @@ Create: .planning/debug/{slug}.md
|
|
|
82
93
|
Task(
|
|
83
94
|
prompt=filled_prompt,
|
|
84
95
|
subagent_type="gsd-debugger",
|
|
96
|
+
model="{debugger_model}",
|
|
85
97
|
description="Debug {slug}"
|
|
86
98
|
)
|
|
87
99
|
```
|
|
@@ -134,6 +146,7 @@ goal: find_and_fix
|
|
|
134
146
|
Task(
|
|
135
147
|
prompt=continuation_prompt,
|
|
136
148
|
subagent_type="gsd-debugger",
|
|
149
|
+
model="{debugger_model}",
|
|
137
150
|
description="Continue debug {slug}"
|
|
138
151
|
)
|
|
139
152
|
```
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gsd:discuss-phase
|
|
3
3
|
description: Gather phase context through adaptive questioning before planning
|
|
4
|
-
argument-hint: "<phase>"
|
|
5
|
-
allowed-tools:
|
|
4
|
+
argument-hint: "<phase> [--auto]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
- Task
|
|
6
13
|
---
|
|
7
14
|
|
|
8
15
|
<objective>
|
|
@@ -14,12 +21,12 @@ Extract implementation decisions that downstream agents need — researcher and
|
|
|
14
21
|
3. Deep-dive each selected area until satisfied
|
|
15
22
|
4. Create CONTEXT.md with decisions that guide research and planning
|
|
16
23
|
|
|
17
|
-
**Output:** `{
|
|
24
|
+
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
|
18
25
|
</objective>
|
|
19
26
|
|
|
20
27
|
<execution_context>
|
|
21
|
-
@~/.
|
|
22
|
-
@~/.
|
|
28
|
+
@~/.codex/get-shit-done/workflows/discuss-phase.md
|
|
29
|
+
@~/.codex/get-shit-done/templates/context.md
|
|
23
30
|
</execution_context>
|
|
24
31
|
|
|
25
32
|
<context>
|
|
@@ -63,7 +70,7 @@ Generate 3-4 **phase-specific** gray areas, not generic categories.
|
|
|
63
70
|
- If more → ask 4 more, check again
|
|
64
71
|
- After all areas → "Ready to create context?"
|
|
65
72
|
|
|
66
|
-
**Do NOT ask about (
|
|
73
|
+
**Do NOT ask about (Codex handles these):**
|
|
67
74
|
- Technical implementation
|
|
68
75
|
- Architecture choices
|
|
69
76
|
- Performance concerns
|
|
@@ -13,7 +13,6 @@ allowed-tools:
|
|
|
13
13
|
- TodoWrite
|
|
14
14
|
- AskUserQuestion
|
|
15
15
|
---
|
|
16
|
-
|
|
17
16
|
<objective>
|
|
18
17
|
Execute all plans in a phase using wave-based parallel execution.
|
|
19
18
|
|
|
@@ -23,8 +22,8 @@ Context budget: ~15% orchestrator, 100% fresh per subagent.
|
|
|
23
22
|
</objective>
|
|
24
23
|
|
|
25
24
|
<execution_context>
|
|
26
|
-
@~/.
|
|
27
|
-
@~/.
|
|
25
|
+
@~/.codex/get-shit-done/workflows/execute-phase.md
|
|
26
|
+
@~/.codex/get-shit-done/references/ui-brand.md
|
|
28
27
|
</execution_context>
|
|
29
28
|
|
|
30
29
|
<context>
|
|
@@ -38,267 +37,6 @@ Phase: $ARGUMENTS
|
|
|
38
37
|
</context>
|
|
39
38
|
|
|
40
39
|
<process>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- Count PLAN.md files
|
|
44
|
-
- Error if no plans found
|
|
45
|
-
|
|
46
|
-
2. **Discover plans**
|
|
47
|
-
- List all *-PLAN.md files in phase directory
|
|
48
|
-
- Check which have *-SUMMARY.md (already complete)
|
|
49
|
-
- If `--gaps-only`: filter to only plans with `gap_closure: true`
|
|
50
|
-
- Build list of incomplete plans
|
|
51
|
-
|
|
52
|
-
3. **Group by wave**
|
|
53
|
-
- Read `wave` from each plan's frontmatter
|
|
54
|
-
- Group plans by wave number
|
|
55
|
-
- Report wave structure to user
|
|
56
|
-
|
|
57
|
-
4. **Execute waves**
|
|
58
|
-
For each wave in order:
|
|
59
|
-
- Spawn `gsd-executor` for each plan in wave (parallel Task calls)
|
|
60
|
-
- Wait for completion (Task blocks)
|
|
61
|
-
- Verify SUMMARYs created
|
|
62
|
-
- Proceed to next wave
|
|
63
|
-
|
|
64
|
-
5. **Aggregate results**
|
|
65
|
-
- Collect summaries from all plans
|
|
66
|
-
- Report phase completion status
|
|
67
|
-
|
|
68
|
-
6. **Commit any orchestrator corrections**
|
|
69
|
-
Check for uncommitted changes before verification:
|
|
70
|
-
```bash
|
|
71
|
-
git status --porcelain
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**If changes exist:** Orchestrator made corrections between executor completions. Commit them:
|
|
75
|
-
```bash
|
|
76
|
-
git add -u && git commit -m "fix({phase}): orchestrator corrections"
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
**If clean:** Continue to verification.
|
|
80
|
-
|
|
81
|
-
7. **Verify phase goal**
|
|
82
|
-
- Spawn `gsd-verifier` subagent with phase directory and goal
|
|
83
|
-
- Verifier checks must_haves against actual codebase (not SUMMARY claims)
|
|
84
|
-
- Creates VERIFICATION.md with detailed report
|
|
85
|
-
- Route by status:
|
|
86
|
-
- `passed` → continue to step 8
|
|
87
|
-
- `human_needed` → present items, get approval or feedback
|
|
88
|
-
- `gaps_found` → present gaps, offer `/gsd:plan-phase {X} --gaps`
|
|
89
|
-
|
|
90
|
-
8. **Update roadmap and state**
|
|
91
|
-
- Update ROADMAP.md, STATE.md
|
|
92
|
-
|
|
93
|
-
9. **Update requirements**
|
|
94
|
-
Mark phase requirements as Complete:
|
|
95
|
-
- Read ROADMAP.md, find this phase's `Requirements:` line (e.g., "AUTH-01, AUTH-02")
|
|
96
|
-
- Read REQUIREMENTS.md traceability table
|
|
97
|
-
- For each REQ-ID in this phase: change Status from "Pending" to "Complete"
|
|
98
|
-
- Write updated REQUIREMENTS.md
|
|
99
|
-
- Skip if: REQUIREMENTS.md doesn't exist, or phase has no Requirements line
|
|
100
|
-
|
|
101
|
-
10. **Commit phase completion**
|
|
102
|
-
Bundle all phase metadata updates in one commit:
|
|
103
|
-
- Stage: `git add .planning/ROADMAP.md .planning/STATE.md`
|
|
104
|
-
- Stage REQUIREMENTS.md if updated: `git add .planning/REQUIREMENTS.md`
|
|
105
|
-
- Commit: `docs({phase}): complete {phase-name} phase`
|
|
106
|
-
|
|
107
|
-
11. **Offer next steps**
|
|
108
|
-
- Route to next action (see `<offer_next>`)
|
|
40
|
+
Execute the execute-phase workflow from @~/.codex/get-shit-done/workflows/execute-phase.md end-to-end.
|
|
41
|
+
Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
|
|
109
42
|
</process>
|
|
110
|
-
|
|
111
|
-
<offer_next>
|
|
112
|
-
Output this markdown directly (not as a code block). Route based on status:
|
|
113
|
-
|
|
114
|
-
| Status | Route |
|
|
115
|
-
|--------|-------|
|
|
116
|
-
| `gaps_found` | Route C (gap closure) |
|
|
117
|
-
| `human_needed` | Present checklist, then re-route based on approval |
|
|
118
|
-
| `passed` + more phases | Route A (next phase) |
|
|
119
|
-
| `passed` + last phase | Route B (milestone complete) |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
**Route A: Phase verified, more phases remain**
|
|
124
|
-
|
|
125
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
126
|
-
GSD-CODEX ► PHASE {Z} COMPLETE ✓
|
|
127
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
128
|
-
|
|
129
|
-
**Phase {Z}: {Name}**
|
|
130
|
-
|
|
131
|
-
{Y} plans executed
|
|
132
|
-
Goal verified ✓
|
|
133
|
-
|
|
134
|
-
───────────────────────────────────────────────────────────────
|
|
135
|
-
|
|
136
|
-
## ▶ Next Up
|
|
137
|
-
|
|
138
|
-
**Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
|
|
139
|
-
|
|
140
|
-
/gsd:discuss-phase {Z+1} — gather context and clarify approach
|
|
141
|
-
|
|
142
|
-
<sub>/clear first → fresh context window</sub>
|
|
143
|
-
|
|
144
|
-
───────────────────────────────────────────────────────────────
|
|
145
|
-
|
|
146
|
-
**Also available:**
|
|
147
|
-
- /gsd:plan-phase {Z+1} — skip discussion, plan directly
|
|
148
|
-
- /gsd:verify-work {Z} — manual acceptance testing before continuing
|
|
149
|
-
|
|
150
|
-
───────────────────────────────────────────────────────────────
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
**Route B: Phase verified, milestone complete**
|
|
155
|
-
|
|
156
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
157
|
-
GSD-CODEX ► MILESTONE COMPLETE 🎉
|
|
158
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
159
|
-
|
|
160
|
-
**v1.0**
|
|
161
|
-
|
|
162
|
-
{N} phases completed
|
|
163
|
-
All phase goals verified ✓
|
|
164
|
-
|
|
165
|
-
───────────────────────────────────────────────────────────────
|
|
166
|
-
|
|
167
|
-
## ▶ Next Up
|
|
168
|
-
|
|
169
|
-
**Audit milestone** — verify requirements, cross-phase integration, E2E flows
|
|
170
|
-
|
|
171
|
-
/gsd:audit-milestone
|
|
172
|
-
|
|
173
|
-
<sub>/clear first → fresh context window</sub>
|
|
174
|
-
|
|
175
|
-
───────────────────────────────────────────────────────────────
|
|
176
|
-
|
|
177
|
-
**Also available:**
|
|
178
|
-
- /gsd:verify-work — manual acceptance testing
|
|
179
|
-
- /gsd:complete-milestone — skip audit, archive directly
|
|
180
|
-
|
|
181
|
-
───────────────────────────────────────────────────────────────
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
**Route C: Gaps found — need additional planning**
|
|
186
|
-
|
|
187
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
188
|
-
GSD-CODEX ► PHASE {Z} GAPS FOUND ⚠
|
|
189
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
190
|
-
|
|
191
|
-
**Phase {Z}: {Name}**
|
|
192
|
-
|
|
193
|
-
Score: {N}/{M} must-haves verified
|
|
194
|
-
Report: .planning/phases/{phase_dir}/{phase}-VERIFICATION.md
|
|
195
|
-
|
|
196
|
-
### What's Missing
|
|
197
|
-
|
|
198
|
-
{Extract gap summaries from VERIFICATION.md}
|
|
199
|
-
|
|
200
|
-
───────────────────────────────────────────────────────────────
|
|
201
|
-
|
|
202
|
-
## ▶ Next Up
|
|
203
|
-
|
|
204
|
-
**Plan gap closure** — create additional plans to complete the phase
|
|
205
|
-
|
|
206
|
-
/gsd:plan-phase {Z} --gaps
|
|
207
|
-
|
|
208
|
-
<sub>/clear first → fresh context window</sub>
|
|
209
|
-
|
|
210
|
-
───────────────────────────────────────────────────────────────
|
|
211
|
-
|
|
212
|
-
**Also available:**
|
|
213
|
-
- cat .planning/phases/{phase_dir}/{phase}-VERIFICATION.md — see full report
|
|
214
|
-
- /gsd:verify-work {Z} — manual testing before planning
|
|
215
|
-
|
|
216
|
-
───────────────────────────────────────────────────────────────
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
After user runs /gsd:plan-phase {Z} --gaps:
|
|
221
|
-
1. Planner reads VERIFICATION.md gaps
|
|
222
|
-
2. Creates plans 04, 05, etc. to close gaps
|
|
223
|
-
3. User runs /gsd:execute-phase {Z} again
|
|
224
|
-
4. Execute-phase runs incomplete plans (04, 05...)
|
|
225
|
-
5. Verifier runs again → loop until passed
|
|
226
|
-
</offer_next>
|
|
227
|
-
|
|
228
|
-
<wave_execution>
|
|
229
|
-
**Parallel spawning:**
|
|
230
|
-
|
|
231
|
-
Spawn all plans in a wave with a single message containing multiple Task calls:
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
Task(prompt="Execute plan at {plan_01_path}\n\nPlan: @{plan_01_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
|
|
235
|
-
Task(prompt="Execute plan at {plan_02_path}\n\nPlan: @{plan_02_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
|
|
236
|
-
Task(prompt="Execute plan at {plan_03_path}\n\nPlan: @{plan_03_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
All three run in parallel. Task tool blocks until all complete.
|
|
240
|
-
|
|
241
|
-
**No polling.** No background agents. No TaskOutput loops.
|
|
242
|
-
</wave_execution>
|
|
243
|
-
|
|
244
|
-
<checkpoint_handling>
|
|
245
|
-
Plans with `autonomous: false` have checkpoints. The execute-phase.md workflow handles the full checkpoint flow:
|
|
246
|
-
- Subagent pauses at checkpoint, returns structured state
|
|
247
|
-
- Orchestrator presents to user, collects response
|
|
248
|
-
- Spawns fresh continuation agent (not resume)
|
|
249
|
-
|
|
250
|
-
See `@~/.claude/get-shit-done/workflows/execute-phase.md` step `checkpoint_handling` for complete details.
|
|
251
|
-
</checkpoint_handling>
|
|
252
|
-
|
|
253
|
-
<deviation_rules>
|
|
254
|
-
During execution, handle discoveries automatically:
|
|
255
|
-
|
|
256
|
-
1. **Auto-fix bugs** - Fix immediately, document in Summary
|
|
257
|
-
2. **Auto-add critical** - Security/correctness gaps, add and document
|
|
258
|
-
3. **Auto-fix blockers** - Can't proceed without fix, do it and document
|
|
259
|
-
4. **Ask about architectural** - Major structural changes, stop and ask user
|
|
260
|
-
|
|
261
|
-
Only rule 4 requires user intervention.
|
|
262
|
-
</deviation_rules>
|
|
263
|
-
|
|
264
|
-
<commit_rules>
|
|
265
|
-
**Per-Task Commits:**
|
|
266
|
-
|
|
267
|
-
After each task completes:
|
|
268
|
-
1. Stage only files modified by that task
|
|
269
|
-
2. Commit with format: `{type}({phase}-{plan}): {task-name}`
|
|
270
|
-
3. Types: feat, fix, test, refactor, perf, chore
|
|
271
|
-
4. Record commit hash for SUMMARY.md
|
|
272
|
-
|
|
273
|
-
**Plan Metadata Commit:**
|
|
274
|
-
|
|
275
|
-
After all tasks in a plan complete:
|
|
276
|
-
1. Stage plan artifacts only: PLAN.md, SUMMARY.md
|
|
277
|
-
2. Commit with format: `docs({phase}-{plan}): complete [plan-name] plan`
|
|
278
|
-
3. NO code files (already committed per-task)
|
|
279
|
-
|
|
280
|
-
**Phase Completion Commit:**
|
|
281
|
-
|
|
282
|
-
After all plans in phase complete (step 7):
|
|
283
|
-
1. Stage: ROADMAP.md, STATE.md, REQUIREMENTS.md (if updated), VERIFICATION.md
|
|
284
|
-
2. Commit with format: `docs({phase}): complete {phase-name} phase`
|
|
285
|
-
3. Bundles all phase-level state updates in one commit
|
|
286
|
-
|
|
287
|
-
**NEVER use:**
|
|
288
|
-
- `git add .`
|
|
289
|
-
- `git add -A`
|
|
290
|
-
- `git add src/` or any broad directory
|
|
291
|
-
|
|
292
|
-
**Always stage files individually.**
|
|
293
|
-
</commit_rules>
|
|
294
|
-
|
|
295
|
-
<success_criteria>
|
|
296
|
-
- [ ] All incomplete plans in phase executed
|
|
297
|
-
- [ ] Each plan has SUMMARY.md
|
|
298
|
-
- [ ] Phase goal verified (must_haves checked against codebase)
|
|
299
|
-
- [ ] VERIFICATION.md created in phase directory
|
|
300
|
-
- [ ] STATE.md reflects phase completion
|
|
301
|
-
- [ ] ROADMAP.md updated
|
|
302
|
-
- [ ] REQUIREMENTS.md updated (phase requirements marked Complete)
|
|
303
|
-
- [ ] User informed of next steps
|
|
304
|
-
</success_criteria>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:health
|
|
3
|
+
description: Diagnose planning directory health and optionally repair issues
|
|
4
|
+
argument-hint: [--repair]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@~/.codex/get-shit-done/workflows/health.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Execute the health workflow from @~/.codex/get-shit-done/workflows/health.md end-to-end.
|
|
21
|
+
Parse --repair flag from arguments and pass to workflow.
|
|
22
|
+
</process>
|