devspec 0.1.3__tar.gz → 0.2.0__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.3 → devspec-0.2.0}/.agents/rules/devspec-workflow.md +1 -1
- devspec-0.2.0/.agents/skills/devspec-changerequest.md +13 -0
- devspec-0.2.0/.claude/skills/devspec-changerequest/SKILL.md +14 -0
- devspec-0.2.0/.gemini/commands/devspec/changerequest.toml +13 -0
- devspec-0.2.0/.github/agents/devspec.changerequest.agent.md +34 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.clarify.agent.md +6 -3
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.extract.agent.md +5 -5
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.implement-task.agent.md +6 -2
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.review.agent.md +4 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.story.agent.md +1 -1
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/PATTERNS.md +15 -11
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/README.md +3 -1
- devspec-0.2.0/.github/prompts/devspec.changerequest.prompt.md +11 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.clarify.prompt.md +1 -1
- {devspec-0.1.3 → devspec-0.2.0}/AGENTS.md +2 -2
- {devspec-0.1.3 → devspec-0.2.0}/GEMINI.md +2 -1
- {devspec-0.1.3 → devspec-0.2.0}/PKG-INFO +56 -247
- devspec-0.2.0/README.md +117 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/antigravity.md +1 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/claude-code.md +1 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/command-registry.md +2 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/gemini-cli.md +1 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/validation-flows.md +17 -5
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/diagram.md +4 -1
- {devspec-0.1.3/devspec/foundation → devspec-0.2.0/devspec/foundation/_template}/extraction-state.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/provider-integrations.md +1 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/provider-integrations.md +1 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/clarify.md +7 -4
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/diagrams.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/finalize.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/implement.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/meta.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/review.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/story.md +4 -1
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/tasks.md +4 -1
- devspec-0.2.0/docs/assets/command-flow-existing-repository.svg +62 -0
- devspec-0.2.0/docs/assets/command-flow-new-repository.svg +56 -0
- devspec-0.2.0/docs/assets/command-flow-work-item-lifecycle.svg +81 -0
- devspec-0.2.0/docs/assets/command-flow-work-item-selection.svg +41 -0
- {devspec-0.1.3 → devspec-0.2.0}/docs/how-to/README.md +121 -183
- {devspec-0.1.3 → devspec-0.2.0}/docs/how-to/setup/README.md +7 -5
- {devspec-0.1.3 → devspec-0.2.0}/docs/how-to/setup/homebrew.md +66 -21
- devspec-0.2.0/docs/how-to/setup/manual-copy.md +93 -0
- {devspec-0.1.3 → devspec-0.2.0}/docs/how-to/setup/uv.md +82 -10
- {devspec-0.1.3 → devspec-0.2.0}/docs/how-to/setup/winget.md +73 -21
- {devspec-0.1.3/packaging/homebrew/tap/Formula → devspec-0.2.0/packaging/homebrew}/devspec.rb +6 -6
- {devspec-0.1.3/packaging/homebrew → devspec-0.2.0/packaging/homebrew/tap/Formula}/devspec.rb +6 -6
- devspec-0.2.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.2.0/SpecLabs.Devspec.installer.yaml +12 -0
- devspec-0.2.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.2.0/SpecLabs.Devspec.locale.en-US.yaml +21 -0
- devspec-0.2.0/packaging/winget/manifests/s/SpecLabs/Devspec/0.2.0/SpecLabs.Devspec.yaml +6 -0
- {devspec-0.1.3 → devspec-0.2.0}/pyproject.toml +4 -3
- {devspec-0.1.3 → devspec-0.2.0}/src/devspec_installer/__init__.py +1 -1
- {devspec-0.1.3 → devspec-0.2.0}/tests/test_cli.py +30 -0
- devspec-0.1.3/README.md +0 -309
- devspec-0.1.3/docs/how-to/setup/manual-copy.md +0 -154
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-clarify.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-codebase-structure.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-coding-standards.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-diagram.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-extract.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-finalize.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-implement.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-projectcontext.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-review.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-rules.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-story.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-tasks.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.agents/skills/devspec-techstack.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-clarify/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-codebase-structure/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-coding-standards/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-diagram/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-extract/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-finalize/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-implement/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-projectcontext/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-review/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-rules/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-story/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-tasks/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.claude/skills/devspec-techstack/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.cursor/rules/devspec-workflow.mdc +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/clarify.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/codebase-structure.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/coding-standards.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/diagram.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/extract.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/finalize.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/implement.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/projectcontext.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/review.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/rules.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/story.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/tasks.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gemini/commands/devspec/techstack.toml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.codebase-structure.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.coding-standards.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.diagram.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.finalize.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.projectcontext.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.rules.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.tasks.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/agents/devspec.techstack.agent.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.codebase-structure.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.coding-standards.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.diagram.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.extract.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.finalize.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.implement.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.projectcontext.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.review.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.rules.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.story.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.tasks.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/prompts/devspec.techstack.prompt.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.github/skills/exploration-recovery/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/.gitignore +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/LICENSE +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/README.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/codex-skills/devspec-workflow/SKILL.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/codex.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/compatibility-matrix.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/copilot.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/cursor.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/adapters/enterprise-governance.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/architecture-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/artifact-queue.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/decision.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/diagram.html +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/domain-model-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/journey-map-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/mindmap-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/overview.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/process-flow-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/quadrant-analysis-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/sequence-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/state-lifecycle-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/_template/timeline-plan-diagram.svg +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/artifact-queue.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/diagrams/README.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/html/README.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/images/README.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/architecture/overview.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/constitution.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/codebase-structure.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/coding-standards.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/discovery-exclusions.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/exploration-state.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/project-context.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/rules.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/_template/tech-stack.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/codebase-structure.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/coding-standards.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/discovery-exclusions.md +0 -0
- {devspec-0.1.3/devspec/foundation/_template → devspec-0.2.0/devspec/foundation}/extraction-state.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/project-context.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/rules.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/foundation/tech-stack.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/glossary.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/decisions.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/devspec/work-items/_template/notes.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/devspec-profiles.json +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/homebrew/tap/README.md +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.installer.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.locale.en-US.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.1/SpecLabs.Devspec.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.installer.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.locale.en-US.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.2/SpecLabs.Devspec.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.installer.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.locale.en-US.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/packaging/winget/manifests/s/SpecLabs/Devspec/0.1.3/SpecLabs.Devspec.yaml +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/scripts/test-local-install.ps1 +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/scripts/test-local-install.sh +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/src/devspec_installer/__main__.py +0 -0
- {devspec-0.1.3 → devspec-0.2.0}/src/devspec_installer/cli.py +0 -0
|
@@ -13,7 +13,7 @@ Follow these rules:
|
|
|
13
13
|
- Preserve the original intent of the canonical Copilot prompt and agent files named in the registry.
|
|
14
14
|
- Use Git-tracked `devspec/` artifacts for recovery before relying on chat history, Antigravity artifacts, memory, or task lists.
|
|
15
15
|
- Preserve required inputs, output artifacts, status values, gates, handoff order, and recovery behavior.
|
|
16
|
-
- Preserve structured question behavior from `.github/prompts/PATTERNS.md#interactive-question-pattern
|
|
16
|
+
- Preserve structured question behavior from `.github/prompts/PATTERNS.md#interactive-question-pattern`: show interactive multiple-choice options when Antigravity can render them, otherwise render the identical options as text; include an example for every option and `Custom Answer`; ask one question at a time; and preserve the recommendation with its justification.
|
|
17
17
|
- Use `devspec/glossary.md` for status values.
|
|
18
18
|
- Use `devspec/foundation/codebase-structure.md` for repository access requirements.
|
|
19
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`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devspec-changerequest
|
|
3
|
+
description: Run /devspec.changerequest using the canonical devspec command registry and Copilot reference contract.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Execute canonical command `/devspec.changerequest`.
|
|
7
|
+
|
|
8
|
+
- Read `devspec/adapters/command-registry.md` for the command contract.
|
|
9
|
+
- Read `.github/prompts/devspec.changerequest.prompt.md` and `.github/agents/devspec.changerequest.agent.md` as the source of intent.
|
|
10
|
+
- Preserve required inputs, artifact outputs, status values, gates, handoff order, and recovery behavior.
|
|
11
|
+
- Use Git-tracked `devspec/` artifacts for recovery before relying on chat history or Antigravity artifacts.
|
|
12
|
+
- Append accepted `CR-###` scope to existing work-item artifacts; do not create a CR-specific Markdown file or rewrite baseline history.
|
|
13
|
+
- Treat unsupported Antigravity behavior as an adapter limitation, not a workflow change.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devspec-changerequest
|
|
3
|
+
description: Run /devspec.changerequest using the canonical devspec command registry. Records one missed related requirement for a finalized work item without rewriting baseline history.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Execute canonical command `/devspec.changerequest`.
|
|
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.changerequest.prompt.md` and `.github/agents/devspec.changerequest.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, and output closure.
|
|
12
|
+
5. Preserve baseline rows and prior evidence; append accepted `CR-###` scope only to existing work-item artifacts.
|
|
13
|
+
|
|
14
|
+
Command input comes from the user's current message.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
description = "Run canonical /devspec.changerequest from Gemini CLI."
|
|
2
|
+
prompt = """
|
|
3
|
+
Execute canonical command `/devspec.changerequest`.
|
|
4
|
+
|
|
5
|
+
Before acting:
|
|
6
|
+
1. Read `devspec/adapters/command-registry.md` and use the `/devspec.changerequest` row as the command contract.
|
|
7
|
+
2. Read `.github/prompts/devspec.changerequest.prompt.md` and `.github/agents/devspec.changerequest.agent.md` as the protected source of intent.
|
|
8
|
+
3. Follow `.github/prompts/PATTERNS.md` for shared workflow, recovery, output, and recommendation behavior.
|
|
9
|
+
4. Recover from existing Git-tracked `devspec/` artifacts before relying on Gemini session memory.
|
|
10
|
+
5. Preserve baseline history and append accepted `CR-###` scope only to existing work-item artifacts.
|
|
11
|
+
6. Treat Gemini-specific command syntax as platform mechanics, not a workflow change.
|
|
12
|
+
|
|
13
|
+
The user's raw command input, if any, is appended below these instructions by Gemini CLI.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "devspec.changerequest"
|
|
3
|
+
description: "Use to append one missed related requirement to a finalized-or-later work item as an immutable change request."
|
|
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: Continue to Finalize
|
|
10
|
+
agent: devspec.finalize
|
|
11
|
+
prompt: Create or update the readiness brief for the active change request.
|
|
12
|
+
- label: Create Linked Work Item
|
|
13
|
+
agent: devspec.story
|
|
14
|
+
prompt: Create the independently scoped linked work item selected during change-request intake.
|
|
15
|
+
---
|
|
16
|
+
You append one missed, related completeness addition to an existing work item without rewriting baseline history.
|
|
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), and [Output Closure Pattern](../prompts/PATTERNS.md#output-closure-pattern).
|
|
20
|
+
- `meta.md` and `story.md` must exist, and the work-item status must be `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`.
|
|
21
|
+
- If the baseline is not finalized, do not create a change request; route missing baseline information to `/devspec.story`, or `/devspec.clarify` when an active blocker already records the question.
|
|
22
|
+
- Handle exactly one related completeness addition per run: missing description, acceptance criterion, functional requirement, nonfunctional requirement, or edge case for the same intended outcome.
|
|
23
|
+
- Append the next `CR-###` to `story.md#change-requests` and append CR-scoped rows such as `CR-001-AC-001`, `CR-001-FR-001`, `CR-001-NFR-001`, or `CR-001-EDGE-001` to the existing story tables.
|
|
24
|
+
- Do not create a dedicated change-request Markdown file. Use existing `meta.md`, `story.md`, and `decisions.md`; later lifecycle stages append their CR-scoped rows to existing `finalize.md`, `tasks.md`, `implement.md`, and `review.md`.
|
|
25
|
+
- Do not rewrite baseline `Summary`, `Description`, `AC-*`, `FR-*`, `NFR-*`, `EDGE-*`, planning signals, completed tasks, implementation evidence, or review evidence.
|
|
26
|
+
- If the request appears independent or unrelated, ask one structured `selection` question with `Append to the current work item` (example: add a missing invalid-input rule for an existing form), `Create a new linked work item` (example: add notifications to an implemented profile-edit story), and `Custom Answer` (example: explain another relationship). Show exactly one recommendation with its justification. Do not append a `CR-###` when a linked item is selected.
|
|
27
|
+
- Update `Workflow State` in `meta.md` and `Resume State` in `story.md` before asking a target, relationship, or requirement question.
|
|
28
|
+
- Keep any material change-request decision in `decisions.md`; do not duplicate the intake rows there.
|
|
29
|
+
- Ask one structured question at a time and hand off to `/devspec.finalize` after accepting a related change request.
|
|
30
|
+
|
|
31
|
+
## Approach
|
|
32
|
+
1. Locate the existing work item and read `meta.md`, `story.md`, `decisions.md`, and downstream artifacts when present.
|
|
33
|
+
2. Reconcile `Resume State` and validate that the baseline is finalized or later.
|
|
34
|
+
3. Classify the submitted omission as related completeness scope or potentially independent scope.
|
|
@@ -9,6 +9,9 @@ handoffs:
|
|
|
9
9
|
- label: Back to Work-Item Intake
|
|
10
10
|
agent: devspec.story
|
|
11
11
|
prompt: Revise work-item intake from this clarification.
|
|
12
|
+
- label: Capture Post-Baseline Change Request
|
|
13
|
+
agent: devspec.changerequest
|
|
14
|
+
prompt: Record the missed related requirement without rewriting baseline history.
|
|
12
15
|
- label: Continue to Finalize
|
|
13
16
|
agent: devspec.finalize
|
|
14
17
|
prompt: Create or update the implementation readiness brief.
|
|
@@ -21,9 +24,9 @@ You create or update `devspec/work-items/<work-item-folder>/clarify.md`.
|
|
|
21
24
|
- Update `Workflow State` in `meta.md` and `Resume State` in `clarify.md` before asking or resolving a blocking question.
|
|
22
25
|
- Handle one independent blocker at a time.
|
|
23
26
|
- 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.
|
|
27
|
+
- 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.changerequest`.
|
|
25
28
|
- 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
|
|
29
|
+
- For structured clarification questions, show interactive multiple-choice options or the identical text fallback; provide 2-5 meaningful and mutually exclusive context-specific options plus `Custom Answer`; when no two meaningful alternatives exist, offer `Provide the missing detail` plus `Custom Answer`; give every option a brief non-binding example; and identify exactly one recommended option with a clear justification.
|
|
27
30
|
- Keep active and resolved blocker records only in `Clarification Log`; at most one row may be `open`.
|
|
28
31
|
- Keep handoff and next-action state in `Resume State`, not in a separate outcome section.
|
|
29
32
|
- 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.
|
|
@@ -33,7 +36,7 @@ You create or update `devspec/work-items/<work-item-folder>/clarify.md`.
|
|
|
33
36
|
1. Locate the target work item.
|
|
34
37
|
2. Read `meta.md` when present, `story.md`, `finalize.md` when present, and existing `clarify.md`.
|
|
35
38
|
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.
|
|
39
|
+
4. Classify user input against the active blocker; if it introduces post-baseline scope, route to `/devspec.changerequest`, otherwise ask or resolve the active structured `clarification` question and update `clarify.md` with `Resume State` and `Clarification Log`.
|
|
37
40
|
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
41
|
6. When no blocker remains open, update next action toward `/devspec.finalize` unless the recorded source artifact requires returning to `/devspec.story`.
|
|
39
42
|
7. Report per Output Format.
|
|
@@ -15,10 +15,10 @@ You create or refresh devspec extraction artifacts from supported repository sou
|
|
|
15
15
|
## Constraints
|
|
16
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
|
-
- `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
|
-
- `Enter repo paths`: ask for one repository URL or local path, or named multi-repo paths
|
|
20
|
-
- `Cancel extraction`: stop extraction and record no artifact changes.
|
|
21
|
-
- `Custom Answer`:
|
|
18
|
+
- `Use current project root`: extract from the active VS Code workspace or project root where the devspec command is being run. Example: use `D:\code\my-app` when it is the opened target repository. Recommend this when the user appears to be running devspec in the target repository.
|
|
19
|
+
- `Enter repo paths`: ask for one repository URL or local path, or named multi-repo paths. Example: `UI - D:\repo-ui, API - D:\repo-api`.
|
|
20
|
+
- `Cancel extraction`: stop extraction and record no artifact changes. Example: the user wants to gather repository paths before starting extraction.
|
|
21
|
+
- `Custom Answer`: accept another source instruction. Example: `Use only D:\code\api and skip the UI repository`.
|
|
22
22
|
- Accept only the confirmed current project root, GitHub, Azure DevOps, or GitLab repository URLs, or local repository folder paths.
|
|
23
23
|
- Treat remote inputs as repository URLs only; reject issue, pull request, merge request, work item, wiki, release, and pipeline URLs.
|
|
24
24
|
- Support a single repository, a monorepo root, or multiple named related repositories.
|
|
@@ -35,7 +35,7 @@ You create or refresh devspec extraction artifacts from supported repository sou
|
|
|
35
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
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.
|
|
37
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.
|
|
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.
|
|
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. Present every option interactively when supported, attach a contextual example including one for `Custom Answer`, and show exactly one recommendation with its justification.
|
|
39
39
|
- Create or update `devspec/foundation/extraction-state.md` from `devspec/foundation/_template/extraction-state.md` when extraction starts and is not canceled.
|
|
40
40
|
- Process `devspec/foundation/extraction-state.md#extraction-queue` one row at a time in ID order. Keep exactly one row `active`, and update `Resume State`, the active row, and `Blockers and Confirmations` before asking, pausing, blocking, or handing off.
|
|
41
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`.
|
|
@@ -11,6 +11,9 @@ handoffs:
|
|
|
11
11
|
prompt: Review the current implementation.
|
|
12
12
|
- label: Start Another Work Item
|
|
13
13
|
agent: devspec.story
|
|
14
|
+
- label: Capture Post-Baseline Change Request
|
|
15
|
+
agent: devspec.changerequest
|
|
16
|
+
prompt: Record a missed related requirement without rewriting baseline history.
|
|
14
17
|
prompt: Start or update another devspec work item.
|
|
15
18
|
---
|
|
16
19
|
You implement the current work item and update `devspec/work-items/<work-item-folder>/implement.md`.
|
|
@@ -22,6 +25,7 @@ You implement the current work item and update `devspec/work-items/<work-item-fo
|
|
|
22
25
|
- For change-request implementation, implement only pending rows whose `Scope` matches the active `CR-###` unless the user explicitly directs otherwise; preserve baseline and prior CR evidence.
|
|
23
26
|
- Validate target repository path and access before changing code or running validation for multi-repo tasks.
|
|
24
27
|
- Stop before implementation when target repository access is missing, ambiguous, or unconfirmed; direct the user to `/devspec.codebase-structure`.
|
|
28
|
+
- If newly discovered user scope is a missed related requirement after finalization, do not expand implementation silently; hand off to `devspec.changerequest`.
|
|
25
29
|
- Do not edit repositories marked `reference-only`, `validation-only`, `release-coordination`, or `unavailable` without structured confirmation.
|
|
26
30
|
- Do not run validation in repositories marked `reference-only`, `release-coordination`, or `unavailable` without structured confirmation.
|
|
27
31
|
- Modify code when applicable and stay within finalized scope.
|
|
@@ -33,8 +37,8 @@ You implement the current work item and update `devspec/work-items/<work-item-fo
|
|
|
33
37
|
- Resume a `paused` current task when prerequisites still hold; ask one structured `resume` question for `stopped` or ambiguous state.
|
|
34
38
|
- Update `implement.md` using `../../devspec/work-items/_template/implement.md`.
|
|
35
39
|
- Apply implementation requirements from `../../devspec/foundation/rules.md#work-item-handling-rules`.
|
|
36
|
-
- After each completed task, report completed and pending counts and ask one structured `continuation` question with `Proceed
|
|
37
|
-
- If the same task exceeds three implementation or repair attempts, stop, explain the loop, and ask one structured `retry` question with `Proceed
|
|
40
|
+
- After each completed task, report completed and pending counts and ask one structured `continuation` question with `Proceed` (example: continue to the next pending task), `Skip` (example: defer the next task with a recorded reason), and `Custom Answer` (example: stop after the current repository). Show exactly one recommendation with its justification.
|
|
41
|
+
- If the same task exceeds three implementation or repair attempts, stop, explain the loop, and ask one structured `retry` question with `Proceed` (example: retry with the recorded safer method), `Skip` (example: leave the task blocked for later investigation), and `Custom Answer` (example: supply a new validation command). Show exactly one recommendation with its justification.
|
|
38
42
|
- Record task attempt failures with failed method, reason, retry condition, and next safer method.
|
|
39
43
|
- Record token telemetry before implementation and after completion when available; otherwise record it as unavailable.
|
|
40
44
|
- If code changes are not applicable in the configured target repository, record that clearly.
|
|
@@ -11,11 +11,15 @@ handoffs:
|
|
|
11
11
|
prompt: Address the review findings.
|
|
12
12
|
- label: Start Another Work Item
|
|
13
13
|
agent: devspec.story
|
|
14
|
+
- label: Capture Post-Baseline Change Request
|
|
15
|
+
agent: devspec.changerequest
|
|
16
|
+
prompt: Record a missed related requirement without rewriting baseline history.
|
|
14
17
|
prompt: Start or update another devspec work item.
|
|
15
18
|
---
|
|
16
19
|
You review the current work item and update `devspec/work-items/<work-item-folder>/review.md`.
|
|
17
20
|
|
|
18
21
|
## Constraints
|
|
22
|
+
- If review reveals a missed related requirement rather than a defect in finalized scope, preserve the review record and hand off to `devspec.changerequest`.
|
|
19
23
|
- Follow [PATTERNS.md](../prompts/PATTERNS.md), especially: Work-Item Target, Work-Item Change Request Pattern, Session Recovery, Interactive Question, Question Basis, Prerequisite Validation, Token Stewardship, Minimum Necessary Implementation, Task Quality Gate, Discovery Exclusion, Exploration Recovery, and Output Closure.
|
|
20
24
|
- `finalize.md`, `tasks.md`, and `implement.md` must exist.
|
|
21
25
|
- Review against the finalized brief, `tasks.md`, `implement.md`, and implemented changes, not a new plan.
|
|
@@ -31,7 +31,7 @@ You create or update work-item intake artifacts under `devspec/work-items/<work-
|
|
|
31
31
|
- Keep source confirmation and manual intake details in `story.md#source-record`; keep the concise requested outcome in `story.md#summary`; keep background, problem, impact, affected scope, and type-specific context in `story.md#description`; keep completion checks in `story.md#acceptance-criteria`; keep behavior in `story.md#functional-requirements`; keep quality attributes in `story.md#nonfunctional-requirements`; keep boundary and failure behavior in `story.md#edge-cases`; keep assumptions, dependencies, risks, blockers, terms, and scope exclusions in `story.md#planning-signals`; keep work-item decision records in `decisions.md`; do not duplicate those details in `meta.md`.
|
|
32
32
|
- For existing work items whose `meta.md#workflow-state` `Work item status` is `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`, classify new user scope with the Work-Item Change Request Pattern before editing baseline intake.
|
|
33
33
|
- Related post-baseline scope must append the next `CR-###` row in `story.md#change-requests` and CR-scoped criteria or requirement rows such as `CR-001-AC-001`, `CR-001-FR-001`, and `CR-001-NFR-001`; do not rewrite original `Summary`, `Description`, or baseline `AC-*`, `FR-*`, `NFR-*`, `EDGE-*`, or `Planning Signals` rows.
|
|
34
|
-
- If post-baseline input appears independent or unrelated to the current story, ask one structured `selection` question before writing
|
|
34
|
+
- If post-baseline input appears independent or unrelated to the current story, ask one structured `selection` question before writing with `Append to this work item` (example: a closely related acceptance-criteria adjustment), `Create a new linked work item` (example: an independent feature with its own tasks), and `Custom Answer` (example: explain another relationship). Show exactly one recommendation with its justification. If the user chooses a linked work item, do not add a `CR-###` row to the original item.
|
|
35
35
|
- When the user chooses a new linked work item, create it only through the standard folder naming pattern and record the original item in `meta.md#work-item-record` `Parent work item`; do not encode `CR-###` in the folder name.
|
|
36
36
|
- Update `Workflow State` in `meta.md` and `Resume State` in `story.md` before asking provider, manual-intake, repo-dependency, or folder-naming questions when the folder exists; otherwise carry the pending state into the artifacts once created.
|
|
37
37
|
- Record source resolution, confirmation, type, external reference, and type-appropriate urgency in `meta.md`; for features, record priority instead of severity.
|
|
@@ -6,17 +6,20 @@ Keep repeated workflow behavior here instead of duplicating it in every prompt o
|
|
|
6
6
|
|
|
7
7
|
- Ask exactly one user question at a time.
|
|
8
8
|
- Before asking, follow the [Question Basis Pattern](#question-basis-pattern).
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
9
|
+
- Ask every user-facing question as one structured `clarification`, confirmation, selection, continuation, resume, approval, or retry interaction.
|
|
10
|
+
- Take and resolve an unanswered, incomplete, ambiguous, conflicting, or custom response to any question as a clarification before continuing. Ask only the next one-at-a-time question needed to resolve it.
|
|
11
|
+
- Show interactive multiple-choice options. If the host cannot render interactive controls, render the identical options as text and ask the user to reply with one option label or `Custom Answer`.
|
|
12
|
+
- Include 2-5 meaningful, mutually exclusive context-specific options plus `Custom Answer` for every question. Give every option a brief, non-binding example that illustrates the likely answer or outcome.
|
|
13
|
+
- When an open-ended fact has no two meaningful alternatives, offer `Provide the missing detail` with an example of the required value, plus `Custom Answer` with an example of another valid response.
|
|
14
|
+
- Show exactly one recommended option with a clear justification.
|
|
15
|
+
- Every structured question must include question intent, prompt text, option labels and examples, `Custom Answer`, the recommendation and justification, fallback rendering, and the recorded state required by the Question Basis Pattern.
|
|
13
16
|
- Use stage-specific option sets only when the stage defines them in a pattern, agent, or artifact policy; otherwise use the standard option set for the question intent.
|
|
14
17
|
- Wait for the user's answer before asking another question.
|
|
15
18
|
- If several confirmations are discovered, present only the highest-priority one and defer the rest.
|
|
16
19
|
|
|
17
|
-
| Question intent | Use when | Standard options |
|
|
20
|
+
| Question intent | Use when | Standard options (each includes a contextual example) |
|
|
18
21
|
| --- | --- | --- |
|
|
19
|
-
| `clarification` | Required facts are missing or ambiguous, including provider identity, target work item, folder name,
|
|
22
|
+
| `clarification` | Required facts are missing or ambiguous, including provider identity, target work item, folder name, blocked readiness facts, or an unclear answer to an earlier question. | Meaningful stage-specific choices plus `Custom Answer`, each with an example. |
|
|
20
23
|
| `confirmation` | A resolved fact, provider item, constitution change, repository access value, generated artifact, or risky scope change needs explicit approval. | `Yes`, `No`, `Custom Answer` unless a stage-specific confirmation set is defined. |
|
|
21
24
|
| `selection` | The user must choose among sources, repositories, work items, diagram types, target locations, or other finite values. | The finite candidate values plus `Custom Answer`. |
|
|
22
25
|
| `continuation` | A workflow, queue item, task, or handoff can continue or stop at the current checkpoint. | `Proceed`, `Skip`, `Custom Answer`. |
|
|
@@ -27,6 +30,7 @@ Keep repeated workflow behavior here instead of duplicating it in every prompt o
|
|
|
27
30
|
Standard stage-specific option sets:
|
|
28
31
|
|
|
29
32
|
- Binary confirmations use `Yes`, `No`, and `Custom Answer`.
|
|
33
|
+
- Render every listed option with a contextual, non-binding example, include `Custom Answer` with an example of the text the user may enter, and show exactly one recommended option with its justification.
|
|
30
34
|
- Source selection for `/devspec.extract` uses `Use current project root`, `Enter repo paths`, `Cancel extraction`, and `Custom Answer`.
|
|
31
35
|
- Provider resolution uses `Confirm and continue`, `Reject and retry input`, `Switch to manual intake`, `Cancel`, and `Custom Answer`.
|
|
32
36
|
- Repository access confirmation uses the values in `devspec/glossary.md#access-requirement-values` plus `Custom Answer`.
|
|
@@ -40,8 +44,8 @@ Standard stage-specific option sets:
|
|
|
40
44
|
- Identify the source artifact, source section, source row or ID, user input, provider evidence, repository evidence, or failed lookup that created the question.
|
|
41
45
|
- Name the missing, ambiguous, conflicting, or unconfirmed fact and the material impact of leaving it unresolved.
|
|
42
46
|
- Ask only the highest-priority unresolved question; defer lower-impact questions until the active one is answered or withdrawn.
|
|
43
|
-
- Use the [Interactive Question Pattern](#interactive-question-pattern) for option labels
|
|
44
|
-
- Before waiting for the answer, record question intent, question source, blocking gap, material impact, option labels, recommended option and
|
|
47
|
+
- Use the [Interactive Question Pattern](#interactive-question-pattern) for option labels and examples, the `Custom Answer` entry, recommended option and justification, and fallback rendering.
|
|
48
|
+
- Before waiting for the answer, record question intent, question source, blocking gap, material impact, option labels and examples, the `Custom Answer` entry or response when provided, recommended option and justification, impacted artifacts, continuation condition, and next required action in the current `Resume State`, queue row, blocker row, or clarification log, using the stage artifact fields available for that command.
|
|
45
49
|
- Do not ask about low-impact preferences, implementation tactics better handled by `/devspec.tasks`, or facts already captured in upstream artifacts.
|
|
46
50
|
|
|
47
51
|
## Next Action Selection Pattern
|
|
@@ -532,12 +536,12 @@ Do not use the following Mermaid families regardless of the requested subject. F
|
|
|
532
536
|
- Before finalization, clarifications may update baseline intake when they resolve missing or ambiguous facts within the existing story scope.
|
|
533
537
|
- After `meta.md#workflow-state` `Work item status` records `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`, treat new user scope as a change request instead of rewriting baseline story, finalized scope, task rows, implementation evidence, or review evidence.
|
|
534
538
|
- Related post-baseline requests stay in the same work-item folder and append the next `CR-###` row in `story.md#change-requests`; derive the next ID from the highest existing `CR-###` in the work-item artifacts.
|
|
535
|
-
- Independent or unrelated requests require one structured `selection` question before writing. Options must include
|
|
539
|
+
- Independent or unrelated requests require one structured `selection` question before writing. Options must include `Append to the current work item` (example: a closely related refinement), `Create a new linked work item` (example: independent work with its own tasks), and `Custom Answer` (example: explain another relationship); show exactly one recommendation with its justification. If the user chooses a linked work item, create or update that separate work item and do not add a `CR-###` row to the original item.
|
|
536
540
|
- Completed baseline rows are immutable except for explicit correction notes or later append-only records. Do not regenerate, renumber, remove, or rewrite completed task rows, implementation evidence, or review findings to fit a later request.
|
|
537
541
|
- Change-request-scoped acceptance criteria and requirements use IDs prefixed by the change request, such as `CR-001-AC-001`, `CR-001-FR-001`, and `CR-001-NFR-001`, and should be added to the existing story tables rather than replacing baseline rows.
|
|
538
542
|
- Change-request finalization appends readiness, implementation brief, validation plan, and blocker rows for the active `CR-###`; `Resume State` `Current item` should identify `baseline` or the active `CR-###`.
|
|
539
543
|
- Change-request task planning appends new task rows after the highest existing task ID and records `Scope` as `CR-###`; baseline task rows use `baseline`.
|
|
540
|
-
- `/devspec.clarify` is not a scope-change intake command. If clarify input introduces post-baseline scope, record the routing reason and hand off to `/devspec.
|
|
544
|
+
- `/devspec.clarify` is not a scope-change intake command. If clarify input introduces post-baseline scope, record the routing reason and hand off to `/devspec.changerequest`.
|
|
541
545
|
- This pattern is future-only. It prevents new overwrite cases but does not require automated reconstruction of artifacts already overwritten by an earlier run.
|
|
542
546
|
|
|
543
547
|
## Work-Item Folder Naming Pattern
|
|
@@ -559,7 +563,7 @@ Do not use the following Mermaid families regardless of the requested subject. F
|
|
|
559
563
|
- Treat repository location, workspace membership, and access requirement as separate facts; do not classify a repository outside the current repository folder or workspace as `reference-only` based on location.
|
|
560
564
|
- Do not infer, default, or backfill missing access requirements. In particular, do not assume `reference-only`.
|
|
561
565
|
- For each repository with a missing or ambiguous access requirement, ask exactly one repository-specific structured `confirmation` question before writing or relying on that configuration.
|
|
562
|
-
- Access requirement confirmation options must be limited to the values in `devspec/glossary.md#access-requirement-values` plus `Custom Answer
|
|
566
|
+
- Access requirement confirmation options must be limited to the values in `devspec/glossary.md#access-requirement-values` plus `Custom Answer`; show each with a contextual example and exactly one recommendation with its justification.
|
|
563
567
|
- Respect access requirements: do not edit repositories marked `reference-only`, `validation-only`, `release-coordination`, or `unavailable` unless the user explicitly confirms a scope change.
|
|
564
568
|
- Do not run validation in repositories marked `reference-only`, `release-coordination`, or `unavailable` unless the user explicitly confirms a scope change.
|
|
565
569
|
- For multi-repo work, stop and surface a blocker instead of guessing when required repository configuration is missing, outdated, or inaccessible.
|
|
@@ -8,7 +8,7 @@ Artifacts should be developer-facing and compact. Prefer tables for stack, sourc
|
|
|
8
8
|
|
|
9
9
|
Foundation: `extract` -> `projectcontext` -> `techstack` -> `codebase-structure` -> `coding-standards` -> `rules`
|
|
10
10
|
|
|
11
|
-
Work items: `story` -> `finalize` -> `tasks` -> `implement` -> `review`; related post-baseline
|
|
11
|
+
Work items: `story` -> `finalize` -> `tasks` -> `implement` -> `review`; related post-baseline completeness additions enter through `changerequest`, append `CR-###` scope records, and continue through the same flow. `story` retains compatible change-request intake for existing users.
|
|
12
12
|
|
|
13
13
|
Use `clarify` only when work-item intake or finalization records a blocking question.
|
|
14
14
|
|
|
@@ -27,6 +27,7 @@ The registered devspec slash commands are:
|
|
|
27
27
|
- `/devspec.coding-standards`
|
|
28
28
|
- `/devspec.rules`
|
|
29
29
|
- `/devspec.story`
|
|
30
|
+
- `/devspec.changerequest`
|
|
30
31
|
- `/devspec.clarify`
|
|
31
32
|
- `/devspec.finalize`
|
|
32
33
|
- `/devspec.tasks`
|
|
@@ -80,6 +81,7 @@ See [Model recommendations](../../README.md#model-recommendations). Agent front
|
|
|
80
81
|
| `devspec.codebase-structure.prompt.md` | Capture selective repository trees, repository configuration, work areas and boundaries, integration contracts, and structure gaps or blockers. | `foundation/codebase-structure.md` |
|
|
81
82
|
| `devspec.coding-standards.prompt.md` | Capture an evidence-backed standards catalog with scoped rules, observed patterns, anti-patterns, source links, and optional short examples. | `foundation/coding-standards.md` |
|
|
82
83
|
| `devspec.rules.prompt.md` | Capture actionable operational rules, compliance requirements, forbidden patterns, delivery gates, work-item handling rules, exceptions, enforcement points, source, and confidence. | `foundation/rules.md` |
|
|
84
|
+
| `devspec.changerequest.prompt.md` | Append one missed, related requirement to a finalized-or-later work item as a `CR-###` record. | Existing `meta.md`, `story.md`, `decisions.md` |
|
|
83
85
|
| `devspec.story.prompt.md` | Create or update one work-item intake, or append a related post-baseline change request. | `meta.md`, `story.md`, `decisions.md`, `notes.md` |
|
|
84
86
|
| `devspec.clarify.prompt.md` | Ask, resolve, and record one active blocking clarification. | `clarify.md` |
|
|
85
87
|
| `devspec.finalize.prompt.md` | Create or update a structured implementation readiness brief with readiness assessment, foundation and architecture alignment, implementation brief, validation plan, and blockers. | `finalize.md` |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "devspec.changerequest"
|
|
3
|
+
description: "Append one missed related requirement to a finalized work item without rewriting baseline history."
|
|
4
|
+
argument-hint: "Enter the existing work item and one missing description, acceptance criterion, requirement, quality constraint, or edge case"
|
|
5
|
+
agent: "devspec.changerequest"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Record one missed, related completeness addition for an existing work item whose status is `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`. Append the addition as the next `CR-###` row and CR-scoped story rows in the existing work-item artifacts; do not create a new Markdown file for the change request or rewrite baseline history.
|
|
9
|
+
|
|
10
|
+
Use this command for a missing description, acceptance criterion, functional requirement, nonfunctional requirement, or edge case that completes the same intended outcome. If the input is independent, use the structured selection required by the [Work-Item Change Request Pattern](PATTERNS.md#work-item-change-request-pattern); a selected linked item continues through `/devspec.story`.
|
|
11
|
+
|
|
@@ -7,7 +7,7 @@ agent: "devspec.clarify"
|
|
|
7
7
|
|
|
8
8
|
Create or update `devspec/work-items/<work-item-folder>/clarify.md` for the current work item.
|
|
9
9
|
|
|
10
|
-
Use clarification only for active blockers inside current scope. If input introduces post-baseline scope for an item whose status is `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`, follow the [Work-Item Change Request Pattern](PATTERNS.md#work-item-change-request-pattern) and route to `/devspec.
|
|
10
|
+
Use clarification only for active blockers inside current scope. If input introduces post-baseline scope for an item whose status is `finalized`, `tasks-planned`, `implementing`, `implemented`, `reviewing`, or `reviewed`, follow the [Work-Item Change Request Pattern](PATTERNS.md#work-item-change-request-pattern) and route to `/devspec.changerequest`.
|
|
11
11
|
|
|
12
12
|
Optional user input:
|
|
13
13
|
${input:clarifyInput:Optional: answer the active blocker or add clarifying notes}
|
|
@@ -16,7 +16,7 @@ Before running or continuing any `devspec` workflow:
|
|
|
16
16
|
|
|
17
17
|
## Structured Questions
|
|
18
18
|
|
|
19
|
-
Follow `.github/prompts/PATTERNS.md#interactive-question-pattern` for user questions.
|
|
19
|
+
Follow `.github/prompts/PATTERNS.md#interactive-question-pattern` for user questions. Show interactive multiple-choice options; if the host cannot render them, render the identical options as text and accept one option label or `Custom Answer`. Ask one question at a time, include an example for every option and `Custom Answer`, and show exactly one recommended option with its justification. Preserve question intent, option labels and examples, the `Custom Answer` entry or response, the recommended option and justification, and the continuation condition in the relevant `Resume State` or `Workflow State` before waiting for input.
|
|
20
20
|
|
|
21
21
|
## No Intent Drift
|
|
22
22
|
|
|
@@ -67,7 +67,7 @@ Work-item story lifecycle:
|
|
|
67
67
|
/devspec.review
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
Use `/devspec.clarify` only when work-item intake or finalization records a blocking question. Use `/devspec.diagram` for diagram work after relevant context exists.
|
|
70
|
+
Use `/devspec.clarify` only when work-item intake or finalization records a blocking question. For a missed related requirement after finalization, use `/devspec.changerequest` and continue through `/devspec.finalize`, `/devspec.tasks`, `/devspec.implement`, and `/devspec.review`; it appends CR-scoped rows to existing work-item artifacts. Use `/devspec.diagram` for diagram work after relevant context exists.
|
|
71
71
|
|
|
72
72
|
## Enterprise Validation
|
|
73
73
|
|
|
@@ -11,7 +11,7 @@ Use this file as Gemini CLI and Gemini-backed agent context for this repository.
|
|
|
11
11
|
- Treat `.github/prompts/*.prompt.md` and `.github/agents/*.agent.md` as the protected reference implementation.
|
|
12
12
|
- Preserve canonical `/devspec.*` command vocabulary even when Gemini CLI invokes native commands such as `/devspec:story`.
|
|
13
13
|
- Recover from Git-tracked `devspec/` artifacts before relying on Gemini session memory.
|
|
14
|
-
- Preserve structured question behavior from `.github/prompts/PATTERNS.md#interactive-question-pattern
|
|
14
|
+
- Preserve structured question behavior from `.github/prompts/PATTERNS.md#interactive-question-pattern`: show interactive multiple-choice options when Gemini can render them, otherwise render the identical options as text; include an example for every option and `Custom Answer`; ask one question at a time; and preserve the recommendation with its justification.
|
|
15
15
|
- Do not store credentials, API keys, tokens, personal settings, or provider secrets in Gemini context, commands, or artifacts.
|
|
16
16
|
|
|
17
17
|
## Native Gemini Commands
|
|
@@ -27,6 +27,7 @@ Gemini CLI project commands live under `.gemini/commands/devspec/`.
|
|
|
27
27
|
| `/devspec.coding-standards` | `/devspec:coding-standards` |
|
|
28
28
|
| `/devspec.rules` | `/devspec:rules` |
|
|
29
29
|
| `/devspec.story` | `/devspec:story` |
|
|
30
|
+
| `/devspec.changerequest` | `/devspec:changerequest` |
|
|
30
31
|
| `/devspec.clarify` | `/devspec:clarify` |
|
|
31
32
|
| `/devspec.finalize` | `/devspec:finalize` |
|
|
32
33
|
| `/devspec.tasks` | `/devspec:tasks` |
|