English

← All skills · Automation

Automation Premium

Least-Code Reviewer

Review a diff with the laziest-senior-engineer lens: what can we delete, and how many lines does each deletion save?

Works with: Claude Code, Codex, Cursor, Muse · Version 1.0.0 · Needs: A unified diff (from git diff or a pull request patch).

Get this Skill with Premium See plans

Preview

Least-Code Reviewer — finished output
Example visual: the REWRITE verdict and deletion list this Skill produces. A text sample is below.

Sample output

An example of what this Skill produces. Sample content, shown for illustration.

Least-code review — sample

Diff: 1 file, +61 / -0 lines. Verdict: REWRITE — 23 lines removable (38%).

Deletion list (highest saving first)
1. Duplicated validation block (8 lines x 2) — saves ~8 lines
2. Unused private helper _format_unused — saves ~4 lines
3. Single-use abstraction ReportFactory — saves ~3 lines
4. Trivial wrappers get_name, get_title — save ~2 lines each
5. Single-use abstraction ReportStrategy — saves ~1 line
6. Dead imports (3) — save ~1 line each

Refactor note: deeply nested branch (6 levels) — flatten before re-review.

Minimal viable version: validate_email, validate_sender, build_report, process, EmailReport.

What you get

About this Skill

Reads a unified diff and runs seven mechanical checks — single-use abstractions, unused private helpers, trivial wrappers, duplicated blocks, dead imports, deep nesting, speculative markers — then returns a verdict (SHIP / TRIM / REWRITE), a deletion list sorted by lines saved, and the minimal viable version to keep. Local-only, standard library only; nothing from the diff is executed or fetched.

Try it

Review this diff and tell me what to cut — I want the deletion list, longest saving first.

Good fit

Not for

How to install

  1. Copy the install prompt into your agent: Read https://skillu.dev/install/agent.md, then install the Least-Code Reviewer skill (least-code-reviewer).
  2. Or download the Skill package from this page after launch and place its folder in your agent’s skills directory.
  3. Call it with a slash command, e.g. /least-code-reviewer, and describe what you want in plain words.

FAQ

Does it delete code automatically?

No. The script flags candidates and estimates lines saved; the agent confirms each item's real callers — including callers outside the diff — before recommending a deletion.

What if a flagged abstraction is used somewhere else?

Then it is not single-use and stays. The flag means 'used at most once inside this diff', so the agent checks the wider codebase before cutting.

Get Premium access Browse more skills