1

    Incremental Change Surgeon

    by Timoranjes

    Teaches AI coding agents to make minimal, surgical code edits instead of full-file rewrites or over-engineered solutions. Solves the #1 agent frustration: "it rewrote 500 lines when 50 would do." Work

    Updated Jul 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • 1 permission declared
    • Instant install

    See it in action

    You say

    Change the error message in the login function from 'Global Error' to 'Invalid email' but don't touch the logging logic or the surrounding imports.

    Your agent does

    Identifying change scope: line 42 of auth.py. Blast radius: test_auth.py. Tool choice: patch (1 line).

    Applied:

    • old_string: "Global Error"
    • new_string: "Invalid email"

    Verification: Diff shows +1/-1 lines. Existing logger at line 43 remains untouched.

    About This Skill

    The problem

    AI coding agents frequently rewrite entire files for small changes, leading to regressions, lost git history, and long review times. You end up spending more time debugging accidental side effects than the original task required.

    What it does

    • Enforces a "surgeon, not bulldozer" decision framework for every code modification.
    • Prioritizes patch operations and targeted find-and-replace over destructive write_file commands.
    • Calculates "blast radius" to identify all dependencies before executing changes.
    • Mandates exact string matching and context-aware edits to preserve unrelated logic and formatting.
    • Verifies minimal impact through mandatory diff audits and test suite execution.

    Frameworks & tools

    Universal compatibility with any language or framework. Optimizes workflows for Claude Code, Cursor, and Codex CLI.

    Why this beats prompting it yourself

    Standard prompts often fail to curb the LLM's bias toward regeneration when complexity increases. This skill installs a persistent multi-step verification loop that forces the agent to justify large edits and confirms no unrelated lines were touched before finishing.

    Use cases

    • Fixing specific bugs without affecting surrounding module logic.
    • Adding new functions to large legacy files while maintaining existing git blame data.
    • Updating configuration files like package.json or settings.py without reformatting the entire file.
    • Refactoring internal function logic while strictly preserving signatures and call-site behavior.

    Known limitations

    This skill is not intended for generating new files from scratch, it only governs modifications to existing codebases.

    Use Cases

    • Reduce regression bugs caused by unnecessary full-file regenerations.
    • Maintain clean git history by preserving line-level authorship.
    • Lower token consumption by avoiding massive file rewrites.
    • Accelerate PR reviews by focusing diffs on relevant changes only.

    How to install

    Drop the file into your AI tool. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell

    File Scopes

    incremental-change-surgeon/**

    Creator

    Frequently Asked Questions

    More Premium Skills

    Free