@m3hti/commit-genie 3.2.0 → 3.3.1
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/.claude/agents/gsd-codebase-mapper.md +764 -0
- package/.claude/agents/gsd-debugger.md +1246 -0
- package/.claude/agents/gsd-executor.md +469 -0
- package/.claude/agents/gsd-integration-checker.md +443 -0
- package/.claude/agents/gsd-phase-researcher.md +546 -0
- package/.claude/agents/gsd-plan-checker.md +690 -0
- package/.claude/agents/gsd-planner.md +1275 -0
- package/.claude/agents/gsd-project-researcher.md +621 -0
- package/.claude/agents/gsd-research-synthesizer.md +239 -0
- package/.claude/agents/gsd-roadmapper.md +642 -0
- package/.claude/agents/gsd-verifier.md +573 -0
- package/.claude/commands/gsd/add-phase.md +43 -0
- package/.claude/commands/gsd/add-tests.md +41 -0
- package/.claude/commands/gsd/add-todo.md +47 -0
- package/.claude/commands/gsd/audit-milestone.md +36 -0
- package/.claude/commands/gsd/check-todos.md +45 -0
- package/.claude/commands/gsd/cleanup.md +18 -0
- package/.claude/commands/gsd/complete-milestone.md +136 -0
- package/.claude/commands/gsd/debug.md +167 -0
- package/.claude/commands/gsd/discuss-phase.md +83 -0
- package/.claude/commands/gsd/execute-phase.md +41 -0
- package/.claude/commands/gsd/health.md +22 -0
- package/.claude/commands/gsd/help.md +22 -0
- package/.claude/commands/gsd/insert-phase.md +32 -0
- package/.claude/commands/gsd/join-discord.md +18 -0
- package/.claude/commands/gsd/list-phase-assumptions.md +46 -0
- package/.claude/commands/gsd/map-codebase.md +71 -0
- package/.claude/commands/gsd/new-milestone.md +44 -0
- package/.claude/commands/gsd/new-project.md +42 -0
- package/.claude/commands/gsd/new-project.md.bak +1041 -0
- package/.claude/commands/gsd/pause-work.md +38 -0
- package/.claude/commands/gsd/plan-milestone-gaps.md +34 -0
- package/.claude/commands/gsd/plan-phase.md +45 -0
- package/.claude/commands/gsd/progress.md +24 -0
- package/.claude/commands/gsd/quick.md +41 -0
- package/.claude/commands/gsd/reapply-patches.md +110 -0
- package/.claude/commands/gsd/remove-phase.md +31 -0
- package/.claude/commands/gsd/research-phase.md +189 -0
- package/.claude/commands/gsd/resume-work.md +40 -0
- package/.claude/commands/gsd/set-profile.md +34 -0
- package/.claude/commands/gsd/settings.md +36 -0
- package/.claude/commands/gsd/update.md +37 -0
- package/.claude/commands/gsd/verify-work.md +38 -0
- package/.claude/get-shit-done/VERSION +1 -0
- package/.claude/get-shit-done/bin/gsd-tools.cjs +588 -0
- package/.claude/get-shit-done/bin/lib/commands.cjs +553 -0
- package/.claude/get-shit-done/bin/lib/config.cjs +162 -0
- package/.claude/get-shit-done/bin/lib/core.cjs +411 -0
- package/.claude/get-shit-done/bin/lib/frontmatter.cjs +299 -0
- package/.claude/get-shit-done/bin/lib/init.cjs +710 -0
- package/.claude/get-shit-done/bin/lib/milestone.cjs +216 -0
- package/.claude/get-shit-done/bin/lib/phase.cjs +871 -0
- package/.claude/get-shit-done/bin/lib/roadmap.cjs +298 -0
- package/.claude/get-shit-done/bin/lib/state.cjs +679 -0
- package/.claude/get-shit-done/bin/lib/template.cjs +222 -0
- package/.claude/get-shit-done/bin/lib/verify.cjs +773 -0
- package/.claude/get-shit-done/references/checkpoints.md +776 -0
- package/.claude/get-shit-done/references/continuation-format.md +249 -0
- package/.claude/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/.claude/get-shit-done/references/git-integration.md +248 -0
- package/.claude/get-shit-done/references/git-planning-commit.md +38 -0
- package/.claude/get-shit-done/references/model-profile-resolution.md +34 -0
- package/.claude/get-shit-done/references/model-profiles.md +92 -0
- package/.claude/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/.claude/get-shit-done/references/planning-config.md +196 -0
- package/.claude/get-shit-done/references/questioning.md +145 -0
- package/.claude/get-shit-done/references/tdd.md +263 -0
- package/.claude/get-shit-done/references/ui-brand.md +160 -0
- package/.claude/get-shit-done/references/verification-patterns.md +612 -0
- package/.claude/get-shit-done/templates/DEBUG.md +164 -0
- package/.claude/get-shit-done/templates/UAT.md +247 -0
- package/.claude/get-shit-done/templates/VALIDATION.md +76 -0
- package/.claude/get-shit-done/templates/codebase/architecture.md +255 -0
- package/.claude/get-shit-done/templates/codebase/concerns.md +310 -0
- package/.claude/get-shit-done/templates/codebase/conventions.md +307 -0
- package/.claude/get-shit-done/templates/codebase/integrations.md +280 -0
- package/.claude/get-shit-done/templates/codebase/stack.md +186 -0
- package/.claude/get-shit-done/templates/codebase/structure.md +285 -0
- package/.claude/get-shit-done/templates/codebase/testing.md +480 -0
- package/.claude/get-shit-done/templates/config.json +37 -0
- package/.claude/get-shit-done/templates/context.md +283 -0
- package/.claude/get-shit-done/templates/continue-here.md +78 -0
- package/.claude/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/.claude/get-shit-done/templates/discovery.md +146 -0
- package/.claude/get-shit-done/templates/milestone-archive.md +123 -0
- package/.claude/get-shit-done/templates/milestone.md +115 -0
- package/.claude/get-shit-done/templates/phase-prompt.md +569 -0
- package/.claude/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/.claude/get-shit-done/templates/project.md +184 -0
- package/.claude/get-shit-done/templates/requirements.md +231 -0
- package/.claude/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/.claude/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/.claude/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/.claude/get-shit-done/templates/research-project/STACK.md +120 -0
- package/.claude/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/.claude/get-shit-done/templates/research.md +552 -0
- package/.claude/get-shit-done/templates/retrospective.md +54 -0
- package/.claude/get-shit-done/templates/roadmap.md +202 -0
- package/.claude/get-shit-done/templates/state.md +176 -0
- package/.claude/get-shit-done/templates/summary-complex.md +59 -0
- package/.claude/get-shit-done/templates/summary-minimal.md +41 -0
- package/.claude/get-shit-done/templates/summary-standard.md +48 -0
- package/.claude/get-shit-done/templates/summary.md +248 -0
- package/.claude/get-shit-done/templates/user-setup.md +311 -0
- package/.claude/get-shit-done/templates/verification-report.md +322 -0
- package/.claude/get-shit-done/workflows/add-phase.md +111 -0
- package/.claude/get-shit-done/workflows/add-tests.md +350 -0
- package/.claude/get-shit-done/workflows/add-todo.md +157 -0
- package/.claude/get-shit-done/workflows/audit-milestone.md +297 -0
- package/.claude/get-shit-done/workflows/check-todos.md +176 -0
- package/.claude/get-shit-done/workflows/cleanup.md +152 -0
- package/.claude/get-shit-done/workflows/complete-milestone.md +763 -0
- package/.claude/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/.claude/get-shit-done/workflows/discovery-phase.md +289 -0
- package/.claude/get-shit-done/workflows/discuss-phase.md +542 -0
- package/.claude/get-shit-done/workflows/execute-phase.md +449 -0
- package/.claude/get-shit-done/workflows/execute-plan.md +448 -0
- package/.claude/get-shit-done/workflows/health.md +156 -0
- package/.claude/get-shit-done/workflows/help.md +489 -0
- package/.claude/get-shit-done/workflows/insert-phase.md +129 -0
- package/.claude/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/.claude/get-shit-done/workflows/map-codebase.md +315 -0
- package/.claude/get-shit-done/workflows/new-milestone.md +382 -0
- package/.claude/get-shit-done/workflows/new-project.md +1116 -0
- package/.claude/get-shit-done/workflows/pause-work.md +122 -0
- package/.claude/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
- package/.claude/get-shit-done/workflows/plan-phase.md +569 -0
- package/.claude/get-shit-done/workflows/progress.md +381 -0
- package/.claude/get-shit-done/workflows/quick.md +453 -0
- package/.claude/get-shit-done/workflows/remove-phase.md +154 -0
- package/.claude/get-shit-done/workflows/research-phase.md +73 -0
- package/.claude/get-shit-done/workflows/resume-project.md +306 -0
- package/.claude/get-shit-done/workflows/set-profile.md +80 -0
- package/.claude/get-shit-done/workflows/settings.md +213 -0
- package/.claude/get-shit-done/workflows/transition.md +544 -0
- package/.claude/get-shit-done/workflows/update.md +219 -0
- package/.claude/get-shit-done/workflows/verify-phase.md +242 -0
- package/.claude/get-shit-done/workflows/verify-work.md +569 -0
- package/.claude/gsd-file-manifest.json +144 -0
- package/.claude/hooks/gsd-check-update.js +62 -0
- package/.claude/hooks/gsd-context-monitor.js +122 -0
- package/.claude/hooks/gsd-statusline.js +108 -0
- package/.claude/package.json +1 -0
- package/.claude/settings.json +49 -0
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +18 -8
- package/dist/commands/generate.js.map +1 -1
- package/dist/services/analyzerService.d.ts.map +1 -1
- package/dist/services/analyzerService.js +10 -0
- package/dist/services/analyzerService.js.map +1 -1
- package/dist/services/descriptionGenerator.d.ts.map +1 -1
- package/dist/services/descriptionGenerator.js +56 -14
- package/dist/services/descriptionGenerator.js.map +1 -1
- package/dist/services/fileContentAnalyzer.js +136 -17
- package/dist/services/fileContentAnalyzer.js.map +1 -1
- package/dist/services/fileContentAnalyzer.test.js +64 -0
- package/dist/services/fileContentAnalyzer.test.js.map +1 -1
- package/dist/services/semanticAnalyzer.js +20 -0
- package/dist/services/semanticAnalyzer.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:audit-milestone
|
|
3
|
+
description: Audit milestone completion against original intent before archiving
|
|
4
|
+
argument-hint: "[version]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Glob
|
|
8
|
+
- Grep
|
|
9
|
+
- Bash
|
|
10
|
+
- Task
|
|
11
|
+
- Write
|
|
12
|
+
---
|
|
13
|
+
<objective>
|
|
14
|
+
Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
|
|
15
|
+
|
|
16
|
+
**This command IS the orchestrator.** Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@./.claude/get-shit-done/workflows/audit-milestone.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Version: $ARGUMENTS (optional — defaults to current milestone)
|
|
25
|
+
|
|
26
|
+
Core planning files are resolved in-workflow (`init milestone-op`) and loaded only as needed.
|
|
27
|
+
|
|
28
|
+
**Completed Work:**
|
|
29
|
+
Glob: .planning/phases/*/*-SUMMARY.md
|
|
30
|
+
Glob: .planning/phases/*/*-VERIFICATION.md
|
|
31
|
+
</context>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
Execute the audit-milestone workflow from @./.claude/get-shit-done/workflows/audit-milestone.md end-to-end.
|
|
35
|
+
Preserve all workflow gates (scope determination, verification reading, integration check, requirements coverage, routing).
|
|
36
|
+
</process>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:check-todos
|
|
3
|
+
description: List pending todos and select one to work on
|
|
4
|
+
argument-hint: [area filter]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
14
|
+
|
|
15
|
+
Routes to the check-todos workflow which handles:
|
|
16
|
+
- Todo counting and listing with area filtering
|
|
17
|
+
- Interactive selection with full context loading
|
|
18
|
+
- Roadmap correlation checking
|
|
19
|
+
- Action routing (work now, add to phase, brainstorm, create phase)
|
|
20
|
+
- STATE.md updates and git commits
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@./.claude/get-shit-done/workflows/check-todos.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
Arguments: $ARGUMENTS (optional area filter)
|
|
29
|
+
|
|
30
|
+
Todo state and roadmap correlation are loaded in-workflow using `init todos` and targeted reads.
|
|
31
|
+
</context>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
**Follow the check-todos workflow** from `@./.claude/get-shit-done/workflows/check-todos.md`.
|
|
35
|
+
|
|
36
|
+
The workflow handles all logic including:
|
|
37
|
+
1. Todo existence checking
|
|
38
|
+
2. Area filtering
|
|
39
|
+
3. Interactive listing and selection
|
|
40
|
+
4. Full context loading with file summaries
|
|
41
|
+
5. Roadmap correlation checking
|
|
42
|
+
6. Action offering and execution
|
|
43
|
+
7. STATE.md updates
|
|
44
|
+
8. Git commits
|
|
45
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:cleanup
|
|
3
|
+
description: Archive accumulated phase directories from completed milestones
|
|
4
|
+
---
|
|
5
|
+
<objective>
|
|
6
|
+
Archive phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`.
|
|
7
|
+
|
|
8
|
+
Use when `.planning/phases/` has accumulated directories from past milestones.
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<execution_context>
|
|
12
|
+
@./.claude/get-shit-done/workflows/cleanup.md
|
|
13
|
+
</execution_context>
|
|
14
|
+
|
|
15
|
+
<process>
|
|
16
|
+
Follow the cleanup workflow at @./.claude/get-shit-done/workflows/cleanup.md.
|
|
17
|
+
Identify completed milestones, show a dry-run summary, and archive on confirmation.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: prompt
|
|
3
|
+
name: gsd:complete-milestone
|
|
4
|
+
description: Archive completed milestone and prepare for next version
|
|
5
|
+
argument-hint: <version>
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
|
|
14
|
+
|
|
15
|
+
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
|
|
16
|
+
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
**Load these files NOW (before proceeding):**
|
|
21
|
+
|
|
22
|
+
- @./.claude/get-shit-done/workflows/complete-milestone.md (main workflow)
|
|
23
|
+
- @./.claude/get-shit-done/templates/milestone-archive.md (archive template)
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
**Project files:**
|
|
28
|
+
- `.planning/ROADMAP.md`
|
|
29
|
+
- `.planning/REQUIREMENTS.md`
|
|
30
|
+
- `.planning/STATE.md`
|
|
31
|
+
- `.planning/PROJECT.md`
|
|
32
|
+
|
|
33
|
+
**User input:**
|
|
34
|
+
|
|
35
|
+
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
|
|
40
|
+
**Follow complete-milestone.md workflow:**
|
|
41
|
+
|
|
42
|
+
0. **Check for audit:**
|
|
43
|
+
|
|
44
|
+
- Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
|
|
45
|
+
- If missing or stale: recommend `/gsd:audit-milestone` first
|
|
46
|
+
- If audit status is `gaps_found`: recommend `/gsd:plan-milestone-gaps` first
|
|
47
|
+
- If audit status is `passed`: proceed to step 1
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Pre-flight Check
|
|
51
|
+
|
|
52
|
+
{If no v{{version}}-MILESTONE-AUDIT.md:}
|
|
53
|
+
⚠ No milestone audit found. Run `/gsd:audit-milestone` first to verify
|
|
54
|
+
requirements coverage, cross-phase integration, and E2E flows.
|
|
55
|
+
|
|
56
|
+
{If audit has gaps:}
|
|
57
|
+
⚠ Milestone audit found gaps. Run `/gsd:plan-milestone-gaps` to create
|
|
58
|
+
phases that close the gaps, or proceed anyway to accept as tech debt.
|
|
59
|
+
|
|
60
|
+
{If audit passed:}
|
|
61
|
+
✓ Milestone audit passed. Proceeding with completion.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
1. **Verify readiness:**
|
|
65
|
+
|
|
66
|
+
- Check all phases in milestone have completed plans (SUMMARY.md exists)
|
|
67
|
+
- Present milestone scope and stats
|
|
68
|
+
- Wait for confirmation
|
|
69
|
+
|
|
70
|
+
2. **Gather stats:**
|
|
71
|
+
|
|
72
|
+
- Count phases, plans, tasks
|
|
73
|
+
- Calculate git range, file changes, LOC
|
|
74
|
+
- Extract timeline from git log
|
|
75
|
+
- Present summary, confirm
|
|
76
|
+
|
|
77
|
+
3. **Extract accomplishments:**
|
|
78
|
+
|
|
79
|
+
- Read all phase SUMMARY.md files in milestone range
|
|
80
|
+
- Extract 4-6 key accomplishments
|
|
81
|
+
- Present for approval
|
|
82
|
+
|
|
83
|
+
4. **Archive milestone:**
|
|
84
|
+
|
|
85
|
+
- Create `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
86
|
+
- Extract full phase details from ROADMAP.md
|
|
87
|
+
- Fill milestone-archive.md template
|
|
88
|
+
- Update ROADMAP.md to one-line summary with link
|
|
89
|
+
|
|
90
|
+
5. **Archive requirements:**
|
|
91
|
+
|
|
92
|
+
- Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
93
|
+
- Mark all v1 requirements as complete (checkboxes checked)
|
|
94
|
+
- Note requirement outcomes (validated, adjusted, dropped)
|
|
95
|
+
- Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
|
|
96
|
+
|
|
97
|
+
6. **Update PROJECT.md:**
|
|
98
|
+
|
|
99
|
+
- Add "Current State" section with shipped version
|
|
100
|
+
- Add "Next Milestone Goals" section
|
|
101
|
+
- Archive previous content in `<details>` (if v1.1+)
|
|
102
|
+
|
|
103
|
+
7. **Commit and tag:**
|
|
104
|
+
|
|
105
|
+
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
|
|
106
|
+
- Commit: `chore: archive v{{version}} milestone`
|
|
107
|
+
- Tag: `git tag -a v{{version}} -m "[milestone summary]"`
|
|
108
|
+
- Ask about pushing tag
|
|
109
|
+
|
|
110
|
+
8. **Offer next steps:**
|
|
111
|
+
- `/gsd:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
|
|
112
|
+
|
|
113
|
+
</process>
|
|
114
|
+
|
|
115
|
+
<success_criteria>
|
|
116
|
+
|
|
117
|
+
- Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
118
|
+
- Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
119
|
+
- `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
|
|
120
|
+
- ROADMAP.md collapsed to one-line entry
|
|
121
|
+
- PROJECT.md updated with current state
|
|
122
|
+
- Git tag v{{version}} created
|
|
123
|
+
- Commit successful
|
|
124
|
+
- User knows next steps (including need for fresh requirements)
|
|
125
|
+
</success_criteria>
|
|
126
|
+
|
|
127
|
+
<critical_rules>
|
|
128
|
+
|
|
129
|
+
- **Load workflow first:** Read complete-milestone.md before executing
|
|
130
|
+
- **Verify completion:** All phases must have SUMMARY.md files
|
|
131
|
+
- **User confirmation:** Wait for approval at verification gates
|
|
132
|
+
- **Archive before deleting:** Always create archive files before updating/deleting originals
|
|
133
|
+
- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
|
|
134
|
+
- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
|
|
135
|
+
- **Fresh requirements:** Next milestone starts with `/gsd:new-milestone` which includes requirements definition
|
|
136
|
+
</critical_rules>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:debug
|
|
3
|
+
description: Systematic debugging with persistent state across context resets
|
|
4
|
+
argument-hint: [issue description]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Debug issues using scientific method with subagent isolation.
|
|
14
|
+
|
|
15
|
+
**Orchestrator role:** Gather symptoms, spawn gsd-debugger agent, handle checkpoints, spawn continuations.
|
|
16
|
+
|
|
17
|
+
**Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
User's issue: $ARGUMENTS
|
|
22
|
+
|
|
23
|
+
Check for active sessions:
|
|
24
|
+
```bash
|
|
25
|
+
ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
26
|
+
```
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
## 0. Initialize Context
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
INIT=$(node ./.claude/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 ./.claude/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-debugger --raw)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 1. Check Active Sessions
|
|
43
|
+
|
|
44
|
+
If active sessions exist AND no $ARGUMENTS:
|
|
45
|
+
- List sessions with status, hypothesis, next action
|
|
46
|
+
- User picks number to resume OR describes new issue
|
|
47
|
+
|
|
48
|
+
If $ARGUMENTS provided OR user describes new issue:
|
|
49
|
+
- Continue to symptom gathering
|
|
50
|
+
|
|
51
|
+
## 2. Gather Symptoms (if new issue)
|
|
52
|
+
|
|
53
|
+
Use AskUserQuestion for each:
|
|
54
|
+
|
|
55
|
+
1. **Expected behavior** - What should happen?
|
|
56
|
+
2. **Actual behavior** - What happens instead?
|
|
57
|
+
3. **Error messages** - Any errors? (paste or describe)
|
|
58
|
+
4. **Timeline** - When did this start? Ever worked?
|
|
59
|
+
5. **Reproduction** - How do you trigger it?
|
|
60
|
+
|
|
61
|
+
After all gathered, confirm ready to investigate.
|
|
62
|
+
|
|
63
|
+
## 3. Spawn gsd-debugger Agent
|
|
64
|
+
|
|
65
|
+
Fill prompt and spawn:
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
<objective>
|
|
69
|
+
Investigate issue: {slug}
|
|
70
|
+
|
|
71
|
+
**Summary:** {trigger}
|
|
72
|
+
</objective>
|
|
73
|
+
|
|
74
|
+
<symptoms>
|
|
75
|
+
expected: {expected}
|
|
76
|
+
actual: {actual}
|
|
77
|
+
errors: {errors}
|
|
78
|
+
reproduction: {reproduction}
|
|
79
|
+
timeline: {timeline}
|
|
80
|
+
</symptoms>
|
|
81
|
+
|
|
82
|
+
<mode>
|
|
83
|
+
symptoms_prefilled: true
|
|
84
|
+
goal: find_and_fix
|
|
85
|
+
</mode>
|
|
86
|
+
|
|
87
|
+
<debug_file>
|
|
88
|
+
Create: .planning/debug/{slug}.md
|
|
89
|
+
</debug_file>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Task(
|
|
94
|
+
prompt=filled_prompt,
|
|
95
|
+
subagent_type="gsd-debugger",
|
|
96
|
+
model="{debugger_model}",
|
|
97
|
+
description="Debug {slug}"
|
|
98
|
+
)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## 4. Handle Agent Return
|
|
102
|
+
|
|
103
|
+
**If `## ROOT CAUSE FOUND`:**
|
|
104
|
+
- Display root cause and evidence summary
|
|
105
|
+
- Offer options:
|
|
106
|
+
- "Fix now" - spawn fix subagent
|
|
107
|
+
- "Plan fix" - suggest /gsd:plan-phase --gaps
|
|
108
|
+
- "Manual fix" - done
|
|
109
|
+
|
|
110
|
+
**If `## CHECKPOINT REACHED`:**
|
|
111
|
+
- Present checkpoint details to user
|
|
112
|
+
- Get user response
|
|
113
|
+
- If checkpoint type is `human-verify`:
|
|
114
|
+
- If user confirms fixed: continue so agent can finalize/resolve/archive
|
|
115
|
+
- If user reports issues: continue so agent returns to investigation/fixing
|
|
116
|
+
- Spawn continuation agent (see step 5)
|
|
117
|
+
|
|
118
|
+
**If `## INVESTIGATION INCONCLUSIVE`:**
|
|
119
|
+
- Show what was checked and eliminated
|
|
120
|
+
- Offer options:
|
|
121
|
+
- "Continue investigating" - spawn new agent with additional context
|
|
122
|
+
- "Manual investigation" - done
|
|
123
|
+
- "Add more context" - gather more symptoms, spawn again
|
|
124
|
+
|
|
125
|
+
## 5. Spawn Continuation Agent (After Checkpoint)
|
|
126
|
+
|
|
127
|
+
When user responds to checkpoint, spawn fresh agent:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
<objective>
|
|
131
|
+
Continue debugging {slug}. Evidence is in the debug file.
|
|
132
|
+
</objective>
|
|
133
|
+
|
|
134
|
+
<prior_state>
|
|
135
|
+
<files_to_read>
|
|
136
|
+
- .planning/debug/{slug}.md (Debug session state)
|
|
137
|
+
</files_to_read>
|
|
138
|
+
</prior_state>
|
|
139
|
+
|
|
140
|
+
<checkpoint_response>
|
|
141
|
+
**Type:** {checkpoint_type}
|
|
142
|
+
**Response:** {user_response}
|
|
143
|
+
</checkpoint_response>
|
|
144
|
+
|
|
145
|
+
<mode>
|
|
146
|
+
goal: find_and_fix
|
|
147
|
+
</mode>
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
Task(
|
|
152
|
+
prompt=continuation_prompt,
|
|
153
|
+
subagent_type="gsd-debugger",
|
|
154
|
+
model="{debugger_model}",
|
|
155
|
+
description="Continue debug {slug}"
|
|
156
|
+
)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
</process>
|
|
160
|
+
|
|
161
|
+
<success_criteria>
|
|
162
|
+
- [ ] Active sessions checked
|
|
163
|
+
- [ ] Symptoms gathered (if new)
|
|
164
|
+
- [ ] gsd-debugger spawned with context
|
|
165
|
+
- [ ] Checkpoints handled correctly
|
|
166
|
+
- [ ] Root cause confirmed before fixing
|
|
167
|
+
</success_criteria>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:discuss-phase
|
|
3
|
+
description: Gather phase context through adaptive questioning before planning
|
|
4
|
+
argument-hint: "<phase> [--auto]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
- Task
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<objective>
|
|
16
|
+
Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
|
|
17
|
+
|
|
18
|
+
**How it works:**
|
|
19
|
+
1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
|
|
20
|
+
2. Present gray areas — user selects which to discuss
|
|
21
|
+
3. Deep-dive each selected area until satisfied
|
|
22
|
+
4. Create CONTEXT.md with decisions that guide research and planning
|
|
23
|
+
|
|
24
|
+
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
|
25
|
+
</objective>
|
|
26
|
+
|
|
27
|
+
<execution_context>
|
|
28
|
+
@./.claude/get-shit-done/workflows/discuss-phase.md
|
|
29
|
+
@./.claude/get-shit-done/templates/context.md
|
|
30
|
+
</execution_context>
|
|
31
|
+
|
|
32
|
+
<context>
|
|
33
|
+
Phase number: $ARGUMENTS (required)
|
|
34
|
+
|
|
35
|
+
Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
1. Validate phase number (error if missing or not in roadmap)
|
|
40
|
+
2. Check if CONTEXT.md exists (offer update/view/skip if yes)
|
|
41
|
+
3. **Analyze phase** — Identify domain and generate phase-specific gray areas
|
|
42
|
+
4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
|
|
43
|
+
5. **Deep-dive each area** — 4 questions per area, then offer more/next
|
|
44
|
+
6. **Write CONTEXT.md** — Sections match areas discussed
|
|
45
|
+
7. Offer next steps (research or plan)
|
|
46
|
+
|
|
47
|
+
**CRITICAL: Scope guardrail**
|
|
48
|
+
- Phase boundary from ROADMAP.md is FIXED
|
|
49
|
+
- Discussion clarifies HOW to implement, not WHETHER to add more
|
|
50
|
+
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
|
|
51
|
+
- Capture deferred ideas — don't lose them, don't act on them
|
|
52
|
+
|
|
53
|
+
**Domain-aware gray areas:**
|
|
54
|
+
Gray areas depend on what's being built. Analyze the phase goal:
|
|
55
|
+
- Something users SEE → layout, density, interactions, states
|
|
56
|
+
- Something users CALL → responses, errors, auth, versioning
|
|
57
|
+
- Something users RUN → output format, flags, modes, error handling
|
|
58
|
+
- Something users READ → structure, tone, depth, flow
|
|
59
|
+
- Something being ORGANIZED → criteria, grouping, naming, exceptions
|
|
60
|
+
|
|
61
|
+
Generate 3-4 **phase-specific** gray areas, not generic categories.
|
|
62
|
+
|
|
63
|
+
**Probing depth:**
|
|
64
|
+
- Ask 4 questions per area before checking
|
|
65
|
+
- "More questions about [area], or move to next?"
|
|
66
|
+
- If more → ask 4 more, check again
|
|
67
|
+
- After all areas → "Ready to create context?"
|
|
68
|
+
|
|
69
|
+
**Do NOT ask about (Claude handles these):**
|
|
70
|
+
- Technical implementation
|
|
71
|
+
- Architecture choices
|
|
72
|
+
- Performance concerns
|
|
73
|
+
- Scope expansion
|
|
74
|
+
</process>
|
|
75
|
+
|
|
76
|
+
<success_criteria>
|
|
77
|
+
- Gray areas identified through intelligent analysis
|
|
78
|
+
- User chose which areas to discuss
|
|
79
|
+
- Each selected area explored until satisfied
|
|
80
|
+
- Scope creep redirected to deferred ideas
|
|
81
|
+
- CONTEXT.md captures decisions, not vague vision
|
|
82
|
+
- User knows next steps
|
|
83
|
+
</success_criteria>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:execute-phase
|
|
3
|
+
description: Execute all plans in a phase with wave-based parallelization
|
|
4
|
+
argument-hint: "<phase-number> [--gaps-only]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Bash
|
|
12
|
+
- Task
|
|
13
|
+
- TodoWrite
|
|
14
|
+
- AskUserQuestion
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Execute all plans in a phase using wave-based parallel execution.
|
|
18
|
+
|
|
19
|
+
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
|
|
20
|
+
|
|
21
|
+
Context budget: ~15% orchestrator, 100% fresh per subagent.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@./.claude/get-shit-done/workflows/execute-phase.md
|
|
26
|
+
@./.claude/get-shit-done/references/ui-brand.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
Phase: $ARGUMENTS
|
|
31
|
+
|
|
32
|
+
**Flags:**
|
|
33
|
+
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
|
|
34
|
+
|
|
35
|
+
Context files are resolved inside the workflow via `gsd-tools init execute-phase` and per-subagent `<files_to_read>` blocks.
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
Execute the execute-phase workflow from @./.claude/get-shit-done/workflows/execute-phase.md end-to-end.
|
|
40
|
+
Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
|
|
41
|
+
</process>
|
|
@@ -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
|
+
@./.claude/get-shit-done/workflows/health.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Execute the health workflow from @./.claude/get-shit-done/workflows/health.md end-to-end.
|
|
21
|
+
Parse --repair flag from arguments and pass to workflow.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:help
|
|
3
|
+
description: Show available GSD commands and usage guide
|
|
4
|
+
---
|
|
5
|
+
<objective>
|
|
6
|
+
Display the complete GSD command reference.
|
|
7
|
+
|
|
8
|
+
Output ONLY the reference content below. Do NOT add:
|
|
9
|
+
- Project-specific analysis
|
|
10
|
+
- Git status or file context
|
|
11
|
+
- Next-step suggestions
|
|
12
|
+
- Any commentary beyond the reference
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@./.claude/get-shit-done/workflows/help.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Output the complete GSD command reference from @./.claude/get-shit-done/workflows/help.md.
|
|
21
|
+
Display the reference content directly — no additions or modifications.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:insert-phase
|
|
3
|
+
description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
|
|
4
|
+
argument-hint: <after> <description>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
|
|
13
|
+
|
|
14
|
+
Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
|
|
15
|
+
|
|
16
|
+
Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@./.claude/get-shit-done/workflows/insert-phase.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
|
|
25
|
+
|
|
26
|
+
Roadmap and state are resolved in-workflow via `init phase-op` and targeted tool calls.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute the insert-phase workflow from @./.claude/get-shit-done/workflows/insert-phase.md end-to-end.
|
|
31
|
+
Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
|
|
32
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:join-discord
|
|
3
|
+
description: Join the GSD Discord community
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Display the Discord invite link for the GSD community server.
|
|
8
|
+
</objective>
|
|
9
|
+
|
|
10
|
+
<output>
|
|
11
|
+
# Join the GSD Discord
|
|
12
|
+
|
|
13
|
+
Connect with other GSD users, get help, share what you're building, and stay updated.
|
|
14
|
+
|
|
15
|
+
**Invite link:** https://discord.gg/gsd
|
|
16
|
+
|
|
17
|
+
Click the link or paste it into your browser to join.
|
|
18
|
+
</output>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:list-phase-assumptions
|
|
3
|
+
description: Surface Claude's assumptions about a phase approach before planning
|
|
4
|
+
argument-hint: "[phase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Grep
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Analyze a phase and present Claude's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
|
|
14
|
+
|
|
15
|
+
Purpose: Help users see what Claude thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
|
|
16
|
+
Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@./.claude/get-shit-done/workflows/list-phase-assumptions.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Phase number: $ARGUMENTS (required)
|
|
25
|
+
|
|
26
|
+
Project state and roadmap are loaded in-workflow using targeted reads.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
1. Validate phase number argument (error if missing or invalid)
|
|
31
|
+
2. Check if phase exists in roadmap
|
|
32
|
+
3. Follow list-phase-assumptions.md workflow:
|
|
33
|
+
- Analyze roadmap description
|
|
34
|
+
- Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
|
|
35
|
+
- Present assumptions clearly
|
|
36
|
+
- Prompt "What do you think?"
|
|
37
|
+
4. Gather feedback and offer next steps
|
|
38
|
+
</process>
|
|
39
|
+
|
|
40
|
+
<success_criteria>
|
|
41
|
+
|
|
42
|
+
- Phase validated against roadmap
|
|
43
|
+
- Assumptions surfaced across five areas
|
|
44
|
+
- User prompted for feedback
|
|
45
|
+
- User knows next steps (discuss context, plan phase, or correct assumptions)
|
|
46
|
+
</success_criteria>
|