Back

Surgical Patch

Testing & QA118.5K installs

What it does

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

Install

npx skills add https://github.com/juliusbrussee/caveman --skill surgical-patch

Website

www.skills.sh/juliusbrussee/caveman/surgical-patch

Details

From the skill’s SKILL.md or README, by its authors. View the original

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.

See all
  • Testing & QA

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    npx skills add https://github.com/mattpocock/skills --skill tdd
    1.2M installs
  • Testing & QA

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    npx skills add https://github.com/mattpocock/skills --skill grilling
    1.1M installs
  • Testing & QA

    Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

    npx skills add https://github.com/mattpocock/skills --skill diagnosing-bugs
    907.2K installs
  • Testing & QA

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

    npx skills add https://github.com/mattpocock/skills --skill setup-pre-commit
    535.4K installs

Skills are shared by members and not reviewed by us. Read a skill’s code before you install it.