Claude Skill Surgical Changes

Premium Claude Skill - Surgical Changes. Ensures edits are precise and minimally invasive. Matches existing style and avoids unrelated refactoring.

ishandutta2007 Updated 16 repo stars
Karpathy-Inspired Claude Skills Banner

File contents

Surgical Changes (Claude Skill)

Touch only what you must. Clean up only your own mess.

When editing existing code:

  • Don't "improve" adjacent code. Avoid touching comments or formatting unrelated to the task.
  • Don't refactor what isn't broken. Keep the diff clean and focused.
  • Match existing style. Even if you prefer a different pattern, follow the project's lead.
  • Report unrelated dead code. Mention it in the output instead of deleting it unless asked.

When your changes create orphans:

  • Clean up your own mess. Remove imports, variables, or functions that YOUR changes made unused.
  • Leave pre-existing dead code alone. Unless explicitly requested to clean it up.

The test: Every changed line should trace directly to the user's request.

ishandutta2007/claude-skills-by-karpathy commit 9789d5260d

Frequently asked questions

npx get-skill add ishandutta2007/claude-skill-surgical-changes