gsd-opencode 1.22.1 → 1.30.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 (156) hide show
  1. package/agents/gsd-advisor-researcher.md +112 -0
  2. package/agents/gsd-assumptions-analyzer.md +110 -0
  3. package/agents/gsd-codebase-mapper.md +0 -2
  4. package/agents/gsd-debugger.md +118 -2
  5. package/agents/gsd-executor.md +24 -4
  6. package/agents/gsd-integration-checker.md +0 -2
  7. package/agents/gsd-nyquist-auditor.md +0 -2
  8. package/agents/gsd-phase-researcher.md +150 -5
  9. package/agents/gsd-plan-checker.md +70 -5
  10. package/agents/gsd-planner.md +49 -4
  11. package/agents/gsd-project-researcher.md +28 -3
  12. package/agents/gsd-research-synthesizer.md +0 -2
  13. package/agents/gsd-roadmapper.md +29 -2
  14. package/agents/gsd-ui-auditor.md +445 -0
  15. package/agents/gsd-ui-checker.md +305 -0
  16. package/agents/gsd-ui-researcher.md +368 -0
  17. package/agents/gsd-user-profiler.md +173 -0
  18. package/agents/gsd-verifier.md +123 -4
  19. package/commands/gsd/gsd-add-backlog.md +76 -0
  20. package/commands/gsd/gsd-audit-uat.md +24 -0
  21. package/commands/gsd/gsd-autonomous.md +41 -0
  22. package/commands/gsd/gsd-debug.md +5 -0
  23. package/commands/gsd/gsd-discuss-phase.md +10 -36
  24. package/commands/gsd/gsd-do.md +30 -0
  25. package/commands/gsd/gsd-execute-phase.md +20 -2
  26. package/commands/gsd/gsd-fast.md +30 -0
  27. package/commands/gsd/gsd-forensics.md +56 -0
  28. package/commands/gsd/gsd-list-workspaces.md +19 -0
  29. package/commands/gsd/gsd-manager.md +39 -0
  30. package/commands/gsd/gsd-milestone-summary.md +51 -0
  31. package/commands/gsd/gsd-new-workspace.md +44 -0
  32. package/commands/gsd/gsd-next.md +24 -0
  33. package/commands/gsd/gsd-note.md +34 -0
  34. package/commands/gsd/gsd-plan-phase.md +3 -1
  35. package/commands/gsd/gsd-plant-seed.md +28 -0
  36. package/commands/gsd/gsd-pr-branch.md +25 -0
  37. package/commands/gsd/gsd-profile-user.md +46 -0
  38. package/commands/gsd/gsd-quick.md +4 -2
  39. package/commands/gsd/gsd-reapply-patches.md +9 -8
  40. package/commands/gsd/gsd-remove-workspace.md +26 -0
  41. package/commands/gsd/gsd-research-phase.md +5 -0
  42. package/commands/gsd/gsd-review-backlog.md +61 -0
  43. package/commands/gsd/gsd-review.md +37 -0
  44. package/commands/gsd/gsd-session-report.md +19 -0
  45. package/commands/gsd/gsd-set-profile.md +24 -23
  46. package/commands/gsd/gsd-ship.md +23 -0
  47. package/commands/gsd/gsd-stats.md +18 -0
  48. package/commands/gsd/gsd-thread.md +127 -0
  49. package/commands/gsd/gsd-ui-phase.md +34 -0
  50. package/commands/gsd/gsd-ui-review.md +32 -0
  51. package/commands/gsd/gsd-workstreams.md +66 -0
  52. package/get-shit-done/bin/gsd-tools.cjs +410 -84
  53. package/get-shit-done/bin/lib/commands.cjs +429 -18
  54. package/get-shit-done/bin/lib/config.cjs +318 -45
  55. package/get-shit-done/bin/lib/core.cjs +822 -84
  56. package/get-shit-done/bin/lib/frontmatter.cjs +78 -41
  57. package/get-shit-done/bin/lib/init.cjs +836 -104
  58. package/get-shit-done/bin/lib/milestone.cjs +44 -33
  59. package/get-shit-done/bin/lib/model-profiles.cjs +68 -0
  60. package/get-shit-done/bin/lib/phase.cjs +293 -306
  61. package/get-shit-done/bin/lib/profile-output.cjs +952 -0
  62. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  63. package/get-shit-done/bin/lib/roadmap.cjs +55 -24
  64. package/get-shit-done/bin/lib/security.cjs +382 -0
  65. package/get-shit-done/bin/lib/state.cjs +363 -53
  66. package/get-shit-done/bin/lib/template.cjs +2 -2
  67. package/get-shit-done/bin/lib/uat.cjs +282 -0
  68. package/get-shit-done/bin/lib/verify.cjs +104 -36
  69. package/get-shit-done/bin/lib/workstream.cjs +491 -0
  70. package/get-shit-done/references/checkpoints.md +12 -10
  71. package/get-shit-done/references/decimal-phase-calculation.md +2 -3
  72. package/get-shit-done/references/git-integration.md +47 -0
  73. package/get-shit-done/references/model-profile-resolution.md +2 -0
  74. package/get-shit-done/references/model-profiles.md +62 -16
  75. package/get-shit-done/references/phase-argument-parsing.md +2 -2
  76. package/get-shit-done/references/planning-config.md +3 -1
  77. package/get-shit-done/references/user-profiling.md +681 -0
  78. package/get-shit-done/references/workstream-flag.md +58 -0
  79. package/get-shit-done/templates/UAT.md +21 -3
  80. package/get-shit-done/templates/UI-SPEC.md +100 -0
  81. package/get-shit-done/templates/claude-md.md +122 -0
  82. package/get-shit-done/templates/config.json +10 -3
  83. package/get-shit-done/templates/context.md +61 -6
  84. package/get-shit-done/templates/dev-preferences.md +21 -0
  85. package/get-shit-done/templates/discussion-log.md +63 -0
  86. package/get-shit-done/templates/phase-prompt.md +46 -5
  87. package/get-shit-done/templates/project.md +2 -0
  88. package/get-shit-done/templates/state.md +2 -2
  89. package/get-shit-done/templates/user-profile.md +146 -0
  90. package/get-shit-done/workflows/add-phase.md +2 -2
  91. package/get-shit-done/workflows/add-tests.md +4 -4
  92. package/get-shit-done/workflows/add-todo.md +3 -3
  93. package/get-shit-done/workflows/audit-milestone.md +13 -5
  94. package/get-shit-done/workflows/audit-uat.md +109 -0
  95. package/get-shit-done/workflows/autonomous.md +891 -0
  96. package/get-shit-done/workflows/check-todos.md +2 -2
  97. package/get-shit-done/workflows/cleanup.md +4 -4
  98. package/get-shit-done/workflows/complete-milestone.md +9 -6
  99. package/get-shit-done/workflows/diagnose-issues.md +15 -3
  100. package/get-shit-done/workflows/discovery-phase.md +3 -3
  101. package/get-shit-done/workflows/discuss-phase-assumptions.md +653 -0
  102. package/get-shit-done/workflows/discuss-phase.md +411 -38
  103. package/get-shit-done/workflows/do.md +104 -0
  104. package/get-shit-done/workflows/execute-phase.md +405 -18
  105. package/get-shit-done/workflows/execute-plan.md +77 -12
  106. package/get-shit-done/workflows/fast.md +105 -0
  107. package/get-shit-done/workflows/forensics.md +265 -0
  108. package/get-shit-done/workflows/health.md +28 -6
  109. package/get-shit-done/workflows/help.md +124 -7
  110. package/get-shit-done/workflows/insert-phase.md +2 -2
  111. package/get-shit-done/workflows/list-phase-assumptions.md +2 -2
  112. package/get-shit-done/workflows/list-workspaces.md +56 -0
  113. package/get-shit-done/workflows/manager.md +362 -0
  114. package/get-shit-done/workflows/map-codebase.md +74 -13
  115. package/get-shit-done/workflows/milestone-summary.md +223 -0
  116. package/get-shit-done/workflows/new-milestone.md +120 -18
  117. package/get-shit-done/workflows/new-project.md +178 -39
  118. package/get-shit-done/workflows/new-workspace.md +237 -0
  119. package/get-shit-done/workflows/next.md +97 -0
  120. package/get-shit-done/workflows/node-repair.md +92 -0
  121. package/get-shit-done/workflows/note.md +156 -0
  122. package/get-shit-done/workflows/pause-work.md +62 -8
  123. package/get-shit-done/workflows/plan-milestone-gaps.md +4 -5
  124. package/get-shit-done/workflows/plan-phase.md +332 -33
  125. package/get-shit-done/workflows/plant-seed.md +169 -0
  126. package/get-shit-done/workflows/pr-branch.md +129 -0
  127. package/get-shit-done/workflows/profile-user.md +450 -0
  128. package/get-shit-done/workflows/progress.md +145 -20
  129. package/get-shit-done/workflows/quick.md +205 -49
  130. package/get-shit-done/workflows/remove-phase.md +2 -2
  131. package/get-shit-done/workflows/remove-workspace.md +90 -0
  132. package/get-shit-done/workflows/research-phase.md +11 -3
  133. package/get-shit-done/workflows/resume-project.md +35 -16
  134. package/get-shit-done/workflows/review.md +228 -0
  135. package/get-shit-done/workflows/session-report.md +146 -0
  136. package/get-shit-done/workflows/set-profile.md +2 -2
  137. package/get-shit-done/workflows/settings.md +79 -10
  138. package/get-shit-done/workflows/ship.md +228 -0
  139. package/get-shit-done/workflows/stats.md +60 -0
  140. package/get-shit-done/workflows/transition.md +147 -20
  141. package/get-shit-done/workflows/ui-phase.md +302 -0
  142. package/get-shit-done/workflows/ui-review.md +165 -0
  143. package/get-shit-done/workflows/update.md +108 -25
  144. package/get-shit-done/workflows/validate-phase.md +15 -8
  145. package/get-shit-done/workflows/verify-phase.md +16 -5
  146. package/get-shit-done/workflows/verify-work.md +72 -18
  147. package/package.json +1 -1
  148. package/skills/gsd-audit-milestone/SKILL.md +29 -0
  149. package/skills/gsd-cleanup/SKILL.md +19 -0
  150. package/skills/gsd-complete-milestone/SKILL.md +131 -0
  151. package/skills/gsd-discuss-phase/SKILL.md +54 -0
  152. package/skills/gsd-execute-phase/SKILL.md +49 -0
  153. package/skills/gsd-plan-phase/SKILL.md +37 -0
  154. package/skills/gsd-ui-phase/SKILL.md +24 -0
  155. package/skills/gsd-ui-review/SKILL.md +24 -0
  156. package/skills/gsd-verify-work/SKILL.md +30 -0
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: gsd-fast
3
+ description: Execute a trivial task inline — no subagents, no planning overhead
4
+ argument-hint: "[task description]"
5
+ permissions:
6
+ read: true
7
+ write: true
8
+ edit: true
9
+ bash: true
10
+ grep: true
11
+ glob: true
12
+ ---
13
+
14
+ <objective>
15
+ Execute a trivial task directly in the current context without spawning subagents
16
+ or generating PLAN.md files. For tasks too small to justify planning overhead:
17
+ typo fixes, config changes, small refactors, forgotten commits, simple additions.
18
+
19
+ This is NOT a replacement for /gsd-quick — use /gsd-quick for anything that
20
+ needs research, multi-step planning, or verification. /gsd-fast is for tasks
21
+ you could describe in one sentence and execute in under 2 minutes.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @$HOME/.config/opencode/get-shit-done/workflows/fast.md
26
+ </execution_context>
27
+
28
+ <process>
29
+ Execute the fast workflow from @$HOME/.config/opencode/get-shit-done/workflows/fast.md end-to-end.
30
+ </process>
@@ -0,0 +1,56 @@
1
+ ---
2
+ type: prompt
3
+ name: gsd-forensics
4
+ description: Post-mortem investigation for failed GSD workflows — analyzes git history, artifacts, and state to diagnose what went wrong
5
+ argument-hint: "[problem description]"
6
+ permissions:
7
+ read: true
8
+ write: true
9
+ bash: true
10
+ grep: true
11
+ glob: true
12
+ ---
13
+
14
+ <objective>
15
+ Investigate what went wrong during a GSD workflow execution. Analyzes git history, `.planning/` artifacts, and file system state to detect anomalies and generate a structured diagnostic report.
16
+
17
+ Purpose: Diagnose failed or stuck workflows so the user can understand root cause and take corrective action.
18
+ Output: Forensic report saved to `.planning/forensics/`, presented inline, with optional issue creation.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @$HOME/.config/opencode/get-shit-done/workflows/forensics.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ **Data sources:**
27
+ - `git log` (recent commits, patterns, time gaps)
28
+ - `git status` / `git diff` (uncommitted work, conflicts)
29
+ - `.planning/STATE.md` (current position, session history)
30
+ - `.planning/ROADMAP.md` (phase scope and progress)
31
+ - `.planning/phases/*/` (PLAN.md, SUMMARY.md, VERIFICATION.md, CONTEXT.md)
32
+ - `.planning/reports/SESSION_REPORT.md` (last session outcomes)
33
+
34
+ **User input:**
35
+ - Problem description: $ARGUMENTS (optional — will ask if not provided)
36
+ </context>
37
+
38
+ <process>
39
+ read and execute the forensics workflow from @$HOME/.config/opencode/get-shit-done/workflows/forensics.md end-to-end.
40
+ </process>
41
+
42
+ <success_criteria>
43
+ - Evidence gathered from all available data sources
44
+ - At least 4 anomaly types checked (stuck loop, missing artifacts, abandoned work, crash/interruption)
45
+ - Structured forensic report written to `.planning/forensics/report-{timestamp}.md`
46
+ - Report presented inline with findings, anomalies, and recommendations
47
+ - Interactive investigation offered for deeper analysis
48
+ - GitHub issue creation offered if actionable findings exist
49
+ </success_criteria>
50
+
51
+ <critical_rules>
52
+ - **read-only investigation:** Do not modify project source files during forensics. Only write the forensic report and update STATE.md session tracking.
53
+ - **Redact sensitive data:** Strip absolute paths, API keys, tokens from reports and issues.
54
+ - **Ground findings in evidence:** Every anomaly must cite specific commits, files, or state data.
55
+ - **No speculation without evidence:** If data is insufficient, say so — do not fabricate root causes.
56
+ </critical_rules>
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: gsd-list-workspaces
3
+ description: List active GSD workspaces and their status
4
+ permissions:
5
+ bash: true
6
+ read: true
7
+ ---
8
+ <objective>
9
+ Scan `~/gsd-workspaces/` for workspace directories containing `WORKSPACE.md` manifests. Display a summary table with name, path, repo count, strategy, and GSD project status.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @$HOME/.config/opencode/get-shit-done/workflows/list-workspaces.md
14
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
15
+ </execution_context>
16
+
17
+ <process>
18
+ Execute the list-workspaces workflow from @$HOME/.config/opencode/get-shit-done/workflows/list-workspaces.md end-to-end.
19
+ </process>
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: gsd-manager
3
+ description: Interactive command center for managing multiple phases from one terminal
4
+ permissions:
5
+ read: true
6
+ write: true
7
+ bash: true
8
+ glob: true
9
+ grep: true
10
+ question: true
11
+ task: true
12
+ ---
13
+ <objective>
14
+ Single-terminal command center for managing a milestone. Shows a dashboard of all phases with visual status indicators, recommends optimal next actions, and dispatches work — discuss runs inline, plan/execute run as background agents.
15
+
16
+ Designed for power users who want to parallelize work across phases from one terminal: discuss a phase while another plans or executes in the background.
17
+
18
+ **Creates/Updates:**
19
+ - No files created directly — dispatches to existing GSD commands via skill() and background task agents.
20
+ - Reads `.planning/STATE.md`, `.planning/ROADMAP.md`, phase directories for status.
21
+
22
+ **After:** User exits when done managing, or all phases complete and milestone lifecycle is suggested.
23
+ </objective>
24
+
25
+ <execution_context>
26
+ @$HOME/.config/opencode/get-shit-done/workflows/manager.md
27
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
28
+ </execution_context>
29
+
30
+ <context>
31
+ No arguments required. Requires an active milestone with ROADMAP.md and STATE.md.
32
+
33
+ Project context, phase list, dependencies, and recommendations are resolved inside the workflow using `gsd-tools.cjs init manager`. No upfront context loading needed.
34
+ </context>
35
+
36
+ <process>
37
+ Execute the manager workflow from @$HOME/.config/opencode/get-shit-done/workflows/manager.md end-to-end.
38
+ Maintain the dashboard refresh loop until the user exits or all phases complete.
39
+ </process>
@@ -0,0 +1,51 @@
1
+ ---
2
+ type: prompt
3
+ name: gsd-milestone-summary
4
+ description: Generate a comprehensive project summary from milestone artifacts for team onboarding and review
5
+ argument-hint: "[version]"
6
+ permissions:
7
+ read: true
8
+ write: true
9
+ bash: true
10
+ grep: true
11
+ glob: true
12
+ ---
13
+
14
+ <objective>
15
+ Generate a structured milestone summary for team onboarding and project review. Reads completed milestone artifacts (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION files) and produces a human-friendly overview of what was built, how, and why.
16
+
17
+ Purpose: Enable new team members to understand a completed project by reading one document and asking follow-up questions.
18
+ Output: MILESTONE_SUMMARY written to `.planning/reports/`, presented inline, optional interactive Q&A.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @$HOME/.config/opencode/get-shit-done/workflows/milestone-summary.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ **Project files:**
27
+ - `.planning/ROADMAP.md`
28
+ - `.planning/PROJECT.md`
29
+ - `.planning/STATE.md`
30
+ - `.planning/RETROSPECTIVE.md`
31
+ - `.planning/milestones/v{version}-ROADMAP.md` (if archived)
32
+ - `.planning/milestones/v{version}-REQUIREMENTS.md` (if archived)
33
+ - `.planning/phases/*-*/` (SUMMARY.md, VERIFICATION.md, CONTEXT.md, RESEARCH.md)
34
+
35
+ **User input:**
36
+ - Version: $ARGUMENTS (optional — defaults to current/latest milestone)
37
+ </context>
38
+
39
+ <process>
40
+ read and execute the milestone-summary workflow from @$HOME/.config/opencode/get-shit-done/workflows/milestone-summary.md end-to-end.
41
+ </process>
42
+
43
+ <success_criteria>
44
+ - Milestone version resolved (from args, STATE.md, or archive scan)
45
+ - All available artifacts read (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION, RESEARCH, RETROSPECTIVE)
46
+ - Summary document written to `.planning/reports/MILESTONE_SUMMARY-v{version}.md`
47
+ - All 7 sections generated (Overview, Architecture, Phases, Decisions, Requirements, Tech Debt, Getting Started)
48
+ - Summary presented inline to user
49
+ - Interactive Q&A offered
50
+ - STATE.md updated
51
+ </success_criteria>
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: gsd-new-workspace
3
+ description: Create an isolated workspace with repo copies and independent .planning/
4
+ argument-hint: "--name <name> [--repos repo1,repo2] [--path /target] [--strategy worktree|clone] [--branch name] [--auto]"
5
+ permissions:
6
+ read: true
7
+ bash: true
8
+ write: true
9
+ question: true
10
+ ---
11
+ <context>
12
+ **Flags:**
13
+ - `--name` (required) — Workspace name
14
+ - `--repos` — Comma-separated repo paths or names. If omitted, interactive selection from child git repos in cwd
15
+ - `--path` — Target directory. Defaults to `~/gsd-workspaces/<name>`
16
+ - `--strategy` — `worktree` (default, lightweight) or `clone` (fully independent)
17
+ - `--branch` — Branch to checkout. Defaults to `workspace/<name>`
18
+ - `--auto` — Skip interactive questions, use defaults
19
+ </context>
20
+
21
+ <objective>
22
+ Create a physical workspace directory containing copies of specified git repos (as worktrees or clones) with an independent `.planning/` directory for isolated GSD sessions.
23
+
24
+ **Use cases:**
25
+ - Multi-repo orchestration: work on a subset of repos in parallel with isolated GSD state
26
+ - Feature branch isolation: create a worktree of the current repo with its own `.planning/`
27
+
28
+ **Creates:**
29
+ - `<path>/WORKSPACE.md` — workspace manifest
30
+ - `<path>/.planning/` — independent planning directory
31
+ - `<path>/<repo>/` — git worktree or clone for each specified repo
32
+
33
+ **After this command:** `cd` into the workspace and run `/gsd-new-project` to initialize GSD.
34
+ </objective>
35
+
36
+ <execution_context>
37
+ @$HOME/.config/opencode/get-shit-done/workflows/new-workspace.md
38
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
39
+ </execution_context>
40
+
41
+ <process>
42
+ Execute the new-workspace workflow from @$HOME/.config/opencode/get-shit-done/workflows/new-workspace.md end-to-end.
43
+ Preserve all workflow gates (validation, approvals, commits, routing).
44
+ </process>
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: gsd-next
3
+ description: Automatically advance to the next logical step in the GSD workflow
4
+ permissions:
5
+ read: true
6
+ bash: true
7
+ grep: true
8
+ glob: true
9
+ task: true
10
+ ---
11
+ <objective>
12
+ Detect the current project state and automatically invoke the next logical GSD workflow step.
13
+ No arguments needed — reads STATE.md, ROADMAP.md, and phase directories to determine what comes next.
14
+
15
+ Designed for rapid multi-project workflows where remembering which phase/step you're on is overhead.
16
+ </objective>
17
+
18
+ <execution_context>
19
+ @$HOME/.config/opencode/get-shit-done/workflows/next.md
20
+ </execution_context>
21
+
22
+ <process>
23
+ Execute the next workflow from @$HOME/.config/opencode/get-shit-done/workflows/next.md end-to-end.
24
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: gsd-note
3
+ description: Zero-friction idea capture. Append, list, or promote notes to todos.
4
+ argument-hint: "<text> | list | promote <N> [--global]"
5
+ permissions:
6
+ read: true
7
+ write: true
8
+ glob: true
9
+ grep: true
10
+ ---
11
+ <objective>
12
+ Zero-friction idea capture — one write call, one confirmation line.
13
+
14
+ Three subcommands:
15
+ - **append** (default): Save a timestamped note file. No questions, no formatting.
16
+ - **list**: Show all notes from project and global scopes.
17
+ - **promote**: Convert a note into a structured todo.
18
+
19
+ Runs inline — no task, no question, no bash.
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @$HOME/.config/opencode/get-shit-done/workflows/note.md
24
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ $ARGUMENTS
29
+ </context>
30
+
31
+ <process>
32
+ Execute the note workflow from @$HOME/.config/opencode/get-shit-done/workflows/note.md end-to-end.
33
+ Capture the note, list notes, or promote to todo — depending on arguments.
34
+ </process>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: gsd-plan-phase
3
3
  description: Create detailed phase plan (PLAN.md) with verification loop
4
- argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify] [--prd <file>]"
4
+ argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify] [--prd <file>] [--reviews] [--text]"
5
5
  agent: gsd-planner
6
6
  permissions:
7
7
  read: true
@@ -35,6 +35,8 @@ Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omit
35
35
  - `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
36
36
  - `--skip-verify` — Skip verification loop
37
37
  - `--prd <file>` — Use a PRD/acceptance criteria file instead of discuss-phase. Parses requirements into CONTEXT.md automatically. Skips discuss-phase entirely.
38
+ - `--reviews` — Replan incorporating cross-AI review feedback from REVIEWS.md (produced by `/gsd-review`)
39
+ - `--text` — Use plain-text numbered lists instead of TUI menus (required for `/rc` remote sessions)
38
40
 
39
41
  Normalize phase input in step 2 before any directory lookups.
40
42
  </context>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: gsd-plant-seed
3
+ description: Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone
4
+ argument-hint: "[idea summary]"
5
+ permissions:
6
+ read: true
7
+ write: true
8
+ edit: true
9
+ bash: true
10
+ question: true
11
+ ---
12
+
13
+ <objective>
14
+ Capture an idea that's too big for now but should surface automatically when the right
15
+ milestone arrives. Seeds solve context rot: instead of a one-liner in Deferred that nobody
16
+ reads, a seed preserves the full WHY, WHEN to surface, and breadcrumbs to details.
17
+
18
+ Creates: .planning/seeds/SEED-NNN-slug.md
19
+ Consumed by: /gsd-new-milestone (scans seeds and presents matches)
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @$HOME/.config/opencode/get-shit-done/workflows/plant-seed.md
24
+ </execution_context>
25
+
26
+ <process>
27
+ Execute the plant-seed workflow from @$HOME/.config/opencode/get-shit-done/workflows/plant-seed.md end-to-end.
28
+ </process>
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: gsd-pr-branch
3
+ description: Create a clean PR branch by filtering out .planning/ commits — ready for code review
4
+ argument-hint: "[target branch, default: main]"
5
+ permissions:
6
+ bash: true
7
+ read: true
8
+ question: true
9
+ ---
10
+
11
+ <objective>
12
+ Create a clean branch suitable for pull requests by filtering out .planning/ commits
13
+ from the current branch. Reviewers see only code changes, not GSD planning artifacts.
14
+
15
+ This solves the problem of PR diffs being cluttered with PLAN.md, SUMMARY.md, STATE.md
16
+ changes that are irrelevant to code review.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @$HOME/.config/opencode/get-shit-done/workflows/pr-branch.md
21
+ </execution_context>
22
+
23
+ <process>
24
+ Execute the pr-branch workflow from @$HOME/.config/opencode/get-shit-done/workflows/pr-branch.md end-to-end.
25
+ </process>
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: gsd-profile-user
3
+ description: Generate developer behavioral profile and create OpenCode-discoverable artifacts
4
+ argument-hint: "[--questionnaire] [--refresh]"
5
+ permissions:
6
+ read: true
7
+ write: true
8
+ bash: true
9
+ glob: true
10
+ grep: true
11
+ question: true
12
+ task: true
13
+ ---
14
+
15
+ <objective>
16
+ Generate a developer behavioral profile from session analysis (or questionnaire) and produce artifacts (USER-PROFILE.md, /gsd-dev-preferences, AGENTS.md section) that personalize OpenCode's responses.
17
+
18
+ Routes to the profile-user workflow which orchestrates the full flow: consent gate, session analysis or questionnaire fallback, profile generation, result display, and artifact selection.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @$HOME/.config/opencode/get-shit-done/workflows/profile-user.md
23
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
24
+ </execution_context>
25
+
26
+ <context>
27
+ Flags from $ARGUMENTS:
28
+ - `--questionnaire` -- Skip session analysis entirely, use questionnaire-only path
29
+ - `--refresh` -- Rebuild profile even when one exists, backup old profile, show dimension diff
30
+ </context>
31
+
32
+ <process>
33
+ Execute the profile-user workflow end-to-end.
34
+
35
+ The workflow handles all logic including:
36
+ 1. Initialization and existing profile detection
37
+ 2. Consent gate before session analysis
38
+ 3. Session scanning and data sufficiency checks
39
+ 4. Session analysis (profiler agent) or questionnaire fallback
40
+ 5. Cross-project split resolution
41
+ 6. Profile writing to USER-PROFILE.md
42
+ 7. Result display with report card and highlights
43
+ 8. Artifact selection (dev-preferences, AGENTS.md sections)
44
+ 9. Sequential artifact generation
45
+ 10. Summary with refresh diff (if applicable)
46
+ </process>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: gsd-quick
3
3
  description: Execute a quick task with GSD guarantees (atomic commits, state tracking) but skip optional agents
4
- argument-hint: "[--full] [--discuss]"
4
+ argument-hint: "[--full] [--discuss] [--research]"
5
5
  permissions:
6
6
  read: true
7
7
  write: true
@@ -26,7 +26,9 @@ Quick mode is the same system with a shorter path:
26
26
 
27
27
  **`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
28
28
 
29
- Flags are composable: `--discuss --full` gives discussion + plan-checking + verification.
29
+ **`--research` flag:** Spawns a focused research agent before planning. Investigates implementation approaches, library options, and pitfalls for the task. Use when you're unsure of the best approach.
30
+
31
+ Flags are composable: `--discuss --research --full` gives discussion + research + plan-checking + verification.
30
32
  </objective>
31
33
 
32
34
  <execution_context>
@@ -1,18 +1,19 @@
1
1
  ---
2
2
  name: gsd-reapply-patches
3
3
  description: Reapply local modifications after a GSD update
4
- permissions: read, write, edit, bash, glob, grep, question
4
+ permissions:
5
+ read: true
6
+ write: true
7
+ edit: true
8
+ bash: true
9
+ glob: true
10
+ grep: true
11
+ question: true
5
12
  ---
6
13
 
7
14
  <objective>
8
- Reapply user's local modifications to files after a GSD update reinstalls clean versions.
9
-
10
- When GSD performs updates, it backs up user modifications to a patches directory. This command intelligently merges those modifications back into the new file versions, handling cases where both the upstream code and user modifications may have changed.
11
- </objective>
12
-
13
- <purpose>
14
15
  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.
15
- </purpose>
16
+ </objective>
16
17
 
17
18
  <process>
18
19
 
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: gsd-remove-workspace
3
+ description: Remove a GSD workspace and clean up worktrees
4
+ argument-hint: "<workspace-name>"
5
+ permissions:
6
+ bash: true
7
+ read: true
8
+ question: true
9
+ ---
10
+ <context>
11
+ **Arguments:**
12
+ - `<workspace-name>` (required) — Name of the workspace to remove
13
+ </context>
14
+
15
+ <objective>
16
+ Remove a workspace directory after confirmation. For worktree strategy, runs `git worktree remove` for each member repo first. Refuses if any repo has uncommitted changes.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @$HOME/.config/opencode/get-shit-done/workflows/remove-workspace.md
21
+ @$HOME/.config/opencode/get-shit-done/references/ui-brand.md
22
+ </execution_context>
23
+
24
+ <process>
25
+ Execute the remove-workspace workflow from @$HOME/.config/opencode/get-shit-done/workflows/remove-workspace.md end-to-end.
26
+ </process>
@@ -23,6 +23,11 @@ Research how to implement a phase. Spawns gsd-phase-researcher agent with phase
23
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
24
  </objective>
25
25
 
26
+ <available_agent_types>
27
+ Valid GSD subagent types (use exact names — do not fall back to 'general'):
28
+ - gsd-phase-researcher — Researches technical approaches for a phase
29
+ </available_agent_types>
30
+
26
31
  <context>
27
32
  Phase number: $ARGUMENTS (required)
28
33
 
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: gsd-review-backlog
3
+ description: Review and promote backlog items to active milestone
4
+ permissions:
5
+ read: true
6
+ write: true
7
+ bash: true
8
+ ---
9
+
10
+ <objective>
11
+ Review all 999.x backlog items and optionally promote them into the active
12
+ milestone sequence or remove stale entries.
13
+ </objective>
14
+
15
+ <process>
16
+
17
+ 1. **List backlog items:**
18
+ ```bash
19
+ ls -d .planning/phases/999* 2>/dev/null || echo "No backlog items found"
20
+ ```
21
+
22
+ 2. **read ROADMAP.md** and extract all 999.x phase entries:
23
+ ```bash
24
+ cat .planning/ROADMAP.md
25
+ ```
26
+ Show each backlog item with its description, any accumulated context (CONTEXT.md, RESEARCH.md), and creation date.
27
+
28
+ 3. **Present the list to the user** via question:
29
+ - For each backlog item, show: phase number, description, accumulated artifacts
30
+ - Options per item: **Promote** (move to active), **Keep** (leave in backlog), **Remove** (delete)
31
+
32
+ 4. **For items to PROMOTE:**
33
+ - Find the next sequential phase number in the active milestone
34
+ - Rename the directory from `999.x-slug` to `{new_num}-slug`:
35
+ ```bash
36
+ NEW_NUM=$(node "$HOME/.config/opencode/get-shit-done/bin/gsd-tools.cjs" phase add "${DESCRIPTION}" --raw)
37
+ ```
38
+ - Move accumulated artifacts to the new phase directory
39
+ - Update ROADMAP.md: move the entry from `## Backlog` section to the active phase list
40
+ - Remove `(BACKLOG)` marker
41
+ - Add appropriate `**Depends on:**` field
42
+
43
+ 5. **For items to REMOVE:**
44
+ - Delete the phase directory
45
+ - Remove the entry from ROADMAP.md `## Backlog` section
46
+
47
+ 6. **Commit changes:**
48
+ ```bash
49
+ node "$HOME/.config/opencode/get-shit-done/bin/gsd-tools.cjs" commit "docs: review backlog — promoted N, removed M" --files .planning/ROADMAP.md
50
+ ```
51
+
52
+ 7. **Report summary:**
53
+ ```
54
+ ## 📋 Backlog Review Complete
55
+
56
+ Promoted: {list of promoted items with new phase numbers}
57
+ Kept: {list of items remaining in backlog}
58
+ Removed: {list of deleted items}
59
+ ```
60
+
61
+ </process>
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: gsd-review
3
+ description: Request cross-AI peer review of phase plans from external AI CLIs
4
+ argument-hint: "--phase N [--gemini] [--OpenCode] [--codex] [--all]"
5
+ permissions:
6
+ read: true
7
+ write: true
8
+ bash: true
9
+ glob: true
10
+ grep: true
11
+ ---
12
+
13
+ <objective>
14
+ Invoke external AI CLIs (Gemini, OpenCode, Codex) to independently review phase plans.
15
+ Produces a structured REVIEWS.md with per-reviewer feedback that can be fed back into
16
+ planning via /gsd-plan-phase --reviews.
17
+
18
+ **Flow:** Detect CLIs → Build review prompt → Invoke each CLI → Collect responses → write REVIEWS.md
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @$HOME/.config/opencode/get-shit-done/workflows/review.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Phase number: extracted from $ARGUMENTS (required)
27
+
28
+ **Flags:**
29
+ - `--gemini` — Include Gemini CLI review
30
+ - `--OpenCode` — Include OpenCode CLI review (uses separate session)
31
+ - `--codex` — Include Codex CLI review
32
+ - `--all` — Include all available CLIs
33
+ </context>
34
+
35
+ <process>
36
+ Execute the review workflow from @$HOME/.config/opencode/get-shit-done/workflows/review.md end-to-end.
37
+ </process>
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: gsd-session-report
3
+ description: Generate a session report with token usage estimates, work summary, and outcomes
4
+ permissions:
5
+ read: true
6
+ bash: true
7
+ write: true
8
+ ---
9
+ <objective>
10
+ Generate a structured SESSION_REPORT.md document capturing session outcomes, work performed, and estimated resource usage. Provides a shareable artifact for post-session review.
11
+ </objective>
12
+
13
+ <execution_context>
14
+ @$HOME/.config/opencode/get-shit-done/workflows/session-report.md
15
+ </execution_context>
16
+
17
+ <process>
18
+ Execute the session-report workflow from @$HOME/.config/opencode/get-shit-done/workflows/session-report.md end-to-end.
19
+ </process>