agentleFS
caidanwcaidanw/skills/simplify/SKILL.md

simplify

Skill9 starsChanged 4 months agoMITView on GitHub

Simplify and refine recently modified code for clarity and consistency. Use after writing or modifying code, during cleanup passes, or when asked to simplify/refactor without changing behavior.

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use clonedeps, deepwork and 10 more.

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.
  • hbollonSkill

    clonedeps

    Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @librarian is enough.

    Also in 3 projects that use this

  • hbollonSkill

    deepwork

    Orchestrator-only workflow for heavy coding sessions, multi-phase implementation, and risky refactors. Use for complex work that needs planning, review gates, and persistent progress tracking.

    Also in 3 projects that use this

  • JordanCoinSkill

    codemap

    Analyze codebase structure, dependencies, changes, cross-agent handoffs, and get code-aware intelligence. Use when user asks about project structure, where code is located, how files connect, what changed, how to resume work, before starting any coding task, when you need risk analysis and skill guidance, or when Codemap should tune project config before analysis.

    Also in 4 projects that use this

  • llama-farmSkill

    commit-push-pr

    Commit changes, push to GitHub, and open a PR. Includes quality checks (security, patterns, simplification). Use --quick to skip checks.

    Also in 3 projects that use this

  • nicolasestremSkill

    finalize

    Complete project finalization with quality gates and git workflow automation.

    Also in 3 projects that use this

  • PostHogSkill

    react-doctor

    Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 14

    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:

    Prefer clear flow over clever expressions.

    line 13
  2. Distinctive:

    Prefer names that explain intent over comments that explain mechanics.

    line 14
  3. Distinctive:

    Remove code that no longer earns its place: dead branches, unused parameters, duplicate logic, speculative options, and redundant wrappers.

    line 15
  4. Distinctive:

    Keep related logic together.

    line 16
  5. Distinctive:

    Look for changes that make the next reader do less work:

    line 21
  6. Distinctive:

    delete obsolete checks or branches

    line 24
  7. Distinctive:

    Do not make code shorter if it becomes harder to read, debug, test, or change.

    line 32
  8. Distinctive:

    remove names that encode domain meaning

    line 39
  9. Distinctive:

    create broad abstractions for one local problem

    line 41
  10. Distinctive:

    Keep a helper when it:

    line 49
  11. Distinctive:

    Check each candidate against the call site: is the code easier to understand after the change?

    line 82
  12. Distinctive:

    If no change improves clarity, say so.

    line 84
  13. Distinctive:

    When proposing changes, explain:

    line 88
  14. Distinctive:

    If a possible simplification is not worth doing, mention it only when the rejection teaches something useful.

    line 94

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

Simplify

Simplify code by making intent easier to see without changing behavior.

Rules

  • Preserve behavior. Do not change outputs, side effects, timing assumptions, public APIs, or error behavior unless asked.
  • Prefer clear flow over clever expressions.
  • Prefer names that explain intent over comments that explain mechanics.
  • Remove code that no longer earns its place: dead branches, unused parameters, duplicate logic, speculative options, and redundant wrappers.
  • Keep related logic together. Split code only when the new boundary has a clear name and purpose.
  • Match the surrounding style. Do not reformat or modernize unrelated code.

What to simplify

Look for changes that make the next reader do less work:

  • flatten unnecessary nesting
  • delete obsolete checks or branches
  • replace vague names with specific names
  • collapse duplicate code
  • remove speculative abstraction
  • move low-level detail out of high-level flow when it hides intent

What not to simplify

Do not make code shorter if it becomes harder to read, debug, test, or change.

Avoid changes that:

  • combine unrelated concerns
  • expose low-level mechanics at an important call site
  • replace clear control flow with dense expressions
  • remove names that encode domain meaning
  • introduce new patterns not already present
  • create broad abstractions for one local problem

Single-use helpers

Single-use is evidence, not a verdict.

Inline a helper when its body is clearer than its name and the call site becomes easier to read.

Keep a helper when it:

  • names a domain concept or business rule
  • makes a predicate, comparator, transformation, or callback read naturally
  • hides multiple checks, branches, or boolean operators behind one intent-revealing name
  • separates high-level flow from low-level mechanics

Reject an inline suggestion when the result exposes more boolean logic, nesting, or implementation detail at the call site.

Good simplification test

A simplification is good when:

  • the next reader can understand the code faster
  • the changed code has fewer concepts, not only fewer lines
  • behavior and boundaries stay the same
  • the diff is smaller than the problem it solves

Reject a simplification when the main benefit is aesthetic, theoretical, or based only on line count.

Stop conditions

Stop when:

  • remaining changes are taste preferences
  • a refactor needs broader context than the modified code provides
  • the code is already clear enough
  • the simplification would require new tests, migration work, or API changes

Review process

  1. Identify the modified code.
  2. Find concrete simplifications, not theoretical improvements.
  3. Check each candidate against the call site: is the code easier to understand after the change?
  4. Preserve behavior exactly.
  5. If no change improves clarity, say so.

Output

When proposing changes, explain:

  • what gets simpler
  • why behavior stays the same
  • what trade-off, if any, the change makes

If a possible simplification is not worth doing, mention it only when the rejection teaches something useful.

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.