get-shit-done-cc 1.3.15 → 1.3.17

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.
@@ -0,0 +1,150 @@
1
+ ---
2
+ description: Autonomous mode - reads state, executes next step, spawns next Claude.
3
+ allowed-tools:
4
+ - Read
5
+ - Bash
6
+ - Grep
7
+ - Glob
8
+ - SlashCommand
9
+ ---
10
+
11
+ <objective>
12
+ Autonomous execution with self-spawning. Run once:
13
+ ```bash
14
+ claude --dangerously-skip-permissions '/gsd:auto'
15
+ ```
16
+
17
+ Reads STATE.md, determines next action, executes it, then spawns a fresh Claude to continue.
18
+ Chains until milestone complete. All gates auto-approved.
19
+ </objective>
20
+
21
+ <process>
22
+
23
+ <step name="verify_yolo">
24
+ **Check yolo mode is enabled:**
25
+
26
+ ```bash
27
+ cat .planning/config.json 2>/dev/null
28
+ ```
29
+
30
+ Parse the JSON. If `mode` is not `"yolo"`, refuse:
31
+
32
+ ```
33
+ ⚠ Auto mode requires yolo mode.
34
+
35
+ Set in .planning/config.json:
36
+ {"mode": "yolo"}
37
+
38
+ Then run:
39
+ while true; do claude -p --dangerously-skip-permissions '/gsd:auto'; done
40
+ ```
41
+
42
+ Exit without executing anything.
43
+
44
+ If no `.planning/` directory exists:
45
+
46
+ ```
47
+ No planning structure found.
48
+ Run /gsd:new-project first.
49
+ ```
50
+
51
+ Exit.
52
+ </step>
53
+
54
+ <step name="load_state">
55
+ **Load minimal state:**
56
+
57
+ - Read `.planning/STATE.md` - current position
58
+ - Read `.planning/ROADMAP.md` - phase structure
59
+
60
+ Extract:
61
+ - Current phase number
62
+ - Current plan number (or "none")
63
+ - Phase status (planning/executing/complete)
64
+ - Total phases in milestone
65
+ </step>
66
+
67
+ <step name="determine_action">
68
+ **Determine next action based on state:**
69
+
70
+ Check what exists in `.planning/phases/`:
71
+
72
+ 1. **No PLAN.md for current phase** → need to plan
73
+ 2. **PLAN.md exists, no SUMMARY.md** → need to execute
74
+ 3. **SUMMARY.md exists for all plans in phase** → phase complete, check next
75
+ 4. **All phases complete** → milestone complete
76
+
77
+ Logic:
78
+ ```
79
+ if current_phase has no PLAN.md:
80
+ action = plan-phase
81
+ elif current_phase has unexecuted PLAN.md:
82
+ action = execute-plan
83
+ elif current_phase complete AND more phases exist:
84
+ action = plan-phase (next phase)
85
+ elif all phases complete:
86
+ action = complete-milestone
87
+ ```
88
+ </step>
89
+
90
+ <step name="execute">
91
+ **Execute the determined action immediately:**
92
+
93
+ No status report. No "Next Up" display. Just execute.
94
+
95
+ **If action = plan-phase:**
96
+ ```
97
+ ▶ AUTO: /gsd:plan-phase [N]
98
+ ```
99
+ Invoke: `SlashCommand("/gsd:plan-phase [N]")`
100
+
101
+ **If action = execute-plan:**
102
+ ```
103
+ ▶ AUTO: /gsd:execute-plan [path]
104
+ ```
105
+ Invoke: `SlashCommand("/gsd:execute-plan [full-path-to-PLAN.md]")`
106
+
107
+ **If action = complete-milestone:**
108
+ ```
109
+ ▶ AUTO: /gsd:complete-milestone
110
+ ```
111
+ Invoke: `SlashCommand("/gsd:complete-milestone")`
112
+
113
+ **If milestone already complete:**
114
+ ```
115
+ ✅ Milestone complete. Nothing to do.
116
+ ```
117
+ Exit cleanly (loop will restart, hit this again, user can Ctrl+C).
118
+ </step>
119
+
120
+ </process>
121
+
122
+ <auto_approve_context>
123
+ **CRITICAL: ALL HUMAN CHECKPOINTS ARE AUTO-APPROVED IN /gsd:auto**
124
+
125
+ When executing via /gsd:auto, treat ALL checkpoint types as auto-approved:
126
+
127
+ - `checkpoint:human-verify` → AUTO-APPROVED, log "Auto-verified in yolo mode"
128
+ - `checkpoint:decision` → AUTO-APPROVED, pick the most sensible default
129
+ - `checkpoint:human-action` → SKIP if possible, or simulate completion
130
+ - Any "Type approved to continue" → AUTO-APPROVED
131
+ - Any "Does this look right?" → YES
132
+ - Any confirmation prompt → CONFIRMED
133
+
134
+ **DO NOT STOP AND WAIT FOR INPUT. EVER.**
135
+
136
+ If a checkpoint would normally block, instead:
137
+ 1. Log: "⚡ Auto-approved: [checkpoint description]"
138
+ 2. Continue execution immediately
139
+
140
+ The invoked commands should detect yolo mode from config.json and apply this behavior.
141
+ </auto_approve_context>
142
+
143
+ <success_criteria>
144
+ - [ ] Refuses to run if mode != yolo
145
+ - [ ] Reads state, determines action
146
+ - [ ] Executes exactly one action via SlashCommand
147
+ - [ ] No prompts, no waiting, no "Next Up" display
148
+ - [ ] Exits cleanly after action completes
149
+ - [ ] Works with: while true; do claude -p --dangerously-skip-permissions '/gsd:auto'; done
150
+ </success_criteria>
@@ -32,7 +32,7 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
32
32
  1. Load project context (STATE.md, ROADMAP.md, MILESTONES.md)
33
33
  2. Calculate next milestone version and starting phase number
34
34
  3. If milestone name provided in arguments, use it; otherwise prompt
35
- 4. Gather phases (3-6 recommended):
35
+ 4. Gather phases (per depth setting: quick 3-5, standard 5-8, comprehensive 8-12):
36
36
  - If called from /gsd:discuss-milestone, use provided context
37
37
  - Otherwise, prompt for phase breakdown
38
38
  5. Detect research needs for each phase
@@ -48,7 +48,7 @@ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
48
48
  <success_criteria>
49
49
 
50
50
  - Next phase number calculated correctly (continues from previous milestone)
51
- - 3-6 phases defined with clear names
51
+ - Phases defined per depth setting (quick: 3-5, standard: 5-8, comprehensive: 8-12)
52
52
  - Research flags assigned for each phase
53
53
  - ROADMAP.md updated with new milestone section
54
54
  - Phase directories created
@@ -230,7 +230,24 @@ Use AskUserQuestion:
230
230
  - "Interactive" — Confirm at each step
231
231
  - "YOLO" — Auto-approve, just execute
232
232
 
233
- Create `.planning/config.json` with chosen mode using `templates/config.json` structure.
233
+ </step>
234
+
235
+ <step name="depth">
236
+
237
+ Ask planning depth preference:
238
+
239
+ Use AskUserQuestion:
240
+
241
+ - header: "Depth"
242
+ - question: "How thorough should planning be?"
243
+ - options:
244
+ - "Quick" — Ship fast, minimal phases/plans (3-5 phases, 1-3 plans each)
245
+ - "Standard" — Balanced scope and speed (5-8 phases, 3-5 plans each)
246
+ - "Comprehensive" — Thorough coverage, more phases/plans (8-12 phases, 5-10 plans each)
247
+
248
+ **Depth controls compression tolerance, not artificial inflation.** All depths use 2-3 tasks per plan. Comprehensive means "don't compress complex work"—it doesn't mean "pad simple work to hit a number."
249
+
250
+ Create `.planning/config.json` with chosen mode and depth using `templates/config.json` structure.
234
251
 
235
252
  </step>
236
253
 
@@ -102,6 +102,38 @@ Each: 30-40% context, peak quality, focused commits
102
102
  **3 tasks:** Simple ~45%, Medium ~75% (risky), Complex 120% (impossible)
103
103
  </estimating_context>
104
104
 
105
+ <depth_calibration>
106
+ **Depth controls compression tolerance, not artificial inflation.**
107
+
108
+ | Depth | Typical Phases | Typical Plans/Phase | Tasks/Plan |
109
+ |-------|----------------|---------------------|------------|
110
+ | Quick | 3-5 | 1-3 | 2-3 |
111
+ | Standard | 5-8 | 3-5 | 2-3 |
112
+ | Comprehensive | 8-12 | 5-10 | 2-3 |
113
+
114
+ Tasks/plan is CONSTANT at 2-3. The 50% context rule applies universally.
115
+
116
+ **Key principle:** Derive from actual work. Depth determines how aggressively you combine things, not a target to hit.
117
+
118
+ - Comprehensive auth = 8 plans (because auth genuinely has 8 concerns)
119
+ - Comprehensive "add favicon" = 1 plan (because that's all it is)
120
+
121
+ Don't pad small work to hit a number. Don't compress complex work to look efficient.
122
+
123
+ **Comprehensive depth example:**
124
+ Auth system at comprehensive depth = 8 plans (not 3 big ones):
125
+ - 01: DB models (2 tasks)
126
+ - 02: Password hashing (2 tasks)
127
+ - 03: JWT generation (2 tasks)
128
+ - 04: JWT validation middleware (2 tasks)
129
+ - 05: Login endpoint (2 tasks)
130
+ - 06: Register endpoint (2 tasks)
131
+ - 07: Protected route patterns (2 tasks)
132
+ - 08: Auth UI components (3 tasks)
133
+
134
+ Each plan: fresh context, peak quality. More plans = more thoroughness, same quality per plan.
135
+ </depth_calibration>
136
+
105
137
  <summary>
106
138
  **2-3 tasks, 50% context target:**
107
139
  - All tasks: Peak quality
@@ -111,5 +143,7 @@ Each: 30-40% context, peak quality, focused commits
111
143
  **The principle:** Aggressive atomicity. More plans, smaller scope, consistent quality.
112
144
 
113
145
  **The rule:** If in doubt, split. Quality over consolidation. Always.
146
+
147
+ **Depth rule:** Depth increases plan COUNT, never plan SIZE.
114
148
  </summary>
115
149
  </scope_estimation>
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "mode": "interactive",
3
+ "depth": "standard",
3
4
  "gates": {
4
5
  "confirm_project": true,
5
6
  "confirm_phases": true,
@@ -100,7 +100,7 @@ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
100
100
 
101
101
  <guidelines>
102
102
  **Initial planning (v1.0):**
103
- - 3-6 phases total (more = scope creep)
103
+ - Phase count depends on depth setting (quick: 3-5, standard: 5-8, comprehensive: 8-12)
104
104
  - Each phase delivers something coherent
105
105
  - Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
106
106
  - Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
@@ -71,7 +71,17 @@ grep -E "^### Phase [0-9]+" .planning/ROADMAP.md | tail -1
71
71
 
72
72
  Next phase starts at: [last_phase + 1]
73
73
 
74
- **Gather phases (3-6 recommended):**
74
+ **Check depth setting and gather phases accordingly:**
75
+
76
+ ```bash
77
+ cat .planning/config.json 2>/dev/null | grep depth
78
+ ```
79
+
80
+ | Depth | Phases/Milestone |
81
+ |-------|------------------|
82
+ | Quick | 3-5 |
83
+ | Standard | 5-8 |
84
+ | Comprehensive | 8-12 |
75
85
 
76
86
  If context from discuss-milestone provided, use that scope.
77
87
 
@@ -359,7 +369,7 @@ Numbers continue from previous milestone. Names describe content.
359
369
  - Don't restart phase numbering at 01 (continue sequence)
360
370
  - Don't add time estimates
361
371
  - Don't create Gantt charts
362
- - Don't plan more than 6 phases per milestone (scope creep)
372
+ - Respect depth setting for phase count (quick: 3-5, standard: 5-8, comprehensive: 8-12)
363
373
  - Don't modify completed milestone sections
364
374
 
365
375
  Milestones are coherent chunks of work, not project management artifacts.
@@ -368,7 +378,7 @@ Milestones are coherent chunks of work, not project management artifacts.
368
378
  <success_criteria>
369
379
  Milestone creation is complete when:
370
380
  - [ ] Next phase number calculated correctly (continues from previous)
371
- - [ ] 3-6 phases defined with clear names
381
+ - [ ] Phases defined per depth setting (quick: 3-5, standard: 5-8, comprehensive: 8-12)
372
382
  - [ ] Research flags assigned for each phase
373
383
  - [ ] ROADMAP.md updated with new milestone section
374
384
  - [ ] Phase directories created
@@ -81,7 +81,38 @@ Select (comma-separate for multiple):
81
81
  </step>
82
82
 
83
83
  <step name="identify_phases">
84
- Derive phases from the actual work needed. The phase count emerges from the project—don't impose a number.
84
+ Derive phases from the actual work needed.
85
+
86
+ **Check depth setting:**
87
+ ```bash
88
+ cat .planning/config.json 2>/dev/null | grep depth
89
+ ```
90
+
91
+ <depth_guidance>
92
+ **Depth controls compression tolerance, not artificial inflation.**
93
+
94
+ | Depth | Typical Phases | Typical Plans/Phase | Tasks/Plan |
95
+ |-------|----------------|---------------------|------------|
96
+ | Quick | 3-5 | 1-3 | 2-3 |
97
+ | Standard | 5-8 | 3-5 | 2-3 |
98
+ | Comprehensive | 8-12 | 5-10 | 2-3 |
99
+
100
+ **Key principle:** Derive phases from actual work. Depth determines how aggressively you combine things, not a target to hit.
101
+
102
+ - Comprehensive auth system = 8 phases (because auth genuinely has 8 concerns)
103
+ - Comprehensive "add favicon" = 1 phase (because that's all it is)
104
+
105
+ For comprehensive depth:
106
+ - Don't compress multiple features into single phases
107
+ - Each major capability gets its own phase
108
+ - Let small things stay small—don't pad to hit a number
109
+ - If you're tempted to combine two things, make them separate phases instead
110
+
111
+ For quick depth:
112
+ - Combine related work aggressively
113
+ - Focus on critical path only
114
+ - Defer nice-to-haves to future milestones
115
+ </depth_guidance>
85
116
 
86
117
  **Phase Numbering System:**
87
118
 
@@ -226,6 +226,38 @@ See ~/.claude/get-shit-done/references/checkpoints.md for checkpoint structure.
226
226
  <step name="estimate_scope">
227
227
  After tasks, assess against quality degradation curve.
228
228
 
229
+ **Check depth setting:**
230
+ ```bash
231
+ cat .planning/config.json 2>/dev/null | grep depth
232
+ ```
233
+
234
+ <depth_aware_splitting>
235
+ **Depth controls compression tolerance, not artificial inflation.**
236
+
237
+ | Depth | Typical Plans/Phase | Tasks/Plan |
238
+ |-------|---------------------|------------|
239
+ | Quick | 1-3 | 2-3 |
240
+ | Standard | 3-5 | 2-3 |
241
+ | Comprehensive | 5-10 | 2-3 |
242
+
243
+ **Key principle:** Derive plans from actual work. Depth determines how aggressively you combine things, not a target to hit.
244
+
245
+ - Comprehensive auth phase = 8 plans (because auth genuinely has 8 concerns)
246
+ - Comprehensive "add config file" phase = 1 plan (because that's all it is)
247
+
248
+ For comprehensive depth:
249
+ - Create MORE plans when the work warrants it, not bigger ones
250
+ - If a phase has 15 tasks, that's 5-8 plans (not 3 plans with 5 tasks each)
251
+ - Don't compress to look efficient—thoroughness is the goal
252
+ - Let small phases stay small—don't pad to hit a number
253
+ - Each plan stays focused: 2-3 tasks, single concern
254
+
255
+ For quick depth:
256
+ - Combine aggressively into fewer plans
257
+ - 1-3 plans per phase is fine
258
+ - Focus on critical path
259
+ </depth_aware_splitting>
260
+
229
261
  **ALWAYS split if:** >3 tasks, multiple subsystems, >5 files in any task, complex domains (auth, payments).
230
262
 
231
263
  **If scope appropriate (2-3 tasks, single subsystem, <5 files/task):** Proceed to confirm_breakdown.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-shit-done-cc",
3
- "version": "1.3.15",
3
+ "version": "1.3.17",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.",
5
5
  "bin": {
6
6
  "get-shit-done-cc": "bin/install.js"