@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,38 @@
1
+ ---
2
+ name: dgs:fast
3
+ description: Make a trivial edit with a single atomic commit — no subagents, no ceremony
4
+ argument-hint: "<description> [--dry-run]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Glob
10
+ - Grep
11
+ - Bash
12
+ - AskUserQuestion
13
+ ---
14
+ <objective>
15
+ Make a trivial edit and commit it atomically. Fast mode is the lightest DGS command.
16
+
17
+ - No subagents — the orchestrator makes edits directly
18
+ - Infers conventional commit prefix (fix:/feat:/chore:/docs:/refactor:/style:/test:)
19
+ - Updates STATE.md quick tasks table (shared counter with /dgs:quick)
20
+ - Warns if scope exceeds 3 files or 30 lines (suggests /dgs:quick instead)
21
+
22
+ **`--dry-run` flag:** Shows proposed changes as a diff, then asks "Apply these changes?" before committing.
23
+ </objective>
24
+
25
+ <execution_context>
26
+ @~/.claude/deliver-great-systems/workflows/quick.md
27
+ </execution_context>
28
+
29
+ <context>
30
+ --fast $ARGUMENTS
31
+
32
+ Context files are resolved inside the workflow (`init quick`) and delegated inline.
33
+ </context>
34
+
35
+ <process>
36
+ Execute the quick workflow from @~/.claude/deliver-great-systems/workflows/quick.md end-to-end.
37
+ The --fast flag triggers the fast path which bypasses planner/executor spawning.
38
+ </process>
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: dgs:find-related-ideas
3
+ description: Find pending ideas related to a selected idea with multi-signal scoring
4
+ argument-hint: "<idea-id> [--threshold high|medium|low]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Grep
10
+ - Glob
11
+ - AskUserQuestion
12
+ ---
13
+
14
+ <objective>
15
+ Find pending ideas related to a selected idea using multi-signal scoring (tag overlap, semantic similarity, implementation overlap), display results grouped by match level, and optionally flow into consolidation.
16
+
17
+ **Two modes:**
18
+ - **With idea ID** (`/dgs:find-related-ideas 42`): Scores all other pending ideas against idea #42
19
+ - **Without idea ID** (`/dgs:find-related-ideas`): Lists pending ideas and prompts for anchor selection
20
+
21
+ The workflow uses the CLI's tag overlap scoring as a first pass, then applies AI-powered semantic similarity and implementation overlap analysis. Results are displayed grouped by HIGH/MEDIUM/LOW with per-idea reasoning. The user can then select ideas from the results and flow directly into consolidation.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/deliver-great-systems/workflows/find-related-ideas.md
26
+ </execution_context>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS (idea ID and optional --threshold flag)
30
+ </context>
31
+
32
+ <process>
33
+ **Follow the find-related-ideas workflow** from `@~/.claude/deliver-great-systems/workflows/find-related-ideas.md`.
34
+
35
+ The workflow handles all logic including:
36
+ 1. Argument parsing (idea ID, --threshold flag)
37
+ 2. Getting tag overlap scores from CLI
38
+ 3. Loading project context files (codebase/, docs/product/)
39
+ 4. AI scoring for semantic similarity and implementation overlap
40
+ 5. Applying threshold filter and grouping by match level
41
+ 6. Displaying results grouped by HIGH/MEDIUM/LOW with per-idea reasoning
42
+ 7. Offering to flow into consolidation with selected ideas
43
+ </process>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: dgs:health
3
+ description: Validate DGS project health including planning directory and jobs
4
+ argument-hint: "[--repair] [--jobs]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
10
+ ---
11
+ <objective>
12
+ Validate `.planning/` directory integrity and jobs directory structure. Reports actionable issues for both planning health and job management health.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @~/.claude/deliver-great-systems/workflows/health.md
17
+ </execution_context>
18
+
19
+ <process>
20
+ Execute the health workflow from @~/.claude/deliver-great-systems/workflows/health.md end-to-end.
21
+ Parse --repair flag from arguments and pass to workflow.
22
+
23
+ Additionally, validate jobs directory structure:
24
+ 1. Run `node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs jobs health` and parse JSON result.
25
+ 2. If `healthy: true`: Display `Jobs directory healthy. {job_count} job(s) across {directories.length} directories.` with directory listing.
26
+ 3. If `healthy: false`: Display issues list with suggestions for each.
27
+ 4. Report any auto-created directories.
28
+ </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: dgs:help
3
+ description: Show available DGS commands and usage guide
4
+ ---
5
+ <objective>
6
+ Display the complete DGS command reference.
7
+
8
+ Output ONLY the reference content below. Do NOT add:
9
+ - Project-specific analysis
10
+ - Git status or file context
11
+ - Next-step suggestions
12
+ - Any commentary beyond the reference
13
+ </objective>
14
+
15
+ <execution_context>
16
+ @~/.claude/deliver-great-systems/workflows/help.md
17
+ </execution_context>
18
+
19
+ <process>
20
+ Output the complete DGS command reference from @~/.claude/deliver-great-systems/workflows/help.md.
21
+ Display the reference content directly — no additions or modifications.
22
+ </process>
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: dgs:import-spec
3
+ description: Import an external document into the DGS spec pipeline as a structured 9-section PRD
4
+ argument-hint: <file-path>
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Grep
10
+ - Glob
11
+ - AskUserQuestion
12
+ ---
13
+
14
+ <objective>
15
+ Import an external document and convert it into a structured 9-section PRD format using AI-powered restructuring. The command reads the source file, transforms its content into the standard PRD sections (preserving every detail), and presents the result for user review with revision support.
16
+
17
+ This is a conversion pipeline -- the source document's structure is dissolved and its content is redistributed into the 9 standard PRD sections. No content is lost; the document is restructured, not summarised.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/deliver-great-systems/workflows/import-spec.md
22
+ </execution_context>
23
+
24
+ <context>
25
+ Arguments: $ARGUMENTS (file path to import)
26
+ </context>
27
+
28
+ <process>
29
+ **Follow the import-spec workflow** from `@~/.claude/deliver-great-systems/workflows/import-spec.md`.
30
+
31
+ The workflow handles:
32
+ 1. Argument parsing (extract file path)
33
+ 2. File reading with error handling (not found, cannot read)
34
+ 3. AI conversion to 9-section PRD with full content preservation
35
+ 4. Review loop with Save, Revise (free-text feedback, unlimited rounds), and Cancel options
36
+ </process>
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: dgs:init-product
3
+ description: Initialize a v2 multi-project product folder
4
+ argument-hint: "[product-name]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
10
+ ---
11
+ <objective>
12
+ Initialize a v2 product folder with repo discovery, REPOS.md, PROJECTS.md, and config setup. First step in the v2 multi-project workflow.
13
+
14
+ Handles three cases: fresh install (creates everything), v1 detected (graceful message), and already initialized (helpful guidance).
15
+ </objective>
16
+
17
+ <execution_context>
18
+ @~/.claude/deliver-great-systems/workflows/init-product.md
19
+ </execution_context>
20
+
21
+ <context>
22
+ $ARGUMENTS (optional product name)
23
+ </context>
24
+
25
+ <process>
26
+ Execute the init-product workflow from @~/.claude/deliver-great-systems/workflows/init-product.md end-to-end.
27
+ Preserve all workflow gates (v1 detection, git init, repo display, next-step routing).
28
+ </process>
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: dgs:insert-phase
3
+ description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
4
+ argument-hint: <after> <description>
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ ---
10
+
11
+ <objective>
12
+ Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
13
+
14
+ Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
15
+
16
+ Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @~/.claude/deliver-great-systems/workflows/insert-phase.md
21
+ </execution_context>
22
+
23
+ <context>
24
+ Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
25
+
26
+ Roadmap and state are resolved in-workflow via `init phase-op` and targeted tool calls.
27
+ </context>
28
+
29
+ <process>
30
+ Execute the insert-phase workflow from @~/.claude/deliver-great-systems/workflows/insert-phase.md end-to-end.
31
+ Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
32
+ </process>
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: dgs:join-discord
3
+ description: Join the DGS Discord community
4
+ ---
5
+
6
+ <objective>
7
+ Display the Discord invite link for the DGS community server.
8
+ </objective>
9
+
10
+ <output>
11
+ # Join the DGS Discord
12
+
13
+ Connect with other DGS users, get help, share what you're building, and stay updated.
14
+
15
+ **Invite link:** https://discord.gg/5JJgD5svVS
16
+
17
+ Click the link or paste it into your browser to join.
18
+ </output>
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: dgs:list-docs
3
+ description: List all supporting documents grouped by scope (product, ideas, specs)
4
+ argument-hint: [--scope <product|idea:id|spec:id>]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ <objective>
11
+ List all supporting documents grouped by scope (product first, then ideas, then specs) with metadata tables and optional --scope filtering.
12
+
13
+ Routes to the list-docs workflow which handles:
14
+ - Argument parsing for --scope filter
15
+ - Fetching document inventory via dgs-tools CLI
16
+ - Grouped display with scope headers and metadata tables
17
+ - Empty-state messaging
18
+ - Total count summary
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/deliver-great-systems/workflows/list-docs.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Arguments: $ARGUMENTS (optional --scope filter)
27
+
28
+ Document data is fetched in-workflow via `dgs-tools.cjs docs list`.
29
+ </context>
30
+
31
+ <process>
32
+ **Follow the list-docs workflow** from `@~/.claude/deliver-great-systems/workflows/list-docs.md`.
33
+
34
+ The workflow handles all logic including:
35
+ 1. Parsing --scope filter flag from arguments
36
+ 2. Fetching documents via dgs-tools with scope grouping
37
+ 3. Rendering grouped output with scope headers and metadata tables
38
+ 4. Empty-state hint when no documents exist
39
+ 5. Total count summary line
40
+ </process>
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: dgs:list-ideas
3
+ description: List all ideas grouped by state with optional filters
4
+ argument-hint: [--tag TAG] [--pending|--done|--rejected]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ <objective>
11
+ List all ideas grouped by state (Pending, Done, Rejected) with tag and state filtering, orphan detection for done ideas, and a helpful empty-state message.
12
+
13
+ Routes to the list-ideas workflow which handles:
14
+ - Argument parsing (--tag, --pending/--done/--rejected)
15
+ - Fetching ideas via dgs-tools.cjs with orphan check
16
+ - Grouped display with state headers and idea tables
17
+ - Inline orphan markers on done ideas with no spec reference
18
+ - Summary line with total counts
19
+ - Empty-state hint when no ideas exist
20
+ </objective>
21
+
22
+ <execution_context>
23
+ @~/.claude/deliver-great-systems/workflows/list-ideas.md
24
+ </execution_context>
25
+
26
+ <context>
27
+ Arguments: $ARGUMENTS (optional filter flags)
28
+
29
+ Idea data is fetched in-workflow via `dgs-tools.cjs ideas list`.
30
+ </context>
31
+
32
+ <process>
33
+ **Follow the list-ideas workflow** from `@~/.claude/deliver-great-systems/workflows/list-ideas.md`.
34
+
35
+ The workflow handles all logic including:
36
+ 1. Parsing filter flags from arguments
37
+ 2. Fetching ideas with orphan detection
38
+ 3. Formatting grouped output with state headers
39
+ 4. Applying inline orphan markers to done ideas
40
+ 5. Displaying summary counts
41
+ 6. Showing helpful hint for empty state
42
+ </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: dgs:list-jobs
3
+ description: List all milestone jobs with status and progress
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ ---
8
+ <objective>
9
+ Display all milestone jobs grouped by status (In Progress, Pending, Completed) with progress fractions.
10
+ </objective>
11
+
12
+ <execution_context>
13
+ @~/.claude/deliver-great-systems/workflows/list-jobs.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ No arguments needed. State resolved via `dgs-tools.cjs jobs list-jobs` CLI call.
18
+ </context>
19
+
20
+ <process>
21
+ Execute the list-jobs workflow from @~/.claude/deliver-great-systems/workflows/list-jobs.md end-to-end.
22
+ </process>
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: dgs:list-phase-assumptions
3
+ description: Surface Claude's assumptions about a phase approach before planning
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Grep
9
+ - Glob
10
+ ---
11
+
12
+ <objective>
13
+ Analyze a phase and present Claude's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
14
+
15
+ Purpose: Help users see what Claude thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
16
+ Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @~/.claude/deliver-great-systems/workflows/list-phase-assumptions.md
21
+ </execution_context>
22
+
23
+ <context>
24
+ Phase number: $ARGUMENTS (required)
25
+
26
+ Project state and roadmap are loaded in-workflow using targeted reads.
27
+ </context>
28
+
29
+ <process>
30
+ 1. Validate phase number argument (error if missing or invalid)
31
+ 2. Check if phase exists in roadmap
32
+ 3. Follow list-phase-assumptions.md workflow:
33
+ - Analyze roadmap description
34
+ - Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
35
+ - Present assumptions clearly
36
+ - Prompt "What do you think?"
37
+ 4. Gather feedback and offer next steps
38
+ </process>
39
+
40
+ <success_criteria>
41
+
42
+ - Phase validated against roadmap
43
+ - Assumptions surfaced across five areas
44
+ - User prompted for feedback
45
+ - User knows next steps (discuss context, plan phase, or correct assumptions)
46
+ </success_criteria>
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: dgs:list-projects
3
+ description: Show all projects with status and repos
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ ---
8
+ <objective>
9
+ Show all projects (active and completed) with their status, repos touched, current phase, and progress. Informational only.
10
+ </objective>
11
+
12
+ <process>
13
+
14
+ ## 1. Fetch Project List
15
+
16
+ ```bash
17
+ RESULT=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs projects list --raw)
18
+ ```
19
+
20
+ Parse JSON response. Extract `active`, `completed`, and `warnings` arrays.
21
+
22
+ ## 2. Display Results
23
+
24
+ **If no active or completed projects:**
25
+ ```
26
+ DGS > PROJECTS
27
+
28
+ No projects found. Run `/dgs:init-product` to set up v2 multi-project mode, then `/dgs:new-project` to create your first project.
29
+ ```
30
+
31
+ **If active projects exist:**
32
+ ```
33
+ DGS > PROJECTS
34
+
35
+ ### Active Projects
36
+
37
+ | Project | Status | Repos Touched | Current Phase | Progress |
38
+ |---------|--------|---------------|---------------|----------|
39
+ | {name} | {status} | {repos_touched} | {current_phase} | {progress}% |
40
+ ```
41
+
42
+ **If completed projects exist**, add:
43
+ ```
44
+ ### Completed Projects
45
+
46
+ | Project | Completed |
47
+ |---------|-----------|
48
+ | {name} | {date} |
49
+ ```
50
+
51
+ **If warnings exist**, append:
52
+ ```
53
+ ### Warnings
54
+ - {warning}
55
+ ```
56
+
57
+ </process>
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: dgs:list-specs
3
+ description: List all specs with status, source ideas, and dates
4
+ argument-hint: [--draft] [--review] [--final]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ ---
9
+
10
+ <objective>
11
+ List all specs grouped by status (Draft, In Review, Final) with source ideas, creation dates, and filtering support. Read-only display command.
12
+
13
+ Routes to the list-specs workflow which handles:
14
+ - Argument parsing (--draft, --review, --final)
15
+ - Fetching specs via dgs-tools.cjs specs list
16
+ - Grouped display with status headers and spec tables
17
+ - Summary line with total counts
18
+ - Empty-state hint directing to /dgs:write-spec
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/deliver-great-systems/workflows/list-specs.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Arguments: $ARGUMENTS (optional filter flags)
27
+
28
+ Spec data is fetched in-workflow via `dgs-tools.cjs specs list`.
29
+ </context>
30
+
31
+ <process>
32
+ **Follow the list-specs workflow** from `@~/.claude/deliver-great-systems/workflows/list-specs.md`.
33
+
34
+ The workflow handles all logic including:
35
+ 1. Parsing filter flags from arguments
36
+ 2. Fetching specs via dgs-tools.cjs
37
+ 3. Formatting grouped output with status headers
38
+ 4. Displaying summary counts
39
+ 5. Showing helpful hint for empty state
40
+ </process>
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: dgs:map-codebase
3
+ description: Analyze registered repos with parallel mapper agents to produce per-repo .planning/codebase/<repo>/ documents and cross-repo analysis
4
+ argument-hint: "[<repo-name>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Write
11
+ - Task
12
+ ---
13
+
14
+ <objective>
15
+ Analyze registered repos using parallel dgs-codebase-mapper agents to produce structured codebase documents per repo.
16
+
17
+ Supports two modes:
18
+ - **Refresh mode** (default, no flags): Clears all existing codebase maps and remaps everything from scratch.
19
+ - **Update mode** (`<repo-name>` or `--only <repo-name>`): Re-maps only the specified repo and regenerates unified files from all repos.
20
+
21
+ Reads REPOS.md to discover registered repos, then spawns 4 mapper agents per repo (or just the targeted repo in update mode). Each agent explores the repo's actual path and writes documents directly to `.planning/codebase/<repo-name>/`. The orchestrator only receives confirmations.
22
+
23
+ Output: .planning/codebase/<repo-name>/ folders, each with 7 structured documents about that repo's codebase state, plus 7 unified top-level files synthesized from per-repo content, plus CROSS-REPO.md with cross-repo comparison tables (when 2+ repos).
24
+ </objective>
25
+
26
+ <execution_context>
27
+ @~/.claude/deliver-great-systems/workflows/map-codebase.md
28
+ </execution_context>
29
+
30
+ <context>
31
+ **Reads REPOS.md** to discover registered repos and their paths.
32
+
33
+ **Load project state if exists:**
34
+ Check for .planning/STATE.md - loads context if project already initialized
35
+
36
+ **This command can run:**
37
+ - Before /dgs:new-project (brownfield codebases) - creates codebase maps first
38
+ - After /dgs:new-project (greenfield codebases) - updates codebase maps as code evolves
39
+ - Anytime to refresh codebase understanding across all registered repos
40
+ - With `<repo-name>` (or `--only <repo-name>`) to refresh just one repo's maps after changes
41
+ </context>
42
+
43
+ <when_to_use>
44
+ **Use map-codebase for:**
45
+ - Brownfield projects before initialization (understand existing code first)
46
+ - Refreshing codebase maps after significant changes in any registered repo
47
+ - Onboarding to an unfamiliar multi-repo codebase
48
+ - Before major refactoring (understand current state across repos)
49
+ - After adding a new repo with /dgs:add-repo
50
+ - After making changes in a specific repo (use `/dgs:map-codebase <repo>` to refresh just that repo's maps)
51
+
52
+ **Skip map-codebase for:**
53
+ - No repos registered yet (run /dgs:add-repo first)
54
+ - Greenfield projects with no code in any repo yet (nothing to map)
55
+ </when_to_use>
56
+
57
+ <process>
58
+ 1. Read REPOS.md via init, detect mode (refresh vs update from <repo-name> argument or --only flag)
59
+ 2. Validate repo paths (warn on invalid, proceed with valid)
60
+ 3. Mode-aware cleanup:
61
+ - Refresh: Delete all existing codebase docs and per-repo subdirectories
62
+ - Update: Delete only the targeted repo's subdirectory (other repos untouched)
63
+ 4. Create .planning/codebase/<repo-name>/ directories (all repos or just targeted repo)
64
+ 5. Spawn 4 parallel dgs-codebase-mapper agents per repo (all run in parallel):
65
+ - Agent 1: tech focus -> writes STACK.md, INTEGRATIONS.md
66
+ - Agent 2: arch focus -> writes ARCHITECTURE.md, STRUCTURE.md
67
+ - Agent 3: quality focus -> writes CONVENTIONS.md, TESTING.md
68
+ - Agent 4: concerns focus -> writes CONCERNS.md
69
+ Note: In update mode, only the targeted repo is mapped
70
+ 6. Wait for agents to complete, show per-repo progress, track success/failure
71
+ 7. Verify all 7 documents exist per repo with line counts
72
+ 8. Synthesize unified top-level files from all repos with content
73
+ 9. Generate CROSS-REPO.md with cross-repo analysis (2+ repos only)
74
+ 10. Run secret scanning per repo and on unified files
75
+ 11. Commit codebase maps
76
+ 12. Show mapping summary with success/fail counts
77
+ 13. Offer next steps (typically: /dgs:new-project or /dgs:plan-phase)
78
+ </process>
79
+
80
+ <success_criteria>
81
+ - [ ] .planning/codebase/<repo-name>/ directories created for each registered repo (or targeted repo in update mode)
82
+ - [ ] All 7 codebase documents written per repo by mapper agents
83
+ - [ ] Documents follow template structure
84
+ - [ ] Parallel agents completed without errors
85
+ - [ ] Per-repo progress shown during mapping
86
+ - [ ] Refresh mode clears all repos and remaps
87
+ - [ ] Update mode with `--only` clears only targeted repo and regenerates unified files
88
+ - [ ] Failed repos skipped, remaining repos continue
89
+ - [ ] End-of-run summary with success/fail counts
90
+ - [ ] CROSS-REPO.md generated for multi-repo setups (2+ repos)
91
+ - [ ] User knows next steps
92
+ </success_criteria>
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: dgs:new-milestone
3
+ description: Start a new milestone cycle — update PROJECT.md and route to requirements
4
+ argument-hint: "[milestone name, e.g., 'v1.1 Notifications']"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Task
10
+ - AskUserQuestion
11
+ ---
12
+ <objective>
13
+ Start a new milestone: questioning → research (optional) → requirements → roadmap.
14
+
15
+ Brownfield equivalent of new-project. Project exists, PROJECT.md has history. Gathers "what's next", updates PROJECT.md, then runs requirements → roadmap cycle.
16
+
17
+ **Creates/Updates:**
18
+ - `.planning/PROJECT.md` — updated with new milestone goals
19
+ - `.planning/research/` — domain research (optional, NEW features only)
20
+ - `.planning/REQUIREMENTS.md` — scoped requirements for this milestone
21
+ - `.planning/ROADMAP.md` — phase structure (continues numbering)
22
+ - `.planning/STATE.md` — reset for new milestone
23
+
24
+ **After:** `/dgs:plan-phase [N]` to start execution.
25
+ </objective>
26
+
27
+ <execution_context>
28
+ @~/.claude/deliver-great-systems/workflows/new-milestone.md
29
+ @~/.claude/deliver-great-systems/references/questioning.md
30
+ @~/.claude/deliver-great-systems/references/ui-brand.md
31
+ @~/.claude/deliver-great-systems/templates/project.md
32
+ @~/.claude/deliver-great-systems/templates/requirements.md
33
+ </execution_context>
34
+
35
+ <context>
36
+ Milestone name: $ARGUMENTS (optional - will prompt if not provided)
37
+
38
+ Project and milestone context files are resolved inside the workflow (`init new-milestone`) and delegated via `<files_to_read>` blocks where subagents are used.
39
+ </context>
40
+
41
+ <process>
42
+ Execute the new-milestone workflow from @~/.claude/deliver-great-systems/workflows/new-milestone.md end-to-end.
43
+ Preserve all workflow gates (validation, questioning, research, requirements, roadmap approval, commits).
44
+ </process>