agentleFS
PeanutGTPeanutGT/NutsSkills/skills/code-review/SKILL.md

code-review

Skill3 starsChanged 18 days agoApache-2.0View on GitHub

Use when reviewing a diff, branch, or PR, when asked whether it is safe to merge, and when acting on review comments (the reviewer says X, address the feedback). Covers giving reviews on two separate axes (spec and standards) and verifying feedback before applying it.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • PydanticSkill

    add-new-model

    Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.

    Also in 9 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    azsdk-common-apiview-feedback-resolution

    Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    azsdk-common-generate-sdk-locally

    Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.

    Also in 6 projects that use this

  • +4 more from dzhng
  • +2 more from Azure

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 184 edited versions we read keep these.

  • 9

    Distinctive

    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:

    Core rule: Every reported finding has been checked against the code and names a concrete failure: this input, in this state, gives this …

    line 16
  2. Distinctive:

    Stop early if the ref does not resolve or the diff is empty.

    line 20
  3. Distinctive:

    Read the whole diff, then the surrounding code it touches.

    line 21
  4. Distinctive:

    Core rule: Verify before you agree. Feedback is a claim to check, not an order to follow.

    line 61
  5. Distinctive:

    Read all feedback before changing anything.

    line 63
  6. Distinctive:

    Check each item against the code.

    line 64
  7. Distinctive:

    If right: fix it, one item at a time, running tests after each.

    line 65
  8. Distinctive:

    If wrong or unclear: say so with technical reasons, or ask.

    line 66
  9. Distinctive:

    No performative agreement ("Great catch!").

    line 67

“Common” is measured: kept by at least 6 in 10 of the 184 edited versions of this file we could read. “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

Code review

Part A — Giving a review

Core rule: Every reported finding has been checked against the code and names a concrete failure: this input, in this state, gives this wrong result.

1. Pin what you are reviewing

  • Find the base (the user's ref, or the merge-base with the default branch) and capture git diff <base>...HEAD plus git log <base>..HEAD --oneline.
  • Stop early if the ref does not resolve or the diff is empty.
  • Read the whole diff, then the surrounding code it touches. Bugs often live in what the diff did not change.

2. Find what the change is judged against

  • Spec: issue references in commit messages, the PR description, a file under docs/specs/ matching the branch. If none exists, ask; if there truly is none, say the spec axis was skipped.
  • Standards: CONTRIBUTING.md, CLAUDE.md / AGENTS.md, style guides, lint and formatter config. Skip anything tooling already enforces.

3. Review on two axes, kept separate

A change can follow every rule and build the wrong thing, or build the right thing badly. Report the axes separately so one cannot hide the other.

Spec axis

  • Requirements missing or only partly done
  • Requirements that look done but behave wrongly
  • Behavior nobody asked for (scope creep)

Standards & quality axis

  • Documented repo rules first; cite the rule.
  • Then this checklist:
    • Security: injection, missing authorization, secrets, untrusted input at boundaries
    • Errors surfaced, not swallowed
    • Edge cases: empty, null, huge, repeated, concurrent
    • Data: N+1 queries, transactions, reversible migrations
    • Tests cover the new behavior and would fail if it broke
  • Then design smells, always labelled as judgement calls and overridden by repo rules: unclear name, duplicated logic, feature envy, data clumps, primitive obsession, speculative generality, shotgun surgery, middle man.

4. Check every finding before reporting it

Confirm it against the code. When it is cheap, prove it: a few lines of script or a throwaway test that shows the wrong result. Drop findings you cannot support; say "possible" only for genuine judgement calls.

For a large diff, if you can start subagents, give each axis to a reviewer with a fresh context (see fresh-eyes): it sees the diff, not your assumptions.

5. Report

Per axis, most severe first. Do not merge the axes into one ranking.

[blocker] path/file.py:42 — <one-sentence defect>
Scenario: <input/state> → <wrong result>   (verified: <how>)
Fix: <suggestion>

Labels: blocker / should-fix / nit. End with one line per axis: count and worst finding. Say briefly what is good.

Part B — Receiving a review

Core rule: Verify before you agree. Feedback is a claim to check, not an order to follow.

  1. Read all feedback before changing anything.
  2. Check each item against the code. Is it right for this codebase?
  3. If right: fix it, one item at a time, running tests after each.
  4. If wrong or unclear: say so with technical reasons, or ask. Do not implement something you believe is wrong.
  5. No performative agreement ("Great catch!"). State what you changed, or why you did not.

Rationalizations to reject

ExcuseAnswer
"Looks good to me" without reading the testsRubber stamp. Read them.
"I'm fairly sure this is a bug"Then a three-line script proves it. Run it.
"The reviewer is senior, just do it"Seniority is not evidence. Check the claim.

Related: verify, simplify, ship, fresh-eyes.

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.