get-shit-done-cc 1.2.12 → 1.3.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.
Files changed (32) hide show
  1. package/README.md +2 -4
  2. package/commands/gsd/add-phase.md +14 -5
  3. package/commands/gsd/create-roadmap.md +17 -47
  4. package/commands/gsd/help.md +3 -25
  5. package/commands/gsd/insert-phase.md +13 -4
  6. package/commands/gsd/map-codebase.md +85 -0
  7. package/commands/gsd/new-project.md +43 -9
  8. package/commands/gsd/plan-phase.md +3 -0
  9. package/commands/gsd/progress.md +33 -17
  10. package/get-shit-done/references/continuation-format.md +270 -0
  11. package/get-shit-done/templates/codebase/architecture.md +249 -0
  12. package/get-shit-done/templates/codebase/concerns.md +299 -0
  13. package/get-shit-done/templates/codebase/conventions.md +307 -0
  14. package/get-shit-done/templates/codebase/integrations.md +280 -0
  15. package/get-shit-done/templates/codebase/stack.md +187 -0
  16. package/get-shit-done/templates/codebase/structure.md +285 -0
  17. package/get-shit-done/templates/codebase/testing.md +480 -0
  18. package/get-shit-done/workflows/complete-milestone.md +12 -7
  19. package/get-shit-done/workflows/create-milestone.md +13 -9
  20. package/get-shit-done/workflows/create-roadmap.md +14 -112
  21. package/get-shit-done/workflows/discuss-milestone.md +9 -2
  22. package/get-shit-done/workflows/discuss-phase.md +11 -8
  23. package/get-shit-done/workflows/execute-phase.md +87 -16
  24. package/get-shit-done/workflows/map-codebase.md +397 -0
  25. package/get-shit-done/workflows/plan-phase.md +73 -6
  26. package/get-shit-done/workflows/resume-project.md +24 -4
  27. package/get-shit-done/workflows/transition.md +27 -16
  28. package/package.json +1 -1
  29. package/commands/gsd/research-project.md +0 -186
  30. package/get-shit-done/references/research-subagent-prompts.md +0 -451
  31. package/get-shit-done/templates/project-research.md +0 -243
  32. package/get-shit-done/workflows/research-project.md +0 -223
package/README.md CHANGED
@@ -52,14 +52,13 @@ That's what this is. No enterprise roleplay bullshit. Just an incredibly effecti
52
52
 
53
53
  The system asks questions. Keeps asking until it has everything — your goals, constraints, tech preferences, edge cases. You go back and forth until the idea is fully captured. Creates **PROJECT.md**.
54
54
 
55
- ### 2. Research (optional) and create roadmap
55
+ ### 2. Create roadmap
56
56
 
57
57
  ```
58
- /gsd:research-project # For niche domains (3D, audio, shaders)
59
58
  /gsd:create-roadmap # Create phases and state tracking
60
59
  ```
61
60
 
62
- For complex domains, research spawns subagents to discover ecosystem patterns before planning. Then roadmap creation produces:
61
+ Roadmap creation produces:
63
62
 
64
63
  - **ROADMAP.md** - Phases from start to finish
65
64
  - **STATE.md** - Living memory that persists across sessions
@@ -156,7 +155,6 @@ You're never locked in. The system adapts.
156
155
  | Command | What it does |
157
156
  | --------------------------------- | ------------------------------------------------------------- |
158
157
  | `/gsd:new-project` | Extract your idea through questions, create PROJECT.md |
159
- | `/gsd:research-project` | Research domain ecosystem before roadmap (optional) |
160
158
  | `/gsd:create-roadmap` | Create roadmap and state tracking |
161
159
  | `/gsd:plan-phase [N]` | Generate task plans for phase |
162
160
  | `/gsd:execute-plan` | Run plan via subagent |
@@ -163,16 +163,25 @@ Phase {N} added to current milestone:
163
163
  Roadmap updated: {roadmap-path}
164
164
  Project state updated: .planning/STATE.md
165
165
 
166
- ## To Continue
166
+ ---
167
+
168
+ ## ▶ Next Up
169
+
170
+ **Phase {N}: {description}**
167
171
 
168
- Run `/clear`, then paste:
169
172
  ```
170
173
  /gsd:plan-phase {N}
171
174
  ```
172
175
 
173
- Other options:
174
- - Add another phase: `/gsd:add-phase <description>`
175
- - Review roadmap: `cat .planning/ROADMAP.md`
176
+ <sub>`/clear` first → fresh context window</sub>
177
+
178
+ ---
179
+
180
+ **Also available:**
181
+ - `/gsd:add-phase <description>` — add another phase
182
+ - Review roadmap
183
+
184
+ ---
176
185
  ```
177
186
  </step>
178
187
 
@@ -9,11 +9,9 @@ allowed-tools:
9
9
  ---
10
10
 
11
11
  <objective>
12
- Create project roadmap, optionally incorporating research findings from /gsd:research-project.
12
+ Create project roadmap with phase breakdown.
13
13
 
14
- Roadmaps define the phase breakdown - what work happens in what order. This command can be used:
15
- 1. After /gsd:new-project (without research)
16
- 2. After /gsd:research-project (with domain research incorporated)
14
+ Roadmaps define what work happens in what order. Run after /gsd:new-project.
17
15
  </objective>
18
16
 
19
17
  <execution_context>
@@ -57,46 +55,12 @@ If "Cancel": Exit
57
55
  If "Replace": Continue with workflow
58
56
  </step>
59
57
 
60
- <step name="check_research">
61
- Check for project research:
62
-
63
- ```bash
64
- ls .planning/research/*.md 2>/dev/null
65
- ```
66
-
67
- **If research found:**
68
- Load and summarize each research file:
69
- - ecosystem.md → Key libraries/frameworks recommended
70
- - architecture.md → Architectural patterns to follow
71
- - pitfalls.md → Top 2-3 critical pitfalls to avoid
72
- - standards.md → Standards and conventions to follow
73
-
74
- Present summary:
75
- ```
76
- Found project research:
77
-
78
- Ecosystem: [key libraries/frameworks]
79
- Architecture: [key patterns]
80
- Pitfalls: [top 2-3 to avoid]
81
- Standards: [key conventions]
82
-
83
- This will inform phase structure.
84
- ```
85
-
86
- **If no research found:**
87
- ```
88
- No project research found.
89
- Creating roadmap based on PROJECT.md alone.
90
- (Optional: Run /gsd:research-project first for niche/complex domains)
91
- ```
92
- </step>
93
-
94
58
  <step name="create_roadmap">
95
59
  Follow the create-roadmap.md workflow starting from detect_domain step.
96
60
 
97
61
  The workflow handles:
98
62
  - Domain expertise detection
99
- - Phase identification (informed by research if present)
63
+ - Phase identification
100
64
  - Research flags for each phase
101
65
  - Confirmation gates (respecting config mode)
102
66
  - ROADMAP.md creation
@@ -112,19 +76,26 @@ Roadmap created:
112
76
  - State: .planning/STATE.md
113
77
  - [N] phases defined
114
78
 
115
- ## To Continue
79
+ ---
116
80
 
117
- Run `/clear`, then paste one of:
81
+ ## Next Up
118
82
 
119
- **To discuss Phase 1 context first:**
120
- ```
121
- /gsd:discuss-phase 1
122
- ```
83
+ **Phase 1: [Name]** — [Goal from ROADMAP.md]
123
84
 
124
- **To plan Phase 1 directly:**
125
85
  ```
126
86
  /gsd:plan-phase 1
127
87
  ```
88
+
89
+ <sub>`/clear` first → fresh context window</sub>
90
+
91
+ ---
92
+
93
+ **Also available:**
94
+ - `/gsd:discuss-phase 1` — gather context first
95
+ - `/gsd:research-phase 1` — investigate unknowns
96
+ - Review roadmap
97
+
98
+ ---
128
99
  ```
129
100
  </step>
130
101
 
@@ -138,7 +109,6 @@ Run `/clear`, then paste one of:
138
109
 
139
110
  <success_criteria>
140
111
  - [ ] PROJECT.md validated
141
- - [ ] Research incorporated if present
142
112
  - [ ] ROADMAP.md created with phases
143
113
  - [ ] STATE.md initialized
144
114
  - [ ] Phase directories created
@@ -21,10 +21,9 @@ Output ONLY the reference content below. Do NOT add:
21
21
  ## Quick Start
22
22
 
23
23
  1. `/gsd:new-project` - Initialize project with brief
24
- 2. `/gsd:research-project` - (Optional) Research domain ecosystem
25
- 3. `/gsd:create-roadmap` - Create roadmap and phases
26
- 4. `/gsd:plan-phase <number>` - Create detailed plan for first phase
27
- 5. `/gsd:execute-plan <path>` - Execute the plan
24
+ 2. `/gsd:create-roadmap` - Create roadmap and phases
25
+ 3. `/gsd:plan-phase <number>` - Create detailed plan for first phase
26
+ 4. `/gsd:execute-plan <path>` - Execute the plan
28
27
 
29
28
  ## Core Workflow
30
29
 
@@ -44,23 +43,12 @@ Initialize new project with brief and configuration.
44
43
 
45
44
  Usage: `/gsd:new-project`
46
45
 
47
- **`/gsd:research-project`**
48
- Research domain ecosystem before creating roadmap.
49
-
50
- - Spawns batched subagents to research domain patterns
51
- - Creates `.planning/research/` with ecosystem findings
52
- - Optional step for niche/complex domains
53
- - Run after new-project, before create-roadmap
54
-
55
- Usage: `/gsd:research-project`
56
-
57
46
  **`/gsd:create-roadmap`**
58
47
  Create roadmap and state tracking for initialized project.
59
48
 
60
49
  - Creates `.planning/ROADMAP.md` (phase breakdown)
61
50
  - Creates `.planning/STATE.md` (project memory)
62
51
  - Creates `.planning/phases/` directories
63
- - Incorporates research findings if present
64
52
 
65
53
  Usage: `/gsd:create-roadmap`
66
54
 
@@ -267,16 +255,6 @@ Change anytime by editing `.planning/config.json`
267
255
  /gsd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md
268
256
  ```
269
257
 
270
- **Building something in a niche domain (3D, games, audio, shaders):**
271
-
272
- ```
273
- /gsd:new-project
274
- /gsd:research-project # Research domain ecosystem before roadmap
275
- /gsd:create-roadmap # Roadmap incorporates research findings
276
- /gsd:plan-phase 1
277
- /gsd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md
278
- ```
279
-
280
258
  **Resuming work after a break:**
281
259
 
282
260
  ```
@@ -182,16 +182,25 @@ Phase {decimal_phase} inserted after Phase {after_phase}:
182
182
  Roadmap updated: {roadmap-path}
183
183
  Project state updated: .planning/STATE.md
184
184
 
185
- ## To Continue
185
+ ---
186
+
187
+ ## ▶ Next Up
188
+
189
+ **Phase {decimal_phase}: {description}** — urgent insertion
186
190
 
187
- Run `/clear`, then paste:
188
191
  ```
189
192
  /gsd:plan-phase {decimal_phase}
190
193
  ```
191
194
 
192
- Other options:
195
+ <sub>`/clear` first → fresh context window</sub>
196
+
197
+ ---
198
+
199
+ **Also available:**
193
200
  - Review insertion impact: Check if Phase {next_integer} dependencies still make sense
194
- - Review roadmap: `cat .planning/ROADMAP.md`
201
+ - Review roadmap
202
+
203
+ ---
195
204
  ```
196
205
  </step>
197
206
 
@@ -0,0 +1,85 @@
1
+ ---
2
+ description: Analyze codebase with parallel Explore agents to produce .planning/codebase/ documents
3
+ argument-hint: "[optional: specific area to map, e.g., 'api' or 'auth']"
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Glob
8
+ - Grep
9
+ - Write
10
+ - Task
11
+ ---
12
+
13
+ <objective>
14
+ Analyze existing codebase using parallel Explore agents to produce structured codebase documents.
15
+
16
+ This command spawns multiple Explore agents to analyze different aspects of the codebase in parallel, each with fresh context. Each agent produces focused documentation under 100 lines.
17
+
18
+ Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/get-shit-done/workflows/map-codebase.md
23
+ @~/.claude/get-shit-done/templates/codebase/stack.md
24
+ @~/.claude/get-shit-done/templates/codebase/architecture.md
25
+ @~/.claude/get-shit-done/templates/codebase/structure.md
26
+ @~/.claude/get-shit-done/templates/codebase/conventions.md
27
+ @~/.claude/get-shit-done/templates/codebase/testing.md
28
+ @~/.claude/get-shit-done/templates/codebase/integrations.md
29
+ @~/.claude/get-shit-done/templates/codebase/concerns.md
30
+ </execution_context>
31
+
32
+ <context>
33
+ Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
34
+
35
+ **Load project state if exists:**
36
+ Check for .planning/STATE.md - loads context if project already initialized
37
+
38
+ **This command can run:**
39
+ - Before /gsd:new-project (brownfield codebases) - creates codebase map first
40
+ - After /gsd:new-project (greenfield codebases) - updates codebase map as code evolves
41
+ - Anytime to refresh codebase understanding
42
+ </context>
43
+
44
+ <when_to_use>
45
+ **Use map-codebase for:**
46
+ - Brownfield projects before initialization (understand existing code first)
47
+ - Refreshing codebase map after significant changes
48
+ - Onboarding to an unfamiliar codebase
49
+ - Before major refactoring (understand current state)
50
+ - When STATE.md references outdated codebase info
51
+
52
+ **Skip map-codebase for:**
53
+ - Greenfield projects with no code yet (nothing to map)
54
+ - Trivial codebases (<5 files)
55
+ </when_to_use>
56
+
57
+ <process>
58
+ 1. Check if .planning/codebase/ already exists (offer to refresh or skip)
59
+ 2. Create .planning/codebase/ directory structure
60
+ 3. Spawn 4 parallel Explore agents to analyze codebase:
61
+ - Agent 1: Stack + Integrations (technology focus)
62
+ - Agent 2: Architecture + Structure (organization focus)
63
+ - Agent 3: Conventions + Testing (quality focus)
64
+ - Agent 4: Concerns (issues focus)
65
+ 4. Wait for all agents to complete, collect findings
66
+ 5. Write 7 codebase documents using templates:
67
+ - STACK.md - Languages, frameworks, key dependencies
68
+ - ARCHITECTURE.md - System design, patterns, data flow
69
+ - STRUCTURE.md - Directory layout, module organization
70
+ - CONVENTIONS.md - Code style, naming, patterns
71
+ - TESTING.md - Test structure, coverage, practices
72
+ - INTEGRATIONS.md - APIs, databases, external services
73
+ - CONCERNS.md - Technical debt, risks, issues
74
+ 6. Verify each document is under 100 lines (summarize if needed)
75
+ 7. Offer next steps (typically: /gsd:new-project or /gsd:plan-phase)
76
+ </process>
77
+
78
+ <success_criteria>
79
+ - [ ] .planning/codebase/ directory created
80
+ - [ ] All 7 codebase documents written
81
+ - [ ] Each document under 100 lines
82
+ - [ ] Documents follow template structure
83
+ - [ ] Parallel agents completed without errors
84
+ - [ ] User knows next steps
85
+ </success_criteria>
@@ -44,7 +44,40 @@ Creates `.planning/` with PROJECT.md and config.json.
44
44
  fi
45
45
  ```
46
46
 
47
- **You MUST run both bash commands above using the Bash tool before proceeding.**
47
+ 3. **Detect existing code (brownfield detection):**
48
+ ```bash
49
+ # Check for existing code files
50
+ CODE_FILES=$(find . -name "*.ts" -o -name "*.js" -o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.swift" -o -name "*.java" 2>/dev/null | grep -v node_modules | grep -v .git | head -20)
51
+ HAS_PACKAGE=$([ -f package.json ] || [ -f requirements.txt ] || [ -f Cargo.toml ] || [ -f go.mod ] || [ -f Package.swift ] && echo "yes")
52
+ HAS_CODEBASE_MAP=$([ -d .planning/codebase ] && echo "yes")
53
+ ```
54
+
55
+ **You MUST run all bash commands above using the Bash tool before proceeding.**
56
+ </step>
57
+
58
+ <step name="brownfield_offer">
59
+ **If existing code detected and .planning/codebase/ doesn't exist:**
60
+
61
+ Check the results from setup step:
62
+ - If `CODE_FILES` is non-empty OR `HAS_PACKAGE` is "yes"
63
+ - AND `HAS_CODEBASE_MAP` is NOT "yes"
64
+
65
+ Use AskUserQuestion:
66
+ - header: "Existing Code"
67
+ - question: "I detected existing code in this directory. Would you like to map the codebase first?"
68
+ - options:
69
+ - "Map codebase first" - Run /gsd:map-codebase to understand existing architecture (Recommended)
70
+ - "Skip mapping" - Proceed with project initialization
71
+
72
+ **If "Map codebase first":**
73
+ ```
74
+ Run `/gsd:map-codebase` first, then return to `/gsd:new-project`
75
+ ```
76
+ Exit command.
77
+
78
+ **If "Skip mapping":** Continue to question step.
79
+
80
+ **If no existing code detected OR codebase already mapped:** Continue to question step.
48
81
  </step>
49
82
 
50
83
  <step name="question">
@@ -133,27 +166,28 @@ EOF
133
166
  </step>
134
167
 
135
168
  <step name="done">
136
- Present completion inline (not as a question):
169
+ Present completion with next steps (see ~/.claude/get-shit-done/references/continuation-format.md):
137
170
 
138
171
  ```
139
172
  Project initialized:
140
173
 
141
174
  - Project: .planning/PROJECT.md
142
175
  - Config: .planning/config.json (mode: [chosen mode])
176
+ [If .planning/codebase/ exists:] - Codebase: .planning/codebase/ (7 documents)
143
177
 
144
- ## To Continue
178
+ ---
145
179
 
146
- Run `/clear`, then paste one of:
180
+ ## Next Up
147
181
 
148
- **For niche/complex domains (recommended):**
149
- ```
150
- /gsd:research-project
151
- ```
182
+ **[Project Name]** create roadmap
152
183
 
153
- **To skip research and go straight to planning:**
154
184
  ```
155
185
  /gsd:create-roadmap
156
186
  ```
187
+
188
+ <sub>`/clear` first → fresh context window</sub>
189
+
190
+ ---
157
191
  ```
158
192
  </step>
159
193
 
@@ -39,6 +39,9 @@ Phase number: $ARGUMENTS (optional - auto-detects next unplanned phase if not pr
39
39
 
40
40
  **Load phase context if exists (created by /gsd:discuss-phase):**
41
41
  Check for and read `.planning/phases/XX-name/{phase}-CONTEXT.md` - contains research findings, clarifications, and decisions from phase discussion.
42
+
43
+ **Load codebase context if exists:**
44
+ Check for `.planning/codebase/` and load relevant documents based on phase type.
42
45
  </context>
43
46
 
44
47
  <process>
@@ -98,14 +98,21 @@ Check if `{phase}-{plan}-PLAN.md` exists for that number.
98
98
 
99
99
  - Read its `<objective>` section
100
100
  - Show: "Ready to execute: [path] - [objective summary]"
101
- - Display:
101
+ - Display (see ~/.claude/get-shit-done/references/continuation-format.md):
102
102
  ```
103
- ## To Continue
103
+ ---
104
+
105
+ ## ▶ Next Up
106
+
107
+ **{phase}-{plan}: [Plan Name]** — [objective summary from PLAN.md]
104
108
 
105
- Run `/clear`, then paste:
106
109
  ```
107
110
  /gsd:execute-plan [full-path-to-PLAN.md]
108
111
  ```
112
+
113
+ <sub>`/clear` first → fresh context window</sub>
114
+
115
+ ---
109
116
  ```
110
117
 
111
118
  **If PLAN.md does NOT exist:**
@@ -119,36 +126,45 @@ Check if `{phase}-{plan}-PLAN.md` exists for that number.
119
126
  - Display: "✓ Context gathered, ready to plan"
120
127
  - Display:
121
128
  ```
122
- ## To Continue
129
+ ---
130
+
131
+ ## ▶ Next Up
132
+
133
+ **Phase [N]: [Name]** — [Goal from ROADMAP.md]
123
134
 
124
- Run `/clear`, then paste:
125
135
  ```
126
136
  /gsd:plan-phase [phase-number]
127
137
  ```
138
+
139
+ <sub>`/clear` first → fresh context window</sub>
140
+
141
+ ---
128
142
  ```
129
143
 
130
144
  **If CONTEXT.md does NOT exist:**
131
145
 
132
146
  - Display:
133
147
  ```
134
- ## To Continue
148
+ ---
135
149
 
136
- Run `/clear`, then paste one of:
150
+ ## Next Up
137
151
 
138
- **See Claude's assumptions:**
139
- ```
140
- /gsd:list-phase-assumptions [phase]
141
- ```
142
-
143
- **Discuss context first:**
144
- ```
145
- /gsd:discuss-phase [phase]
146
- ```
152
+ **Phase [N]: [Name]** — [Goal from ROADMAP.md]
147
153
 
148
- **Plan directly:**
149
154
  ```
150
155
  /gsd:plan-phase [phase]
151
156
  ```
157
+
158
+ <sub>`/clear` first → fresh context window</sub>
159
+
160
+ ---
161
+
162
+ **Also available:**
163
+ - `/gsd:discuss-phase [phase]` — gather context first
164
+ - `/gsd:research-phase [phase]` — investigate unknowns
165
+ - `/gsd:list-phase-assumptions [phase]` — see Claude's assumptions
166
+
167
+ ---
152
168
  ```
153
169
 
154
170
  **If all plans complete for current phase:**