devspec 0.1.0__tar.gz → 0.1.2__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.
- {devspec-0.1.0 → devspec-0.1.2}/.agents/rules/devspec-workflow.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-diagram.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-extract.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-projectcontext.md +1 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-rules.md +1 -0
- devspec-0.1.2/.claude/skills/devspec-clarify/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-codebase-structure/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-coding-standards/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-diagram/SKILL.md +19 -0
- devspec-0.1.2/.claude/skills/devspec-extract/SKILL.md +17 -0
- devspec-0.1.2/.claude/skills/devspec-finalize/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-implement/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-projectcontext/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-review/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-rules/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-story/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-tasks/SKILL.md +16 -0
- devspec-0.1.2/.claude/skills/devspec-techstack/SKILL.md +16 -0
- {devspec-0.1.0 → devspec-0.1.2}/.cursor/rules/devspec-workflow.mdc +1 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/diagram.toml +3 -1
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/extract.toml +2 -1
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.clarify.agent.md +12 -7
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.diagram.agent.md +19 -11
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.extract.agent.md +14 -12
- devspec-0.1.2/.github/agents/devspec.finalize.agent.md +60 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.implement-task.agent.md +19 -17
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.projectcontext.agent.md +4 -2
- devspec-0.1.2/.github/agents/devspec.review.agent.md +43 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.story.agent.md +19 -9
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.tasks.agent.md +15 -9
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/PATTERNS.md +181 -14
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/README.md +16 -10
- devspec-0.1.2/.github/prompts/devspec.diagram.prompt.md +13 -0
- devspec-0.1.2/.github/prompts/devspec.extract.prompt.md +11 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.finalize.prompt.md +3 -1
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.implement.prompt.md +5 -1
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.projectcontext.prompt.md +1 -1
- devspec-0.1.2/.github/prompts/devspec.review.prompt.md +15 -0
- devspec-0.1.2/.github/prompts/devspec.story.prompt.md +11 -0
- devspec-0.1.2/.github/prompts/devspec.tasks.prompt.md +15 -0
- devspec-0.1.2/.github/workflows/homebrew-package-publish.yml +54 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/workflows/winget-package-publish.yml +3 -2
- {devspec-0.1.0 → devspec-0.1.2}/AGENTS.md +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/PKG-INFO +12 -12
- {devspec-0.1.0 → devspec-0.1.2}/README.md +11 -11
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/README.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/antigravity.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/claude-code.md +1 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/codex-skills/devspec-workflow/SKILL.md +2 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/codex.md +1 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/command-registry.md +8 -8
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/gemini-cli.md +1 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/validation-flows.md +17 -8
- devspec-0.1.2/devspec/architecture/_template/architecture-diagram.svg +165 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/architecture/_template/artifact-queue.md +5 -5
- devspec-0.1.2/devspec/architecture/_template/diagram.md +118 -0
- {devspec-0.1.0/devspec/architecture → devspec-0.1.2/devspec/architecture/_template}/overview.md +2 -2
- devspec-0.1.2/devspec/architecture/_template/process-flow-diagram.svg +269 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/architecture/artifact-queue.md +5 -5
- {devspec-0.1.0 → devspec-0.1.2}/devspec/architecture/diagrams/README.md +12 -4
- devspec-0.1.2/devspec/architecture/images/README.md +20 -0
- {devspec-0.1.0/devspec/architecture/_template → devspec-0.1.2/devspec/architecture}/overview.md +2 -2
- {devspec-0.1.0 → devspec-0.1.2}/devspec/constitution.md +13 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/project-context.md +3 -3
- {devspec-0.1.0/devspec/foundation → devspec-0.1.2/devspec/foundation/_template}/provider-integrations.md +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/project-context.md +3 -3
- {devspec-0.1.0/devspec/foundation/_template → devspec-0.1.2/devspec/foundation}/provider-integrations.md +1 -1
- devspec-0.1.2/devspec/work-items/_template/clarify.md +28 -0
- devspec-0.1.2/devspec/work-items/_template/diagrams.md +47 -0
- devspec-0.1.2/devspec/work-items/_template/finalize.md +71 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/work-items/_template/implement.md +11 -10
- {devspec-0.1.0 → devspec-0.1.2}/devspec/work-items/_template/meta.md +5 -5
- {devspec-0.1.0 → devspec-0.1.2}/devspec/work-items/_template/review.md +5 -3
- devspec-0.1.2/devspec/work-items/_template/story.md +96 -0
- devspec-0.1.2/devspec/work-items/_template/tasks.md +43 -0
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/README.md +49 -15
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/setup/README.md +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/setup/homebrew.md +9 -7
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/setup/manual-copy.md +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/setup/uv.md +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/docs/how-to/setup/winget.md +1 -1
- devspec-0.1.2/packaging/homebrew/devspec.rb +44 -0
- devspec-0.1.2/packaging/homebrew/tap/Formula/devspec.rb +44 -0
- devspec-0.1.2/packaging/homebrew/tap/README.md +53 -0
- {devspec-0.1.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.0 → devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1}/SpecLabs.Devspec.installer.yaml +2 -2
- {devspec-0.1.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.0 → devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1}/SpecLabs.Devspec.locale.en-US.yaml +1 -1
- {devspec-0.1.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.0 → devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1}/SpecLabs.Devspec.yaml +1 -1
- devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.installer.yaml +12 -0
- devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.locale.en-US.yaml +22 -0
- devspec-0.1.2/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.yaml +6 -0
- {devspec-0.1.0 → devspec-0.1.2}/pyproject.toml +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/src/devspec_installer/__init__.py +1 -1
- {devspec-0.1.0 → devspec-0.1.2}/src/devspec_installer/cli.py +3 -1
- {devspec-0.1.0 → devspec-0.1.2}/tests/test_cli.py +57 -1
- devspec-0.1.0/.claude/skills/devspec-clarify/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-codebase-structure/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-coding-standards/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-diagram/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-extract/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-finalize/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-implement/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-projectcontext/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-review/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-rules/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-story/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-tasks/SKILL.md +0 -13
- devspec-0.1.0/.claude/skills/devspec-techstack/SKILL.md +0 -13
- devspec-0.1.0/.github/agents/devspec.finalize.agent.md +0 -51
- devspec-0.1.0/.github/agents/devspec.review.agent.md +0 -42
- devspec-0.1.0/.github/prompts/devspec.diagram.prompt.md +0 -11
- devspec-0.1.0/.github/prompts/devspec.extract.prompt.md +0 -11
- devspec-0.1.0/.github/prompts/devspec.review.prompt.md +0 -11
- devspec-0.1.0/.github/prompts/devspec.story.prompt.md +0 -11
- devspec-0.1.0/.github/prompts/devspec.tasks.prompt.md +0 -11
- devspec-0.1.0/devspec/architecture/_template/diagram.md +0 -62
- devspec-0.1.0/devspec/work-items/_template/clarify.md +0 -28
- devspec-0.1.0/devspec/work-items/_template/diagrams.md +0 -42
- devspec-0.1.0/devspec/work-items/_template/finalize.md +0 -65
- devspec-0.1.0/devspec/work-items/_template/story.md +0 -59
- devspec-0.1.0/devspec/work-items/_template/tasks.md +0 -38
- devspec-0.1.0/packaging/homebrew/devspec.rb +0 -19
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-clarify.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-codebase-structure.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-coding-standards.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-finalize.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-implement.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-review.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-story.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-tasks.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.agents/skills/devspec-techstack.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/clarify.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/codebase-structure.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/coding-standards.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/finalize.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/implement.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/projectcontext.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/review.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/rules.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/story.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/tasks.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gemini/commands/devspec/techstack.toml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.codebase-structure.agent.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.coding-standards.agent.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.rules.agent.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/agents/devspec.techstack.agent.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.clarify.prompt.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.codebase-structure.prompt.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.coding-standards.prompt.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.rules.prompt.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/prompts/devspec.techstack.prompt.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/skills/exploration-recovery/SKILL.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/workflows/python-package-ci.yml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.github/workflows/python-package-publish.yml +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/.gitignore +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/GEMINI.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/LICENSE +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/compatibility-matrix.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/copilot.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/cursor.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/adapters/enterprise-governance.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/architecture/_template/decision.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/codebase-structure.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/coding-standards.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/discovery-exclusions.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/exploration-state.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/extraction-state.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/rules.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/_template/tech-stack.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/codebase-structure.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/coding-standards.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/discovery-exclusions.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/extraction-state.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/rules.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/foundation/tech-stack.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/glossary.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/work-items/_template/decisions.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/devspec/work-items/_template/notes.md +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/packaging/devspec-profiles.json +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/scripts/test-local-install.ps1 +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/scripts/test-local-install.sh +0 -0
- {devspec-0.1.0 → devspec-0.1.2}/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 Mermaid as the default output and treat `format=svg` or `format=mermaid+svg` as canonical command input, not a separate workflow.
|
|
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
|
|
|
@@ -7,6 +7,8 @@ Execute canonical command `/devspec.diagram`.
|
|
|
7
7
|
|
|
8
8
|
- Read `devspec/adapters/command-registry.md` for the command contract.
|
|
9
9
|
- Read `.github/prompts/devspec.diagram.prompt.md` and `.github/agents/devspec.diagram.agent.md` as the source of intent.
|
|
10
|
+
- Preserve Mermaid as the default output, pass through `format=svg` for SVG-only output, and pass through `format=mermaid+svg` for both Mermaid and SVG.
|
|
11
|
+
- 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`.
|
|
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,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 `format=svg` and `format=mermaid+svg` as diagram generation preferences 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 Mermaid with opt-in SVG 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 Mermaid as the default output. Pass through `format=svg` for SVG-only output and `format=mermaid+svg` for both Mermaid and SVG; unsupported `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 `format=svg` and `format=mermaid+svg` as diagram generation preferences 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 Mermaid as the default output and treat `format=svg` or `format=mermaid+svg` as canonical command input, not a separate workflow.
|
|
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.
|
|
11
|
+
6. Preserve Mermaid as the default output, pass through `format=svg` for SVG-only output, and pass through `format=mermaid+svg` for both Mermaid and SVG.
|
|
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.
|
|
11
|
+
6. Preserve `format=svg` and `format=mermaid+svg` as diagram generation preferences 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
|
"""
|
|
@@ -11,26 +11,31 @@ handoffs:
|
|
|
11
11
|
prompt: Revise work-item intake from this clarification.
|
|
12
12
|
- label: Continue to Finalize
|
|
13
13
|
agent: devspec.finalize
|
|
14
|
-
prompt: Create or update the
|
|
14
|
+
prompt: Create or update the implementation readiness brief.
|
|
15
15
|
---
|
|
16
16
|
You create or update `devspec/work-items/<work-item-folder>/clarify.md`.
|
|
17
17
|
|
|
18
18
|
## Constraints
|
|
19
|
-
- Follow the [Work-Item Target Pattern](../prompts/PATTERNS.md#work-item-target-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), [Token Stewardship Pattern](../prompts/PATTERNS.md#token-stewardship-pattern), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
|
|
19
|
+
- Follow the [Work-Item Target Pattern](../prompts/PATTERNS.md#work-item-target-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
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
|
|
21
|
+
- Update `Workflow State` in `meta.md` and `Resume State` in `clarify.md` before asking or resolving a blocking question.
|
|
22
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
|
+
- Preserve and apply the Question Basis Pattern for the active blocker.
|
|
25
|
+
- 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`.
|
|
23
26
|
- Keep active and resolved blocker records only in `Clarification Log`; at most one row may be `open`.
|
|
24
27
|
- Keep handoff and next-action state in `Resume State`, not in a separate outcome section.
|
|
25
|
-
-
|
|
28
|
+
- 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.
|
|
29
|
+
- 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`.
|
|
26
30
|
|
|
27
31
|
## Approach
|
|
28
32
|
1. Locate the target work item.
|
|
29
|
-
2. Read `meta.md` when present, `story.md`, and existing `clarify.md`.
|
|
30
|
-
3. Reconcile `Resume State`; keep any pending user question active.
|
|
33
|
+
2. Read `meta.md` when present, `story.md`, `finalize.md` when present, and existing `clarify.md`.
|
|
34
|
+
3. Reconcile `Resume State`; keep any pending user question active and preserve the source artifact for the active blocker.
|
|
31
35
|
4. Ask or resolve the active structured `clarification` question, then update `clarify.md` with `Resume State` and `Clarification Log`.
|
|
32
36
|
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.
|
|
33
|
-
6.
|
|
37
|
+
6. When no blocker remains open, update next action toward `/devspec.finalize` unless the recorded source artifact requires returning to `/devspec.story`.
|
|
38
|
+
7. Report per Output Format.
|
|
34
39
|
|
|
35
40
|
## Output Format
|
|
36
41
|
- Work-item path updated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "devspec.diagram"
|
|
3
|
-
description: "Use to generate or update one evidence-backed Mermaid
|
|
3
|
+
description: "Use to generate or update one evidence-backed diagram, defaulting to Mermaid with opt-in SVG output, for architecture, workflows, journeys, sequences, states, timelines, planning views, or stable domain structures."
|
|
4
4
|
tools: [read, edit, search, vscode/askQuestions]
|
|
5
5
|
model: ["GPT-5.4 (copilot)", "GPT-5.3-Codex (copilot)", "Claude Sonnet 4.6 (copilot)", "Claude Haiku 4.5 (copilot)"]
|
|
6
6
|
user-invocable: true
|
|
@@ -13,18 +13,20 @@ handoffs:
|
|
|
13
13
|
agent: devspec.tasks
|
|
14
14
|
prompt: Create or update related implementation tasks.
|
|
15
15
|
---
|
|
16
|
-
You generate or update one diagram for a requested architecture, module, feature workflow, user journey, sequence, state, or stable domain subject.
|
|
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
17
|
|
|
18
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), [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).
|
|
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), [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
20
|
- Required user input is mandatory.
|
|
21
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
|
|
22
|
+
- Generate exactly one diagram artifact set per run unless the user continues through the queue or explicitly requests process-flow batch generation. A `format=mermaid+svg` request is one artifact set with two output files.
|
|
23
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
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 tokens are `format=mermaid`, `format=svg`, and `format=mermaid+svg`; default to `mermaid` when absent. Ask one structured `clarification` question for any other `format=` value.
|
|
25
26
|
- Do not invent architecture, user behavior, service interactions, states, or dependencies; separate observed facts from assumptions.
|
|
26
27
|
- 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.
|
|
27
28
|
- Use `PATTERNS.md#mermaid-internal-naming-and-readability-pattern` for Mermaid node ID, node label, edge label, class, method, layout, and anti-bloat rules.
|
|
29
|
+
- 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.
|
|
28
30
|
- Keep generated Mermaid concise: no `\n` or `<br>` line breaks in node or edge labels; put interaction context on 2-3 word edge labels.
|
|
29
31
|
- 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.
|
|
30
32
|
- 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.
|
|
@@ -32,8 +34,11 @@ You generate or update one diagram for a requested architecture, module, feature
|
|
|
32
34
|
- 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.
|
|
33
35
|
- 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.
|
|
34
36
|
- If the user asks for "only Mermaid", apply that restriction to the Mermaid content inside `Mermaid Diagram`; still preserve required devspec artifact metadata, source evidence, assumptions, and maintenance notes in the generated artifact.
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
+
- If the user requests `format=svg`, create or update the Markdown diagram artifact for metadata, evidence, assumptions, maintenance notes, queue linkage, and SVG target reference, but omit the Mermaid block content. 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.
|
|
38
|
+
- If the user requests `format=mermaid+svg`, create or update both the Markdown Mermaid diagram artifact and the SVG image file.
|
|
39
|
+
- For SVG output, use `../../devspec/architecture/_template/process-flow-diagram.svg` when the request is explicitly a process-flow SVG or the matched queue row has `process-flow`, `business-process`, `user-journey`, `lifecycle-flow`, or `hybrid-user-to-data-operational-flow` tags. Use `../../devspec/architecture/_template/architecture-diagram.svg` for all other architecture, component, topology, dependency, domain, state, sequence companion, and general workflow SVGs.
|
|
40
|
+
- 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`.
|
|
41
|
+
- 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.
|
|
37
42
|
- 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.
|
|
38
43
|
- Store stable system, module, feature workflow, user journey, sequence, state, class/domain, process-flow, and cross-feature diagrams under `devspec/architecture/diagrams/dia-NNN-<diagram-name>.md` by default.
|
|
39
44
|
- 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.
|
|
@@ -43,12 +48,15 @@ You generate or update one diagram for a requested architecture, module, feature
|
|
|
43
48
|
- For work-item `diagrams.md`, do not maintain a separate diagram index or status; write temporary work-item-specific diagram content under `Diagram Content` and keep diagram status from `devspec/glossary.md#artifact-status-values` in `devspec/architecture/artifact-queue.md`.
|
|
44
49
|
- Update `Resume State` in the target diagram artifact, and `Workflow State` in `meta.md` only for work-item diagrams.
|
|
45
50
|
- Update queue rows before asking for `confirmation`, `approval`, or `continuation`, after generation, or when evidence is missing.
|
|
46
|
-
- 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/diagrams/dia-NNN-<diagram-name>.md`, and `Next action or notes` records that duplicate check passed.
|
|
51
|
+
- 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/diagrams/dia-NNN-<diagram-name>.md`, any recorded output format is valid, and `Next action or notes` records that duplicate check passed.
|
|
47
52
|
- 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.
|
|
48
53
|
- 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.
|
|
49
|
-
-
|
|
54
|
+
- 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.
|
|
55
|
+
- Before writing, check `devspec/architecture/diagrams/*.md`, `devspec/architecture/images/*.svg`, `devspec/architecture/overview.md`, `devspec/architecture/artifact-queue.md`, and relevant work-item `diagrams.md` and `images/*.svg` files for equivalent diagrams.
|
|
50
56
|
- Use `../../devspec/architecture/_template/diagram.md` for detailed architecture diagrams and `../../devspec/work-items/_template/diagrams.md` only for explicit or temporary work-item diagrams.
|
|
57
|
+
- Use the selected SVG template from `../../devspec/architecture/_template/architecture-diagram.svg` or `../../devspec/architecture/_template/process-flow-diagram.svg` as the starting point unless a documented constraint requires a smaller custom SVG.
|
|
51
58
|
- Prefer existing devspec artifacts, queue rows, manifests, and targeted reads before broad search or Explore runs.
|
|
59
|
+
- 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.
|
|
52
60
|
|
|
53
61
|
## Approach
|
|
54
62
|
1. Parse the requested subject, scope, audience, and diagram type.
|
|
@@ -56,17 +64,17 @@ You generate or update one diagram for a requested architecture, module, feature
|
|
|
56
64
|
3. Reconcile `Resume State`, existing queue rows, discovery exclusions, and optional exploration state.
|
|
57
65
|
4. Match the request to an existing queue row when possible, then reuse its scope, diagram type, subject, target location, evidence, and confidence.
|
|
58
66
|
5. Classify scope as `architecture`, `module`, `feature`, `workflow`, `user-journey`, or `work-item` only when no usable queue row exists.
|
|
59
|
-
6. Select the diagram type and Mermaid declaration, or ask one structured `selection` question when the diagram type, declaration, or target location is ambiguous.
|
|
67
|
+
6. Select the output format, diagram type, and Mermaid declaration when Mermaid output is selected, or ask one structured `selection` question when the format, diagram type, declaration, or target location is ambiguous.
|
|
60
68
|
7. Gather evidence with targeted reads, search, or Explore.
|
|
61
69
|
8. Check for an equivalent existing diagram before adding a queue row or writing output.
|
|
62
70
|
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.
|
|
63
71
|
10. If the user requested process-flow batch generation, filter eligible process-flow rows and generate them in `DIA-*` order.
|
|
64
72
|
11. Otherwise, ask one structured `clarification`, `approval`, or `continuation` question for clarification, overwrite approval, or queue continuation when needed.
|
|
65
|
-
12. Generate
|
|
73
|
+
12. Generate selected output: for Mermaid, follow the Mermaid internal naming and visual quality rules; 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. Then write `Diagram Metadata`, selected diagram sections, `Source Evidence and Assumptions`, and any `Maintenance Notes` to the Markdown target, write the SVG target when selected, 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.
|
|
66
74
|
|
|
67
75
|
## Output Format
|
|
68
76
|
- Diagram target location
|
|
69
|
-
- Diagram scope, diagram type,
|
|
77
|
+
- Diagram scope, diagram type, output format, Mermaid declaration when present, and SVG target when present
|
|
70
78
|
- Confidence
|
|
71
79
|
- Queue status
|
|
72
80
|
- Tags
|
|
@@ -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
|
|
34
|
-
-
|
|
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 `format=svg` or `format=mermaid+svg`; default remains `format=mermaid`.
|
|
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
|
|
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
|
|
50
|
+
- Use sequence-preserving naming for durable diagram candidates: `DIA-001` maps to subject `dia-001-<diagram-name>`, Markdown target `devspec/architecture/diagrams/dia-001-<diagram-name>.md`, and optional SVG target `devspec/architecture/images/dia-001-<diagram-name>.svg`. 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
|
|
51
|
-
- When queueing process-flow or diagram candidates, record that future generation must follow `PATTERNS.md#mermaid-internal-naming-and-readability-pattern`,
|
|
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`, plus output format tokens such as `format=svg` or `format=mermaid+svg`, 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 follow `PATTERNS.md#svg-output-pattern`. For process-flow SVG candidates, note that `/devspec.diagram` must use `devspec/architecture/_template/process-flow-diagram.svg`; for other SVG candidates, use `devspec/architecture/_template/architecture-diagram.svg`. 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 `format=svg` and `format=mermaid+svg` 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,
|
|
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 guidance, Mermaid internal naming guidance, and process-flow SVG template guidance when requested.
|
|
78
|
+
10. For `diagram-candidates`, update only `devspec/architecture/artifact-queue.md`; include output format, Mermaid internal naming guidance, and SVG output guidance when requested 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
|
|