agentleFS
musahyderrmusahyderr/mainseat/.claude/skills/lean-code/SKILL.md

lean-code

Skill1 starsChanged 14 days agoMITView on GitHub

Smallest correct change for any code edit; only what was asked.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-design.

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

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the reuse-first skill before creating any file, function or dependency.

    line 16
  2. Distinctive:

    Use what the language, standard library and existing project code already give you.

    line 20
  3. Distinctive:

    No new options, settings, abstractions, layers, wrappers or "future-proofing" unless the request needs them.

    line 21
  4. Distinctive:

    Don't reformat, rename or tidy code you weren't asked to touch.

    line 23
  5. Distinctive:

    Look at your diff. For each added block ask: does the request need it?

    line 27
  6. Very specific:

    If you replaced or removed code, run python scripts/find_unused.py <folder> and delete what your change left unused (Python projects.

    line 29
  7. Very specific:

    Run the self-check skill.

    line 32

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

lean-code

Fewer lines are cheaper to write, read, review and fix. The goal is the same behaviour in less code, never clever or cramped code.

Before writing

  1. Restate the request in one line. Anything not in that line is out of scope. Unsure whether something is wanted? Ask; don't build it "just in case".
  2. Find before you read: CODEMAP.md, then the explorer agent, then a targeted search. Read only the line ranges you need, not whole files.
  3. Run the reuse-first skill before creating any file, function or dependency.

While writing

  • Change the fewest files and lines that fully solve the request.
  • Use what the language, standard library and existing project code already give you.
  • No new options, settings, abstractions, layers, wrappers or "future-proofing" unless the request needs them.
  • Don't reformat, rename or tidy code you weren't asked to touch. Keep existing comments.
  • Readable beats short: no one-letter names, no packed one-liners, no removed error handling.

Before you say done

  1. Look at your diff. For each added block ask: does the request need it? Delete it if not.
  2. Could an existing helper replace any new code? Use it.
  3. If you replaced or removed code, run python scripts/find_unused.py <folder> and delete what your change left unused (Python projects; check each candidate first). If the script is missing (installed before 1.6.1), skip this step; /mainseat:setup adds it.
  4. Run the self-check skill.
  5. Report in one line: files changed, lines added and removed.

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.