devspec 0.1.1__tar.gz → 0.1.3__tar.gz

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 (200) hide show
  1. {devspec-0.1.1 → devspec-0.1.3}/.agents/rules/devspec-workflow.md +2 -0
  2. devspec-0.1.3/.agents/skills/devspec-diagram.md +17 -0
  3. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-extract.md +2 -0
  4. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-projectcontext.md +1 -0
  5. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-rules.md +1 -0
  6. devspec-0.1.3/.claude/skills/devspec-clarify/SKILL.md +16 -0
  7. devspec-0.1.3/.claude/skills/devspec-codebase-structure/SKILL.md +16 -0
  8. devspec-0.1.3/.claude/skills/devspec-coding-standards/SKILL.md +16 -0
  9. devspec-0.1.3/.claude/skills/devspec-diagram/SKILL.md +19 -0
  10. devspec-0.1.3/.claude/skills/devspec-extract/SKILL.md +17 -0
  11. devspec-0.1.3/.claude/skills/devspec-finalize/SKILL.md +16 -0
  12. devspec-0.1.3/.claude/skills/devspec-implement/SKILL.md +16 -0
  13. devspec-0.1.3/.claude/skills/devspec-projectcontext/SKILL.md +16 -0
  14. devspec-0.1.3/.claude/skills/devspec-review/SKILL.md +16 -0
  15. devspec-0.1.3/.claude/skills/devspec-rules/SKILL.md +16 -0
  16. devspec-0.1.3/.claude/skills/devspec-story/SKILL.md +16 -0
  17. devspec-0.1.3/.claude/skills/devspec-tasks/SKILL.md +16 -0
  18. devspec-0.1.3/.claude/skills/devspec-techstack/SKILL.md +16 -0
  19. {devspec-0.1.1 → devspec-0.1.3}/.cursor/rules/devspec-workflow.mdc +1 -0
  20. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/diagram.toml +3 -1
  21. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/extract.toml +2 -1
  22. devspec-0.1.3/.github/agents/devspec.clarify.agent.md +45 -0
  23. devspec-0.1.3/.github/agents/devspec.diagram.agent.md +90 -0
  24. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.extract.agent.md +14 -12
  25. devspec-0.1.3/.github/agents/devspec.finalize.agent.md +62 -0
  26. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.implement-task.agent.md +22 -18
  27. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.projectcontext.agent.md +4 -2
  28. devspec-0.1.3/.github/agents/devspec.review.agent.md +45 -0
  29. devspec-0.1.3/.github/agents/devspec.story.agent.md +68 -0
  30. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.tasks.agent.md +17 -9
  31. devspec-0.1.3/.github/prompts/PATTERNS.md +576 -0
  32. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/README.md +20 -12
  33. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.clarify.prompt.md +2 -0
  34. devspec-0.1.3/.github/prompts/devspec.diagram.prompt.md +13 -0
  35. devspec-0.1.3/.github/prompts/devspec.extract.prompt.md +11 -0
  36. devspec-0.1.3/.github/prompts/devspec.finalize.prompt.md +15 -0
  37. devspec-0.1.3/.github/prompts/devspec.implement.prompt.md +17 -0
  38. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.projectcontext.prompt.md +1 -1
  39. devspec-0.1.3/.github/prompts/devspec.review.prompt.md +17 -0
  40. devspec-0.1.3/.github/prompts/devspec.story.prompt.md +11 -0
  41. devspec-0.1.3/.github/prompts/devspec.tasks.prompt.md +17 -0
  42. {devspec-0.1.1 → devspec-0.1.3}/AGENTS.md +1 -1
  43. {devspec-0.1.1 → devspec-0.1.3}/PKG-INFO +23 -15
  44. {devspec-0.1.1 → devspec-0.1.3}/README.md +22 -14
  45. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/README.md +2 -0
  46. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/antigravity.md +2 -0
  47. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/claude-code.md +1 -0
  48. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/codex-skills/devspec-workflow/SKILL.md +2 -0
  49. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/codex.md +1 -0
  50. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/command-registry.md +8 -8
  51. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/gemini-cli.md +1 -0
  52. devspec-0.1.3/devspec/adapters/validation-flows.md +127 -0
  53. devspec-0.1.3/devspec/architecture/_template/architecture-diagram.svg +220 -0
  54. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/_template/artifact-queue.md +5 -5
  55. devspec-0.1.3/devspec/architecture/_template/diagram.html +117 -0
  56. devspec-0.1.3/devspec/architecture/_template/diagram.md +128 -0
  57. devspec-0.1.3/devspec/architecture/_template/domain-model-diagram.svg +156 -0
  58. devspec-0.1.3/devspec/architecture/_template/journey-map-diagram.svg +175 -0
  59. devspec-0.1.3/devspec/architecture/_template/mindmap-diagram.svg +157 -0
  60. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/_template/overview.md +2 -2
  61. devspec-0.1.3/devspec/architecture/_template/process-flow-diagram.svg +294 -0
  62. devspec-0.1.3/devspec/architecture/_template/quadrant-analysis-diagram.svg +126 -0
  63. devspec-0.1.3/devspec/architecture/_template/sequence-diagram.svg +175 -0
  64. devspec-0.1.3/devspec/architecture/_template/state-lifecycle-diagram.svg +175 -0
  65. devspec-0.1.3/devspec/architecture/_template/timeline-plan-diagram.svg +157 -0
  66. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/artifact-queue.md +5 -5
  67. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/diagrams/README.md +12 -4
  68. devspec-0.1.3/devspec/architecture/html/README.md +20 -0
  69. devspec-0.1.3/devspec/architecture/images/README.md +20 -0
  70. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/overview.md +2 -2
  71. {devspec-0.1.1 → devspec-0.1.3}/devspec/constitution.md +13 -0
  72. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/project-context.md +3 -3
  73. {devspec-0.1.1/devspec/foundation → devspec-0.1.3/devspec/foundation/_template}/provider-integrations.md +1 -1
  74. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/project-context.md +3 -3
  75. {devspec-0.1.1/devspec/foundation/_template → devspec-0.1.3/devspec/foundation}/provider-integrations.md +1 -1
  76. {devspec-0.1.1 → devspec-0.1.3}/devspec/glossary.md +11 -0
  77. devspec-0.1.3/devspec/work-items/_template/clarify.md +28 -0
  78. devspec-0.1.3/devspec/work-items/_template/diagrams.md +53 -0
  79. devspec-0.1.3/devspec/work-items/_template/finalize.md +71 -0
  80. {devspec-0.1.1 → devspec-0.1.3}/devspec/work-items/_template/implement.md +12 -11
  81. {devspec-0.1.1 → devspec-0.1.3}/devspec/work-items/_template/meta.md +6 -6
  82. {devspec-0.1.1 → devspec-0.1.3}/devspec/work-items/_template/review.md +8 -4
  83. devspec-0.1.3/devspec/work-items/_template/story.md +104 -0
  84. devspec-0.1.3/devspec/work-items/_template/tasks.md +43 -0
  85. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/README.md +240 -21
  86. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/setup/README.md +3 -1
  87. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/setup/homebrew.md +6 -6
  88. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/setup/manual-copy.md +2 -1
  89. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/setup/uv.md +1 -1
  90. {devspec-0.1.1 → devspec-0.1.3}/docs/how-to/setup/winget.md +1 -1
  91. {devspec-0.1.1 → devspec-0.1.3}/packaging/homebrew/devspec.rb +2 -2
  92. {devspec-0.1.1 → devspec-0.1.3}/packaging/homebrew/tap/Formula/devspec.rb +2 -2
  93. {devspec-0.1.1 → devspec-0.1.3}/packaging/homebrew/tap/README.md +1 -1
  94. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.installer.yaml +12 -0
  95. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.locale.en-US.yaml +22 -0
  96. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.yaml +6 -0
  97. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.installer.yaml +12 -0
  98. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.locale.en-US.yaml +22 -0
  99. devspec-0.1.3/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.yaml +6 -0
  100. {devspec-0.1.1 → devspec-0.1.3}/pyproject.toml +7 -3
  101. {devspec-0.1.1 → devspec-0.1.3}/src/devspec_installer/__init__.py +1 -1
  102. {devspec-0.1.1 → devspec-0.1.3}/src/devspec_installer/cli.py +7 -1
  103. {devspec-0.1.1 → devspec-0.1.3}/tests/test_cli.py +89 -1
  104. devspec-0.1.1/.agents/skills/devspec-diagram.md +0 -14
  105. devspec-0.1.1/.claude/skills/devspec-clarify/SKILL.md +0 -13
  106. devspec-0.1.1/.claude/skills/devspec-codebase-structure/SKILL.md +0 -13
  107. devspec-0.1.1/.claude/skills/devspec-coding-standards/SKILL.md +0 -13
  108. devspec-0.1.1/.claude/skills/devspec-diagram/SKILL.md +0 -13
  109. devspec-0.1.1/.claude/skills/devspec-extract/SKILL.md +0 -13
  110. devspec-0.1.1/.claude/skills/devspec-finalize/SKILL.md +0 -13
  111. devspec-0.1.1/.claude/skills/devspec-implement/SKILL.md +0 -13
  112. devspec-0.1.1/.claude/skills/devspec-projectcontext/SKILL.md +0 -13
  113. devspec-0.1.1/.claude/skills/devspec-review/SKILL.md +0 -13
  114. devspec-0.1.1/.claude/skills/devspec-rules/SKILL.md +0 -13
  115. devspec-0.1.1/.claude/skills/devspec-story/SKILL.md +0 -13
  116. devspec-0.1.1/.claude/skills/devspec-tasks/SKILL.md +0 -13
  117. devspec-0.1.1/.claude/skills/devspec-techstack/SKILL.md +0 -13
  118. devspec-0.1.1/.github/agents/devspec.clarify.agent.md +0 -39
  119. devspec-0.1.1/.github/agents/devspec.diagram.agent.md +0 -76
  120. devspec-0.1.1/.github/agents/devspec.finalize.agent.md +0 -51
  121. devspec-0.1.1/.github/agents/devspec.review.agent.md +0 -42
  122. devspec-0.1.1/.github/agents/devspec.story.agent.md +0 -54
  123. devspec-0.1.1/.github/prompts/PATTERNS.md +0 -278
  124. devspec-0.1.1/.github/prompts/devspec.diagram.prompt.md +0 -11
  125. devspec-0.1.1/.github/prompts/devspec.extract.prompt.md +0 -11
  126. devspec-0.1.1/.github/prompts/devspec.finalize.prompt.md +0 -11
  127. devspec-0.1.1/.github/prompts/devspec.implement.prompt.md +0 -11
  128. devspec-0.1.1/.github/prompts/devspec.review.prompt.md +0 -11
  129. devspec-0.1.1/.github/prompts/devspec.story.prompt.md +0 -11
  130. devspec-0.1.1/.github/prompts/devspec.tasks.prompt.md +0 -11
  131. devspec-0.1.1/.github/workflows/homebrew-package-publish.yml +0 -54
  132. devspec-0.1.1/.github/workflows/python-package-ci.yml +0 -42
  133. devspec-0.1.1/.github/workflows/python-package-publish.yml +0 -69
  134. devspec-0.1.1/.github/workflows/winget-package-publish.yml +0 -111
  135. devspec-0.1.1/devspec/adapters/validation-flows.md +0 -90
  136. devspec-0.1.1/devspec/architecture/_template/diagram.md +0 -62
  137. devspec-0.1.1/devspec/work-items/_template/clarify.md +0 -28
  138. devspec-0.1.1/devspec/work-items/_template/diagrams.md +0 -42
  139. devspec-0.1.1/devspec/work-items/_template/finalize.md +0 -65
  140. devspec-0.1.1/devspec/work-items/_template/story.md +0 -59
  141. devspec-0.1.1/devspec/work-items/_template/tasks.md +0 -38
  142. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-clarify.md +0 -0
  143. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-codebase-structure.md +0 -0
  144. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-coding-standards.md +0 -0
  145. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-finalize.md +0 -0
  146. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-implement.md +0 -0
  147. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-review.md +0 -0
  148. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-story.md +0 -0
  149. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-tasks.md +0 -0
  150. {devspec-0.1.1 → devspec-0.1.3}/.agents/skills/devspec-techstack.md +0 -0
  151. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/clarify.toml +0 -0
  152. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/codebase-structure.toml +0 -0
  153. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/coding-standards.toml +0 -0
  154. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/finalize.toml +0 -0
  155. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/implement.toml +0 -0
  156. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/projectcontext.toml +0 -0
  157. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/review.toml +0 -0
  158. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/rules.toml +0 -0
  159. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/story.toml +0 -0
  160. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/tasks.toml +0 -0
  161. {devspec-0.1.1 → devspec-0.1.3}/.gemini/commands/devspec/techstack.toml +0 -0
  162. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.codebase-structure.agent.md +0 -0
  163. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.coding-standards.agent.md +0 -0
  164. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.rules.agent.md +0 -0
  165. {devspec-0.1.1 → devspec-0.1.3}/.github/agents/devspec.techstack.agent.md +0 -0
  166. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.codebase-structure.prompt.md +0 -0
  167. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.coding-standards.prompt.md +0 -0
  168. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.rules.prompt.md +0 -0
  169. {devspec-0.1.1 → devspec-0.1.3}/.github/prompts/devspec.techstack.prompt.md +0 -0
  170. {devspec-0.1.1 → devspec-0.1.3}/.github/skills/exploration-recovery/SKILL.md +0 -0
  171. {devspec-0.1.1 → devspec-0.1.3}/.gitignore +0 -0
  172. {devspec-0.1.1 → devspec-0.1.3}/GEMINI.md +0 -0
  173. {devspec-0.1.1 → devspec-0.1.3}/LICENSE +0 -0
  174. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/compatibility-matrix.md +0 -0
  175. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/copilot.md +0 -0
  176. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/cursor.md +0 -0
  177. {devspec-0.1.1 → devspec-0.1.3}/devspec/adapters/enterprise-governance.md +0 -0
  178. {devspec-0.1.1 → devspec-0.1.3}/devspec/architecture/_template/decision.md +0 -0
  179. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/codebase-structure.md +0 -0
  180. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/coding-standards.md +0 -0
  181. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/discovery-exclusions.md +0 -0
  182. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/exploration-state.md +0 -0
  183. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/extraction-state.md +0 -0
  184. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/rules.md +0 -0
  185. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/_template/tech-stack.md +0 -0
  186. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/codebase-structure.md +0 -0
  187. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/coding-standards.md +0 -0
  188. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/discovery-exclusions.md +0 -0
  189. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/extraction-state.md +0 -0
  190. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/rules.md +0 -0
  191. {devspec-0.1.1 → devspec-0.1.3}/devspec/foundation/tech-stack.md +0 -0
  192. {devspec-0.1.1 → devspec-0.1.3}/devspec/work-items/_template/decisions.md +0 -0
  193. {devspec-0.1.1 → devspec-0.1.3}/devspec/work-items/_template/notes.md +0 -0
  194. {devspec-0.1.1 → devspec-0.1.3}/packaging/devspec-profiles.json +0 -0
  195. {devspec-0.1.1 → devspec-0.1.3}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.installer.yaml +0 -0
  196. {devspec-0.1.1 → devspec-0.1.3}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.locale.en-US.yaml +0 -0
  197. {devspec-0.1.1 → devspec-0.1.3}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.yaml +0 -0
  198. {devspec-0.1.1 → devspec-0.1.3}/scripts/test-local-install.ps1 +0 -0
  199. {devspec-0.1.1 → devspec-0.1.3}/scripts/test-local-install.sh +0 -0
  200. {devspec-0.1.1 → devspec-0.1.3}/src/devspec_installer/__main__.py +0 -0
@@ -16,7 +16,9 @@ Follow these rules:
16
16
  - Preserve structured question behavior from `.github/prompts/PATTERNS.md#interactive-question-pattern`; if clickable options are unavailable, render the same option labels as text and preserve the recommended option.
17
17
  - Use `devspec/glossary.md` for status values.
18
18
  - Use `devspec/foundation/codebase-structure.md` for repository access requirements.
19
+ - Keep product context in `devspec/foundation/project-context.md`, durable principles in `devspec/constitution.md`, and operational governance, compliance rules, enforcement details, and delivery gates in `devspec/foundation/rules.md`.
19
20
  - Use `devspec/adapters/validation-flows.md` for enterprise acceptance checks.
21
+ - For `/devspec.diagram`, keep SVG as the default output and treat any non-duplicated `format=` combination of `svg`, `html`, and `mermaid` as canonical command input. Example: `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, `format=html+mermaid`.
20
22
  - Keep provider credentials, tokens, user settings, and secrets outside prompt, rule, skill, and artifact files.
21
23
  - Record unsupported Antigravity behavior as a limitation instead of changing workflow semantics.
22
24
 
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: devspec-diagram
3
+ description: Run /devspec.diagram using the canonical devspec command registry and Copilot reference contract.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.diagram`.
7
+
8
+ - Read `devspec/adapters/command-registry.md` for the command contract.
9
+ - Read `.github/prompts/devspec.diagram.prompt.md` and `.github/agents/devspec.diagram.agent.md` as the source of intent.
10
+ - Preserve SVG as the default output. Pass through any non-duplicated `format=` combination of `svg`, `html`, and `mermaid`; examples include `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, and `format=html+mermaid`.
11
+ - For SVG output, select the matching template from `.github/prompts/PATTERNS.md#svg-output-pattern`, including architecture, process-flow, sequence, state/lifecycle, domain-model, journey-map, timeline-plan, quadrant-analysis, and mindmap templates. Durable targets stay under `devspec/architecture/images/`, and validation follows `.github/prompts/PATTERNS.md#svg-output-pattern`.
12
+ - Keep every generated SVG and HTML diagram on the shared dark architecture-style visual contract from `.github/prompts/PATTERNS.md#svg-output-pattern`, including custom smaller SVGs. Do not produce white/default/simple diagram styling unless the user explicitly requests a light or custom theme.
13
+ - Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
14
+ - Use Git-tracked `devspec/` artifacts for recovery before relying on chat history or Antigravity artifacts.
15
+ - Treat unsupported Antigravity behavior as an adapter limitation, not a workflow change.
16
+
17
+ Command input comes from the user's current message.
@@ -7,6 +7,8 @@ Execute canonical command `/devspec.extract`.
7
7
 
8
8
  - Read `devspec/adapters/command-registry.md` for the command contract.
9
9
  - Read `.github/prompts/devspec.extract.prompt.md` and `.github/agents/devspec.extract.agent.md` as the source of intent.
10
+ - Treat constitution changes as confirmation-gated candidates; route operational governance, compliance procedures, enforcement details, and delivery gates to `devspec/foundation/rules.md`.
11
+ - Preserve any non-duplicated diagram `format=` combination of `svg`, `html`, and `mermaid` in queue notes; extraction remains queue-first and may generate at most one approved diagram artifact set only after the canonical approval gate.
10
12
  - Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
11
13
  - Use Git-tracked `devspec/` artifacts for recovery before relying on chat history or Antigravity artifacts.
12
14
  - Treat unsupported Antigravity behavior as an adapter limitation, not a workflow change.
@@ -7,6 +7,7 @@ Execute canonical command `/devspec.projectcontext`.
7
7
 
8
8
  - Read `devspec/adapters/command-registry.md` for the command contract.
9
9
  - Read `.github/prompts/devspec.projectcontext.prompt.md` and `.github/agents/devspec.projectcontext.agent.md` as the source of intent.
10
+ - Keep this command focused on product context; route durable principles to `devspec/constitution.md` and operational governance or delivery gates to `devspec/foundation/rules.md`.
10
11
  - Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
11
12
  - Use Git-tracked `devspec/` artifacts for recovery before relying on chat history or Antigravity artifacts.
12
13
  - Treat unsupported Antigravity behavior as an adapter limitation, not a workflow change.
@@ -7,6 +7,7 @@ Execute canonical command `/devspec.rules`.
7
7
 
8
8
  - Read `devspec/adapters/command-registry.md` for the command contract.
9
9
  - Read `.github/prompts/devspec.rules.prompt.md` and `.github/agents/devspec.rules.agent.md` as the source of intent.
10
+ - Keep this command focused on operational rules, compliance requirements, enforcement details, delivery gates, exceptions, and evolving governance; do not duplicate durable principles from `devspec/constitution.md` or product intent from `devspec/foundation/project-context.md`.
10
11
  - Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
11
12
  - Use Git-tracked `devspec/` artifacts for recovery before relying on chat history or Antigravity artifacts.
12
13
  - Treat unsupported Antigravity behavior as an adapter limitation, not a workflow change.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-clarify
3
+ description: Run /devspec.clarify using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.clarify`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.clarify.prompt.md` and `.github/agents/devspec.clarify.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.clarify` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-codebase-structure
3
+ description: Run /devspec.codebase-structure using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.codebase-structure`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.codebase-structure.prompt.md` and `.github/agents/devspec.codebase-structure.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when recording multiple repositories, capture per-repo work areas, boundaries, integration contracts, and access requirements as separate entries in `devspec/foundation/codebase-structure.md`.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.codebase-structure` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-coding-standards
3
+ description: Run /devspec.coding-standards using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.coding-standards`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.coding-standards.prompt.md` and `.github/agents/devspec.coding-standards.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.coding-standards` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: devspec-diagram
3
+ description: Run /devspec.diagram using the canonical devspec command registry. Generates evidence-backed diagrams, defaulting to SVG with optional Mermaid and HTML output, for architecture, workflows, journeys, sequences, states, timelines, and planning views. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.diagram`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.diagram.prompt.md` and `.github/agents/devspec.diagram.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure, including `PATTERNS.md#diagram-extraction-consistency-pattern`, `PATTERNS.md#svg-output-pattern`, `PATTERNS.md#mermaid-internal-naming-and-readability-pattern`, `PATTERNS.md#mermaid-visual-quality-pattern`, `PATTERNS.md#process-flow-extraction-pattern`, and `PATTERNS.md#excluded-diagram-families`.
12
+ 5. Treat SVG as the default output. Pass through any non-duplicated `format=` combination of `svg`, `html`, and `mermaid`; examples include `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, and `format=html+mermaid`. Unsupported or duplicated `format=` values require clarification.
13
+ 6. For every generated Mermaid `flowchart` or `stateDiagram-v2`: open with the dark theme init block, declare the semantic `classDef` palette for roles present, use role-appropriate node shapes, wrap boundaries of 3+ nodes in named `subgraph` blocks, draw cross-subgraph arrows after all `end` keywords, assign `classDef` classes in a batch block at the end, and verify node count stays within complexity guardrails. Never use an excluded family such as `architecture-beta`; substitute the documented portable alternative.
14
+ 7. For SVG output, use `devspec/architecture/_template/process-flow-diagram.svg` for process-flow rows or explicit process-flow SVG requests, otherwise use `devspec/architecture/_template/architecture-diagram.svg`. Write durable images under `devspec/architecture/images/`, and validate generated SVG as standalone XML with no scripts, iframes, foreignObject, external assets, secrets, or unresolved placeholders.
15
+ 8. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, scope diagram evidence to the correct repository boundary.
16
+
17
+ Command input comes from the user's current message.
18
+
19
+ Platform note: Claude Code may not register `/devspec.diagram` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: devspec-extract
3
+ description: Run /devspec.extract using the canonical devspec command registry. Backfills foundation and architecture artifacts from local paths, GitHub, Azure DevOps, GitLab, or named multi-repo sources. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.extract`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.extract.prompt.md` and `.github/agents/devspec.extract.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, output closure, and specifically `PATTERNS.md#discovery-exclusion-pattern`, `PATTERNS.md#diagram-extraction-consistency-pattern`, `PATTERNS.md#svg-output-pattern`, and `PATTERNS.md#process-flow-extraction-pattern`. Do not queue diagram families listed in `PATTERNS.md#excluded-diagram-families` (such as `architecture-beta`) when seeding `devspec/architecture/artifact-queue.md`; use the documented portable alternative instead.
12
+ 5. Preserve any non-duplicated diagram `format=` combination of `svg`, `html`, and `mermaid` in queue notes. Extraction remains queue-first and may generate at most one approved diagram artifact set only after the canonical approval gate.
13
+ 6. For multi-repo extraction: process each repository source in sequence, apply discovery exclusions from `devspec/foundation/discovery-exclusions.md`, record per-repo evidence and status in `devspec/foundation/extraction-state.md`, and seed diagram candidates per-repo in `devspec/architecture/artifact-queue.md`.
14
+
15
+ Command input comes from the user's current message.
16
+
17
+ Platform note: Claude Code may not register `/devspec.extract` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-finalize
3
+ description: Run /devspec.finalize using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.finalize`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.finalize.prompt.md` and `.github/agents/devspec.finalize.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.finalize` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-implement
3
+ description: Run /devspec.implement using the canonical devspec command registry. The only code-write command - edits target repository code when the upstream work item and repository access allow it. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.implement`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level (`code-write`), and next handoff.
10
+ 3. Read `.github/prompts/devspec.implement.prompt.md` and `.github/agents/devspec.implement-task.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every implementation task must name the target repository and required access level before writing any code.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.implement` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. This command requires `code-write` access - confirm repository permissions before proceeding. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-projectcontext
3
+ description: Run /devspec.projectcontext using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.projectcontext`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.projectcontext.prompt.md` and `.github/agents/devspec.projectcontext.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.projectcontext` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-review
3
+ description: Run /devspec.review using the canonical devspec command registry. Reviews implemented work for bugs, regressions, scope drift, security risks, and validation gaps. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.review`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level (`review-write`), and next handoff.
10
+ 3. Read `.github/prompts/devspec.review.prompt.md` and `.github/agents/devspec.review.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.review` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. This command has `review-write` mutation level - it writes review artifacts only and must not change implementation code. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-rules
3
+ description: Run /devspec.rules using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.rules`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.rules.prompt.md` and `.github/agents/devspec.rules.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.rules` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-story
3
+ description: Run /devspec.story using the canonical devspec command registry. Creates or updates a work item from a GitHub, Azure DevOps, Jira, or GitLab URL, identifier, or manual intake. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.story`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.story.prompt.md` and `.github/agents/devspec.story.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.story` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-tasks
3
+ description: Run /devspec.tasks using the canonical devspec command registry. Breaks a ready finalized brief into ordered executable implementation tasks. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.tasks`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.tasks.prompt.md` and `.github/agents/devspec.tasks.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task must name its target repository and required access level before any implementation step.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.tasks` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: devspec-techstack
3
+ description: Run /devspec.techstack using the canonical devspec command registry. Supports mono-repo and multi-repo workspaces. Works across GitHub Copilot, Claude Code, OpenAI Codex, Cursor, and other AI agents.
4
+ ---
5
+
6
+ Execute canonical command `/devspec.techstack`.
7
+
8
+ 1. Read `AGENTS.md` for canonical workflow, no-intent-drift, cross-tool recovery, and structured question rules.
9
+ 2. Read `devspec/adapters/command-registry.md` for this command's required input, outputs, mutation level, and next handoff.
10
+ 3. Read `.github/prompts/devspec.techstack.prompt.md` and `.github/agents/devspec.techstack.agent.md` as the authoritative source of command intent and behavior.
11
+ 4. Apply `.github/prompts/PATTERNS.md` for shared behavior: interactive questions, prerequisite validation, session recovery, discovery exclusions, and output closure.
12
+ 5. Honor multi-repo boundaries: when `devspec/foundation/codebase-structure.md` records multiple repositories, every task, artifact, and access requirement must name the target repository.
13
+
14
+ Command input comes from the user's current message.
15
+
16
+ Platform note: Claude Code may not register `/devspec.techstack` as a native slash command. Treat the command name as workflow intent and use this skill as the invocation mechanism. Record any unsupported behavior in `devspec/adapters/compatibility-matrix.md`.
@@ -18,6 +18,7 @@ Follow these rules:
18
18
  - Use `devspec/glossary.md` for status values.
19
19
  - Use `devspec/foundation/codebase-structure.md` for repository access requirements.
20
20
  - Use `devspec/adapters/validation-flows.md` for enterprise acceptance checks.
21
+ - For `/devspec.diagram`, keep SVG as the default output and treat any non-duplicated `format=` combination of `svg`, `html`, and `mermaid` as canonical command input. Example: `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, `format=html+mermaid`.
21
22
  - Record unsupported platform behavior as a limitation instead of changing workflow semantics.
22
23
 
23
24
  Do not recommend unregistered commands such as `/devspec.plan`, `/devspec.architecture`, `/devspec.provider-integrations`, `/devspec.queue`, or `/devspec.decisions`.
@@ -8,7 +8,9 @@ Before acting:
8
8
  3. Follow `.github/prompts/PATTERNS.md` for shared workflow, recovery, output, discovery, and recommendation behavior.
9
9
  4. Recover from existing Git-tracked `devspec/` artifacts before relying on Gemini session memory.
10
10
  5. Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
11
- 6. Treat Gemini-specific command syntax as platform mechanics, not a workflow change.
11
+ 6. Preserve SVG as the default output. Pass through any non-duplicated `format=` combination of `svg`, `html`, and `mermaid`; examples include `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, and `format=html+mermaid`.
12
+ 7. For SVG output, use `devspec/architecture/_template/process-flow-diagram.svg` for process-flow rows or explicit process-flow SVG requests, otherwise use `devspec/architecture/_template/architecture-diagram.svg`. Durable targets stay under `devspec/architecture/images/`, and validation follows `.github/prompts/PATTERNS.md#svg-output-pattern`.
13
+ 8. Treat Gemini-specific command syntax as platform mechanics, not a workflow change.
12
14
 
13
15
  The user's raw command input, if any, is appended below these instructions by Gemini CLI.
14
16
  """
@@ -8,7 +8,8 @@ Before acting:
8
8
  3. Follow `.github/prompts/PATTERNS.md` for shared workflow, recovery, output, discovery, and recommendation behavior.
9
9
  4. Recover from existing Git-tracked `devspec/` artifacts before relying on Gemini session memory.
10
10
  5. Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
11
- 6. Treat Gemini-specific command syntax as platform mechanics, not a workflow change.
11
+ 6. Preserve any non-duplicated diagram `format=` combination of `svg`, `html`, and `mermaid` in queue notes; extraction remains queue-first and may generate at most one approved diagram artifact set only after the canonical approval gate.
12
+ 7. Treat Gemini-specific command syntax as platform mechanics, not a workflow change.
12
13
 
13
14
  The user's raw command input, if any, is appended below these instructions by Gemini CLI.
14
15
  """
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: "devspec.clarify"
3
+ description: "Use to ask, resolve, and record one active blocking clarification at a time for the current devspec work item."
4
+ tools: [read, edit, search, vscode/askQuestions]
5
+ model: ["GPT-5.4 (copilot)", "GPT-5.3-Codex (copilot)", "Claude Sonnet 4.6 (copilot)", "Claude Haiku 4.5 (copilot)"]
6
+ user-invocable: true
7
+ agents: []
8
+ handoffs:
9
+ - label: Back to Work-Item Intake
10
+ agent: devspec.story
11
+ prompt: Revise work-item intake from this clarification.
12
+ - label: Continue to Finalize
13
+ agent: devspec.finalize
14
+ prompt: Create or update the implementation readiness brief.
15
+ ---
16
+ You create or update `devspec/work-items/<work-item-folder>/clarify.md`.
17
+
18
+ ## Constraints
19
+ - Follow the [Work-Item Target Pattern](../prompts/PATTERNS.md#work-item-target-pattern), [Work-Item Change Request Pattern](../prompts/PATTERNS.md#work-item-change-request-pattern), [Session Recovery Pattern](../prompts/PATTERNS.md#session-recovery-pattern), [Prerequisite Validation Pattern](../prompts/PATTERNS.md#prerequisite-validation-pattern), [Interactive Question Pattern](../prompts/PATTERNS.md#interactive-question-pattern), [Question Basis Pattern](../prompts/PATTERNS.md#question-basis-pattern), [Token Stewardship Pattern](../prompts/PATTERNS.md#token-stewardship-pattern), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
20
+ - `story.md` must exist.
21
+ - Update `Workflow State` in `meta.md` and `Resume State` in `clarify.md` before asking or resolving a blocking question.
22
+ - Handle one independent blocker at a time.
23
+ - Resolve the active blocker recorded in `story.md`, `finalize.md`, user input, or existing `clarify.md`; do not run the full Readiness Gap Scan in this command.
24
+ - Do not use clarification to introduce post-baseline scope. If user input for a work item in `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed` status changes scope instead of resolving the active blocker, record the routing reason in `clarify.md`, leave baseline intake unchanged, and hand off to `/devspec.story`.
25
+ - Preserve and apply the Question Basis Pattern for the active blocker.
26
+ - For structured clarification questions, provide 2-5 meaningful and mutually exclusive options when possible, exactly one recommended option with a short reason, and `Custom Answer`.
27
+ - Keep active and resolved blocker records only in `Clarification Log`; at most one row may be `open`.
28
+ - Keep handoff and next-action state in `Resume State`, not in a separate outcome section.
29
+ - When a resolved clarification changes intake, update the matching current `story.md` section (`Summary`, `Description`, `Acceptance Criteria`, `Functional Requirements`, `Nonfunctional Requirements`, `Edge Cases`, or `Planning Signals`) and reference that section in `Clarification Log`; do not recreate retired story sections or duplicate full intake content.
30
+ - If no blocking question remains, set `Pending user question` to `none` and record the next handoff in `Next required action`; return to `/devspec.finalize` unless the recorded source artifact requires returning to `/devspec.story`.
31
+
32
+ ## Approach
33
+ 1. Locate the target work item.
34
+ 2. Read `meta.md` when present, `story.md`, `finalize.md` when present, and existing `clarify.md`.
35
+ 3. Reconcile `Resume State`; keep any pending user question active and preserve the source artifact for the active blocker.
36
+ 4. Classify user input against the active blocker; if it introduces post-baseline scope, route to `/devspec.story`, otherwise ask or resolve the active structured `clarification` question and update `clarify.md` with `Resume State` and `Clarification Log`.
37
+ 5. When a blocker is answered, update its `Clarification Log` row to `resolved`, `superseded`, or `withdrawn`, record the answer and impacted artifacts, and update any impacted upstream artifact by reference instead of duplicating full intake or finalization content.
38
+ 6. When no blocker remains open, update next action toward `/devspec.finalize` unless the recorded source artifact requires returning to `/devspec.story`.
39
+ 7. Report per Output Format.
40
+
41
+ ## Output Format
42
+ - Work-item path updated
43
+ - Blocking question or recorded answer
44
+ - Impact and next step
45
+ - Single registered command, handoff, file update, or structured question
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: "devspec.diagram"
3
+ description: "Use to generate or update one evidence-backed diagram, defaulting to SVG with optional Mermaid and HTML output, for architecture, workflows, journeys, sequences, states, timelines, planning views, or stable domain structures."
4
+ tools: [read, edit, search, vscode/askQuestions]
5
+ model: ["GPT-5.4 (copilot)", "GPT-5.3-Codex (copilot)", "Claude Sonnet 4.6 (copilot)", "Claude Haiku 4.5 (copilot)"]
6
+ user-invocable: true
7
+ agents: [Explore]
8
+ handoffs:
9
+ - label: Continue to Work-Item Intake
10
+ agent: devspec.story
11
+ prompt: Start or update a related devspec work item.
12
+ - label: Continue to Tasks
13
+ agent: devspec.tasks
14
+ prompt: Create or update related implementation tasks.
15
+ ---
16
+ You generate or update one diagram for a requested architecture, module, feature workflow, user journey, sequence, state, timeline, planning view, or stable domain subject.
17
+
18
+ ## Constraints
19
+ - Follow the [Prerequisite Validation Pattern](../prompts/PATTERNS.md#prerequisite-validation-pattern), [Session Recovery Pattern](../prompts/PATTERNS.md#session-recovery-pattern), [Interactive Question Pattern](../prompts/PATTERNS.md#interactive-question-pattern), [Work-Item Target Pattern](../prompts/PATTERNS.md#work-item-target-pattern), [Multi-Repo Validation Pattern](../prompts/PATTERNS.md#multi-repo-validation-pattern), [Token Stewardship Pattern](../prompts/PATTERNS.md#token-stewardship-pattern), [Discovery Exclusion Pattern](../prompts/PATTERNS.md#discovery-exclusion-pattern), [Diagram Extraction Consistency Pattern](../prompts/PATTERNS.md#diagram-extraction-consistency-pattern), [Architecture Diagram Intake Pattern](../prompts/PATTERNS.md#architecture-diagram-intake-pattern), [Diagram Family Intake Pattern](../prompts/PATTERNS.md#diagram-family-intake-pattern), [SVG Output Pattern](../prompts/PATTERNS.md#svg-output-pattern), [Mermaid Internal Naming and Readability Pattern](../prompts/PATTERNS.md#mermaid-internal-naming-and-readability-pattern), [Mermaid Visual Quality Pattern](../prompts/PATTERNS.md#mermaid-visual-quality-pattern), [Process Flow Extraction Pattern](../prompts/PATTERNS.md#process-flow-extraction-pattern), [Exploration Recovery Pattern](../prompts/PATTERNS.md#exploration-recovery-pattern), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
20
+ - Required user input is mandatory.
21
+ - Apply the Work-Item Target Pattern only when the request is explicitly work-item-specific or clearly temporary for one work item, bug, or security issue.
22
+ - Generate exactly one diagram artifact set per run unless the user continues through the queue or explicitly requests process-flow batch generation.
23
+ - Treat a clear `/devspec.diagram` request as approval to generate one diagram; ask only when target location, diagram type, scope, evidence, overwrite behavior, or queue continuation is ambiguous, using the matching `selection`, `clarification`, `approval`, or `continuation` intent.
24
+ - Treat `/devspec.diagram Generate all process-flow diagrams` or equivalent wording as explicit batch-generation approval for eligible process-flow rows in `devspec/architecture/artifact-queue.md`.
25
+ - Parse optional output format tokens before generation. Supported `format=` values contain one or more unique output types from `svg`, `html`, and `mermaid`, joined with `+`. Example: `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, `format=html+mermaid`. Default to `format=svg` when absent. Ask one structured `clarification` question for unknown or duplicated output types.
26
+ - Parse structured architecture-diagram input using `PATTERNS.md#architecture-diagram-intake-pattern`; fields such as `Application/System`, `Architecture style`, `Primary goal of diagram`, `Audience`, actors, components, stores, flows, boundaries, design rules, and output format are approved diagram input for one artifact set.
27
+ - Parse structured non-architecture diagram input using `PATTERNS.md#diagram-family-intake-pattern`; fields for sequence, state/lifecycle, domain model, journey, timeline/gantt, quadrant, and mindmap diagrams are approved diagram input for one artifact set when they match the selected diagram family.
28
+ - Treat editable SVG, SVG-only output, real SVG text, "Generate as SVG", "Generate this as SVG", or "not as a raster image" as the default `format=svg` unless the user explicitly requests an output combination containing `html` or `mermaid`.
29
+ - Do not invent architecture, user behavior, service interactions, states, or dependencies; separate observed facts from assumptions.
30
+ - When structured input says not to add components not listed, treat listed actors, components, systems, and data stores as the complete visible node set unless a confirmed durable artifact conflict requires clarification.
31
+ - Use the naming and layout guidance in `PATTERNS.md#diagram-extraction-consistency-pattern`, including the language-neutral default catalog when the request matches a catalog subject.
32
+ - Use `PATTERNS.md#mermaid-internal-naming-and-readability-pattern` for Mermaid node ID, node label, edge label, class, method, layout, and anti-bloat rules.
33
+ - Apply `PATTERNS.md#mermaid-visual-quality-pattern` fully (theme init, `classDef` palette, node shapes, subgraph boundaries, and guardrails) to every generated `flowchart` and `stateDiagram-v2`; apply complexity guardrails from that pattern to all other supported families.
34
+ - Keep generated Mermaid concise: no `\n` or `<br>` line breaks in node or edge labels; put interaction context on 2-3 word edge labels.
35
+ - Keep architectural flowcharts focused on one primary domain at a macro level, structurally unidirectional, and adjacent by layer. Do not include overloaded graphs, cross-layer arrows, decision diamonds, if/else paths, validation loops, error branches, UI micro-interactions, HTTP return codes, validation exceptions, or database error returns unless the user explicitly requests an algorithm or activity flowchart.
36
+ - Use `sequenceDiagram` when exact step-by-step request and response behavior is required. Show messages only between distinct participants, default to the happy path, collapse pass-through API client helpers, and label messages with actual method names rather than paragraphs.
37
+ - Keep runtime communication and compile-time project dependencies in separate diagrams; default to runtime or logical data flow unless the user explicitly requests a project dependency graph.
38
+ - For logical architecture diagrams, exclude SDLC actors, CI/CD, build artifacts, and source-code project files; enforce sensible C4-style system boundaries and keep owned application databases inside the system boundary.
39
+ - Avoid API, Swagger, tech stack, version, library, hosting, and framework boilerplate details in flowchart nodes unless the requested diagram specifically needs startup, request-pipeline, infrastructure-layer, or physical deployment detail.
40
+ - If the user asks for "only Mermaid", treat it as `format=mermaid` and apply that restriction to the Mermaid content inside the optional Markdown artifact.
41
+ - If the selected output set includes `svg`, create the SVG under `devspec/architecture/images/dia-NNN-<diagram-name>.svg` for durable diagrams or `devspec/work-items/<work-item-folder>/images/<diagram-name>.svg` for temporary work-item diagrams.
42
+ - If the selected output set includes `mermaid`, create or update the optional Mermaid Markdown diagram artifact for metadata, evidence, assumptions, maintenance notes, queue linkage, and Mermaid content.
43
+ - If the selected output set includes `html`, create or update the optional standalone HTML file under `devspec/architecture/html/dia-NNN-<diagram-name>.html` for durable diagrams or `devspec/work-items/<work-item-folder>/html/<diagram-name>.html` for temporary work-item diagrams.
44
+ - All generated SVG and HTML diagram visuals must follow the shared dark architecture-style visual contract from `PATTERNS.md#svg-output-pattern`: dark slate page, framed surface, subtle grid or dividers, monospace typography, semantic neon role colors, real text labels, arrows behind nodes, compact legends, and no white/default/simple styling unless the user explicitly requests a light or custom theme.
45
+ - For SVG output, select the template from `PATTERNS.md#svg-output-pattern`: `architecture-diagram.svg`, `process-flow-diagram.svg`, `sequence-diagram.svg`, `state-lifecycle-diagram.svg`, `domain-model-diagram.svg`, `journey-map-diagram.svg`, `timeline-plan-diagram.svg`, `quadrant-analysis-diagram.svg`, or `mindmap-diagram.svg`, using the most specific matching queue tags, explicit request, or diagram family.
46
+ - Keep queue `Diagram type` as the logical diagram family. Choose the full Mermaid declaration for generated Mermaid content from queue notes, catalog guidance, or evidence, such as `flowchart LR`, `flowchart TD`, `flowchart BT`, `sequenceDiagram`, `stateDiagram-v2`, `erDiagram`, `gantt`, `quadrantChart`, `mindmap`, or `timeline`.
47
+ - Prefer `flowchart LR` for relationship maps, dependency graphs, event flows, and pipelines; `flowchart TD` for context, topology, hierarchy, data movement, and risk grouping; `sequenceDiagram` for interactions over time; `journey` for user-facing flows; `stateDiagram-v2` for lifecycle behavior; `classDiagram` for stable domain or structural relationships; `erDiagram` for entity relationship models; `gantt` for sprint plans and release schedules; `timeline` for historical milestones and event sequences; `quadrantChart` for 2D priority or risk scoring; and `mindmap` for exploratory domain brainstorming when formal structure is not yet available.
48
+ - Reuse matching queue metadata for subject, scope, diagram type, target location, evidence, and confidence instead of reclassifying from scratch unless the queued row is stale, contradicted, or incomplete.
49
+ - Store stable system, module, feature workflow, user journey, sequence, state, class/domain, process-flow, and cross-feature diagrams under `devspec/architecture/images/dia-NNN-<diagram-name>.svg` by default. Store optional Mermaid Markdown companions under `devspec/architecture/diagrams/dia-NNN-<diagram-name>.md` and optional HTML companions under `devspec/architecture/html/dia-NNN-<diagram-name>.html`.
50
+ - Store work-item diagrams only for explicit requests or clearly temporary bug reproduction, migration path, security incident or threat flow, implementation plan, or experiment flows that should not become durable architecture.
51
+ - Keep `devspec/architecture/overview.md` limited to architecture context, diagram references, decision references, and architecture gaps or blockers.
52
+ - Use `devspec/architecture/artifact-queue.md` as the resumable diagram queue.
53
+ - For durable diagram files, write status only to `devspec/architecture/artifact-queue.md`; do not mirror queue status in the generated diagram file.
54
+ - For work-item diagrams, do not maintain a separate diagram index or status; write temporary SVG output under `images/`, optional Mermaid Markdown content under `Diagram Content`, optional HTML under `html/`, and keep diagram status from `devspec/glossary.md#artifact-status-values` in `devspec/architecture/artifact-queue.md`.
55
+ - Update `Resume State` in the target diagram artifact, and `Workflow State` in `meta.md` only for work-item diagrams.
56
+ - Update queue rows before asking for `confirmation`, `approval`, or `continuation`, after generation, or when evidence is missing.
57
+ - For process-flow batch generation, select only rows where `Tags` includes `process-flow`, status is `proposed` or `confirmed`, confidence is `observed` or `high-confidence`, target location matches `devspec/architecture/images/dia-NNN-<diagram-name>.svg` unless a non-SVG output set is explicitly requested, any recorded output format is valid, and `Next action or notes` records that duplicate check passed.
58
+ - Generate process-flow batch rows in `DIA-*` order, never renumber existing rows, mark generated rows `generated`, and leave low-confidence, blocked, ambiguous, or duplicate rows queued with notes.
59
+ - Ensure generated process-flow diagrams are end-to-end business or operational flows, not module call graphs. The hybrid user-to-data operational flow must include user entry points, application boundaries, services, data stores, validations, operational states, and outcomes without becoming a pure infrastructure or database diagram.
60
+ - For process-flow SVGs, keep the happy path visually obvious, use distinct roles for start/end, manual, automated, integration, decision, exception, and artifact steps, draw exception paths as labeled dashed rose arrows, label loop-backs or rework paths, and avoid dangling branches.
61
+ - Before writing, check `devspec/architecture/images/*.svg`, `devspec/architecture/diagrams/*.md`, `devspec/architecture/html/*.html`, `devspec/architecture/overview.md`, `devspec/architecture/artifact-queue.md`, and relevant work-item `images/*.svg`, `diagrams.md`, and `html/*.html` files for equivalent diagrams.
62
+ - Use `../../devspec/architecture/_template/diagram.md` only when the selected output set includes `mermaid` for detailed architecture diagrams, `../../devspec/architecture/_template/diagram.html` only when the selected output set includes `html`, and `../../devspec/work-items/_template/diagrams.md` only when the selected output set includes `mermaid` for explicit or temporary work-item diagrams.
63
+ - Use the selected SVG template from `../../devspec/architecture/_template/` as the starting point unless a documented constraint requires a smaller custom SVG. A custom SVG must still preserve the shared dark visual contract.
64
+ - Prefer existing devspec artifacts, queue rows, manifests, and targeted reads before broad search or Explore runs.
65
+ - Never use an excluded diagram family from `PATTERNS.md#excluded-diagram-families`. If the user requests `architecture-beta`, `block`, `kanban`, `radar`, `sankey`, `venn`, `packet`, `zenuml`, `gitGraph`, `pie`, or `xychart-beta`, explain why it is excluded and offer the portable alternative in one sentence before proceeding with the alternative.
66
+
67
+ ## Approach
68
+ 1. Parse the requested subject, scope, audience, diagram type, and any structured architecture or diagram-family intake fields.
69
+ 2. Read relevant architecture, foundation, queue, and work-item artifacts only when referenced.
70
+ 3. Reconcile `Resume State`, existing queue rows, discovery exclusions, and optional exploration state.
71
+ 4. Match the request to an existing queue row when possible, then reuse its scope, diagram type, subject, target location, evidence, and confidence.
72
+ 5. Classify scope as `architecture`, `module`, `feature`, `workflow`, `user-journey`, or `work-item` only when no usable queue row exists.
73
+ 6. Select the output format, diagram type, and Mermaid declaration when the selected output set includes `mermaid`, defaulting to `format=svg`, or ask one structured `selection` question when the format, diagram type, declaration, or target location is ambiguous.
74
+ 7. Gather evidence with targeted reads, search, or Explore.
75
+ 8. Check for an equivalent existing diagram before adding a queue row or writing output.
76
+ 9. Add or update queue rows with scope, diagram type, subject, target location, evidence, confidence, status, tags, and next action or notes that include the duplicate-check result.
77
+ 10. If the user requested process-flow batch generation, filter eligible process-flow rows and generate them in `DIA-*` order.
78
+ 11. Otherwise, ask one structured `clarification`, `approval`, or `continuation` question for clarification, overwrite approval, or queue continuation when needed.
79
+ 12. Generate selected output: for SVG, follow the SVG Output Pattern, use the SVG template, avoid external assets and forbidden elements, and validate the file as XML before reporting success; for Mermaid output, create the optional Markdown artifact and follow Mermaid internal naming and visual quality rules; for HTML output, use the HTML template and keep it standalone and static. Then write selected output targets, add or update the `overview.md` `Diagram Reference Index` row when the diagram is durable, mark generated queue rows `generated`, `skipped`, or `blocked`, and report per Output Format.
80
+
81
+ ## Output Format
82
+ - Diagram target location
83
+ - Diagram scope, diagram type, output format, Mermaid declaration when present, and SVG target when present
84
+ - Confidence
85
+ - Queue status
86
+ - Tags
87
+ - Evidence and assumptions
88
+ - Blockers
89
+ - Updated files
90
+ - Single registered command, handoff, file update, or structured question
@@ -13,7 +13,7 @@ handoffs:
13
13
  You create or refresh devspec extraction artifacts from supported repository sources.
14
14
 
15
15
  ## Constraints
16
- - Follow the [Prerequisite Validation Pattern](../prompts/PATTERNS.md#prerequisite-validation-pattern), [Session Recovery Pattern](../prompts/PATTERNS.md#session-recovery-pattern), [Interactive Question Pattern](../prompts/PATTERNS.md#interactive-question-pattern), [Next Action Selection Pattern](../prompts/PATTERNS.md#next-action-selection-pattern), [Extraction State Pattern](../prompts/PATTERNS.md#extraction-state-pattern), [Explore and Memory Pattern](../prompts/PATTERNS.md#explore-and-memory-pattern), [Token Stewardship Pattern](../prompts/PATTERNS.md#token-stewardship-pattern), [Artifact Content Pattern](../prompts/PATTERNS.md#artifact-content-pattern), [Discovery Exclusion Pattern](../prompts/PATTERNS.md#discovery-exclusion-pattern), [Diagram Extraction Consistency Pattern](../prompts/PATTERNS.md#diagram-extraction-consistency-pattern), [Mermaid Internal Naming and Readability Pattern](../prompts/PATTERNS.md#mermaid-internal-naming-and-readability-pattern), [Process Flow Extraction Pattern](../prompts/PATTERNS.md#process-flow-extraction-pattern), [Exploration Recovery Pattern](../prompts/PATTERNS.md#exploration-recovery-pattern), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
16
+ - Follow the [Prerequisite Validation Pattern](../prompts/PATTERNS.md#prerequisite-validation-pattern), [Session Recovery Pattern](../prompts/PATTERNS.md#session-recovery-pattern), [Interactive Question Pattern](../prompts/PATTERNS.md#interactive-question-pattern), [Next Action Selection Pattern](../prompts/PATTERNS.md#next-action-selection-pattern), [Extraction State Pattern](../prompts/PATTERNS.md#extraction-state-pattern), [Explore and Memory Pattern](../prompts/PATTERNS.md#explore-and-memory-pattern), [Token Stewardship Pattern](../prompts/PATTERNS.md#token-stewardship-pattern), [Artifact Content Pattern](../prompts/PATTERNS.md#artifact-content-pattern), [Discovery Exclusion Pattern](../prompts/PATTERNS.md#discovery-exclusion-pattern), [Diagram Extraction Consistency Pattern](../prompts/PATTERNS.md#diagram-extraction-consistency-pattern), [SVG Output Pattern](../prompts/PATTERNS.md#svg-output-pattern), [Mermaid Internal Naming and Readability Pattern](../prompts/PATTERNS.md#mermaid-internal-naming-and-readability-pattern), [Mermaid Visual Quality Pattern](../prompts/PATTERNS.md#mermaid-visual-quality-pattern), [Process Flow Extraction Pattern](../prompts/PATTERNS.md#process-flow-extraction-pattern), [Exploration Recovery Pattern](../prompts/PATTERNS.md#exploration-recovery-pattern), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
17
17
  - Source input is optional. When source input is omitted or blank, ask one structured `selection` question before extraction using these options:
18
18
  - `Use current project root`: extract from the active VS Code workspace or project root where the devspec command is being run. Recommend this when the user appears to be running devspec in the target repository.
19
19
  - `Enter repo paths`: ask for one repository URL or local path, or named multi-repo paths such as `UI - D:\repo-ui, API - D:\repo-api`.
@@ -30,8 +30,10 @@ You create or refresh devspec extraction artifacts from supported repository sou
30
30
  - Seed foundation artifacts with developer-useful records, not general theory: each item must name the applicable scope, source evidence, confidence, and the required action, handling, guidance, or blocker it creates.
31
31
  - Prefer summary and comparison tables for extracted stack, layout, boundary, standards, rule, and blocker details; use bullets only for short direct facts.
32
32
  - Omit optional foundation sections that have no extracted, confirmed, inferred, or blocked content.
33
- - Never write final `devspec/constitution.md` changes without structured confirmation; only update `Durable Principles` or `Amendment Policy`, and route operational gates or evolving rules to `devspec/foundation/rules.md`.
34
- - Maintain a single active confirmation gate; do not ask constitution, process-flow candidate, diagram candidate, Mermaid generation, coding-standards conflict, or repository-access confirmations in the same response.
33
+ - Never write final `devspec/constitution.md` changes without structured confirmation; only update `Durable Principles`, `Amendment Policy`, or `Amendment Review`, and route operational gates, compliance procedures, enforcement details, or evolving governance requirements to `devspec/foundation/rules.md`.
34
+ - Treat extracted constitution items as candidates until confirmed by the user. Do not infer principle changes from code evidence alone, and preserve existing principles unless the user explicitly confirms replacement or removal.
35
+ - Before writing a confirmed constitution change, run a lightweight impact check against `devspec/foundation/project-context.md`, `devspec/foundation/rules.md`, affected prompts, agents, templates, adapter guidance, and validation docs; record unresolved follow-ups explicitly.
36
+ - Maintain a single active confirmation gate; do not ask constitution, process-flow candidate, diagram candidate, diagram generation, coding-standards conflict, or repository-access confirmations in the same response.
35
37
  - Confirmation priority is: source or access questions, conflicting extracted evidence, constitution principle changes, process-flow candidate approval, diagram candidate approval, then continuation or handoff.
36
38
  - Use `Proceed`, `Skip`, and `Custom Answer` for queue, generated artifact, retry, and workflow-continuation decisions; use `Yes`, `No`, and `Custom Answer` for binary confirmations.
37
39
  - Create or update `devspec/foundation/extraction-state.md` from `devspec/foundation/_template/extraction-state.md` when extraction starts and is not canceled.
@@ -39,17 +41,17 @@ You create or refresh devspec extraction artifacts from supported repository sou
39
41
  - Use `devspec/foundation/extraction-state.md` only for the extraction queue, resume state, blockers, and confirmations. Keep extracted facts in target artifacts, reusable discovery methods in `devspec/foundation/exploration-state.md`, and diagram queue state in `devspec/architecture/artifact-queue.md`.
40
42
  - Write or update `devspec/architecture/overview.md` and relevant live `devspec/foundation/` files.
41
43
  - Use `devspec/architecture/_template/*.md` and `devspec/foundation/_template/*.md` as section contracts; initialize missing live files from templates, but do not overwrite existing live files from templates.
42
- - During the `process-flows` extraction row, seed business-centric end-to-end process-flow candidates in `devspec/architecture/artifact-queue.md` when they meet the process-flow rubric and pass the equivalent-diagram check.
44
+ - During the `process-flows` extraction row, seed business-centric end-to-end process-flow candidates in `devspec/architecture/artifact-queue.md` when they meet the process-flow rubric and pass the equivalent-diagram check. Preserve requested output format notes when input includes supported diagram format tokens; default remains `format=svg`.
43
45
  - Include process-flow rows for business workflows, user journeys, lifecycle flows, cross-service process sequences, and the default `Hybrid User-to-Data Operational Flow` when evidence supports user entry points through application boundaries, services, integrations, data stores, validations, operational states, and outcomes.
44
- - During the `diagram-candidates` extraction row, seed non-process-flow Mermaid architecture, module, feature workflow, sequence, state, class/domain, and user-journey candidates in `devspec/architecture/artifact-queue.md` only when they meet the diagram extraction rubric and pass the equivalent-diagram check.
46
+ - During the `diagram-candidates` extraction row, seed non-process-flow architecture, module, feature workflow, sequence, state, class/domain, and user-journey candidates in `devspec/architecture/artifact-queue.md` only when they meet the diagram extraction rubric and pass the equivalent-diagram check.
45
47
  - Use the language-neutral default catalog in `PATTERNS.md#default-diagram-candidate-catalog` when selecting diagram candidates. Do not create language-, framework-, vendor-, or platform-specific default subjects.
46
48
  - Treat `/devspec.extract` as queue-first discovery seeding for diagram candidates; recommend `/devspec.diagram` as the normal follow-up for generation.
47
49
  - Add queued candidates in queue order with ID, scope, diagram type, subject, target location, evidence, confidence, status, tags, and next action or notes that include the duplicate-check result.
48
- - Use sequence-preserving naming for durable diagram candidates: `DIA-001` maps to subject `dia-001-<diagram-name>` and target `devspec/architecture/diagrams/dia-001-<diagram-name>.md`. Never renumber existing `DIA-*` rows or generated `dia-NNN-*` files.
50
+ - Use sequence-preserving naming for durable diagram candidates: `DIA-001` maps to subject `dia-001-<diagram-name>`, default SVG target `devspec/architecture/images/dia-001-<diagram-name>.svg`, optional Mermaid Markdown target `devspec/architecture/diagrams/dia-001-<diagram-name>.md`, and optional HTML target `devspec/architecture/html/dia-001-<diagram-name>.html`. Never renumber existing `DIA-*` rows or generated `dia-NNN-*` files.
49
51
  - Tag process-flow rows with `process-flow`, plus narrower tags such as `business-process`, `user-journey`, `lifecycle-flow`, or `hybrid-user-to-data-operational-flow` when they apply.
50
- - Keep queue `Diagram type` limited to the Mermaid family. Record suggested Mermaid declarations such as `flowchart LR`, `flowchart TD`, or `sequenceDiagram` in `Next action or notes` when orientation will help `/devspec.diagram`.
51
- - When queueing process-flow or diagram candidates, record that future generation must follow `PATTERNS.md#mermaid-internal-naming-and-readability-pattern`, including short node IDs, concise node and edge labels, single-concern scope, adjacent layering, implied returns, sequence happy paths, runtime/compile-time separation, system boundaries, and anti-bloat rules for API, Swagger, payload, and framework boilerplate details.
52
- - Ask one structured `approval` question before generating diagrams during extraction. Generate at most one confirmed diagram only if the user explicitly continues within the extraction run, update its queue status, then stop or ask one structured `continuation` question only when no higher-priority confirmation is pending.
52
+ - Keep queue `Diagram type` limited to the logical diagram family. Record suggested Mermaid declarations such as `flowchart LR`, `flowchart TD`, or `sequenceDiagram` when the output set includes `mermaid`, plus requested output format tokens such as `format=svg`, `format=html`, `format=mermaid`, `format=svg+html`, `format=svg+mermaid`, `format=svg+html+mermaid`, or `format=html+mermaid`, in `Next action or notes` when they will help `/devspec.diagram`.
53
+ - When queueing process-flow or diagram candidates, record in queue notes that future Mermaid generation must follow `PATTERNS.md#mermaid-internal-naming-and-readability-pattern` and `PATTERNS.md#mermaid-visual-quality-pattern`, and future SVG generation must select the SVG template from `PATTERNS.md#svg-output-pattern`. Do not queue diagram families listed in `PATTERNS.md#excluded-diagram-families` such as `architecture-beta`, `block`, or `xychart-beta`; use the documented portable alternative instead.
54
+ - Ask one structured `approval` question before generating diagrams during extraction. Generate at most one confirmed diagram artifact set only if the user explicitly continues within the extraction run, update its queue status, then stop or ask one structured `continuation` question only when no higher-priority confirmation is pending. Honor requested diagram output formats only after this approval.
53
55
  - On rerun, resume `devspec/architecture/artifact-queue.md` before proposing duplicate candidates; when several queue items are pending, ask only about the next unresolved row.
54
56
  - Do not create ADR files unless the user explicitly asks and the decision has clear supporting evidence. When an ADR is needed, initialize it from `devspec/architecture/_template/decision.md` and create `devspec/architecture/decisions/` on demand.
55
57
  - For multi-repo inputs, produce an architecture overview, keep per-repository provenance visible, and use supplied labels as repository names and role candidates in `codebase-structure.md`.
@@ -72,9 +74,9 @@ You create or refresh devspec extraction artifacts from supported repository sou
72
74
  6. Use `Explore` only when targeted reads and search are insufficient for the active row.
73
75
  7. Update the active target artifact with compact evidence-backed records, preserving manual content.
74
76
  8. Record blockers, confirmations, or completion in `extraction-state.md` before asking, pausing, blocking, or moving to the next row.
75
- 9. For `process-flows`, update only `devspec/architecture/artifact-queue.md`; queue eligible process-flow rows with `process-flow` tags, `dia-NNN-*` subjects, and notes covering actor or trigger, business outcome, decisions or state changes, data touchpoints, integrations, duplicate-check result, Mermaid declaration guidance, and Mermaid internal naming guidance.
76
- 10. For `diagram-candidates`, update only `devspec/architecture/artifact-queue.md`; include Mermaid internal naming guidance in queue notes and generate diagrams only through confirmed continuation or `/devspec.diagram`.
77
- 11. For `constitution-candidates`, ask before writing principle-level changes.
77
+ 9. For `process-flows`, update only `devspec/architecture/artifact-queue.md`; queue eligible process-flow rows with `process-flow` tags, `dia-NNN-*` subjects, and notes covering actor or trigger, business outcome, decisions or state changes, data touchpoints, integrations, duplicate-check result, output format when specified, Mermaid declaration and internal naming guidance when the output set includes `mermaid`, and process-flow SVG template guidance when the output set includes `svg`.
78
+ 10. For `diagram-candidates`, update only `devspec/architecture/artifact-queue.md`; include output format, Mermaid internal naming guidance when the output set includes `mermaid`, SVG output guidance when the output set includes `svg`, and HTML output guidance when the output set includes `html` in queue notes, and generate diagrams only through confirmed continuation or `/devspec.diagram`.
79
+ 11. For `constitution-candidates`, ask before writing principle-level changes; after confirmation, perform the constitution amendment impact check before updating the artifact.
78
80
  12. Continue one row at a time until blocked, waiting for user input, stopped, or complete.
79
81
  13. Report per Output Format.
80
82