lean-review
Skill2 starsChanged 56 days agoMITView on GitHub
Runs token-efficient code reviews for Cursor and Codex. Uses git diff stats instead of dumping the patch, then reports compact correctness, test, and regression findings. Use when the user asks for a PR review, code review, or a cheap look at local changes. Do not use for style-only nits, rewriting the whole tree, or dumping the full diff into chat.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- rpraharaj/ai-sdlctheir own version, first seen Nov 1, 2026
- rpraharaj/ai-engineertheir own version, first seen Nov 1, 2026
- FareedKhan-dev/lean-agenttheir own version, first seen Oct 13, 2026
- utk2103/Prompt-Studiotheir own version, first seen Aug 22, 2026
- MaGe1993/Claude-Code-Base-Harnesstheir own version, first seen Jun 14, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- utk2103/Prompt-Studio★ 8same name
- FareedKhan-dev/lean-agent★ 1same name
- MaGe1993/Claude-Code-Base-Harness★ 1same name
- rpraharaj/ai-engineer★ 1same name
- rpraharaj/ai-sdlc★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- lean-cryptoSkill
- lean-mobileSkill
- lean-privacySkill
- lean-secSkill
- lean-webSkill
- lean-a11ySkill
- lean-depsSkill
- lean-docsSkill
- lean-perfSkill
- lean-ciSkill
- lean-cloudSkill
- lean-costSkill
- lean-hardeningSkill
- lean-iotSkill
- lean-netSkill
- lean-dfirSkill
- lean-ir-playbookSkill
- lean-malwareSkill
- lean-osintSkill
- lean-phishSkill
- lean-threat-modelSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Default to uncommitted+unpushed vs the repo's default branch if git works.
- Very specific: line 39
Run stats. Rank files by churn.
- Distinctive: line 42
Stop unless asked to patch.
- Distinctive: line 46
Do not paste the full diff.
“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.
Files
Lean Review
Review the change, not the universe. Script prints diff stats; you read a few hunks; you stop.
Let SKILL_ROOT be the folder that contains this SKILL.md. Prefer python3; on Windows use py -3.
python3 "$SKILL_ROOT/scripts/lean_review.py" stats .
python3 "$SKILL_ROOT/scripts/lean_review.py" trim --chars 2500 path/to/out.txtDefault to uncommitted+unpushed vs the repo's default branch if git works. If git fails, ask which files.
Mode
Default lean.
| Mode | Budget |
lean | stats + up to 8 file slices; references/correctness.md; ≤6 findings |
standard | up to 16 slices; ≤10 findings |
deep | still no whole-file tours; ≤16 findings |
Workflow
- Run
stats. Rank files by churn. Skip lockfiles, generated,node_modules. - Slice-read the risky hunks (
git diff -U3 -- pathpiped throughtrimif huge). - Report correctness, missing tests, regressions. Skip formatting nits unless they hide a bug.
- Stop unless asked to patch.
Hard rules
- Do not paste the full diff. Cap quotes at 12 lines.
- No drive-by refactors.
- Security issues: one line + "also run
$lean-sec" if they are out of scope.
Report template
## Lean-review (`<mode>`)
**Range:** <branch or working tree> | **Files:** <n>
| Sev | Location | Issue | Fix |
|-----|----------|-------|-----|
| HIGH | file:line | nil deref on empty list | guard or test |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
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.

