feat: add /speckit.amend command for post-implementation amendments#1612
Open
pankaj-modi18 wants to merge 1 commit intogithub:mainfrom
Open
feat: add /speckit.amend command for post-implementation amendments#1612pankaj-modi18 wants to merge 1 commit intogithub:mainfrom
pankaj-modi18 wants to merge 1 commit intogithub:mainfrom
Conversation
Introduces a new command that enables targeted spec amendments after implementation is complete. When edge cases, missing scenarios, or behavioral corrections are discovered post-implementation, this command cascades the change through spec → tests → code → traceability without requiring a full re-run of the specify/plan/tasks/implement pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new /speckit.amend command to handle post-implementation amendments to feature specifications. It fills a workflow gap where edge cases or behavioral corrections discovered after implementation currently require either manual spec editing (breaking the spec-first principle) or unnecessarily re-running the full pipeline.
Changes:
- Adds new command file
templates/commands/amend.mdthat implements a targeted micro-cycle for post-implementation spec amendments - The command cascades amendments through spec → tests → implementation while maintaining spec-first principles and minimal blast radius
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
/speckit.amendcommand that enables targeted spec amendments after implementation is complete. This fills a gap in the current workflow where discovering a missing edge case post-implementation requires either manual edits (breaking spec-first principle) or re-running the full pipeline unnecessarily.Problem
The current spec-kit workflow is linear:
This works well for initial development. But after implementation, two common scenarios have no dedicated workflow:
Today, users must either:
/speckit.clarify+/speckit.tasks+/speckit.implement(overkill for a single scenario)Solution
/speckit.amendis a targeted micro-cycle that cascades a single amendment through all artifacts:Design Principles
How It Fits the Workflow
Command Patterns Followed
description,handoffs,scriptscheck-prerequisites.sh --json --require-tasks --include-tasks(same as/speckit.implementand/speckit.analyze)## User Input/## Outlinebody structure{SCRIPT}and{ARGS}placeholders for multi-agent compatibility/speckit.analyzefor post-amendment consistency checkAI Disclosure
This PR was developed collaboratively with Claude Opus 4.6. The command was designed through iterative discussion about BDD (Behavior-Driven Development) integration with spec-driven development, specifically around how to handle post-implementation edge case discovery. The author has reviewed, tested the design against existing spec-kit command patterns, and understands the full implementation.
Test Plan
specify initto ensure the command is picked up and distributed to agents/speckit.amendon a project that has completed/speckit.implement/speckit.analyzeworks after amendment/speckit.clarify