@ktpartners/dgs-platform 2.6.2

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 (256) hide show
  1. package/LICENSE +38 -0
  2. package/README.md +851 -0
  3. package/agents/dgs-codebase-cross-analyzer.md +183 -0
  4. package/agents/dgs-codebase-mapper.md +782 -0
  5. package/agents/dgs-codebase-synthesizer.md +156 -0
  6. package/agents/dgs-debugger.md +1256 -0
  7. package/agents/dgs-executor.md +550 -0
  8. package/agents/dgs-integration-checker.md +481 -0
  9. package/agents/dgs-nyquist-auditor.md +178 -0
  10. package/agents/dgs-phase-researcher.md +563 -0
  11. package/agents/dgs-phase-verifier.md +450 -0
  12. package/agents/dgs-plan-checker.md +708 -0
  13. package/agents/dgs-planner.md +1324 -0
  14. package/agents/dgs-project-researcher.md +631 -0
  15. package/agents/dgs-research-synthesizer.md +249 -0
  16. package/agents/dgs-roadmapper.md +652 -0
  17. package/agents/dgs-verifier.md +607 -0
  18. package/bin/install.js +2073 -0
  19. package/commands/dgs/add-doc.md +45 -0
  20. package/commands/dgs/add-idea.md +38 -0
  21. package/commands/dgs/add-phase.md +43 -0
  22. package/commands/dgs/add-repo.md +54 -0
  23. package/commands/dgs/add-tests.md +41 -0
  24. package/commands/dgs/add-todo.md +47 -0
  25. package/commands/dgs/approve-spec.md +38 -0
  26. package/commands/dgs/audit-milestone.md +36 -0
  27. package/commands/dgs/audit-phase.md +37 -0
  28. package/commands/dgs/cancel-job.md +23 -0
  29. package/commands/dgs/capture-principle.md +143 -0
  30. package/commands/dgs/check-todos.md +45 -0
  31. package/commands/dgs/cleanup.md +18 -0
  32. package/commands/dgs/complete-milestone.md +136 -0
  33. package/commands/dgs/complete-project.md +70 -0
  34. package/commands/dgs/consolidate-ideas.md +50 -0
  35. package/commands/dgs/create-milestone-job.md +37 -0
  36. package/commands/dgs/debug.md +164 -0
  37. package/commands/dgs/develop-idea.md +53 -0
  38. package/commands/dgs/discuss-idea.md +41 -0
  39. package/commands/dgs/discuss-phase.md +83 -0
  40. package/commands/dgs/execute-phase.md +41 -0
  41. package/commands/dgs/fast.md +38 -0
  42. package/commands/dgs/find-related-ideas.md +43 -0
  43. package/commands/dgs/health.md +28 -0
  44. package/commands/dgs/help.md +22 -0
  45. package/commands/dgs/import-spec.md +36 -0
  46. package/commands/dgs/init-product.md +28 -0
  47. package/commands/dgs/insert-phase.md +32 -0
  48. package/commands/dgs/join-discord.md +18 -0
  49. package/commands/dgs/list-docs.md +40 -0
  50. package/commands/dgs/list-ideas.md +42 -0
  51. package/commands/dgs/list-jobs.md +22 -0
  52. package/commands/dgs/list-phase-assumptions.md +46 -0
  53. package/commands/dgs/list-projects.md +57 -0
  54. package/commands/dgs/list-specs.md +40 -0
  55. package/commands/dgs/map-codebase.md +92 -0
  56. package/commands/dgs/new-milestone.md +44 -0
  57. package/commands/dgs/new-project.md +42 -0
  58. package/commands/dgs/node-repair.md +26 -0
  59. package/commands/dgs/overlap-check.md +20 -0
  60. package/commands/dgs/pause-work.md +38 -0
  61. package/commands/dgs/plan-milestone-gaps.md +34 -0
  62. package/commands/dgs/plan-phase.md +44 -0
  63. package/commands/dgs/progress.md +24 -0
  64. package/commands/dgs/quick.md +41 -0
  65. package/commands/dgs/reactivate-project.md +70 -0
  66. package/commands/dgs/reapply-patches.md +110 -0
  67. package/commands/dgs/refine-spec.md +38 -0
  68. package/commands/dgs/reject-idea.md +43 -0
  69. package/commands/dgs/remove-doc.md +44 -0
  70. package/commands/dgs/remove-phase.md +31 -0
  71. package/commands/dgs/remove-repo.md +69 -0
  72. package/commands/dgs/research-idea.md +43 -0
  73. package/commands/dgs/research-phase.md +189 -0
  74. package/commands/dgs/restore-idea.md +45 -0
  75. package/commands/dgs/resume-work.md +40 -0
  76. package/commands/dgs/rollback-job.md +24 -0
  77. package/commands/dgs/run-job.md +35 -0
  78. package/commands/dgs/search.md +40 -0
  79. package/commands/dgs/set-profile.md +34 -0
  80. package/commands/dgs/settings.md +38 -0
  81. package/commands/dgs/switch-project.md +58 -0
  82. package/commands/dgs/undo-consolidation.md +42 -0
  83. package/commands/dgs/update-idea.md +44 -0
  84. package/commands/dgs/update.md +37 -0
  85. package/commands/dgs/validate-phase.md +35 -0
  86. package/commands/dgs/verify-work.md +39 -0
  87. package/commands/dgs/write-spec.md +49 -0
  88. package/deliver-great-systems/.planning/phases/09-backend-wiring-and-error-handling/09-01-SUMMARY.md +84 -0
  89. package/deliver-great-systems/.planning/phases/09-backend-wiring-and-error-handling/09-02-SUMMARY.md +86 -0
  90. package/deliver-great-systems/.planning/phases/10-v1-to-v2-migration-flow/10-01-SUMMARY.md +85 -0
  91. package/deliver-great-systems/bin/dgs-tools.cjs +1444 -0
  92. package/deliver-great-systems/bin/lib/auto-test.cjs +1365 -0
  93. package/deliver-great-systems/bin/lib/commands.cjs +570 -0
  94. package/deliver-great-systems/bin/lib/config.cjs +417 -0
  95. package/deliver-great-systems/bin/lib/conflict-agent.cjs +1063 -0
  96. package/deliver-great-systems/bin/lib/conflict-agent.test.cjs +554 -0
  97. package/deliver-great-systems/bin/lib/context.cjs +929 -0
  98. package/deliver-great-systems/bin/lib/context.test.cjs +693 -0
  99. package/deliver-great-systems/bin/lib/core.cjs +744 -0
  100. package/deliver-great-systems/bin/lib/core.test.cjs +822 -0
  101. package/deliver-great-systems/bin/lib/docs.cjs +919 -0
  102. package/deliver-great-systems/bin/lib/docs.test.cjs +211 -0
  103. package/deliver-great-systems/bin/lib/execution.cjs +705 -0
  104. package/deliver-great-systems/bin/lib/execution.test.cjs +1472 -0
  105. package/deliver-great-systems/bin/lib/frontmatter.cjs +324 -0
  106. package/deliver-great-systems/bin/lib/ideas.cjs +1406 -0
  107. package/deliver-great-systems/bin/lib/ideas.test.cjs +1417 -0
  108. package/deliver-great-systems/bin/lib/identity.cjs +125 -0
  109. package/deliver-great-systems/bin/lib/init.cjs +1114 -0
  110. package/deliver-great-systems/bin/lib/init.test.cjs +1271 -0
  111. package/deliver-great-systems/bin/lib/jobs.cjs +2015 -0
  112. package/deliver-great-systems/bin/lib/jobs.test.cjs +2619 -0
  113. package/deliver-great-systems/bin/lib/merge-conflicts.cjs +654 -0
  114. package/deliver-great-systems/bin/lib/merge-conflicts.test.cjs +370 -0
  115. package/deliver-great-systems/bin/lib/migration.cjs +352 -0
  116. package/deliver-great-systems/bin/lib/migration.test.cjs +582 -0
  117. package/deliver-great-systems/bin/lib/milestone.cjs +243 -0
  118. package/deliver-great-systems/bin/lib/overlap.cjs +437 -0
  119. package/deliver-great-systems/bin/lib/overlap.test.cjs +747 -0
  120. package/deliver-great-systems/bin/lib/path-audit.test.cjs +384 -0
  121. package/deliver-great-systems/bin/lib/paths.cjs +144 -0
  122. package/deliver-great-systems/bin/lib/paths.test.cjs +486 -0
  123. package/deliver-great-systems/bin/lib/phase.cjs +910 -0
  124. package/deliver-great-systems/bin/lib/projects.cjs +691 -0
  125. package/deliver-great-systems/bin/lib/projects.test.cjs +871 -0
  126. package/deliver-great-systems/bin/lib/repos.cjs +1432 -0
  127. package/deliver-great-systems/bin/lib/repos.test.cjs +1882 -0
  128. package/deliver-great-systems/bin/lib/roadmap.cjs +305 -0
  129. package/deliver-great-systems/bin/lib/search.cjs +570 -0
  130. package/deliver-great-systems/bin/lib/specs.cjs +1303 -0
  131. package/deliver-great-systems/bin/lib/state.cjs +893 -0
  132. package/deliver-great-systems/bin/lib/template.cjs +228 -0
  133. package/deliver-great-systems/bin/lib/test-helpers.cjs +291 -0
  134. package/deliver-great-systems/bin/lib/verify.cjs +796 -0
  135. package/deliver-great-systems/references/checkpoints.md +776 -0
  136. package/deliver-great-systems/references/conflict-resolution.md +66 -0
  137. package/deliver-great-systems/references/context-tiers.md +166 -0
  138. package/deliver-great-systems/references/continuation-format.md +249 -0
  139. package/deliver-great-systems/references/decimal-phase-calculation.md +67 -0
  140. package/deliver-great-systems/references/git-integration.md +250 -0
  141. package/deliver-great-systems/references/git-planning-commit.md +40 -0
  142. package/deliver-great-systems/references/model-profile-resolution.md +36 -0
  143. package/deliver-great-systems/references/model-profiles.md +95 -0
  144. package/deliver-great-systems/references/phase-argument-parsing.md +61 -0
  145. package/deliver-great-systems/references/planning-config.md +224 -0
  146. package/deliver-great-systems/references/questioning.md +162 -0
  147. package/deliver-great-systems/references/spec-review-loop.md +177 -0
  148. package/deliver-great-systems/references/tdd.md +265 -0
  149. package/deliver-great-systems/references/ui-brand.md +160 -0
  150. package/deliver-great-systems/references/verification-patterns.md +612 -0
  151. package/deliver-great-systems/templates/DEBUG.md +166 -0
  152. package/deliver-great-systems/templates/UAT.md +251 -0
  153. package/deliver-great-systems/templates/VALIDATION.md +95 -0
  154. package/deliver-great-systems/templates/claude-md.md +74 -0
  155. package/deliver-great-systems/templates/codebase/architecture.md +257 -0
  156. package/deliver-great-systems/templates/codebase/concerns.md +312 -0
  157. package/deliver-great-systems/templates/codebase/conventions.md +309 -0
  158. package/deliver-great-systems/templates/codebase/integrations.md +282 -0
  159. package/deliver-great-systems/templates/codebase/stack.md +188 -0
  160. package/deliver-great-systems/templates/codebase/structure.md +287 -0
  161. package/deliver-great-systems/templates/codebase/testing.md +482 -0
  162. package/deliver-great-systems/templates/config.json +38 -0
  163. package/deliver-great-systems/templates/context.md +354 -0
  164. package/deliver-great-systems/templates/continue-here.md +80 -0
  165. package/deliver-great-systems/templates/debug-subagent-prompt.md +93 -0
  166. package/deliver-great-systems/templates/discovery.md +148 -0
  167. package/deliver-great-systems/templates/milestone-archive.md +125 -0
  168. package/deliver-great-systems/templates/milestone.md +117 -0
  169. package/deliver-great-systems/templates/phase-prompt.md +615 -0
  170. package/deliver-great-systems/templates/planner-subagent-prompt.md +119 -0
  171. package/deliver-great-systems/templates/project.md +186 -0
  172. package/deliver-great-systems/templates/requirements.md +233 -0
  173. package/deliver-great-systems/templates/research-project/ARCHITECTURE.md +206 -0
  174. package/deliver-great-systems/templates/research-project/FEATURES.md +149 -0
  175. package/deliver-great-systems/templates/research-project/PITFALLS.md +202 -0
  176. package/deliver-great-systems/templates/research-project/STACK.md +122 -0
  177. package/deliver-great-systems/templates/research-project/SUMMARY.md +172 -0
  178. package/deliver-great-systems/templates/research.md +554 -0
  179. package/deliver-great-systems/templates/retrospective.md +54 -0
  180. package/deliver-great-systems/templates/roadmap.md +204 -0
  181. package/deliver-great-systems/templates/state.md +178 -0
  182. package/deliver-great-systems/templates/summary-complex.md +59 -0
  183. package/deliver-great-systems/templates/summary-minimal.md +41 -0
  184. package/deliver-great-systems/templates/summary-standard.md +48 -0
  185. package/deliver-great-systems/templates/summary.md +253 -0
  186. package/deliver-great-systems/templates/user-setup.md +313 -0
  187. package/deliver-great-systems/templates/verification-report.md +324 -0
  188. package/deliver-great-systems/workflows/add-doc.md +151 -0
  189. package/deliver-great-systems/workflows/add-idea.md +96 -0
  190. package/deliver-great-systems/workflows/add-phase.md +120 -0
  191. package/deliver-great-systems/workflows/add-tests.md +359 -0
  192. package/deliver-great-systems/workflows/add-todo.md +162 -0
  193. package/deliver-great-systems/workflows/approve-spec.md +194 -0
  194. package/deliver-great-systems/workflows/audit-milestone.md +364 -0
  195. package/deliver-great-systems/workflows/audit-phase.md +462 -0
  196. package/deliver-great-systems/workflows/cancel-job.md +108 -0
  197. package/deliver-great-systems/workflows/check-todos.md +181 -0
  198. package/deliver-great-systems/workflows/cleanup.md +247 -0
  199. package/deliver-great-systems/workflows/codereview.md +526 -0
  200. package/deliver-great-systems/workflows/complete-milestone.md +1298 -0
  201. package/deliver-great-systems/workflows/consolidate-ideas.md +365 -0
  202. package/deliver-great-systems/workflows/create-milestone-job.md +177 -0
  203. package/deliver-great-systems/workflows/develop-idea.md +544 -0
  204. package/deliver-great-systems/workflows/diagnose-issues.md +231 -0
  205. package/deliver-great-systems/workflows/discovery-phase.md +301 -0
  206. package/deliver-great-systems/workflows/discuss-idea.md +263 -0
  207. package/deliver-great-systems/workflows/discuss-phase.md +733 -0
  208. package/deliver-great-systems/workflows/execute-phase.md +571 -0
  209. package/deliver-great-systems/workflows/execute-plan.md +592 -0
  210. package/deliver-great-systems/workflows/find-related-ideas.md +271 -0
  211. package/deliver-great-systems/workflows/health.md +173 -0
  212. package/deliver-great-systems/workflows/help.md +997 -0
  213. package/deliver-great-systems/workflows/import-spec.md +381 -0
  214. package/deliver-great-systems/workflows/init-product.md +767 -0
  215. package/deliver-great-systems/workflows/insert-phase.md +138 -0
  216. package/deliver-great-systems/workflows/list-docs.md +119 -0
  217. package/deliver-great-systems/workflows/list-ideas.md +154 -0
  218. package/deliver-great-systems/workflows/list-jobs.md +89 -0
  219. package/deliver-great-systems/workflows/list-phase-assumptions.md +192 -0
  220. package/deliver-great-systems/workflows/list-specs.md +101 -0
  221. package/deliver-great-systems/workflows/map-codebase.md +621 -0
  222. package/deliver-great-systems/workflows/new-milestone.md +591 -0
  223. package/deliver-great-systems/workflows/new-project.md +1113 -0
  224. package/deliver-great-systems/workflows/node-repair.md +94 -0
  225. package/deliver-great-systems/workflows/overlap-check.md +86 -0
  226. package/deliver-great-systems/workflows/pause-work.md +134 -0
  227. package/deliver-great-systems/workflows/plan-milestone-gaps.md +306 -0
  228. package/deliver-great-systems/workflows/plan-phase.md +698 -0
  229. package/deliver-great-systems/workflows/progress.md +386 -0
  230. package/deliver-great-systems/workflows/quick.md +845 -0
  231. package/deliver-great-systems/workflows/refine-spec.md +275 -0
  232. package/deliver-great-systems/workflows/reject-idea.md +109 -0
  233. package/deliver-great-systems/workflows/remove-doc.md +117 -0
  234. package/deliver-great-systems/workflows/remove-phase.md +163 -0
  235. package/deliver-great-systems/workflows/research-idea.md +325 -0
  236. package/deliver-great-systems/workflows/research-phase.md +81 -0
  237. package/deliver-great-systems/workflows/restore-idea.md +101 -0
  238. package/deliver-great-systems/workflows/resume-project.md +311 -0
  239. package/deliver-great-systems/workflows/rollback-job.md +130 -0
  240. package/deliver-great-systems/workflows/run-job.md +498 -0
  241. package/deliver-great-systems/workflows/search.md +130 -0
  242. package/deliver-great-systems/workflows/set-profile.md +83 -0
  243. package/deliver-great-systems/workflows/settings.md +470 -0
  244. package/deliver-great-systems/workflows/transition.md +563 -0
  245. package/deliver-great-systems/workflows/undo-consolidation.md +155 -0
  246. package/deliver-great-systems/workflows/update-idea.md +157 -0
  247. package/deliver-great-systems/workflows/update.md +242 -0
  248. package/deliver-great-systems/workflows/validate-phase.md +177 -0
  249. package/deliver-great-systems/workflows/verify-phase.md +253 -0
  250. package/deliver-great-systems/workflows/verify-work.md +671 -0
  251. package/deliver-great-systems/workflows/write-spec.md +450 -0
  252. package/hooks/dist/dgs-check-update.js +62 -0
  253. package/hooks/dist/dgs-context-monitor.js +141 -0
  254. package/hooks/dist/dgs-statusline.js +115 -0
  255. package/package.json +60 -0
  256. package/scripts/build-hooks.js +43 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: dgs:new-project
3
+ description: Initialize a new project with deep context gathering and PROJECT.md
4
+ argument-hint: "[--auto]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Task
10
+ - AskUserQuestion
11
+ ---
12
+ <context>
13
+ **Flags:**
14
+ - `--auto` — Automatic mode. After config questions, runs research → requirements → roadmap without further interaction. Expects idea document via @ reference.
15
+ </context>
16
+
17
+ <objective>
18
+ Initialize a new project through unified flow: questioning → research (optional) → requirements → roadmap.
19
+
20
+ **Creates:**
21
+ - `.planning/PROJECT.md` — project context
22
+ - `.planning/config.json` — workflow preferences
23
+ - `.planning/research/` — domain research (optional)
24
+ - `.planning/REQUIREMENTS.md` — scoped requirements
25
+ - `.planning/ROADMAP.md` — phase structure
26
+ - `.planning/STATE.md` — project memory
27
+
28
+ **After this command:** Run `/dgs:plan-phase 1` to start execution.
29
+ </objective>
30
+
31
+ <execution_context>
32
+ @~/.claude/deliver-great-systems/workflows/new-project.md
33
+ @~/.claude/deliver-great-systems/references/questioning.md
34
+ @~/.claude/deliver-great-systems/references/ui-brand.md
35
+ @~/.claude/deliver-great-systems/templates/project.md
36
+ @~/.claude/deliver-great-systems/templates/requirements.md
37
+ </execution_context>
38
+
39
+ <process>
40
+ Execute the new-project workflow from @~/.claude/deliver-great-systems/workflows/new-project.md end-to-end.
41
+ Preserve all workflow gates (validation, approvals, commits, routing).
42
+ </process>
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: dgs:node-repair
3
+ description: Autonomous repair operator for failed task verification during plan execution
4
+ argument-hint: ""
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ ---
13
+ <objective>
14
+ Repair a failed task during plan execution. Diagnoses the failure and applies one of four strategies: RETRY, DECOMPOSE, PRUNE, or ESCALATE.
15
+
16
+ Invoked automatically by execute-plan when a task fails its done-criteria.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @~/.claude/deliver-great-systems/workflows/node-repair.md
21
+ </execution_context>
22
+
23
+ <process>
24
+ Execute @~/.claude/deliver-great-systems/workflows/node-repair.md.
25
+ Preserve all repair strategy gates and logging requirements.
26
+ </process>
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: dgs:overlap-check
3
+ description: Show which repos are touched by multiple active projects
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ ---
8
+ <objective>
9
+ Show cross-project repo and file overlaps. Informational only — never blocks work.
10
+
11
+ Displays which repos are touched by multiple active projects, file-level conflicts for high-severity overlaps, and any warnings (ghost projects, etc.).
12
+ </objective>
13
+
14
+ <execution_context>
15
+ @~/.claude/deliver-great-systems/workflows/overlap-check.md
16
+ </execution_context>
17
+
18
+ <process>
19
+ Execute the overlap-check workflow from @~/.claude/deliver-great-systems/workflows/overlap-check.md end-to-end.
20
+ </process>
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: dgs: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/deliver-great-systems/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/deliver-great-systems/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: dgs: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 `/dgs: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 `/dgs:add-phase` per gap.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/deliver-great-systems/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/deliver-great-systems/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,44 @@
1
+ ---
2
+ name: dgs:plan-phase
3
+ description: Create detailed phase plan (PLAN.md) with verification loop
4
+ argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify]"
5
+ agent: dgs-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 dgs-planner, verify with dgs-plan-checker, iterate until pass or max iterations, present results.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/deliver-great-systems/workflows/plan-phase.md
26
+ @~/.claude/deliver-great-systems/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
+
38
+ Normalize phase input in step 2 before any directory lookups.
39
+ </context>
40
+
41
+ <process>
42
+ Execute the plan-phase workflow from @~/.claude/deliver-great-systems/workflows/plan-phase.md end-to-end.
43
+ Preserve all workflow gates (validation, research, planning, verification loop, routing).
44
+ </process>
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: dgs: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/deliver-great-systems/workflows/progress.md
19
+ </execution_context>
20
+
21
+ <process>
22
+ Execute the progress workflow from @~/.claude/deliver-great-systems/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: dgs:quick
3
+ description: Execute a quick task with DGS 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 DGS guarantees (atomic commits, STATE.md tracking).
17
+
18
+ Quick mode is the same system with a shorter path:
19
+ - Spawns dgs-planner (quick mode) + dgs-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/deliver-great-systems/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/deliver-great-systems/workflows/quick.md end-to-end.
40
+ Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
41
+ </process>
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: dgs:reactivate-project
3
+ description: Reactivate a completed project
4
+ argument-hint: "[--slug name] [--set-current]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - AskUserQuestion
9
+ ---
10
+ <objective>
11
+ Reactivate a completed project. Restores it to "In progress" status and optionally sets it as the current active project.
12
+
13
+ Requires confirmation before acting. Shows project status first so the user can verify before reactivating.
14
+ </objective>
15
+
16
+ <process>
17
+
18
+ ## 1. Show Current Status
19
+
20
+ ```bash
21
+ LIST=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs projects list --raw)
22
+ ```
23
+
24
+ Parse JSON. Identify the target project:
25
+ - If `$ARGUMENTS` contains `--slug <name>`, use that slug.
26
+ - Otherwise, ask the user to specify which completed project to reactivate (there is no "current completed" default).
27
+
28
+ If no target project can be identified, display "No project specified. Use `--slug <name>` to specify which completed project to reactivate." and exit.
29
+
30
+ Display the target project's current status (name, completed date).
31
+
32
+ ## 2. Confirm Reactivation
33
+
34
+ Use AskUserQuestion:
35
+ ```
36
+ Reactivate project "{name}"? This will:
37
+ - Change status back to "In progress"
38
+ - Remove completion date
39
+ - Optionally set as current project
40
+
41
+ Type "yes" to confirm or "no" to cancel.
42
+ ```
43
+
44
+ If user does not confirm, display "Cancelled." and exit.
45
+
46
+ ## 3. Reactivate Project
47
+
48
+ ```bash
49
+ RESULT=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs projects reactivate --slug <slug> [--set-current] --raw)
50
+ ```
51
+
52
+ Where `--set-current` is included if the user wants to resume working on the project immediately.
53
+
54
+ Parse JSON response.
55
+
56
+ **If `reactivated: true`:**
57
+ ```
58
+ DGS > PROJECT REACTIVATED
59
+
60
+ Project "{slug}" has been reactivated.
61
+ ```
62
+
63
+ If `--set-current` was used, add: "It is now the active project."
64
+
65
+ Display remaining active project count.
66
+
67
+ **If error:**
68
+ Display the error message from the response.
69
+
70
+ </process>
@@ -0,0 +1,110 @@
1
+ ---
2
+ description: Reapply local modifications after a DGS update
3
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
4
+ ---
5
+
6
+ <purpose>
7
+ After a DGS 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/dgs-local-patches
19
+ # Local install fallback
20
+ if [ ! -d "$PATCHES_DIR" ]; then
21
+ PATCHES_DIR=./.claude/dgs-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 /dgs:update
32
+ after modifying any DGS 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 `dgs-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 /dgs: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 `dgs-local-patches/`
87
+ - "Clean up patch backups?" → remove `dgs-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,38 @@
1
+ ---
2
+ name: dgs:refine-spec
3
+ description: Refine a spec through a conversational editing session
4
+ argument-hint: <spec-slug> [--section <N>]
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Grep
10
+ - Glob
11
+ - AskUserQuestion
12
+ ---
13
+
14
+ <objective>
15
+ Refine a spec through a structured conversational editing session. Supports section targeting with --section, increments version on save, appends a Refinement Log entry, and warns when refining a final-status spec (which moves it back to draft).
16
+ </objective>
17
+
18
+ <execution_context>
19
+ @~/.claude/deliver-great-systems/workflows/refine-spec.md
20
+ </execution_context>
21
+
22
+ <context>
23
+ Arguments: $ARGUMENTS (spec slug - required; optional --section flag)
24
+ </context>
25
+
26
+ <process>
27
+ **Follow the refine-spec workflow** from `@~/.claude/deliver-great-systems/workflows/refine-spec.md`.
28
+
29
+ The workflow handles:
30
+ 1. Argument parsing (extract spec-slug, optional --section)
31
+ 2. Spec lookup and content loading
32
+ 3. Final-status warning (asks before demoting to draft)
33
+ 4. Project context loading for informed refinement
34
+ 5. Section targeting (if --section provided)
35
+ 6. Conversational refinement dialogue
36
+ 7. Atomic save (version increment, body update, format-preserving write)
37
+ 8. Refinement Log entry and git commit
38
+ </process>
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: dgs:reject-idea
3
+ description: Reject an idea, moving it from pending to rejected
4
+ argument-hint: <idea-id>
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <objective>
13
+ Reject a pending idea, moving it from pending to rejected state.
14
+
15
+ Routes to the reject-idea workflow which handles:
16
+ - Finding and displaying the idea
17
+ - Confirmation before rejection (always required, no --force bypass)
18
+ - Optional rejection reason prompt
19
+ - State transition via git mv
20
+ - Auto-commit to git
21
+ </objective>
22
+
23
+ <execution_context>
24
+ @~/.claude/deliver-great-systems/workflows/reject-idea.md
25
+ </execution_context>
26
+
27
+ <context>
28
+ Arguments: $ARGUMENTS (idea ID)
29
+
30
+ State is resolved in-workflow via dgs-tools.cjs ideas list.
31
+ </context>
32
+
33
+ <process>
34
+ **Follow the reject-idea workflow** from `@~/.claude/deliver-great-systems/workflows/reject-idea.md`.
35
+
36
+ The workflow handles all logic including:
37
+ 1. Argument parsing (idea ID extraction)
38
+ 2. Finding and displaying the idea to confirm identity
39
+ 3. Confirmation prompt (always required)
40
+ 4. Optional rejection reason prompt
41
+ 5. State transition from pending/ to rejected/ via git mv
42
+ 6. Auto-commit to git
43
+ </process>
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: dgs:remove-doc
3
+ description: Remove a document or move it between scopes
4
+ argument-hint: <slug> --scope <product|idea|spec> [--scope-id <id>] [--move --to-scope <scope> --to-id <id>]
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <objective>
13
+ Remove a document from its scope or move it between scopes. Removal requires mandatory confirmation (no --force bypass). Move mode relocates a document with its sidecars between scopes.
14
+
15
+ Routes to the remove-doc workflow which handles:
16
+ - Argument parsing (slug, scope, optional move flags)
17
+ - Document existence verification
18
+ - Confirmation prompt for removal (always required)
19
+ - Document removal with sidecar cleanup
20
+ - Document move between scopes via --move flag
21
+ - Git commit for all changes
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/deliver-great-systems/workflows/remove-doc.md
26
+ </execution_context>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS (slug, scope, and optional move flags)
30
+
31
+ Document operations are handled in-workflow via `dgs-tools.cjs docs` subcommands.
32
+ </context>
33
+
34
+ <process>
35
+ **Follow the remove-doc workflow** from `@~/.claude/deliver-great-systems/workflows/remove-doc.md`.
36
+
37
+ The workflow handles all logic including:
38
+ 1. Argument parsing (slug, scope, optional --move with --to-scope and --to-id)
39
+ 2. Document existence verification
40
+ 3. Mandatory confirmation for removal (no --force bypass)
41
+ 4. Removal via dgs-tools with sidecar cleanup and INDEX.md update
42
+ 5. Move via dgs-tools with source and target INDEX.md updates
43
+ 6. Git commit for all affected files
44
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: dgs: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/deliver-great-systems/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/deliver-great-systems/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,69 @@
1
+ ---
2
+ name: dgs:remove-repo
3
+ description: Unregister a repository from REPOS.md
4
+ argument-hint: "<repo-name>"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - AskUserQuestion
9
+ ---
10
+ <objective>
11
+ Unregister a repository from REPOS.md. Includes safety checks — if active projects reference the repo, shows a warning and requires explicit confirmation before force-removing.
12
+ </objective>
13
+
14
+ <process>
15
+
16
+ ## 1. Parse Arguments
17
+
18
+ Extract repo name from `$ARGUMENTS`.
19
+
20
+ If no name provided, list repos and ask user to pick:
21
+ ```bash
22
+ LIST=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs projects list --raw)
23
+ ```
24
+ Parse the response to show available repos, then use AskUserQuestion to ask which repo to remove.
25
+
26
+ ## 2. Attempt Removal
27
+
28
+ ```bash
29
+ RESULT=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs repos remove "$REPO_NAME" --raw)
30
+ ```
31
+
32
+ Parse JSON response.
33
+
34
+ **If `removed: true`:**
35
+ ```
36
+ DGS > REPO REMOVED
37
+
38
+ Repository "{repo}" has been unregistered from REPOS.md.
39
+ ```
40
+
41
+ **If `removed: false` (active projects reference this repo):**
42
+ ```
43
+ DGS > REPO REMOVAL BLOCKED
44
+
45
+ Repository "{repo}" is referenced by active projects:
46
+ - {project1}
47
+ - {project2}
48
+
49
+ Removing it may break these projects' repo resolution.
50
+ ```
51
+
52
+ Use AskUserQuestion:
53
+ ```
54
+ Force remove "{repo}" despite active project references? Type "yes" to force remove or "no" to cancel.
55
+ ```
56
+
57
+ If user confirms, run force removal:
58
+ ```bash
59
+ RESULT=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs repos remove "$REPO_NAME" --force --raw)
60
+ ```
61
+
62
+ Display result.
63
+
64
+ If user declines, display "Cancelled. Repo was not removed." and exit.
65
+
66
+ **If error:**
67
+ Display the error message from the response.
68
+
69
+ </process>