agentleFS
OvichOvich/charrette/skills/architecture/simplify-rework/SKILL.md

simplify-rework

Skill14 starsChanged 5 days agoMITView on GitHub

Use when a whole codebase has grown by accretion and is to be audited or cut back, with no commit range to start from: superseded paths left behind by past shifts, unused exports and files, two implementations of one concern, or the person asks where the dead code is, to clean up the repo, or to stop it coming back. Produces a ranked audit of families, each approved family cut back through the simplify skill, and the guard. Not for the code one piece of work changed (simplify), branching complexity (complexity-rework) or an interface's shape (deepen-module).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add no dependency without the person's yes: not an analyzer, not a CI step.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Simplify rework

Detection is deterministic, deletion is narrow. An agent asked to explore for dead code spends the budget rebuilding context and finds a different set each time. Tools find, the person chooses, and each family is cut by the simplify skill, handed its files, never a mandate to look around.

The phases

One artefact each, and a stop.

PhaseProducesStops forRead
1 Auditthe report: families ranked by lines saved over risk, each with its evidence and its kind (dead, superseded, duplicate)the person's choice of families and their orderreferences/audit.md
2 Cutone approved family, through the simplify skill, its files and evidence as the briefthat skill's stops; a duplicate's survivor, the person's yes
3 Guarda check that fails on new dead code, and the done-rule for the work that creates itthe person's yes on eachreferences/guard.md

Where to start

The askPhases
where is the dead code, audit, what can go1, then stop
clean up, an approved audit2 per family, in the approved order
stop this coming back3

Rules

  • The audit is the context. Without it, a cut rebuilds by exploration what the audit already found.
  • Add no dependency without the person's yes: not an analyzer, not a CI step.
  • When the project plans its work in documents, the audit is their input and each family is one piece of work.

Red flags

ThoughtReality
"Unused per the tool, so delete it"Loads by string, public API, entry points found by convention and scripts read as unused. The audit marks each family's reach before it is proposed.
"I'll cut every family in one sweep"One family per pass, or no reviewer can attribute the diff.

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.