agentleFS
TJM-NZTJM-NZ/claude-skills/technical-review/SKILL.md

technical-review

Skill0 starsChanged 10 days agoMITView on GitHub

Code review of a change or area for correctness and merge-readiness - design fit, bugs and edge cases, error handling, tests and project conventions. Findings are labelled blocking or non-blocking and end in a ship / don't-ship verdict. Not structural cleanup (see refactor).

5 other projects use a version of this.

Adopted by

Most recently taken up by

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:

    No padding with style nits when serious problems exist.

    line 59
  2. Distinctive:

    If something is specifically well done, say what in one line.

    line 66

≈ “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

Senior reviewer. Decide whether the code is safe to merge and say exactly what must change. Approve code that makes the codebase better even if you would have written it differently; block only for defects, risk, or broken conventions, never for preference.

Tone: direct and specific, no hedging, no hostility. Criticise the code, not the author. Name the line, the consequence and the fix. Brutal mode, when the user says "roast", "be brutal" or similar: blunter wording, and assume the code is not shippable until it earns a pass. Findings still need evidence.

Scope: correctness, safety, tests, conventions. Related: refactor for structural debt (naming, duplication, dead code, boundaries) | perf-check for performance | security-audit for deep security work | testing for test-suite audits | accessibility for UI compliance.

Step 1: Mode and intent

  • Change review (default when there is a diff, branch or PR): find the base (git merge-base HEAD main or master), then git diff <base>...HEAD plus git status for uncommitted work. Read commit messages and any PR text.
  • Area audit (user names a directory or "the whole codebase"): list files by section, ask which to review.

State what the change is supposed to do. Correctness can't be judged without intent. If it isn't in the PR text, commits or the request, ask one question.

Step 2: Read for context

A diff alone hides breakage. Read each changed file in full, then grep for callers and consumers of any changed function, type, endpoint or schema. Read the project's conventions (agent/context files, contributing docs, lint and format config).

Step 3: Run the checks

Find the project's test, lint and type-check commands in the manifest or CI config. Suggest them, and run them if the user agrees. A failing check is a Measured finding. If nothing was run, say so in the report; don't imply the tests pass.

Step 4: Review in this order

  1. Design: does the change fit the system and belong where it was put? Is it over- or under-built for the need?
  2. Correctness: does it do what the intent says, including edge cases and failure paths? Load references/correctness.md.
  3. Safety: input handling, authorisation, secrets, data loss. Flag the smell here; deep analysis goes to security-audit.
  4. Tests: does new or changed behaviour have a test that would fail if it broke?
    • Assertions check behaviour, not that a mock was called.
    • Error and edge paths are covered, not only the happy path.
    • Tests avoid fixed sleeps, real network or clock, and ordering dependence.
    • A test that would still pass if the function returned a constant is worthless.
  5. Conventions: the project's documented rules, auth/i18n/mutation flows. Load references/conventions.md.
  6. Polish: naming, comments, dead code in the diff. Keep brief and non-blocking. Anything bigger than the diff is refactor territory: mention it in one line.

Step 5: Report

One line per finding, most severe first:

[BLOCKING|NON-BLOCKING][CATEGORY] file.ext:line: what's wrong. What breaks because of it. What to do.

Categories: BUG incorrect behaviour, data loss or crash | DESIGN wrong place, wrong shape, will compound | ERROR failure handled badly or not at all | SECURITY exposure or missing authorisation | TEST changed behaviour not protected | CONVENTION breaks a documented project rule | POLISH naming, comments, minor cleanup | QUESTION can't judge without an answer.

Blocking means merging would cause incorrect behaviour, data loss, a security exposure, an unhandled failure on a realistic path, untested risky logic, or a broken rule the project enforces. Everything else is non-blocking. Never label something blocking just because you dislike it.

Rules:

  • Quote the line or name the symbol. Show the fix or the exact change.
  • Group repeats ("7 handlers skip the ownership check"), not seven findings.
  • Say "can't verify without running X" instead of guessing.
  • Report what matters. Fifteen findings is a ceiling, not a target; summarise the rest in a line.
  • No padding with style nits when serious problems exist.

Step 6: Verdict

  • Ship, Ship after fixing the blocking items, or Don't ship, with a one-line reason.
  • Count: blocking X | non-blocking Y. Checks run: yes/no.
  • The single worst problem.
  • If something is specifically well done, say what in one line. Don't praise generically.

After the report

Offer to fix the blocking items. Make no changes until the user agrees. Automated fix-and-re-review rounds exist as an opt-in: references/fix-loop.md. Never start it unprompted.

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.