agentleFS
SeifBenayedSeifBenayed/cloclo/.claude/skills/simplify/SKILL.md

simplify

Skill114 starsChanged 8 months agoMITView on GitHub

Review code for unnecessary complexity and simplify it. Use when the user wants to clean up code, reduce complexity, remove dead code, or make code more readable.

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 9 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

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 71 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:

    Delete code rather than add it when possible

    line 24
  2. Distinctive:

    If removing something breaks nothing, it shouldn't have been there

    line 25
  3. Distinctive:

    Don't design for hypothetical future requirements

    line 27
  4. Distinctive:

    Read the target files

    line 31
  5. Distinctive:

    Verify the changes don't break anything (run tests if available)

    line 35

“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

Code Simplification

Review the specified code (or recent changes) for unnecessary complexity and simplify it.

What to look for

  1. Over-abstraction — helpers, utilities, or wrapper functions used only once. Inline them.
  2. Unnecessary indirection — callback chains, event buses, or service layers that just pass data through.
  3. Defensive overkill — error handling for impossible cases, null checks deep inside trusted internal code.
  4. Dead code — unused imports, unreachable branches, commented-out blocks, unused variables.
  5. Complex conditionals — nested if/else that could be early returns, switch statements that could be lookups.
  6. Premature generalization — config objects for one use case, plugin systems with one plugin, factory patterns for one type.
  7. Redundant comments — comments that restate the code instead of explaining why.

Principles

  • Three similar lines of code are better than a premature abstraction
  • Delete code rather than add it when possible
  • If removing something breaks nothing, it shouldn't have been there
  • The right amount of complexity is the minimum needed for the current requirements
  • Don't design for hypothetical future requirements

Process

  1. Read the target files
  2. For each issue found, explain what's overly complex and why it can be simplified
  3. Show the simplified version
  4. Apply the fix
  5. Verify the changes don't break anything (run tests if available)

$ARGUMENTS

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.