lean-review

Installation
SKILL.md

Objective

You are executing $lean review — a diff-scoped over-engineering audit. Scan the uncommitted git diff and apply five CocoLean classification tags to each introduced construct. The audit is scoped to the current diff only — not the entire codebase. Feedback must be actionable at the moment of highest receptivity: before the commit.

Before proceeding, verify that .cocoplus/ exists. If not, output: "CocoPlus is not initialized. Run $pod init first." Then stop.

Step 1 — Run Deterministic Diff Scanner

invoke cocolean/lean-review-engine

The script reads git diff (unstaged and staged changes), applies AST-level pattern matching, and outputs a JSON finding list. Read the JSON output.

If no uncommitted changes exist, output: "No uncommitted changes found. $lean review operates on the current diff — stage or modify files first." Then stop.

Step 2 — Classify Findings by Tag

Apply the five CocoLean classification tags in severity order:

Installs
1
GitHub Stars
727
First Seen
Oct 23, 2026