pi-gsd 2.0.21 → 2.0.23
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/.gsd/harnesses/pi/get-shit-done/agents/gsd-codebase-mapper.md +13 -13
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-debugger.md +37 -37
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-executor.md +8 -8
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-nyquist-auditor.md +31 -31
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-phase-researcher.md +85 -85
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-plan-checker.md +32 -32
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-planner.md +108 -108
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-project-researcher.md +76 -76
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-research-synthesizer.md +16 -16
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-roadmapper.md +39 -39
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-ui-auditor.md +24 -24
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-ui-checker.md +21 -21
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-ui-researcher.md +35 -35
- package/.gsd/harnesses/pi/get-shit-done/agents/gsd-verifier.md +30 -30
- package/.gsd/harnesses/pi/get-shit-done/references/continuation-format.md +11 -11
- package/.gsd/harnesses/pi/get-shit-done/references/ui-brand.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/templates/DEBUG.md +4 -4
- package/.gsd/harnesses/pi/get-shit-done/templates/UAT.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/add-backlog.md +132 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/add-phase.md +36 -68
- package/.gsd/harnesses/pi/get-shit-done/workflows/audit-milestone.md +3 -3
- package/.gsd/harnesses/pi/get-shit-done/workflows/complete-milestone.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/debug.md +250 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase-assumptions.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase.md +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/discuss-phase.md.bak +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/execute-phase.md +5 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/execute-phase.md.bak +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/execute-plan.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/help.md +5 -5
- package/.gsd/harnesses/pi/get-shit-done/workflows/insert-phase.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/list-phase-assumptions.md +78 -30
- package/.gsd/harnesses/pi/get-shit-done/workflows/map-codebase.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/new-milestone.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/new-milestone.md.bak +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/new-project.md +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/new-project.md.bak +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/plan-milestone-gaps.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/plan-phase.md +5 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/plan-phase.md.bak +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/progress.md +10 -10
- package/.gsd/harnesses/pi/get-shit-done/workflows/resume-project.md +2 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/review-backlog.md +219 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/session-report.md +47 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/set-profile.md +135 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/settings.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/thread.md +213 -0
- package/.gsd/harnesses/pi/get-shit-done/workflows/transition.md +3 -3
- package/.gsd/harnesses/pi/get-shit-done/workflows/ui-phase.md +3 -2
- package/.gsd/harnesses/pi/get-shit-done/workflows/ui-review.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/validate-phase.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/verify-work.md +1 -1
- package/.gsd/harnesses/pi/get-shit-done/workflows/workstreams.md +215 -0
- package/.gsd/harnesses/pi/gsd-file-manifest.json +1 -1
- package/.gsd/harnesses/pi/hooks/gsd-context-monitor.js +102 -102
- package/.gsd/harnesses/pi/hooks/gsd-statusline.js +2 -2
- package/.gsd/harnesses/pi/hooks/gsd-workflow-guard.js +65 -65
- package/README.md +1 -1
- package/dist/pi-gsd-hooks.js +33 -6
- package/dist/pi-gsd-tools.js +87 -76
- package/package.json +1 -1
- package/prompts/gsd-add-backlog.md +2 -0
- package/prompts/gsd-complete-milestone.md +2 -0
- package/prompts/gsd-debug.md +2 -0
- package/prompts/gsd-list-phase-assumptions.md +1 -1
- package/prompts/gsd-research-phase.md +2 -0
- package/prompts/gsd-review-backlog.md +2 -0
- package/prompts/gsd-set-profile.md +2 -0
- package/prompts/gsd-thread.md +2 -0
- package/prompts/gsd-workstreams.md +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<gsd-version v="1.12.
|
|
1
|
+
<gsd-version v="1.12.5" />
|
|
2
2
|
|
|
3
3
|
<gsd-arguments>
|
|
4
4
|
<settings>
|
|
@@ -47,121 +47,89 @@
|
|
|
47
47
|
</if>
|
|
48
48
|
<shell command="pi-gsd-tools">
|
|
49
49
|
<args>
|
|
50
|
-
<arg string="
|
|
51
|
-
<arg string="
|
|
52
|
-
<arg
|
|
50
|
+
<arg string="phase" />
|
|
51
|
+
<arg string="add-batch" />
|
|
52
|
+
<arg name="description" wrap='"' />
|
|
53
53
|
</args>
|
|
54
54
|
<outs>
|
|
55
|
-
<out type="string" name="
|
|
55
|
+
<out type="string" name="batch-result" />
|
|
56
56
|
</outs>
|
|
57
57
|
</shell>
|
|
58
58
|
</gsd-execute>
|
|
59
59
|
|
|
60
60
|
## Context (pre-injected by WXP)
|
|
61
61
|
|
|
62
|
-
**
|
|
62
|
+
**Init:**
|
|
63
|
+
<gsd-paste name="init" />
|
|
63
64
|
|
|
64
|
-
**
|
|
65
|
-
<gsd-paste name="
|
|
65
|
+
**Phases added:**
|
|
66
|
+
<gsd-paste name="batch-result" />
|
|
66
67
|
|
|
67
68
|
<process>
|
|
68
69
|
|
|
69
70
|
<step name="parse_arguments">
|
|
70
|
-
|
|
71
|
-
- All arguments become the phase description
|
|
72
|
-
- Example: `/gsd-add-phase Add authentication` → description = "Add authentication"
|
|
73
|
-
- Example: `/gsd-add-phase Fix critical performance issues` → description = "Fix critical performance issues"
|
|
74
|
-
|
|
75
|
-
If no arguments provided:
|
|
71
|
+
If no description was provided (check `<gsd-paste name="description" />` is empty):
|
|
76
72
|
|
|
77
73
|
```
|
|
78
74
|
ERROR: Phase description required
|
|
79
75
|
Usage: /gsd-add-phase <description>
|
|
76
|
+
/gsd-add-phase <desc1> + <desc2> + ...
|
|
80
77
|
Example: /gsd-add-phase Add authentication system
|
|
81
78
|
```
|
|
82
79
|
|
|
83
80
|
Exit.
|
|
84
81
|
</step>
|
|
85
82
|
|
|
86
|
-
<step name="
|
|
87
|
-
|
|
83
|
+
<step name="check_result">
|
|
84
|
+
The `batch-result` JSON above was already executed by WXP before this message
|
|
85
|
+
reached you. Parse it:
|
|
88
86
|
|
|
89
|
-
|
|
87
|
+
- If it contains an error field → report the error and exit.
|
|
88
|
+
- Otherwise extract `phases[]` — each has `phase_number`, `padded`, `name`,
|
|
89
|
+
`slug`, `directory`.
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
ERROR: No roadmap found (.planning/ROADMAP.md)
|
|
94
|
-
Run /gsd-new-project to initialize.
|
|
95
|
-
```
|
|
96
|
-
Exit.
|
|
97
|
-
</step>
|
|
98
|
-
|
|
99
|
-
<step name="add_phase">
|
|
100
|
-
**Delegate the phase addition to gsd-tools:**
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
RESULT=$(pi-gsd-tools phase add "${description}")
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
The CLI handles:
|
|
107
|
-
- Finding the highest existing integer phase number
|
|
108
|
-
- Calculating next phase number (max + 1)
|
|
109
|
-
- Generating slug from description
|
|
110
|
-
- Creating the phase directory (`.planning/phases/{NN}-{slug}/`)
|
|
111
|
-
- Inserting the phase entry into ROADMAP.md with Goal, Depends on, and Plans sections
|
|
112
|
-
|
|
113
|
-
Extract from result: `phase_number`, `padded`, `name`, `slug`, `directory`.
|
|
114
|
-
</step>
|
|
115
|
-
|
|
116
|
-
<step name="update_project_state">
|
|
117
|
-
Update STATE.md to reflect the new phase:
|
|
118
|
-
|
|
119
|
-
1. Read `.planning/STATE.md`
|
|
120
|
-
2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
|
|
121
|
-
```
|
|
122
|
-
- Phase {N} added: {description}
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
If "Roadmap Evolution" section doesn't exist, create it.
|
|
91
|
+
Do NOT run `pi-gsd-tools phase add` again, do NOT inspect `.planning/phases/`
|
|
92
|
+
or ROADMAP.md — everything is already done.
|
|
126
93
|
</step>
|
|
127
94
|
|
|
128
95
|
<step name="completion">
|
|
129
|
-
Present completion summary:
|
|
96
|
+
Present a completion summary:
|
|
130
97
|
|
|
131
98
|
```
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
99
|
+
Added <count> phase(s):
|
|
100
|
+
|
|
101
|
+
<for each phase in phases[]>
|
|
102
|
+
• Phase <phase_number>: <name>
|
|
103
|
+
Directory: <directory>
|
|
104
|
+
</for>
|
|
136
105
|
|
|
137
106
|
Roadmap updated: .planning/ROADMAP.md
|
|
107
|
+
State updated: .planning/STATE.md
|
|
138
108
|
|
|
139
109
|
---
|
|
140
110
|
|
|
141
111
|
## ▶ Next Up
|
|
142
112
|
|
|
143
|
-
**Phase
|
|
113
|
+
**Phase <last phase_number>: <last name>**
|
|
144
114
|
|
|
145
|
-
`/gsd-plan-phase
|
|
115
|
+
`/gsd-plan-phase <last phase_number>`
|
|
146
116
|
|
|
147
117
|
<sub>`/clear` first → fresh context window</sub>
|
|
148
118
|
|
|
149
119
|
---
|
|
150
120
|
|
|
151
121
|
**Also available:**
|
|
152
|
-
- `/gsd-add-phase <description>`
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
---
|
|
122
|
+
- `/gsd-add-phase <description>` — add another phase
|
|
123
|
+
- `/gsd-plan-phase <N>` — plan any of the new phases
|
|
156
124
|
```
|
|
157
125
|
</step>
|
|
158
126
|
|
|
159
127
|
</process>
|
|
160
128
|
|
|
161
129
|
<success_criteria>
|
|
162
|
-
- [ ] `gsd-tools phase add` executed
|
|
163
|
-
- [ ] Phase
|
|
164
|
-
- [ ]
|
|
165
|
-
- [ ] STATE.md updated
|
|
166
|
-
- [ ]
|
|
130
|
+
- [ ] `pi-gsd-tools phase add-batch` executed by WXP (not by the agent)
|
|
131
|
+
- [ ] Phase directories created under `.planning/phases/`
|
|
132
|
+
- [ ] ROADMAP.md updated with all new phase entries
|
|
133
|
+
- [ ] STATE.md Roadmap Evolution updated (handled inside add-batch)
|
|
134
|
+
- [ ] Agent presented the pre-injected result — no filesystem exploration
|
|
167
135
|
</success_criteria>
|
|
@@ -289,7 +289,7 @@ All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
|
289
289
|
|
|
290
290
|
/gsd-complete-milestone {version}
|
|
291
291
|
|
|
292
|
-
<sub>/
|
|
292
|
+
<sub>/new first → fresh context window</sub>
|
|
293
293
|
|
|
294
294
|
───────────────────────────────────────────────────────────────
|
|
295
295
|
|
|
@@ -334,7 +334,7 @@ Phases needing validation: run `/gsd-validate-phase {N}` for each flagged phase.
|
|
|
334
334
|
|
|
335
335
|
/gsd-plan-milestone-gaps
|
|
336
336
|
|
|
337
|
-
<sub>/
|
|
337
|
+
<sub>/new first → fresh context window</sub>
|
|
338
338
|
|
|
339
339
|
───────────────────────────────────────────────────────────────
|
|
340
340
|
|
|
@@ -376,7 +376,7 @@ All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
|
376
376
|
|
|
377
377
|
/gsd-plan-milestone-gaps
|
|
378
378
|
|
|
379
|
-
<sub>/
|
|
379
|
+
<sub>/new first → fresh context window</sub>
|
|
380
380
|
|
|
381
381
|
───────────────────────────────────────────────────────────────
|
|
382
382
|
</offer_next>
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
<gsd-version v="1.12.4" />
|
|
2
|
+
|
|
3
|
+
<gsd-arguments>
|
|
4
|
+
<settings>
|
|
5
|
+
<keep-extra-args />
|
|
6
|
+
</settings>
|
|
7
|
+
<arg name="description" type="string" optional />
|
|
8
|
+
</gsd-arguments>
|
|
9
|
+
|
|
10
|
+
<gsd-execute>
|
|
11
|
+
<display msg="Loading debug context..." />
|
|
12
|
+
<shell command="pi-gsd-tools">
|
|
13
|
+
<args>
|
|
14
|
+
<arg string="state" />
|
|
15
|
+
<arg string="json" />
|
|
16
|
+
<arg string="--raw" />
|
|
17
|
+
</args>
|
|
18
|
+
<outs>
|
|
19
|
+
<suppress-errors />
|
|
20
|
+
<out type="string" name="state" />
|
|
21
|
+
</outs>
|
|
22
|
+
</shell>
|
|
23
|
+
<shell command="pi-gsd-tools">
|
|
24
|
+
<args>
|
|
25
|
+
<arg string="current-timestamp" />
|
|
26
|
+
<arg string="--raw" />
|
|
27
|
+
</args>
|
|
28
|
+
<outs>
|
|
29
|
+
<out type="string" name="timestamp" />
|
|
30
|
+
</outs>
|
|
31
|
+
</shell>
|
|
32
|
+
<shell command="pi-gsd-tools">
|
|
33
|
+
<args>
|
|
34
|
+
<arg string="agent-skills" />
|
|
35
|
+
<arg string="gsd-debugger" />
|
|
36
|
+
</args>
|
|
37
|
+
<outs>
|
|
38
|
+
<suppress-errors />
|
|
39
|
+
<out type="string" name="agent-skills-debugger" />
|
|
40
|
+
</outs>
|
|
41
|
+
</shell>
|
|
42
|
+
</gsd-execute>
|
|
43
|
+
|
|
44
|
+
## Debug Context (pre-injected by WXP)
|
|
45
|
+
|
|
46
|
+
**Problem:** <gsd-paste name="description" />
|
|
47
|
+
|
|
48
|
+
**Timestamp:** <gsd-paste name="timestamp" />
|
|
49
|
+
|
|
50
|
+
**Project State:**
|
|
51
|
+
<gsd-paste name="state" />
|
|
52
|
+
|
|
53
|
+
**Debugger Skills:**
|
|
54
|
+
<gsd-paste name="agent-skills-debugger" />
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
<purpose>
|
|
59
|
+
Systematic debugging session. Diagnoses failures, errors, and unexpected behavior using structured root-cause analysis. Spawns gsd-debugger with full project context for focused investigation.
|
|
60
|
+
|
|
61
|
+
For post-mortem investigation of completed phases, use `/gsd-forensics` instead.
|
|
62
|
+
</purpose>
|
|
63
|
+
|
|
64
|
+
<available_agent_types>
|
|
65
|
+
Valid GSD subagent types (use exact names - do not fall back to 'general-purpose'):
|
|
66
|
+
- gsd-debugger - Diagnoses and fixes issues
|
|
67
|
+
</available_agent_types>
|
|
68
|
+
|
|
69
|
+
<process>
|
|
70
|
+
|
|
71
|
+
<step name="gather_context">
|
|
72
|
+
<!-- State, timestamp, and description pre-injected above via WXP -->
|
|
73
|
+
|
|
74
|
+
Load current phase context:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
PHASE_INFO=$(pi-gsd-tools roadmap analyze --raw 2>/dev/null || echo "{}")
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Extract from state JSON:
|
|
81
|
+
- `current_phase` - what's being worked on
|
|
82
|
+
- `last_activity` - when was the last change
|
|
83
|
+
- `milestone` - current milestone name
|
|
84
|
+
|
|
85
|
+
If `description` is empty, ask the user:
|
|
86
|
+
```
|
|
87
|
+
What's broken? Describe the symptom in one sentence:
|
|
88
|
+
(e.g. "auth tokens expire immediately", "build fails with missing module", "tests pass locally but fail in CI")
|
|
89
|
+
```
|
|
90
|
+
Store response as `description`.
|
|
91
|
+
</step>
|
|
92
|
+
|
|
93
|
+
<step name="classify_issue">
|
|
94
|
+
Classify the issue from the description:
|
|
95
|
+
|
|
96
|
+
| Symptom pattern | Issue type |
|
|
97
|
+
|----------------|------------|
|
|
98
|
+
| Error/exception message | `runtime_error` |
|
|
99
|
+
| Test failures | `test_failure` |
|
|
100
|
+
| Build/compile error | `build_error` |
|
|
101
|
+
| Wrong behavior (no error) | `logic_error` |
|
|
102
|
+
| Performance problem | `performance` |
|
|
103
|
+
| Integration failure | `integration` |
|
|
104
|
+
| Unclear | `unknown` |
|
|
105
|
+
|
|
106
|
+
Set `ISSUE_TYPE`.
|
|
107
|
+
</step>
|
|
108
|
+
|
|
109
|
+
<step name="spawn_debugger">
|
|
110
|
+
Display banner:
|
|
111
|
+
```
|
|
112
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
113
|
+
GSD ► DEBUG SESSION
|
|
114
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
115
|
+
|
|
116
|
+
Issue: {description}
|
|
117
|
+
Type: {ISSUE_TYPE}
|
|
118
|
+
Phase: {current_phase || "not set"}
|
|
119
|
+
|
|
120
|
+
◆ Spawning debugger...
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Resolve model:
|
|
124
|
+
```bash
|
|
125
|
+
DEBUGGER_MODEL=$(pi-gsd-tools resolve-model gsd-debugger --raw 2>/dev/null || echo "")
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Debug prompt:
|
|
129
|
+
```markdown
|
|
130
|
+
<objective>
|
|
131
|
+
Debug the following issue in this project:
|
|
132
|
+
{description}
|
|
133
|
+
|
|
134
|
+
Issue type: {ISSUE_TYPE}
|
|
135
|
+
Current phase: {current_phase}
|
|
136
|
+
Milestone: {milestone}
|
|
137
|
+
</objective>
|
|
138
|
+
|
|
139
|
+
<files_to_read>
|
|
140
|
+
- .planning/STATE.md (Project state and recent decisions)
|
|
141
|
+
- .planning/ROADMAP.md (Phase context)
|
|
142
|
+
- ./GEMINI.md or ./CLAUDE.md (Project-specific guidelines, if exists)
|
|
143
|
+
</files_to_read>
|
|
144
|
+
|
|
145
|
+
${AGENT_SKILLS_DEBUGGER}
|
|
146
|
+
|
|
147
|
+
<investigation_protocol>
|
|
148
|
+
1. Reproduce: Identify the minimal steps to trigger the issue
|
|
149
|
+
2. Isolate: Narrow down to the failing component/file/function
|
|
150
|
+
3. Root cause: Identify WHY it fails, not just WHERE
|
|
151
|
+
4. Fix: Implement the smallest change that solves the root cause
|
|
152
|
+
5. Verify: Confirm the fix works and doesn't introduce regressions
|
|
153
|
+
|
|
154
|
+
Always check:
|
|
155
|
+
- Recent commits (git log --oneline -10) for what changed
|
|
156
|
+
- Related files for mismatched interfaces or broken contracts
|
|
157
|
+
- Test suite for existing coverage that should have caught this
|
|
158
|
+
</investigation_protocol>
|
|
159
|
+
|
|
160
|
+
<output_format>
|
|
161
|
+
## DEBUG COMPLETE
|
|
162
|
+
|
|
163
|
+
**Root cause:** [one sentence]
|
|
164
|
+
**Fix applied:** [what was changed]
|
|
165
|
+
**Files modified:** [list]
|
|
166
|
+
**Verification:** [how to confirm it's fixed]
|
|
167
|
+
|
|
168
|
+
OR
|
|
169
|
+
|
|
170
|
+
## DEBUG BLOCKED
|
|
171
|
+
|
|
172
|
+
**Investigated:** [what was tried]
|
|
173
|
+
**Blocker:** [what additional info is needed]
|
|
174
|
+
**Next step:** [what the human should provide or check]
|
|
175
|
+
</output_format>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
Task(
|
|
180
|
+
prompt=debug_prompt,
|
|
181
|
+
subagent_type="gsd-debugger",
|
|
182
|
+
model="{DEBUGGER_MODEL}",
|
|
183
|
+
description="Debug: {description}"
|
|
184
|
+
)
|
|
185
|
+
```
|
|
186
|
+
</step>
|
|
187
|
+
|
|
188
|
+
<step name="handle_return">
|
|
189
|
+
**`## DEBUG COMPLETE`:**
|
|
190
|
+
|
|
191
|
+
Display root cause, fix, and verification steps. Offer:
|
|
192
|
+
```
|
|
193
|
+
1. Capture as todo (/gsd-add-todo) - if fix not yet applied
|
|
194
|
+
2. Continue with current phase (/gsd-execute-phase)
|
|
195
|
+
3. Done
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**`## DEBUG BLOCKED`:**
|
|
199
|
+
|
|
200
|
+
Display blocker and next steps. Offer:
|
|
201
|
+
```
|
|
202
|
+
1. Provide additional context and retry
|
|
203
|
+
2. Try forensics mode (/gsd-forensics) - deeper investigation
|
|
204
|
+
3. Capture as todo and investigate later
|
|
205
|
+
```
|
|
206
|
+
</step>
|
|
207
|
+
|
|
208
|
+
<step name="persist_session">
|
|
209
|
+
If the debug session produced a fix or useful findings, offer to save:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
mkdir -p .planning/debug
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Write `.planning/debug/{YYYY-MM-DD}-{slug}.md`:
|
|
216
|
+
```markdown
|
|
217
|
+
---
|
|
218
|
+
created: {timestamp}
|
|
219
|
+
issue: {description}
|
|
220
|
+
type: {ISSUE_TYPE}
|
|
221
|
+
phase: {current_phase}
|
|
222
|
+
status: {resolved|blocked}
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Root Cause
|
|
226
|
+
{root cause summary}
|
|
227
|
+
|
|
228
|
+
## Fix
|
|
229
|
+
{what was changed}
|
|
230
|
+
|
|
231
|
+
## Verification
|
|
232
|
+
{how to confirm}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Commit:
|
|
236
|
+
```bash
|
|
237
|
+
pi-gsd-tools commit "docs: debug session - {description_slug}" --files .planning/debug/{filename}
|
|
238
|
+
```
|
|
239
|
+
</step>
|
|
240
|
+
|
|
241
|
+
</process>
|
|
242
|
+
|
|
243
|
+
<success_criteria>
|
|
244
|
+
- [ ] Problem description captured (from arg or prompt)
|
|
245
|
+
- [ ] Issue classified by type
|
|
246
|
+
- [ ] gsd-debugger spawned with full project context
|
|
247
|
+
- [ ] Root cause identified or blocker surfaced
|
|
248
|
+
- [ ] Fix applied or next steps clear
|
|
249
|
+
- [ ] Session optionally persisted in .planning/debug/
|
|
250
|
+
</success_criteria>
|
|
@@ -913,7 +913,7 @@ Created: .planning/phases/${PADDED_PHASE}-${SLUG}/${PADDED_PHASE}-CONTEXT.md
|
|
|
913
913
|
|
|
914
914
|
`/gsd-plan-phase ${PHASE} ${GSD_WS}`
|
|
915
915
|
|
|
916
|
-
<sub>`/
|
|
916
|
+
<sub>`/new` first → fresh context window</sub>
|
|
917
917
|
|
|
918
918
|
---
|
|
919
919
|
|
|
@@ -1045,7 +1045,7 @@ This keeps the auto-advance chain flat - discuss, plan, and execute all run at t
|
|
|
1045
1045
|
Auto-advance pipeline finished: discuss → plan → execute
|
|
1046
1046
|
|
|
1047
1047
|
Next: /gsd-discuss-phase ${NEXT_PHASE} --auto ${GSD_WS}
|
|
1048
|
-
<sub>/
|
|
1048
|
+
<sub>/new first → fresh context window</sub>
|
|
1049
1049
|
```
|
|
1050
1050
|
- **PLANNING COMPLETE** → Planning done, execution didn't complete:
|
|
1051
1051
|
```
|
|
@@ -875,7 +875,7 @@ Created: .planning/phases/${PADDED_PHASE}-${SLUG}/${PADDED_PHASE}-CONTEXT.md
|
|
|
875
875
|
|
|
876
876
|
`/gsd-plan-phase ${PHASE} ${GSD_WS}`
|
|
877
877
|
|
|
878
|
-
<sub>`/
|
|
878
|
+
<sub>`/new` first → fresh context window</sub>
|
|
879
879
|
|
|
880
880
|
---
|
|
881
881
|
|
|
@@ -1007,7 +1007,7 @@ This keeps the auto-advance chain flat - discuss, plan, and execute all run at t
|
|
|
1007
1007
|
Auto-advance pipeline finished: discuss → plan → execute
|
|
1008
1008
|
|
|
1009
1009
|
Next: /gsd-discuss-phase ${NEXT_PHASE} --auto ${GSD_WS}
|
|
1010
|
-
<sub>/
|
|
1010
|
+
<sub>/new first → fresh context window</sub>
|
|
1011
1011
|
```
|
|
1012
1012
|
- **PLANNING COMPLETE** → Planning done, execution didn't complete:
|
|
1013
1013
|
```
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
</delimiters>
|
|
9
9
|
</settings>
|
|
10
10
|
<arg name="auto-chain-active" type="flag" flag="--auto" optional />
|
|
11
|
+
<arg name="no-transition" type="flag" flag="--no-transition" optional />
|
|
12
|
+
<arg name="gaps-only" type="flag" flag="--gaps-only" optional />
|
|
13
|
+
<arg name="interactive" type="flag" flag="--interactive" optional />
|
|
11
14
|
<arg name="phase" type="number" />
|
|
12
15
|
<arg name="user-text" type="string" optional />
|
|
13
16
|
</gsd-arguments>
|
|
@@ -748,7 +751,7 @@ Items saved to `{phase_num}-HUMAN-UAT.md` - they will appear in `/gsd-progress`
|
|
|
748
751
|
|
|
749
752
|
`/gsd-plan-phase {X} --gaps ${GSD_WS}`
|
|
750
753
|
|
|
751
|
-
<sub>`/
|
|
754
|
+
<sub>`/new` first → fresh context window</sub>
|
|
752
755
|
|
|
753
756
|
Also: `cat {phase_dir}/{phase_num}-VERIFICATION.md` - full report
|
|
754
757
|
Also: `/gsd-verify-work {X} ${GSD_WS}` - manual testing first
|
|
@@ -886,7 +889,7 @@ Subagents: fresh context each (200k-1M depending on model). No polling (Task blo
|
|
|
886
889
|
For 1M+ context models, consider:
|
|
887
890
|
- Passing richer context (code snippets, dependency outputs) directly to executors instead of just file paths
|
|
888
891
|
- Running small phases (≤3 plans, no dependencies) inline without subagent spawning overhead
|
|
889
|
-
- Relaxing /
|
|
892
|
+
- Relaxing /new recommendations - context rot onset is much further out with 5x window
|
|
890
893
|
</context_efficiency>
|
|
891
894
|
|
|
892
895
|
<failure_handling>
|
|
@@ -690,7 +690,7 @@ Items saved to `{phase_num}-HUMAN-UAT.md` - they will appear in `/gsd-progress`
|
|
|
690
690
|
|
|
691
691
|
`/gsd-plan-phase {X} --gaps ${GSD_WS}`
|
|
692
692
|
|
|
693
|
-
<sub>`/
|
|
693
|
+
<sub>`/new` first → fresh context window</sub>
|
|
694
694
|
|
|
695
695
|
Also: `cat {phase_dir}/{phase_num}-VERIFICATION.md` - full report
|
|
696
696
|
Also: `/gsd-verify-work {X} ${GSD_WS}` - manual testing first
|
|
@@ -828,7 +828,7 @@ Subagents: fresh context each (200k-1M depending on model). No polling (Task blo
|
|
|
828
828
|
For 1M+ context models, consider:
|
|
829
829
|
- Passing richer context (code snippets, dependency outputs) directly to executors instead of just file paths
|
|
830
830
|
- Running small phases (≤3 plans, no dependencies) inline without subagent spawning overhead
|
|
831
|
-
- Relaxing /
|
|
831
|
+
- Relaxing /new recommendations - context rot onset is much further out with 5x window
|
|
832
832
|
</context_efficiency>
|
|
833
833
|
|
|
834
834
|
<failure_handling>
|
|
@@ -533,7 +533,7 @@ If `USER_SETUP_CREATED=true`: display `⚠️ USER SETUP REQUIRED` with path + e
|
|
|
533
533
|
| summaries = plans, current < highest phase | **B: Phase done** | Show completion, suggest `/gsd-plan-phase {Z+1}` + `/gsd-verify-work {Z}` + `/gsd-discuss-phase {Z+1}` |
|
|
534
534
|
| summaries = plans, current = highest phase | **C: Milestone done** | Show banner, suggest `/gsd-complete-milestone` + `/gsd-verify-work` + `/gsd-add-phase` |
|
|
535
535
|
|
|
536
|
-
All routes: `/
|
|
536
|
+
All routes: `/new` first for fresh context.
|
|
537
537
|
</step>
|
|
538
538
|
|
|
539
539
|
</process>
|
|
@@ -270,7 +270,7 @@ Systematic debugging with persistent state across context resets.
|
|
|
270
270
|
- Gathers symptoms through adaptive questioning
|
|
271
271
|
- Creates `.planning/debug/[slug].md` to track investigation
|
|
272
272
|
- Investigates using scientific method (evidence → hypothesis → test)
|
|
273
|
-
- Survives `/
|
|
273
|
+
- Survives `/new` - run `/gsd-debug` with no args to resume
|
|
274
274
|
- Archives resolved issues to `.planning/debug/resolved/`
|
|
275
275
|
|
|
276
276
|
Usage: `/gsd-debug "login button doesn't work"`
|
|
@@ -553,9 +553,9 @@ Example config:
|
|
|
553
553
|
|
|
554
554
|
```
|
|
555
555
|
/gsd-new-project # Unified flow: questioning → research → requirements → roadmap
|
|
556
|
-
/
|
|
556
|
+
/new
|
|
557
557
|
/gsd-plan-phase 1 # Create plans for first phase
|
|
558
|
-
/
|
|
558
|
+
/new
|
|
559
559
|
/gsd-execute-phase 1 # Execute all plans in phase
|
|
560
560
|
```
|
|
561
561
|
|
|
@@ -577,7 +577,7 @@ Example config:
|
|
|
577
577
|
|
|
578
578
|
```
|
|
579
579
|
/gsd-complete-milestone 1.0.0
|
|
580
|
-
/
|
|
580
|
+
/new
|
|
581
581
|
/gsd-new-milestone # Start next milestone (questioning → research → requirements → roadmap)
|
|
582
582
|
```
|
|
583
583
|
|
|
@@ -595,7 +595,7 @@ Example config:
|
|
|
595
595
|
```
|
|
596
596
|
/gsd-debug "form submission fails silently" # Start debug session
|
|
597
597
|
# ... investigation happens, context fills up ...
|
|
598
|
-
/
|
|
598
|
+
/new
|
|
599
599
|
/gsd-debug # Resume from where you left off
|
|
600
600
|
```
|
|
601
601
|
|