speckit-bugfix-patch
Surgically update spec, plan, and tasks to address the reported bug
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- speckit-bugfix-patch
- metadata
- { "author": "github-spec-kit", "source": "bugfix:commands/speckit.bugfix.patch.md" }
- description
- Surgically update spec, plan, and tasks to address the reported bug
- compatibility
- Requires spec-kit project structure with .specify/ directory
03 SKILL.md 正文
Patch Spec Artifacts
Surgically update spec.md, plan.md, and tasks.md to address a reported bug — adds missing requirements, fixes conflicts, reopens false completions, and adds new tasks. Minimal changes only, never regenerates from scratch.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user may specify a bug report to patch (e.g., "BUG-001") or describe the fix directly.
Prerequisites
- Verify a spec-kit project exists by checking for
.specify/directory - Locate the current feature's spec directory
- Check for bug reports in
specs/{feature}/bugs/— if a bug ID is provided, load that report - If no bug report exists, inform the user and suggest running
/speckit.bugfix.reportfirst
Outline
-
Load bug context: Read the relevant bug report and all spec artifacts:
- Bug report:
specs/{feature}/bugs/BUG-{NNN}.md(if specified) - Required:
spec.md, and at least one ofplan.mdortasks.md - Optional:
research.md,data-model.md
- Bug report:
-
Determine patches: Based on the bug type, plan minimal changes:
Bug Type spec.md Patch plan.md Patch tasks.md Patch Spec gap Add missing requirement to affected user story Add implementation note to relevant section Add new task(s) for the missing requirement Spec conflict Resolve conflict with strikethrough on superseded text + new clarified requirement Update affected section Update affected task descriptions Implementation drift Add clarification note to requirement No change (plan was correct) Reopen drifted task with correction note Untested flow Add success criterion for the edge case Add edge case to complexity tracking Add verification task Dependency issue Update assumption about external dependency Update technical context Add dependency investigation task -
Patch spec.md:
- Add missing requirements under the affected user story
- Mark conflicting text with
~~strikethrough~~and reason - Add success criteria for untested flows
- Update assumptions if dependencies changed
- Add a bugfix note:
**Bugfix**: [DATE] — [BUG-NNN] [Brief description of what was patched]
-
Patch plan.md (if it exists):
- Update affected sections with new context
- Add complexity notes for newly discovered edge cases
- Preserve all existing content — only add or annotate
- Add a bugfix note:
**Bugfix**: [DATE] — [BUG-NNN] Updated from bugfix patch
-
Patch tasks.md (if it exists):
- Add new tasks: Assign next sequential IDs, proper dependencies, and story labels
- Reopen tasks: Change
[x]back to[ ]with a note:(reopened — BUG-NNN) - Mark false completions: Add
⚠️ Reopenedprefix to task description - Update Wave DAG: If present, regenerate to include new tasks
- Add a bugfix note:
**Bugfix**: [DATE] — [BUG-NNN] Updated from bugfix patch
-
Update bug report: Mark the bug report file as patched:
**Status**: Patched **Patched**: [DATE] -
Report: Output a summary:
- What changed in each artifact
- How many requirements were added or updated
- How many tasks were added or reopened
- Suggest next step:
/speckit.bugfix.verifyto confirm consistency, then/speckit.implementto apply the code fix
Rules
- Surgical updates only — never regenerate artifacts from scratch, only modify affected sections
- Never delete content — use strikethrough for superseded text, preserve history
- Preserve formatting — match existing artifact style exactly
- Track changes — always add bugfix notes with dates and bug IDs
- Reopen, don't delete tasks — falsely completed tasks get reopened, not removed
- Require bug report — if no bug report or user description is provided, refuse to patch and suggest
/speckit.bugfix.reportfirst - Minimal changes — change only what is necessary to address the specific bug
04 同仓库更多 Skills
offline-presentation-fixture
暂无简介
grill-with-docs
Entrevista decisões arquiteturais por work item isolado, mantém feature plan-only e oferece hotfix-fast executável com HOTFIX-GO fail-closed.
grill-partition
Particiona tasks.md em subfases file-disjuntas e emite o Execution DAG versionado da etapa partition, de forma determinística e sem julgamento de modelo.
grill-implement-parallel
Orquestra os workers não-frontier da etapa implement-parallel sobre o Execution DAG, com worktree isolado por worker e receipt submetido apenas pelo leader.
speckit-verify-review-ship-verify
Run post-convergence executable gates and diff hygiene checks
speckit-verify-review-ship-v
Run post-convergence executable gates and diff hygiene checks