surgical-patch
What it does
This skill guides the AI through fixing one bug or making a small change without touching unrelated code. It is for developers who want a focused fix they can trust.
When to use it
- ✓When a feature is broken and you need the smallest fix that works.
- ✓When you want a bug fixed without renaming or reorganizing other code.
- ✓When you need a regression test added to prove the bug stays fixed.
Skill link
https://github.com/JuliusBrussee/caveman/blob/main/skills/surgical-patch/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“The login button stopped working after the last update. Can you find the cause and fix only that part?”
5 new skills a week. 1 minute to read.
How it works
The AI first tries to reproduce the problem, then traces it to the code responsible. It changes only that layer and runs focused tests to confirm the fix.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Will the AI rewrite other parts of my code?
No. The skill asks it to avoid cleanup, renaming and abstractions outside the fix.
What if the bug cannot be reproduced?
The skill asks the AI to gather the strongest available evidence instead.
How does it know the fix worked?
It runs a focused test and the nearest related checks to confirm the problem is gone and nothing else broke.
Details
Original description by the author
Fix bugs and small behavior changes at the narrowest responsible layer. Use when regression proof, preserved surrounding behavior, and task-relevant tests matter.
repo: JuliusBrussee/caveman
Popularity
- GitHub stars
- 117k
- Ranking position
- #759
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
cavecrew
117kHelps your agent decide when to hand a search, a small edit or a diff review to a compact subagent, saving space in its main context.
caveman-compress
117kHelps your agent shrink a memory file, such as CLAUDE.md or a todo list, into a shorter caveman style to save input tokens.
caveman-stats
117kHelps your agent show how many output and cache-read tokens a Claude Code session used, grouped by mode.
caveman
117kHelps your agent answer in a short, direct style with the fluff removed and every technical fact kept.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.