Catalog
juliusbrussee/surgical-patch

juliusbrussee

surgical-patch

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

v1.0Latest
New~156Updated Aug 17, 2026

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.

Files2
2 files · 1.6 KB

Select a file to preview

Overall Score

62/100

Grade

C

Adequate

Safety

75

Quality

55

Clarity

68

Completeness

52

Summary

A skill that guides agents to fix bugs by modifying the narrowest responsible layer while preserving surrounding behavior and preventing scope creep. It emphasizes reproducing failures, tracing bugs to root cause, running regression tests, and avoiding cleanup or refactoring outside the fix itself.

Detected Capabilities

code analysisfile modificationtest executiongit operationsdebugging workflow

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

fix bug narrowlysurgical code patchregression test fixminimal scope changetargeted bug fix

Use Cases

  • Fix reported bugs with minimal scope and regression risk
  • Make targeted behavior changes without affecting unrelated code
  • Develop and verify fixes when full reproduction is expensive
  • Add regression tests only for the fixed behavior
  • Prevent scope creep by maintaining focus on the core issue

Quality Notes

  • Core principle is well-articulated: 'narrowest responsible layer' and 'avoid cleanup, renaming, abstraction outside fix' provide clear boundaries.
  • Concise checklist format (reproduce, trace, change, preserve, avoid, add, run) is easy for an agent to follow sequentially.
  • Lacks concrete examples: no sample bug fix walkthrough or before/after code snippet to illustrate the methodology.
  • Missing error handling guidance: what if reproduction is uneconomical? What if the narrowest layer is ambiguous?
  • No explicit scope documentation: which files, directories, or test suites count as 'relevant' or 'nearest affected gate'?
  • Does not describe how to verify 'preserved surrounding behavior' — no specific assertion or testing pattern provided.
  • Incomplete: does not specify what 'focused proof plus nearest affected gate' means operationally (which test runner, test selection strategy, exit criteria).
Model: claude-haiku-4-5-20251001Analyzed: Aug 17, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use juliusbrussee/surgical-patch in your dev environment

Command Palette

Search for a command to run...