# Narrow Bug Fix

Fixes a bug at the narrowest layer, with regression proof and preserved behavior.

- Repository: https://github.com/JuliusBrussee/caveman (116680 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add JuliusBrussee/caveman --skill surgical-patch -g -a claude-code -y`
Codex: `npx skills add JuliusBrussee/caveman --skill surgical-patch -g -a codex -y`
Cursor: `npx skills add JuliusBrussee/caveman --skill surgical-patch -g -a cursor -y`
Gemini CLI: `npx skills add JuliusBrussee/caveman --skill surgical-patch -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add JuliusBrussee/caveman`

## Description

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

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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

