agentleFS
sebastienrousseausebastienrousseau/agtmls/skills/giving-code-review/SKILL.md

giving-code-review

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Review someone else's change so the feedback is actionable and proportionate. Load when reading a pull request, diff, or patch you did not write, and when deciding whether a concern is blocking or merely a preference. Prioritises correctness over style, labels every comment with its severity, and separates what must change from what you would have done differently.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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
  1. Distinctive:

    Does it do the right thing?: Read the description and the tests before the implementation.

    line 43
  2. Distinctive:

    Run out of time and you have still covered the levels that matter.

    line 55
  3. Very specific:

    Be honest about the ratio: If everything is blocking, nothing is.

    line 70
  4. Distinctive:

    Do not redesign in review: If the approach is wrong, say so once, early, at the top level — not through twenty inline comments implementing …

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Giving code review

Trigger. You are reading a change you did not write and are expected to respond: a pull request, a patch, a diff, a colleague asking "does this look right?".

Reference material (the correctness pass in detail, severity calibration, worked comment rewrites, and reviewing agent-authored changes): see reference.md in this directory.

The rule

Every comment states its severity. A reviewer who does not distinguish "this is broken" from "I'd have named it differently" makes both easy to ignore.

Unlabelled feedback forces the author to guess what blocks the merge, and they guess wrong in both directions — polishing nits while shipping the bug, or dismissing a real defect as taste.

Read in this order

Reading a diff top-to-bottom is how correctness bugs get missed while indentation collects three comments. Work outward instead:

  1. Does it do the right thing? Read the description and the tests before the implementation. If you cannot tell what the change is for, that is your first comment.
  2. Is it correct? Trace the logic — boundaries, error paths, concurrency, the empty case and the enormous one.
  3. Will it hold up? Security, performance at real scale, failure modes, backward compatibility.
  4. Is it maintainable? Naming, structure, duplication, comments that will go stale.
  5. Is it consistent? House style and formatting. Last, and usually a linter's job rather than a human's.

Run out of time and you have still covered the levels that matter.

Label every comment

LabelMeaningAuthor must
blockingWrong, unsafe, or breaks somethingFix before merge
shouldA real problem, not merge-blockingFix or justify
considerA genuine option with trade-offsDecide either way
nitPreference, no correctness contentFree to ignore
praiseGood, and worth keepingNothing
questionYou genuinely do not knowAnswer

Two rules follow:

  • Be honest about the ratio. If everything is blocking, nothing is. Most comments on a competent change are nit or consider.
  • question must be a real question. "Why would you do it this way?" is criticism in costume — say the criticism instead.

Make comments actionable

A comment the author cannot act on is noise. Three parts: what, why, what instead.

WeakStrong
"This is wrong.""blocking: rows[0] raises on empty input — load('') reaches it. Guard, or return None."
"Use a map here.""consider: O(n²) over users; a dict keyed by id makes it O(n). Matters above a few hundred."
"Bad naming.""nit: d → deadline; the type isn't obvious at the call site."
"Needs tests.""should: nothing covers the retry path. test_retries_on_timeout with a mock clock would pin it."

Point at the line, say what breaks, offer a direction. You do not owe a full solution, but "this is wrong, figure it out" is not review.

Proportion

Match depth to stakes. A config tweak and a new auth path do not deserve the same scrutiny, and treating them alike trains people to ignore you.

  • Do not redesign in review. If the approach is wrong, say so once, early, at the top level — not through twenty inline comments implementing your version.
  • Do not block on preference. Correct, tested, and readable means your taste is not a merge condition.
  • Do not review the author. Comment on the code.
  • Approve when it is good enough, not when it is what you would have written. Perfect is a way of never shipping.

When not to use

  • You wrote the change — that is receiving-code-review.
  • The project defines its own review protocol or approval rules; follow it.
  • You are auditing for a specific risk class rather than reviewing a 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.