Skip to content
Skillpedia
General coding117k · #759

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.md

Copy 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

Use this skill to help me: https://github.com/JuliusBrussee/caveman/blob/main/skills/surgical-patch/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills