@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,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:pause-work
|
|
3
|
+
description: Create context handoff when pausing work mid-phase
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<objective>
|
|
11
|
+
Create `.continue-here.md` handoff file to preserve complete work state across sessions.
|
|
12
|
+
|
|
13
|
+
Routes to the pause-work workflow which handles:
|
|
14
|
+
- Current phase detection from recent files
|
|
15
|
+
- Complete state gathering (position, completed work, remaining work, decisions, blockers)
|
|
16
|
+
- Handoff file creation with all context sections
|
|
17
|
+
- Git commit as WIP
|
|
18
|
+
- Resume instructions
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@./.claude/get-shit-done/workflows/pause-work.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
State and phase progress are gathered in-workflow with targeted reads.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
**Follow the pause-work workflow** from `@./.claude/get-shit-done/workflows/pause-work.md`.
|
|
31
|
+
|
|
32
|
+
The workflow handles all logic including:
|
|
33
|
+
1. Phase directory detection
|
|
34
|
+
2. State gathering with user clarifications
|
|
35
|
+
3. Handoff file writing with timestamp
|
|
36
|
+
4. Git commit
|
|
37
|
+
5. Confirmation with resume instructions
|
|
38
|
+
</process>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:plan-milestone-gaps
|
|
3
|
+
description: Create phases to close all gaps identified by milestone audit
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Create all phases necessary to close gaps identified by `/gsd:audit-milestone`.
|
|
14
|
+
|
|
15
|
+
Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
|
|
16
|
+
|
|
17
|
+
One command creates all fix phases — no manual `/gsd:add-phase` per gap.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@./.claude/get-shit-done/workflows/plan-milestone-gaps.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
**Audit results:**
|
|
26
|
+
Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
|
|
27
|
+
|
|
28
|
+
Original intent and current planning state are loaded on demand inside the workflow.
|
|
29
|
+
</context>
|
|
30
|
+
|
|
31
|
+
<process>
|
|
32
|
+
Execute the plan-milestone-gaps workflow from @./.claude/get-shit-done/workflows/plan-milestone-gaps.md end-to-end.
|
|
33
|
+
Preserve all workflow gates (audit loading, prioritization, phase grouping, user confirmation, roadmap updates).
|
|
34
|
+
</process>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:plan-phase
|
|
3
|
+
description: Create detailed phase plan (PLAN.md) with verification loop
|
|
4
|
+
argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify] [--prd <file>]"
|
|
5
|
+
agent: gsd-planner
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Task
|
|
13
|
+
- WebFetch
|
|
14
|
+
- mcp__context7__*
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
|
|
18
|
+
|
|
19
|
+
**Default flow:** Research (if needed) → Plan → Verify → Done
|
|
20
|
+
|
|
21
|
+
**Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn gsd-planner, verify with gsd-plan-checker, iterate until pass or max iterations, present results.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@./.claude/get-shit-done/workflows/plan-phase.md
|
|
26
|
+
@./.claude/get-shit-done/references/ui-brand.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
31
|
+
|
|
32
|
+
**Flags:**
|
|
33
|
+
- `--research` — Force re-research even if RESEARCH.md exists
|
|
34
|
+
- `--skip-research` — Skip research, go straight to planning
|
|
35
|
+
- `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
|
|
36
|
+
- `--skip-verify` — Skip verification loop
|
|
37
|
+
- `--prd <file>` — Use a PRD/acceptance criteria file instead of discuss-phase. Parses requirements into CONTEXT.md automatically. Skips discuss-phase entirely.
|
|
38
|
+
|
|
39
|
+
Normalize phase input in step 2 before any directory lookups.
|
|
40
|
+
</context>
|
|
41
|
+
|
|
42
|
+
<process>
|
|
43
|
+
Execute the plan-phase workflow from @./.claude/get-shit-done/workflows/plan-phase.md end-to-end.
|
|
44
|
+
Preserve all workflow gates (validation, research, planning, verification loop, routing).
|
|
45
|
+
</process>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:progress
|
|
3
|
+
description: Check project progress, show context, and route to next action (execute or plan)
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Grep
|
|
8
|
+
- Glob
|
|
9
|
+
- SlashCommand
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
|
|
13
|
+
|
|
14
|
+
Provides situational awareness before continuing work.
|
|
15
|
+
</objective>
|
|
16
|
+
|
|
17
|
+
<execution_context>
|
|
18
|
+
@./.claude/get-shit-done/workflows/progress.md
|
|
19
|
+
</execution_context>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
Execute the progress workflow from @./.claude/get-shit-done/workflows/progress.md end-to-end.
|
|
23
|
+
Preserve all routing logic (Routes A through F) and edge case handling.
|
|
24
|
+
</process>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:quick
|
|
3
|
+
description: Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents
|
|
4
|
+
argument-hint: "[--full]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Bash
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<objective>
|
|
16
|
+
Execute small, ad-hoc tasks with GSD guarantees (atomic commits, STATE.md tracking).
|
|
17
|
+
|
|
18
|
+
Quick mode is the same system with a shorter path:
|
|
19
|
+
- Spawns gsd-planner (quick mode) + gsd-executor(s)
|
|
20
|
+
- Quick tasks live in `.planning/quick/` separate from planned phases
|
|
21
|
+
- Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
|
|
22
|
+
|
|
23
|
+
**Default:** Skips research, plan-checker, verifier. Use when you know exactly what to do.
|
|
24
|
+
|
|
25
|
+
**`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
|
|
26
|
+
</objective>
|
|
27
|
+
|
|
28
|
+
<execution_context>
|
|
29
|
+
@./.claude/get-shit-done/workflows/quick.md
|
|
30
|
+
</execution_context>
|
|
31
|
+
|
|
32
|
+
<context>
|
|
33
|
+
$ARGUMENTS
|
|
34
|
+
|
|
35
|
+
Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
Execute the quick workflow from @./.claude/get-shit-done/workflows/quick.md end-to-end.
|
|
40
|
+
Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
|
|
41
|
+
</process>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Reapply local modifications after a GSD update
|
|
3
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<purpose>
|
|
7
|
+
After a GSD update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
|
|
8
|
+
</purpose>
|
|
9
|
+
|
|
10
|
+
<process>
|
|
11
|
+
|
|
12
|
+
## Step 1: Detect backed-up patches
|
|
13
|
+
|
|
14
|
+
Check for local patches directory:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Global install (path templated at install time)
|
|
18
|
+
PATCHES_DIR=./.claude/gsd-local-patches
|
|
19
|
+
# Local install fallback
|
|
20
|
+
if [ ! -d "$PATCHES_DIR" ]; then
|
|
21
|
+
PATCHES_DIR=./.claude/gsd-local-patches
|
|
22
|
+
fi
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Read `backup-meta.json` from the patches directory.
|
|
26
|
+
|
|
27
|
+
**If no patches found:**
|
|
28
|
+
```
|
|
29
|
+
No local patches found. Nothing to reapply.
|
|
30
|
+
|
|
31
|
+
Local patches are automatically saved when you run /gsd:update
|
|
32
|
+
after modifying any GSD workflow, command, or agent files.
|
|
33
|
+
```
|
|
34
|
+
Exit.
|
|
35
|
+
|
|
36
|
+
## Step 2: Show patch summary
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
## Local Patches to Reapply
|
|
40
|
+
|
|
41
|
+
**Backed up from:** v{from_version}
|
|
42
|
+
**Current version:** {read VERSION file}
|
|
43
|
+
**Files modified:** {count}
|
|
44
|
+
|
|
45
|
+
| # | File | Status |
|
|
46
|
+
|---|------|--------|
|
|
47
|
+
| 1 | {file_path} | Pending |
|
|
48
|
+
| 2 | {file_path} | Pending |
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Step 3: Merge each file
|
|
52
|
+
|
|
53
|
+
For each file in `backup-meta.json`:
|
|
54
|
+
|
|
55
|
+
1. **Read the backed-up version** (user's modified copy from `gsd-local-patches/`)
|
|
56
|
+
2. **Read the newly installed version** (current file after update)
|
|
57
|
+
3. **Compare and merge:**
|
|
58
|
+
|
|
59
|
+
- If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
|
|
60
|
+
- If the new file differs: identify the user's modifications and apply them to the new version
|
|
61
|
+
|
|
62
|
+
**Merge strategy:**
|
|
63
|
+
- Read both versions fully
|
|
64
|
+
- Identify sections the user added or modified (look for additions, not just differences from path replacement)
|
|
65
|
+
- Apply user's additions/modifications to the new version
|
|
66
|
+
- If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
|
|
67
|
+
|
|
68
|
+
4. **Write merged result** to the installed location
|
|
69
|
+
5. **Report status:**
|
|
70
|
+
- `Merged` — user modifications applied cleanly
|
|
71
|
+
- `Skipped` — modification already in upstream
|
|
72
|
+
- `Conflict` — user chose resolution
|
|
73
|
+
|
|
74
|
+
## Step 4: Update manifest
|
|
75
|
+
|
|
76
|
+
After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# The manifest will be regenerated on next /gsd:update
|
|
80
|
+
# For now, just note which files were modified
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Step 5: Cleanup option
|
|
84
|
+
|
|
85
|
+
Ask user:
|
|
86
|
+
- "Keep patch backups for reference?" → preserve `gsd-local-patches/`
|
|
87
|
+
- "Clean up patch backups?" → remove `gsd-local-patches/` directory
|
|
88
|
+
|
|
89
|
+
## Step 6: Report
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
## Patches Reapplied
|
|
93
|
+
|
|
94
|
+
| # | File | Status |
|
|
95
|
+
|---|------|--------|
|
|
96
|
+
| 1 | {file_path} | ✓ Merged |
|
|
97
|
+
| 2 | {file_path} | ○ Skipped (already upstream) |
|
|
98
|
+
| 3 | {file_path} | ⚠ Conflict resolved |
|
|
99
|
+
|
|
100
|
+
{count} file(s) updated. Your local modifications are active again.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
</process>
|
|
104
|
+
|
|
105
|
+
<success_criteria>
|
|
106
|
+
- [ ] All backed-up patches processed
|
|
107
|
+
- [ ] User modifications merged into new version
|
|
108
|
+
- [ ] Conflicts resolved with user input
|
|
109
|
+
- [ ] Status reported for each file
|
|
110
|
+
</success_criteria>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:remove-phase
|
|
3
|
+
description: Remove a future phase from roadmap and renumber subsequent phases
|
|
4
|
+
argument-hint: <phase-number>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
|
|
13
|
+
|
|
14
|
+
Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
|
|
15
|
+
Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@./.claude/get-shit-done/workflows/remove-phase.md
|
|
20
|
+
</execution_context>
|
|
21
|
+
|
|
22
|
+
<context>
|
|
23
|
+
Phase: $ARGUMENTS
|
|
24
|
+
|
|
25
|
+
Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
Execute the remove-phase workflow from @./.claude/get-shit-done/workflows/remove-phase.md end-to-end.
|
|
30
|
+
Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
|
|
31
|
+
</process>
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:research-phase
|
|
3
|
+
description: Research how to implement a phase (standalone - usually use /gsd:plan-phase instead)
|
|
4
|
+
argument-hint: "[phase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Research how to implement a phase. Spawns gsd-phase-researcher agent with phase context.
|
|
13
|
+
|
|
14
|
+
**Note:** This is a standalone research command. For most workflows, use `/gsd:plan-phase` which integrates research automatically.
|
|
15
|
+
|
|
16
|
+
**Use this command when:**
|
|
17
|
+
- You want to research without planning yet
|
|
18
|
+
- You want to re-research after planning is complete
|
|
19
|
+
- You need to investigate before deciding if a phase is feasible
|
|
20
|
+
|
|
21
|
+
**Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
|
|
22
|
+
|
|
23
|
+
**Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
Phase number: $ARGUMENTS (required)
|
|
28
|
+
|
|
29
|
+
Normalize phase input in step 1 before any directory lookups.
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<process>
|
|
33
|
+
|
|
34
|
+
## 0. Initialize Context
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
INIT=$(node ./.claude/get-shit-done/bin/gsd-tools.cjs init phase-op "$ARGUMENTS")
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`, `state_path`, `requirements_path`, `context_path`, `research_path`.
|
|
41
|
+
|
|
42
|
+
Resolve researcher model:
|
|
43
|
+
```bash
|
|
44
|
+
RESEARCHER_MODEL=$(node ./.claude/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-phase-researcher --raw)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 1. Validate Phase
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
PHASE_INFO=$(node ./.claude/get-shit-done/bin/gsd-tools.cjs roadmap get-phase "${phase_number}")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
54
|
+
|
|
55
|
+
## 2. Check Existing Research
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
|
|
62
|
+
|
|
63
|
+
**If doesn't exist:** Continue.
|
|
64
|
+
|
|
65
|
+
## 3. Gather Phase Context
|
|
66
|
+
|
|
67
|
+
Use paths from INIT (do not inline file contents in orchestrator context):
|
|
68
|
+
- `requirements_path`
|
|
69
|
+
- `context_path`
|
|
70
|
+
- `state_path`
|
|
71
|
+
|
|
72
|
+
Present summary with phase description and what files the researcher will load.
|
|
73
|
+
|
|
74
|
+
## 4. Spawn gsd-phase-researcher Agent
|
|
75
|
+
|
|
76
|
+
Research modes: ecosystem (default), feasibility, implementation, comparison.
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
<research_type>
|
|
80
|
+
Phase Research — investigating HOW to implement a specific phase well.
|
|
81
|
+
</research_type>
|
|
82
|
+
|
|
83
|
+
<key_insight>
|
|
84
|
+
The question is NOT "which library should I use?"
|
|
85
|
+
|
|
86
|
+
The question is: "What do I not know that I don't know?"
|
|
87
|
+
|
|
88
|
+
For this phase, discover:
|
|
89
|
+
- What's the established architecture pattern?
|
|
90
|
+
- What libraries form the standard stack?
|
|
91
|
+
- What problems do people commonly hit?
|
|
92
|
+
- What's SOTA vs what Claude's training thinks is SOTA?
|
|
93
|
+
- What should NOT be hand-rolled?
|
|
94
|
+
</key_insight>
|
|
95
|
+
|
|
96
|
+
<objective>
|
|
97
|
+
Research implementation approach for Phase {phase_number}: {phase_name}
|
|
98
|
+
Mode: ecosystem
|
|
99
|
+
</objective>
|
|
100
|
+
|
|
101
|
+
<files_to_read>
|
|
102
|
+
- {requirements_path} (Requirements)
|
|
103
|
+
- {context_path} (Phase context from discuss-phase, if exists)
|
|
104
|
+
- {state_path} (Prior project decisions and blockers)
|
|
105
|
+
</files_to_read>
|
|
106
|
+
|
|
107
|
+
<additional_context>
|
|
108
|
+
**Phase description:** {phase_description}
|
|
109
|
+
</additional_context>
|
|
110
|
+
|
|
111
|
+
<downstream_consumer>
|
|
112
|
+
Your RESEARCH.md will be loaded by `/gsd:plan-phase` which uses specific sections:
|
|
113
|
+
- `## Standard Stack` → Plans use these libraries
|
|
114
|
+
- `## Architecture Patterns` → Task structure follows these
|
|
115
|
+
- `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
|
|
116
|
+
- `## Common Pitfalls` → Verification steps check for these
|
|
117
|
+
- `## Code Examples` → Task actions reference these patterns
|
|
118
|
+
|
|
119
|
+
Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
|
|
120
|
+
</downstream_consumer>
|
|
121
|
+
|
|
122
|
+
<quality_gate>
|
|
123
|
+
Before declaring complete, verify:
|
|
124
|
+
- [ ] All domains investigated (not just some)
|
|
125
|
+
- [ ] Negative claims verified with official docs
|
|
126
|
+
- [ ] Multiple sources for critical claims
|
|
127
|
+
- [ ] Confidence levels assigned honestly
|
|
128
|
+
- [ ] Section names match what plan-phase expects
|
|
129
|
+
</quality_gate>
|
|
130
|
+
|
|
131
|
+
<output>
|
|
132
|
+
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
133
|
+
</output>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Task(
|
|
138
|
+
prompt="First, read ./.claude/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
|
|
139
|
+
subagent_type="general-purpose",
|
|
140
|
+
model="{researcher_model}",
|
|
141
|
+
description="Research Phase {phase}"
|
|
142
|
+
)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## 5. Handle Agent Return
|
|
146
|
+
|
|
147
|
+
**`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
|
|
148
|
+
|
|
149
|
+
**`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
|
|
150
|
+
|
|
151
|
+
**`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
|
|
152
|
+
|
|
153
|
+
## 6. Spawn Continuation Agent
|
|
154
|
+
|
|
155
|
+
```markdown
|
|
156
|
+
<objective>
|
|
157
|
+
Continue research for Phase {phase_number}: {phase_name}
|
|
158
|
+
</objective>
|
|
159
|
+
|
|
160
|
+
<prior_state>
|
|
161
|
+
<files_to_read>
|
|
162
|
+
- .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md (Existing research)
|
|
163
|
+
</files_to_read>
|
|
164
|
+
</prior_state>
|
|
165
|
+
|
|
166
|
+
<checkpoint_response>
|
|
167
|
+
**Type:** {checkpoint_type}
|
|
168
|
+
**Response:** {user_response}
|
|
169
|
+
</checkpoint_response>
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
Task(
|
|
174
|
+
prompt="First, read ./.claude/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
|
|
175
|
+
subagent_type="general-purpose",
|
|
176
|
+
model="{researcher_model}",
|
|
177
|
+
description="Continue research Phase {phase}"
|
|
178
|
+
)
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
</process>
|
|
182
|
+
|
|
183
|
+
<success_criteria>
|
|
184
|
+
- [ ] Phase validated against roadmap
|
|
185
|
+
- [ ] Existing research checked
|
|
186
|
+
- [ ] gsd-phase-researcher spawned with context
|
|
187
|
+
- [ ] Checkpoints handled correctly
|
|
188
|
+
- [ ] User knows next steps
|
|
189
|
+
</success_criteria>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:resume-work
|
|
3
|
+
description: Resume work from previous session with full context restoration
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
- SlashCommand
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Restore complete project context and resume work seamlessly from previous session.
|
|
14
|
+
|
|
15
|
+
Routes to the resume-project workflow which handles:
|
|
16
|
+
|
|
17
|
+
- STATE.md loading (or reconstruction if missing)
|
|
18
|
+
- Checkpoint detection (.continue-here files)
|
|
19
|
+
- Incomplete work detection (PLAN without SUMMARY)
|
|
20
|
+
- Status presentation
|
|
21
|
+
- Context-aware next action routing
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@./.claude/get-shit-done/workflows/resume-project.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
**Follow the resume-project workflow** from `@./.claude/get-shit-done/workflows/resume-project.md`.
|
|
30
|
+
|
|
31
|
+
The workflow handles all resumption logic including:
|
|
32
|
+
|
|
33
|
+
1. Project existence verification
|
|
34
|
+
2. STATE.md loading or reconstruction
|
|
35
|
+
3. Checkpoint and incomplete work detection
|
|
36
|
+
4. Visual status presentation
|
|
37
|
+
5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
|
|
38
|
+
6. Routing to appropriate next command
|
|
39
|
+
7. Session continuity updates
|
|
40
|
+
</process>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:set-profile
|
|
3
|
+
description: Switch model profile for GSD agents (quality/balanced/budget)
|
|
4
|
+
argument-hint: <profile>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Switch the model profile used by GSD agents. Controls which Claude model each agent uses, balancing quality vs token spend.
|
|
13
|
+
|
|
14
|
+
Routes to the set-profile workflow which handles:
|
|
15
|
+
- Argument validation (quality/balanced/budget)
|
|
16
|
+
- Config file creation if missing
|
|
17
|
+
- Profile update in config.json
|
|
18
|
+
- Confirmation with model table display
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@./.claude/get-shit-done/workflows/set-profile.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
**Follow the set-profile workflow** from `@./.claude/get-shit-done/workflows/set-profile.md`.
|
|
27
|
+
|
|
28
|
+
The workflow handles all logic including:
|
|
29
|
+
1. Profile argument validation
|
|
30
|
+
2. Config file ensuring
|
|
31
|
+
3. Config reading and updating
|
|
32
|
+
4. Model table generation from MODEL_PROFILES
|
|
33
|
+
5. Confirmation display
|
|
34
|
+
</process>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:settings
|
|
3
|
+
description: Configure GSD workflow toggles and model profile
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Interactive configuration of GSD workflow agents and model profile via multi-question prompt.
|
|
13
|
+
|
|
14
|
+
Routes to the settings workflow which handles:
|
|
15
|
+
- Config existence ensuring
|
|
16
|
+
- Current settings reading and parsing
|
|
17
|
+
- Interactive 5-question prompt (model, research, plan_check, verifier, branching)
|
|
18
|
+
- Config merging and writing
|
|
19
|
+
- Confirmation display with quick command references
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<execution_context>
|
|
23
|
+
@./.claude/get-shit-done/workflows/settings.md
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
**Follow the settings workflow** from `@./.claude/get-shit-done/workflows/settings.md`.
|
|
28
|
+
|
|
29
|
+
The workflow handles all logic including:
|
|
30
|
+
1. Config file creation with defaults if missing
|
|
31
|
+
2. Current config reading
|
|
32
|
+
3. Interactive settings presentation with pre-selection
|
|
33
|
+
4. Answer parsing and config merging
|
|
34
|
+
5. File writing
|
|
35
|
+
6. Confirmation display
|
|
36
|
+
</process>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:update
|
|
3
|
+
description: Update GSD to latest version with changelog display
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Bash
|
|
6
|
+
- AskUserQuestion
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<objective>
|
|
10
|
+
Check for GSD updates, install if available, and display what changed.
|
|
11
|
+
|
|
12
|
+
Routes to the update workflow which handles:
|
|
13
|
+
- Version detection (local vs global installation)
|
|
14
|
+
- npm version checking
|
|
15
|
+
- Changelog fetching and display
|
|
16
|
+
- User confirmation with clean install warning
|
|
17
|
+
- Update execution and cache clearing
|
|
18
|
+
- Restart reminder
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@./.claude/get-shit-done/workflows/update.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
**Follow the update workflow** from `@./.claude/get-shit-done/workflows/update.md`.
|
|
27
|
+
|
|
28
|
+
The workflow handles all logic including:
|
|
29
|
+
1. Installed version detection (local/global)
|
|
30
|
+
2. Latest version checking via npm
|
|
31
|
+
3. Version comparison
|
|
32
|
+
4. Changelog fetching and extraction
|
|
33
|
+
5. Clean install warning display
|
|
34
|
+
6. User confirmation
|
|
35
|
+
7. Update execution
|
|
36
|
+
8. Cache clearing
|
|
37
|
+
</process>
|