agentleFS
arumaekawaarumaekawa/codex-skills/skills/code-simplify/SKILL.md

code-simplify

Skill4 starsChanged 4 months agoMITView on GitHub

Use after implementation and before completion to simplify the current change by removing unnecessary helpers, tiny function extractions, adapters, compatibility layers, silent fallbacks, broad input handling, unused scaffolding, and workaround paths while preserving the intended behavior exactly.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Use this skill after implementation to simplify the current change.

    line 8
  2. Distinctive:

    Follow Project Conventions: match existing structure, naming, abstraction level, error handling, and test style.

    line 13
  3. Distinctive:

    Prefer Clarity Over Cleverness: prefer direct readable code over clever compression, generic abstractions, or hard-to-follow shortcuts.

    line 14
  4. Distinctive:

    Read the task requirements and any concrete implementation design provided by the caller.

    line 21
  5. Distinctive:

    Run the smallest useful verification when practical.

    line 24

“Common” is measured: kept by at least 6 in 10 of the 9 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

Code Simplify

Use this skill after implementation to simplify the current change. Focus only on over-engineering introduced by this change; do not perform broad cleanup.

Principles

  • Preserve Behavior Exactly: keep intended behavior unchanged, including errors, outputs, input acceptance, logging, timing assumptions, and public contracts.
  • Follow Project Conventions: match existing structure, naming, abstraction level, error handling, and test style.
  • Prefer Clarity Over Cleverness: prefer direct readable code over clever compression, generic abstractions, or hard-to-follow shortcuts.
  • Scope to What Changed: simplify only code related to the current change; avoid unrelated refactors, formatting churn, or drive-by cleanup.
  • Report Behavior or Design Problems: if simplification reveals a behavior or design problem, report it instead of changing behavior as part of simplification.

Workflow

  1. Review the current diff.
  2. Read the task requirements and any concrete implementation design provided by the caller.
  3. Apply the principles while identifying simplify targets.
  4. Simplify only when intended behavior remains unchanged.
  5. Run the smallest useful verification when practical.
  6. Record or return the simplifications, verification results, and material discoveries as directed by the caller.

Simplify Targets

Look for:

  • helpers or functions that are too small, used once, or hide simple logic
  • adapters, wrappers, or compatibility layers not required by the request or existing contract
  • fallback behavior the user did not request
  • unsupported states that should raise clear errors instead of silently continuing
  • input handling broadened beyond the task requirements or design
  • unused scaffolding or future-proofing
  • side paths added to avoid improving existing code

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.