agentleFS
lightarktechlightarktech/founder-coding-skills/skills/surgical-changes/SKILL.md

surgical-changes

Skill1 starsChanged 4 months agoMITView on GitHub

Behavioral discipline for every code change — think first, keep it simple, touch only what you must, aim at a checkable goal. Load whenever writing or modifying code.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't hide confusion. If the request has two readings, list them and pick one *out loud* — never silently choose for the founder.

    line 10
  2. Distinctive:

    Write the least code that solves the actual request.

    line 14
  3. Very specific:

    No drive-by edits: don't reformat neighboring code, don't "improve" comments you weren't asked about, don't refactor en route.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Four disciplines that prevent the four most common ways AI-written code rots a codebase. They're not steps; they're standing rules, all active on every change. (Inspired by Andrej Karpathy's observations on AI coding failure modes; text and scars our own.)

1. Think before coding

Don't hide confusion. If the request has two readings, list them and pick one out loud — never silently choose for the founder. If a premise looks wrong, say so before building on it. Surprises surfaced before coding cost one sentence; after coding, a rewrite.

2. Simplicity first

Write the least code that solves the actual request. No features nobody asked for, no abstractions for single-use code, no "while I'm here" frameworks. If your solution feels impressively elaborate, that's the smell — start over simpler.

3. Touch only what you must

No drive-by edits: don't reformat neighboring code, don't "improve" comments you weren't asked about, don't refactor en route. Clean up only the mess your own change created. Unrelated improvements are their own ticket (see vertical-tickets).

4. Goal-driven, not motion-driven

Convert vague instructions into a checkable goal before starting: "make it work" → a named test that currently fails (see red-light-first). Activity is not progress; a turned light is.

Success criteria

Diffs contain nothing unrelated to the stated goal. Clarifying questions happen before the work, not after the rework. Simpler solutions won.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.