@bhargavvc/sdd-cc 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 (227) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja-JP.md +834 -0
  3. package/README.ko-KR.md +823 -0
  4. package/README.md +846 -0
  5. package/README.pt-BR.md +452 -0
  6. package/README.zh-CN.md +800 -0
  7. package/agents/sdd-advisor-researcher.md +104 -0
  8. package/agents/sdd-assumptions-analyzer.md +105 -0
  9. package/agents/sdd-codebase-mapper.md +770 -0
  10. package/agents/sdd-debugger.md +1373 -0
  11. package/agents/sdd-executor.md +509 -0
  12. package/agents/sdd-integration-checker.md +443 -0
  13. package/agents/sdd-nyquist-auditor.md +176 -0
  14. package/agents/sdd-phase-researcher.md +698 -0
  15. package/agents/sdd-plan-checker.md +773 -0
  16. package/agents/sdd-planner.md +1354 -0
  17. package/agents/sdd-project-researcher.md +654 -0
  18. package/agents/sdd-research-synthesizer.md +247 -0
  19. package/agents/sdd-roadmapper.md +679 -0
  20. package/agents/sdd-ui-auditor.md +439 -0
  21. package/agents/sdd-ui-checker.md +300 -0
  22. package/agents/sdd-ui-researcher.md +357 -0
  23. package/agents/sdd-user-profiler.md +171 -0
  24. package/agents/sdd-verifier.md +700 -0
  25. package/bin/install.js +5009 -0
  26. package/commands/sdd/add-backlog.md +76 -0
  27. package/commands/sdd/add-phase.md +43 -0
  28. package/commands/sdd/add-tests.md +41 -0
  29. package/commands/sdd/add-todo.md +47 -0
  30. package/commands/sdd/audit-milestone.md +36 -0
  31. package/commands/sdd/audit-uat.md +24 -0
  32. package/commands/sdd/autonomous.md +41 -0
  33. package/commands/sdd/check-todos.md +45 -0
  34. package/commands/sdd/cleanup.md +18 -0
  35. package/commands/sdd/complete-milestone.md +136 -0
  36. package/commands/sdd/debug.md +173 -0
  37. package/commands/sdd/discuss-phase.md +64 -0
  38. package/commands/sdd/do.md +30 -0
  39. package/commands/sdd/execute-phase.md +59 -0
  40. package/commands/sdd/fast.md +30 -0
  41. package/commands/sdd/forensics.md +56 -0
  42. package/commands/sdd/health.md +22 -0
  43. package/commands/sdd/help.md +22 -0
  44. package/commands/sdd/insert-phase.md +32 -0
  45. package/commands/sdd/join-discord.md +18 -0
  46. package/commands/sdd/list-phase-assumptions.md +46 -0
  47. package/commands/sdd/list-workspaces.md +19 -0
  48. package/commands/sdd/manager.md +39 -0
  49. package/commands/sdd/map-codebase.md +71 -0
  50. package/commands/sdd/milestone-summary.md +51 -0
  51. package/commands/sdd/new-milestone.md +44 -0
  52. package/commands/sdd/new-project.md +42 -0
  53. package/commands/sdd/new-workspace.md +44 -0
  54. package/commands/sdd/next.md +24 -0
  55. package/commands/sdd/note.md +34 -0
  56. package/commands/sdd/pause-work.md +38 -0
  57. package/commands/sdd/plan-milestone-gaps.md +34 -0
  58. package/commands/sdd/plan-phase.md +47 -0
  59. package/commands/sdd/plant-seed.md +28 -0
  60. package/commands/sdd/pr-branch.md +25 -0
  61. package/commands/sdd/profile-user.md +46 -0
  62. package/commands/sdd/progress.md +24 -0
  63. package/commands/sdd/quick.md +47 -0
  64. package/commands/sdd/reapply-patches.md +123 -0
  65. package/commands/sdd/remove-phase.md +31 -0
  66. package/commands/sdd/remove-workspace.md +26 -0
  67. package/commands/sdd/research-phase.md +195 -0
  68. package/commands/sdd/resume-work.md +40 -0
  69. package/commands/sdd/review-backlog.md +61 -0
  70. package/commands/sdd/review.md +37 -0
  71. package/commands/sdd/session-report.md +19 -0
  72. package/commands/sdd/set-profile.md +12 -0
  73. package/commands/sdd/settings.md +36 -0
  74. package/commands/sdd/ship.md +23 -0
  75. package/commands/sdd/stats.md +18 -0
  76. package/commands/sdd/thread.md +127 -0
  77. package/commands/sdd/ui-phase.md +34 -0
  78. package/commands/sdd/ui-review.md +32 -0
  79. package/commands/sdd/update.md +37 -0
  80. package/commands/sdd/validate-phase.md +35 -0
  81. package/commands/sdd/verify-work.md +38 -0
  82. package/commands/sdd/workstreams.md +63 -0
  83. package/hooks/dist/sdd-check-update.js +114 -0
  84. package/hooks/dist/sdd-context-monitor.js +156 -0
  85. package/hooks/dist/sdd-prompt-guard.js +96 -0
  86. package/hooks/dist/sdd-statusline.js +119 -0
  87. package/hooks/dist/sdd-workflow-guard.js +94 -0
  88. package/package.json +55 -0
  89. package/scripts/base64-scan.sh +262 -0
  90. package/scripts/build-hooks.js +82 -0
  91. package/scripts/prompt-injection-scan.sh +198 -0
  92. package/scripts/rebrand-gsd-to-sdd.sh +220 -0
  93. package/scripts/run-tests.cjs +29 -0
  94. package/scripts/secret-scan.sh +227 -0
  95. package/scripts/sync-upstream.sh +56 -0
  96. package/sdd/bin/lib/commands.cjs +959 -0
  97. package/sdd/bin/lib/config.cjs +442 -0
  98. package/sdd/bin/lib/core.cjs +1230 -0
  99. package/sdd/bin/lib/frontmatter.cjs +336 -0
  100. package/sdd/bin/lib/init.cjs +1442 -0
  101. package/sdd/bin/lib/milestone.cjs +252 -0
  102. package/sdd/bin/lib/model-profiles.cjs +68 -0
  103. package/sdd/bin/lib/phase.cjs +888 -0
  104. package/sdd/bin/lib/profile-output.cjs +952 -0
  105. package/sdd/bin/lib/profile-pipeline.cjs +539 -0
  106. package/sdd/bin/lib/roadmap.cjs +329 -0
  107. package/sdd/bin/lib/security.cjs +382 -0
  108. package/sdd/bin/lib/state.cjs +1031 -0
  109. package/sdd/bin/lib/template.cjs +222 -0
  110. package/sdd/bin/lib/uat.cjs +282 -0
  111. package/sdd/bin/lib/verify.cjs +888 -0
  112. package/sdd/bin/lib/workstream.cjs +491 -0
  113. package/sdd/bin/sdd-tools.cjs +918 -0
  114. package/sdd/commands/sdd/workstreams.md +63 -0
  115. package/sdd/references/checkpoints.md +778 -0
  116. package/sdd/references/continuation-format.md +249 -0
  117. package/sdd/references/decimal-phase-calculation.md +64 -0
  118. package/sdd/references/git-integration.md +295 -0
  119. package/sdd/references/git-planning-commit.md +38 -0
  120. package/sdd/references/model-profile-resolution.md +36 -0
  121. package/sdd/references/model-profiles.md +139 -0
  122. package/sdd/references/phase-argument-parsing.md +61 -0
  123. package/sdd/references/planning-config.md +202 -0
  124. package/sdd/references/questioning.md +162 -0
  125. package/sdd/references/tdd.md +263 -0
  126. package/sdd/references/ui-brand.md +160 -0
  127. package/sdd/references/user-profiling.md +681 -0
  128. package/sdd/references/verification-patterns.md +612 -0
  129. package/sdd/references/workstream-flag.md +58 -0
  130. package/sdd/templates/DEBUG.md +164 -0
  131. package/sdd/templates/UAT.md +265 -0
  132. package/sdd/templates/UI-SPEC.md +100 -0
  133. package/sdd/templates/VALIDATION.md +76 -0
  134. package/sdd/templates/claude-md.md +122 -0
  135. package/sdd/templates/codebase/architecture.md +255 -0
  136. package/sdd/templates/codebase/concerns.md +310 -0
  137. package/sdd/templates/codebase/conventions.md +307 -0
  138. package/sdd/templates/codebase/integrations.md +280 -0
  139. package/sdd/templates/codebase/stack.md +186 -0
  140. package/sdd/templates/codebase/structure.md +285 -0
  141. package/sdd/templates/codebase/testing.md +480 -0
  142. package/sdd/templates/config.json +44 -0
  143. package/sdd/templates/context.md +352 -0
  144. package/sdd/templates/continue-here.md +78 -0
  145. package/sdd/templates/copilot-instructions.md +7 -0
  146. package/sdd/templates/debug-subagent-prompt.md +91 -0
  147. package/sdd/templates/dev-preferences.md +21 -0
  148. package/sdd/templates/discovery.md +146 -0
  149. package/sdd/templates/discussion-log.md +63 -0
  150. package/sdd/templates/milestone-archive.md +123 -0
  151. package/sdd/templates/milestone.md +115 -0
  152. package/sdd/templates/phase-prompt.md +610 -0
  153. package/sdd/templates/planner-subagent-prompt.md +117 -0
  154. package/sdd/templates/project.md +186 -0
  155. package/sdd/templates/requirements.md +231 -0
  156. package/sdd/templates/research-project/ARCHITECTURE.md +204 -0
  157. package/sdd/templates/research-project/FEATURES.md +147 -0
  158. package/sdd/templates/research-project/PITFALLS.md +200 -0
  159. package/sdd/templates/research-project/STACK.md +120 -0
  160. package/sdd/templates/research-project/SUMMARY.md +170 -0
  161. package/sdd/templates/research.md +552 -0
  162. package/sdd/templates/retrospective.md +54 -0
  163. package/sdd/templates/roadmap.md +202 -0
  164. package/sdd/templates/state.md +176 -0
  165. package/sdd/templates/summary-complex.md +59 -0
  166. package/sdd/templates/summary-minimal.md +41 -0
  167. package/sdd/templates/summary-standard.md +48 -0
  168. package/sdd/templates/summary.md +248 -0
  169. package/sdd/templates/user-profile.md +146 -0
  170. package/sdd/templates/user-setup.md +311 -0
  171. package/sdd/templates/verification-report.md +322 -0
  172. package/sdd/workflows/add-phase.md +112 -0
  173. package/sdd/workflows/add-tests.md +351 -0
  174. package/sdd/workflows/add-todo.md +158 -0
  175. package/sdd/workflows/audit-milestone.md +340 -0
  176. package/sdd/workflows/audit-uat.md +109 -0
  177. package/sdd/workflows/autonomous.md +891 -0
  178. package/sdd/workflows/check-todos.md +177 -0
  179. package/sdd/workflows/cleanup.md +152 -0
  180. package/sdd/workflows/complete-milestone.md +767 -0
  181. package/sdd/workflows/diagnose-issues.md +231 -0
  182. package/sdd/workflows/discovery-phase.md +289 -0
  183. package/sdd/workflows/discuss-phase-assumptions.md +653 -0
  184. package/sdd/workflows/discuss-phase.md +1049 -0
  185. package/sdd/workflows/do.md +104 -0
  186. package/sdd/workflows/execute-phase.md +846 -0
  187. package/sdd/workflows/execute-plan.md +514 -0
  188. package/sdd/workflows/fast.md +105 -0
  189. package/sdd/workflows/forensics.md +265 -0
  190. package/sdd/workflows/health.md +181 -0
  191. package/sdd/workflows/help.md +606 -0
  192. package/sdd/workflows/insert-phase.md +130 -0
  193. package/sdd/workflows/list-phase-assumptions.md +178 -0
  194. package/sdd/workflows/list-workspaces.md +56 -0
  195. package/sdd/workflows/manager.md +362 -0
  196. package/sdd/workflows/map-codebase.md +377 -0
  197. package/sdd/workflows/milestone-summary.md +223 -0
  198. package/sdd/workflows/new-milestone.md +486 -0
  199. package/sdd/workflows/new-project.md +1250 -0
  200. package/sdd/workflows/new-workspace.md +237 -0
  201. package/sdd/workflows/next.md +97 -0
  202. package/sdd/workflows/node-repair.md +92 -0
  203. package/sdd/workflows/note.md +156 -0
  204. package/sdd/workflows/pause-work.md +176 -0
  205. package/sdd/workflows/plan-milestone-gaps.md +273 -0
  206. package/sdd/workflows/plan-phase.md +859 -0
  207. package/sdd/workflows/plant-seed.md +169 -0
  208. package/sdd/workflows/pr-branch.md +129 -0
  209. package/sdd/workflows/profile-user.md +450 -0
  210. package/sdd/workflows/progress.md +507 -0
  211. package/sdd/workflows/quick.md +757 -0
  212. package/sdd/workflows/remove-phase.md +155 -0
  213. package/sdd/workflows/remove-workspace.md +90 -0
  214. package/sdd/workflows/research-phase.md +82 -0
  215. package/sdd/workflows/resume-project.md +326 -0
  216. package/sdd/workflows/review.md +228 -0
  217. package/sdd/workflows/session-report.md +146 -0
  218. package/sdd/workflows/settings.md +283 -0
  219. package/sdd/workflows/ship.md +228 -0
  220. package/sdd/workflows/stats.md +60 -0
  221. package/sdd/workflows/transition.md +671 -0
  222. package/sdd/workflows/ui-phase.md +302 -0
  223. package/sdd/workflows/ui-review.md +165 -0
  224. package/sdd/workflows/update.md +323 -0
  225. package/sdd/workflows/validate-phase.md +174 -0
  226. package/sdd/workflows/verify-phase.md +254 -0
  227. package/sdd/workflows/verify-work.md +637 -0
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: sdd: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
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
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 `~/sdd-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 SDD sessions.
23
+
24
+ **Use cases:**
25
+ - Multi-repo orchestration: work on a subset of repos in parallel with isolated SDD 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 `/sdd:new-project` to initialize SDD.
34
+ </objective>
35
+
36
+ <execution_context>
37
+ @~/.claude/sdd/workflows/new-workspace.md
38
+ @~/.claude/sdd/references/ui-brand.md
39
+ </execution_context>
40
+
41
+ <process>
42
+ Execute the new-workspace workflow from @~/.claude/sdd/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: sdd:next
3
+ description: Automatically advance to the next logical step in the SDD workflow
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Grep
8
+ - Glob
9
+ - SlashCommand
10
+ ---
11
+ <objective>
12
+ Detect the current project state and automatically invoke the next logical SDD 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
+ @~/.claude/sdd/workflows/next.md
20
+ </execution_context>
21
+
22
+ <process>
23
+ Execute the next workflow from @~/.claude/sdd/workflows/next.md end-to-end.
24
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: sdd:note
3
+ description: Zero-friction idea capture. Append, list, or promote notes to todos.
4
+ argument-hint: "<text> | list | promote <N> [--global]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Glob
9
+ - Grep
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 AskUserQuestion, no Bash.
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/sdd/workflows/note.md
24
+ @~/.claude/sdd/references/ui-brand.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ $ARGUMENTS
29
+ </context>
30
+
31
+ <process>
32
+ Execute the note workflow from @~/.claude/sdd/workflows/note.md end-to-end.
33
+ Capture the note, list notes, or promote to todo — depending on arguments.
34
+ </process>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: sdd: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/sdd/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/sdd/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: sdd: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 `/sdd: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 `/sdd:add-phase` per gap.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/sdd/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/sdd/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,47 @@
1
+ ---
2
+ name: sdd: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>] [--reviews] [--text]"
5
+ agent: sdd-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 sdd-planner, verify with sdd-plan-checker, iterate until pass or max iterations, present results.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/sdd/workflows/plan-phase.md
26
+ @~/.claude/sdd/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
+ - `--reviews` — Replan incorporating cross-AI review feedback from REVIEWS.md (produced by `/sdd:review`)
39
+ - `--text` — Use plain-text numbered lists instead of TUI menus (required for `/rc` remote sessions)
40
+
41
+ Normalize phase input in step 2 before any directory lookups.
42
+ </context>
43
+
44
+ <process>
45
+ Execute the plan-phase workflow from @~/.claude/sdd/workflows/plan-phase.md end-to-end.
46
+ Preserve all workflow gates (validation, research, planning, verification loop, routing).
47
+ </process>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: sdd:plant-seed
3
+ description: Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone
4
+ argument-hint: "[idea summary]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - AskUserQuestion
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: /sdd:new-milestone (scans seeds and presents matches)
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/sdd/workflows/plant-seed.md
24
+ </execution_context>
25
+
26
+ <process>
27
+ Execute the plant-seed workflow from @~/.claude/sdd/workflows/plant-seed.md end-to-end.
28
+ </process>
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: sdd: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
+ allowed-tools:
6
+ - Bash
7
+ - Read
8
+ - AskUserQuestion
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 SDD 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
+ @~/.claude/sdd/workflows/pr-branch.md
21
+ </execution_context>
22
+
23
+ <process>
24
+ Execute the pr-branch workflow from @~/.claude/sdd/workflows/pr-branch.md end-to-end.
25
+ </process>
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: sdd:profile-user
3
+ description: Generate developer behavioral profile and create Claude-discoverable artifacts
4
+ argument-hint: "[--questionnaire] [--refresh]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - AskUserQuestion
12
+ - Task
13
+ ---
14
+
15
+ <objective>
16
+ Generate a developer behavioral profile from session analysis (or questionnaire) and produce artifacts (USER-PROFILE.md, /sdd:dev-preferences, CLAUDE.md section) that personalize Claude'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
+ @~/.claude/sdd/workflows/profile-user.md
23
+ @~/.claude/sdd/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, CLAUDE.md sections)
44
+ 9. Sequential artifact generation
45
+ 10. Summary with refresh diff (if applicable)
46
+ </process>
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: sdd: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/sdd/workflows/progress.md
19
+ </execution_context>
20
+
21
+ <process>
22
+ Execute the progress workflow from @~/.claude/sdd/workflows/progress.md end-to-end.
23
+ Preserve all routing logic (Routes A through F) and edge case handling.
24
+ </process>
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: sdd:quick
3
+ description: Execute a quick task with SDD guarantees (atomic commits, state tracking) but skip optional agents
4
+ argument-hint: "[--full] [--discuss] [--research]"
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 SDD guarantees (atomic commits, STATE.md tracking).
17
+
18
+ Quick mode is the same system with a shorter path:
19
+ - Spawns sdd-planner (quick mode) + sdd-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, discussion, plan-checker, verifier. Use when you know exactly what to do.
24
+
25
+ **`--discuss` flag:** Lightweight discussion phase before planning. Surfaces assumptions, clarifies gray areas, captures decisions in CONTEXT.md. Use when the task has ambiguity worth resolving upfront.
26
+
27
+ **`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
28
+
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.
32
+ </objective>
33
+
34
+ <execution_context>
35
+ @~/.claude/sdd/workflows/quick.md
36
+ </execution_context>
37
+
38
+ <context>
39
+ $ARGUMENTS
40
+
41
+ Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
42
+ </context>
43
+
44
+ <process>
45
+ Execute the quick workflow from @~/.claude/sdd/workflows/quick.md end-to-end.
46
+ Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
47
+ </process>
@@ -0,0 +1,123 @@
1
+ ---
2
+ description: Reapply local modifications after a SDD update
3
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
4
+ ---
5
+
6
+ <purpose>
7
+ After a SDD 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 — detect runtime config directory
18
+ if [ -d "$HOME/.config/opencode/sdd-local-patches" ]; then
19
+ PATCHES_DIR="$HOME/.config/opencode/sdd-local-patches"
20
+ elif [ -d "$HOME/.opencode/sdd-local-patches" ]; then
21
+ PATCHES_DIR="$HOME/.opencode/sdd-local-patches"
22
+ elif [ -d "$HOME/.gemini/sdd-local-patches" ]; then
23
+ PATCHES_DIR="$HOME/.gemini/sdd-local-patches"
24
+ else
25
+ PATCHES_DIR="$HOME/.claude/sdd-local-patches"
26
+ fi
27
+ # Local install fallback — check all runtime directories
28
+ if [ ! -d "$PATCHES_DIR" ]; then
29
+ for dir in .config/opencode .opencode .gemini .claude; do
30
+ if [ -d "./$dir/sdd-local-patches" ]; then
31
+ PATCHES_DIR="./$dir/sdd-local-patches"
32
+ break
33
+ fi
34
+ done
35
+ fi
36
+ ```
37
+
38
+ Read `backup-meta.json` from the patches directory.
39
+
40
+ **If no patches found:**
41
+ ```
42
+ No local patches found. Nothing to reapply.
43
+
44
+ Local patches are automatically saved when you run /sdd:update
45
+ after modifying any SDD workflow, command, or agent files.
46
+ ```
47
+ Exit.
48
+
49
+ ## Step 2: Show patch summary
50
+
51
+ ```
52
+ ## Local Patches to Reapply
53
+
54
+ **Backed up from:** v{from_version}
55
+ **Current version:** {read VERSION file}
56
+ **Files modified:** {count}
57
+
58
+ | # | File | Status |
59
+ |---|------|--------|
60
+ | 1 | {file_path} | Pending |
61
+ | 2 | {file_path} | Pending |
62
+ ```
63
+
64
+ ## Step 3: Merge each file
65
+
66
+ For each file in `backup-meta.json`:
67
+
68
+ 1. **Read the backed-up version** (user's modified copy from `sdd-local-patches/`)
69
+ 2. **Read the newly installed version** (current file after update)
70
+ 3. **Compare and merge:**
71
+
72
+ - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
73
+ - If the new file differs: identify the user's modifications and apply them to the new version
74
+
75
+ **Merge strategy:**
76
+ - Read both versions fully
77
+ - Identify sections the user added or modified (look for additions, not just differences from path replacement)
78
+ - Apply user's additions/modifications to the new version
79
+ - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
80
+
81
+ 4. **Write merged result** to the installed location
82
+ 5. **Report status:**
83
+ - `Merged` — user modifications applied cleanly
84
+ - `Skipped` — modification already in upstream
85
+ - `Conflict` — user chose resolution
86
+
87
+ ## Step 4: Update manifest
88
+
89
+ After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
90
+
91
+ ```bash
92
+ # The manifest will be regenerated on next /sdd:update
93
+ # For now, just note which files were modified
94
+ ```
95
+
96
+ ## Step 5: Cleanup option
97
+
98
+ Ask user:
99
+ - "Keep patch backups for reference?" → preserve `sdd-local-patches/`
100
+ - "Clean up patch backups?" → remove `sdd-local-patches/` directory
101
+
102
+ ## Step 6: Report
103
+
104
+ ```
105
+ ## Patches Reapplied
106
+
107
+ | # | File | Status |
108
+ |---|------|--------|
109
+ | 1 | {file_path} | ✓ Merged |
110
+ | 2 | {file_path} | ○ Skipped (already upstream) |
111
+ | 3 | {file_path} | ⚠ Conflict resolved |
112
+
113
+ {count} file(s) updated. Your local modifications are active again.
114
+ ```
115
+
116
+ </process>
117
+
118
+ <success_criteria>
119
+ - [ ] All backed-up patches processed
120
+ - [ ] User modifications merged into new version
121
+ - [ ] Conflicts resolved with user input
122
+ - [ ] Status reported for each file
123
+ </success_criteria>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: sdd: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/sdd/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/sdd/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,26 @@
1
+ ---
2
+ name: sdd:remove-workspace
3
+ description: Remove a SDD workspace and clean up worktrees
4
+ argument-hint: "<workspace-name>"
5
+ allowed-tools:
6
+ - Bash
7
+ - Read
8
+ - AskUserQuestion
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
+ @~/.claude/sdd/workflows/remove-workspace.md
21
+ @~/.claude/sdd/references/ui-brand.md
22
+ </execution_context>
23
+
24
+ <process>
25
+ Execute the remove-workspace workflow from @~/.claude/sdd/workflows/remove-workspace.md end-to-end.
26
+ </process>