agentleFS
SID-SURANGESID-SURANGE/cursor-team-ops/skills/core/minimal-diff-review/SKILL.md

minimal-diff-review

Skill0 starsChanged 4 months agoMITView on GitHub

Review a set of code or document changes for scope creep, convention drift, and quality issues following team standards. Use when the user asks to "review my changes", "check the diff", "look at what I changed", "is this good to go", "sanity check my code", "does this look right", "review before I push", "quick review", or before a PR is created. Also use proactively after large edits to check nothing went out of scope.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read original files at changed lines for context before judging.

    line 16
  2. Distinctive:

    Do not suggest rewrites unless the user asks for them.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

🔎 Minimal Diff Review

Get the diff

git diff          # unstaged
git diff --cached # staged
git diff HEAD     # both

Read original files at changed lines for context before judging.

Flag these categories

CategoryFlag if
Scope creepFiles touched that are unrelated to the stated task
Convention driftNaming, imports, or style diverge from surrounding code
Unrequested abstractionsNew classes, helpers, or layers added without being asked
Debug codeconsole.log, print(, debugger, breakpoint(), TODO in changed lines
Doc driftPublic API or interface changed but no corresponding doc update
Test gapBehavior-changing code with no test added or updated (flag only, not block)

Output format

[scope-creep]   src/utils.py:45 — touches unrelated date formatter
[convention]    api/routes.ts:12 — uses snake_case; surrounding code uses camelCase
[debug]         app/main.go:88 — print statement left in

Rules

  • Flag issues only. Do not silently fix or revert changes.
  • Do not suggest rewrites unless the user asks for them.
  • Severity is implied by category — do not add emoji or color ratings.

Gotchas

  • A rename that Git can't detect as a rename (heavy edits alongside the move) shows as a full delete + add — don't flag it as scope creep without checking git diff -M first.
  • git diff alone misses already-staged changes and git diff --cached alone misses unstaged ones — use git diff HEAD when the user means "everything I've changed," not just one of the two.
  • On a very large diff, reading every changed file in full can blow the context budget — scope to the files the diff stat shows as most-changed first, and say what was skipped.

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.