Surgical Changes logo

Surgical Changes

Organization
DevelopersGlobal
surgical-changes

Enforces minimal code modifications — touch only what you must. Prevents drive-by refactoring, comment deletions, and style changes unrelated to the task.

Overview

PublisherDevelopersGlobal
Repositoryai-agent-skills
Skill namesurgical-changes
Stars
212
Forks
33
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by DevelopersGlobal on GitHub. Read the source before you install it.

Installation

Install the Surgical Changes AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/DevelopersGlobal/ai-agent-skills/tree/main/skills/surgical-changes
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DevelopersGlobal/ai-agent-skills.git /tmp/ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agent-skills/skills/surgical-changes .claude/skills/surgical-changes
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Surgical Changes in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Surgical Changes on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Surgical Changes is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Overview

Every changed line is a line the reviewer must inspect, a line that could introduce a regression, and a line that will appear in the git blame forever. Unnecessary changes are costly.

AI agents often "improve" adjacent code, reformat files, rename variables for consistency, or delete "dead" code — all without being asked. This creates noisy diffs, unexpected behavior changes, and broken trust.

This skill enforces a hard rule: every changed line must trace directly to the user's request.

When to Use

  • Any time you are modifying existing code (not creating new files)
  • When your diff is larger than you expected
  • When reviewing your own generated changes before presenting them

Process

Step 1: Establish the Change Boundary

  1. Read the task carefully. Write down exactly which files and functions need to change.
  2. Draw a mental boundary: "Everything outside this boundary is out of scope."
  3. List what you will NOT change, even if you'd do it differently:
    • Adjacent functions
    • Variable naming conventions
    • Comment style
    • Import order
    • Formatting/whitespace (unless fixing a specific bug)

Verify: You can name the specific functions/lines that need to change.

Step 2: Make Only the Required Changes

  1. Make the changes — and only the changes — within the defined boundary.
  2. If you notice something wrong outside the boundary:
    • Mention it in a comment — don't fix it silently
    • Example: "Note: I noticed fetchUser has no error handling, but I'm leaving that for a separate PR."
  3. If your changes made imports/variables/functions unused: remove only those created by YOUR changes. Leave pre-existing dead code alone (unless asked).

Verify: No line changed that wasn't part of the defined scope.

Step 3: Review Your Own Diff

  1. Read through your diff line by line.
  2. For each changed line, ask: "Why did I change this?"
    • If you can't answer → revert it
  3. Flag any changes that are purely cosmetic and ask: "Should I include this?"

Verify: Every changed line has a clear reason directly tied to the task.

Step 4: Document Scope Decisions

  1. In your PR/commit message, explicitly note what you chose NOT to change and why:
    • "Did not refactor the adjacent parseDate function — out of scope for this fix."

Common Rationalizations (and Rebuttals)

ExcuseRebuttal
"I improved it while I was there"That's a separate PR. Drive-by improvements hide bugs and inflate diffs.
"The old comment was wrong"Fix comments related to your change. Leave others for a documentation PR.
"I made the code more consistent"Consistency PRs should be standalone. Don't bundle them.
"It's just whitespace"Whitespace changes cause merge conflicts and obscure real diffs in blame.
"The dead code is obviously wrong"File an issue. Don't delete pre-existing code without explicit approval.

Red Flags

  • Your diff is 3× larger than the feature size suggests
  • You changed files that aren't related to the task
  • You reformatted a file "while you were there"
  • You renamed variables for consistency
  • You deleted comments or code you didn't fully understand
  • Your PR description says "and also fixed a few other things"

Verification

  • Every changed line traces to the task description
  • No cosmetic-only changes bundled in (or explicitly approved)
  • Pre-existing dead code left untouched (or flagged, not deleted)
  • Changes to adjacent unrelated code: zero
  • Diff size is proportional to task size

References

Frequently asked questions

What does the Surgical Changes AI skill do?

Enforces minimal code modifications — touch only what you must. Prevents drive-by refactoring, comment deletions, and style changes unrelated to the task.

Why use Surgical Changes on TypingMind?

Because you install it once and use it with any model. Surgical Changes is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Surgical Changes in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/DevelopersGlobal/ai-agent-skills/tree/main/skills/surgical-changes. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Surgical Changes?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Surgical Changes?

As many as you like. As long as a model supports skills, you can use Surgical Changes with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Surgical Changes AI skill free?

Yes. It is published on GitHub by DevelopersGlobal under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇