Home / Skills / JuliusBrussee/caveman

surgical-patch

Fix bugs and small behavior changes at the narrowest responsible layer. Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.

skillLicense: Apache-2.0 Source: JuliusBrussee/caveman

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit JuliusBrussee/caveman/skills/surgical-patch .claude/skills/surgical-patch

Or install it for every project:

npx degit JuliusBrussee/caveman/skills/surgical-patch ~/.claude/skills/surgical-patch

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
name: surgical-patch
description: Fix bugs and small behavior changes at the narrowest responsible layer. Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.
---

# Surgical patch

Reproduce failure first when economical; otherwise capture strongest available evidence.

- Trace symptom to responsible mechanism.
- Change narrowest layer that owns incorrect behavior.
- Preserve unrelated behavior and user changes.
- Avoid cleanup, renaming, and abstraction outside fix.
- Add only regression proof relevant to task.

Run focused proof plus nearest affected gate. Stop when failure is fixed and regression proof passes.