Surgical Patch skill for Claude
Fix bugs and small behavior changes at the narrowest responsible layer.
When Claude uses it
Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.
Surgical Patch SKILL.md
The full skill file from JuliusBrussee/caveman (Apache-2.0).
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.
How to install Surgical Patch
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit JuliusBrussee/caveman/skills/surgical-patch#main ~/.claude/skills/surgical-patchCodex
npx degit JuliusBrussee/caveman/skills/surgical-patch#main ~/.codex/skills/surgical-patchClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Surgical Patch skill do?
Fix bugs and small behavior changes at the narrowest responsible layer. Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.
+How do I install Surgical Patch in Claude Code?
Copy the skill folder into ~/.claude/skills/surgical-patch, for example with "npx degit JuliusBrussee/caveman/skills/surgical-patch#main ~/.claude/skills/surgical-patch". Claude Code loads it automatically and uses it when a task matches.
+Does Surgical Patch work with ChatGPT or Codex?
Yes. Surgical Patch uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/surgical-patch. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Surgical Patch free?
Surgical Patch is published on GitHub by JuliusBrussee under the Apache-2.0 license, which allows free use.