agentleFS
dagarre00dagarre00/claude-code-template/.claude/skills/simplicity-ladder/SKILL.md

simplicity-ladder

Skill1 starsChanged 28 days agoMITView on GitHub

Subagent-side, preloaded into the developer. How to pick the smallest correct implementation at Green — trace the flow first, climb the ladder (needed at all, already in repo, stdlib, platform, installed dependency, one line, minimum code), fix bugs at the shared root, and mark deliberate shortcuts.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Every file the case touches and every caller of modified functions (trace the flow end to end).

    line 13
  2. Distinctive:

    Standard library?: Use it.

    line 21
  3. Distinctive:

    Already-installed dependency?: Use it.

    line 23
  4. Distinctive:

    One line?: Write one line.

    line 24
  5. Distinctive:

    Only then: write the minimum code that passes the test.

    line 25
  6. Distinctive:

    New dependency = last resort: Never add one for what a few lines do.

    line 26

≈ “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

Simplicity Ladder

Runs at Green (tdd-loop § Green, step 1) before writing production code, and before adding any file, helper, abstraction, or dependency.

Read first

  • Every file the case touches and every caller of modified functions (trace the flow end to end).
  • architecture.md § Layers, § Conventions, and the dependency manifest.

Steps

  1. Climb and stop at the first rung that holds:
    1. Does the test force it? Skip anything the case does not ask for and list it under skipped:.
    2. Already in this codebase? Grep for existing helpers, types, or patterns and reuse them.
    3. Standard library? Use it.
    4. Platform feature? (<input type="date">, CSS, DB constraint, etc.) Use it.
    5. Already-installed dependency? Use it.
    6. One line? Write one line.
    7. Only then write the minimum code that passes the test.
  2. New dependency = last resort: Never add one for what a few lines do. If added, state in the report why rungs 2–5 fell short.
  3. Bug fix = root cause: Grep all callers before editing; fix the shared function rather than patching one caller.
  4. Mark deliberate shortcuts that have a known ceiling (O(n²) scan, coarse lock, naive heuristic) with a code comment shortcut: <ceiling>; revisit when <trigger> and report it. Shortcuts without a trigger are forbidden.
  5. Report skipped items as one line each: skipped: <X> — add when <Y>.

Never simplify away

Trust-boundary input validation, data-loss error handling, security, accessibility, Behavior cases, required § Layers ports (rule 23), or the failing test first (rule 2).

Anti-patterns

  • Single-implementation interfaces (ports excepted), single-product factories, unrequested config/scaffolding.
  • Duplicating an existing helper.
  • Defending simplifications with long prose (one skipped: line suffices).

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.