Back to Skills

patch-design

verified

Create minimal, surgical patch plans for targeted fixes. Use when fixing specific issues from review, creating focused patches, or avoiding scope creep in fix implementations.

View on GitHub

Marketplace

melodic-software

melodic-software/claude-code-plugins

Plugin

tac

Repository
Verified Org

melodic-software/claude-code-plugins
13stars

plugins/tac/skills/patch-design/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/melodic-software/claude-code-plugins/blob/main/plugins/tac/skills/patch-design/SKILL.md -a claude-code --skill patch-design

Installation paths:

Claude
.claude/skills/patch-design/
Powered by add-skill CLI

Instructions

# Patch Design Skill

Create minimal, surgical patch plans for targeted fixes.

## When to Use

- Fixing specific issues from review
- Creating focused bug fixes
- Addressing blockers without scope creep
- Making targeted improvements

## Core Principle

> "This is a PATCH - keep the scope minimal. Only fix what's described in the issue and nothing more."

## Design Workflow

### Step 1: Understand the Specific Issue

Parse the issue clearly:

- **What is broken?** (specific behavior)
- **How should it work?** (expected behavior)
- **What evidence exists?** (screenshots, errors)

Do NOT expand scope beyond the reported issue.

### Step 2: Analyze Current State

Review the relevant code:

```bash
# Find relevant files
git diff --stat
grep -r "related_function" src/

# Read the specific code
cat src/component/file.ts
```

### Step 3: Determine Minimum Fix

Ask: "What is the smallest change that fixes this?"

| Approach | Lines | Risk |
| --- | --- | --- |
| Surgical fix | 1-10 | Low |
| Targeted fix | 10-50 | Medium |
| Refactor | 50+ | High |

**Always prefer surgical fixes** for patches.

### Step 4: Create Patch Plan

Document the precise fix:

```markdown
# Patch: [Concise title]

## Issue Summary
**Problem**: [What's broken]
**Solution**: [Minimal fix]

## Files to Modify
- `path/to/file.ts`: [Specific change]

## Implementation Steps

### Step 1: [Specific action]
[Exact code change]

### Step 2: [Specific action]
[Exact code change]

## Validation
- [Command to verify fix]
- [How to confirm success]

## Patch Scope
- Lines of code: ~X
- Risk level: low
- Testing: [minimal/standard]
```

### Step 5: Define Validation

Every patch needs verification:

```markdown
## Validation

1. Run specific test: `npm test path/to/test`
2. Manual verification: [steps]
3. Visual check: [if applicable]
```

## Patch Plan Template

```markdown
# Patch: [Brief description]

## Metadata
- Issue: [Source of this patch request]
- Severity: [blocker/tech_debt]

## Issue Summary
**Orig

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4080 chars