agentleFS
rpraharajrpraharaj/ai-engineer/skills/lean-review/SKILL.md

lean-review

Skill1 starsChanged 16 days agoMITView on GitHub

Review a diff or a whole repo for unnecessary complexity only — delete-list of reinvented stdlib, unneeded deps, speculative abstractions. Use when the user asks what to delete, whether this is over-engineered, a simplify review, or a bloat audit. Complements review-change. Do not edit product code.

5 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Read-only hunt for complexity that does not need to exist.

    line 12
  2. Distinctive:

    If the target is empty, say so and stop.

    line 21
  3. Very specific:

    Do not apply the cuts unless the user asked — that is refactor-safely or implement-change.

    line 47

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

Read-only hunt for complexity that does not need to exist. Not a correctness, security, or performance review — those are review-change, security-pass, and performance.

Load engineering-bar (paths in that skill) and apply Minimum path + Never cut.

Target

  • User said "whole repo", "audit", or "what can we delete from this tree" → scan the tree (skip node_modules, .git, vendored/build output).
  • Otherwise follow engineering-bar Shared procedures for scope and evidence, including branch commits and relevant untracked files.

If the target is empty, say so and stop.

Tags

One line per finding:

<file>:<line>: <tag> <what to cut>. <what replaces it>.

TagMeans
deleteDead code, unused flexibility, speculative feature. Replacement: nothing.
stdlibHand-rolled thing the language/runtime already ships. Name the function.
nativeCode or dependency doing what the platform already does. Name the feature.
yagniAbstraction with one implementation, config nobody sets, layer with one caller.
shrinkSame logic, fewer lines. Show the shorter form.

Do not flag:

  • Trust-boundary validation, data-loss error handling, authz, secrets, or accessibility
  • The one focused test write-tests added for new logic
  • Correctness/security/perf bugs — name review-change / security-pass / performance and leave them out of this list

Output

Rank biggest cut first. End with net: -<N> lines (and -<M> deps if a dependency can go). Nothing to cut: Lean already. and stop.

Do not apply the cuts unless the user asked — that is refactor-safely or implement-change.

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.