Create a minimal, surgical patch plan to address a specific issue.
Creates a minimal, surgical patch plan to fix a specific issue. Use this after code review identifies a blocker that needs a targeted fix without scope creep.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install google-ecosystem@melodic-softwareCreate a minimal, surgical patch plan to address a specific issue.
review_change_request: $1 - Description of the issue to fixspec_path: $2 (optional) - Path to original specificationCreate a PATCH - minimal scope, surgical fix, targeted change.
"This is a PATCH - keep the scope minimal. Only fix what's described in the review_change_request and nothing more."
Parse the review_change_request:
Do NOT expand scope beyond this specific issue.
If spec_path is provided, read it for context:
# See current changes
git diff --stat
# Find relevant files
grep -r "related_term" src/
Ask: "What is the smallest change that fixes this?"
Write to: specs/patch/patch-{descriptive-name}.md
# Patch: [Concise patch title]
## Metadata
- Review Change Request: [from input]
- Spec Path: [if provided]
## Issue Summary
**Problem**: [What's broken - specific]
**Solution**: [Minimal fix approach]
## Files to Modify
[Only files that need changes - specific and minimal]
- `path/to/file.ts`: [What change is needed]
## Implementation Steps
IMPORTANT: Execute every step in order, top to bottom.
### Step 1: [Specific action]
[Exact code change needed]
### Step 2: [Specific action]
[Exact code change needed]
## Validation
Execute every command to validate patch is complete:
- [Specific test command]
- [Manual verification step]
## Patch Scope
- **Lines of code to change**: [estimate]
- **Risk level**: [low/medium/high]
- **Testing required**: [minimal/standard/extensive]
Return ONLY the path to the patch plan file created:
specs/patch/patch-fix-button-disabled-state.md
Keep Minimal:
Risk Assessment:
| Lines | Risk |
|---|---|
| 1-10 | Low |
| 10-50 | Medium |
| 50+ | High - reconsider scope |
Patches typically follow review:
/review → Identifies blocker issue
↓
/patch → Creates surgical fix plan (THIS COMMAND)
↓
/implement → Executes patch plan
↓
/review → Re-verifies fix