agentleFS
JustinK33JustinK33/foreman/skills/review/SKILL.md

review

Skill3 starsChanged 57 days agoMITView on GitHub

Use before pushing, opening a PR, or when the user asks to review code, review a diff, or review a pull request.

190 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

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan
  • Other versions190 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 190

    1. garrytan/gstack★ 143ksame name
    2. ansible/ansible★ 72ksame name
    3. docling-project/docling★ 71ksame name
    4. traefik/traefik★ 66ksame name
    5. ClickHouse/ClickHouse★ 51ksame name
    6. ccch1mneyyy/dsh-Go★ 34ksame name
    7. temporalio/temporal★ 25ksame name
    8. tisfeng/Easydict★ 15ksame name
    9. juicedata/juicefs★ 15ksame name
    10. elie222/inbox-zero★ 13ksame name

    180 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 6

    Distinctive

    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:

    Tests: - Do tests exist for the change?

    line 24
  2. Distinctive:

    Performance: - Only flag if there's a real cost: N+1 queries, unbounded loops over user-controlled input, obvious algorithmic complexity …

    line 28
  3. Distinctive:

    No error handling on an operation that can fail: I/O, network calls, parsing.

    line 36
  4. Distinctive:

    If a diff got shorter by deleting one of the above, that is not simplification.

    line 41
  5. Distinctive:

    Every comment on a real issue includes: what's wrong, why it matters, and a concrete suggested fix, not just "this could be better."

    line 46
  6. Very specific:

    Ask questions when intent is unclear rather than assuming malice or incompetence: "What happens if items is empty here?" beats "This will …

    line 48
  7. Distinctive:

    When the user wants to review their own code before pushing: be at least as strict as you'd be reviewing someone else's.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 153 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

Review like the senior engineer whose approval actually means something, not the one who rubber-stamps to clear their queue.

What to review

$ARGUMENTS, when that is not empty. A bare number is a PR number, so fetch it with gh pr view and gh pr diff. Anything with a slash or a dot is a path. Otherwise treat it as a branch or a ref and diff it against the default branch.

With no argument, review the uncommitted diff, and if the tree is clean, the most recent commit.

Order of operations

Review in this order; each layer is cheaper to fix than the next, so catch it first:

  1. Correctness - Does it do what it claims? Walk the logic against the stated requirement, not just against itself. Check edge cases: empty input, nulls, concurrent access, the boundary conditions.
  2. Tests - Do tests exist for the change? Do they test behavior, not implementation? Would they actually fail if the logic were wrong (mentally break the code and check)?
  3. Security - Any of: unvalidated input crossing a trust boundary, secrets or credentials in code, injection vectors (SQL, command, template), broken auth/authz checks, unsafe deserialization. If found, this blocks the review regardless of everything else.
  4. API/interface design - Is the public surface (function signatures, endpoints, schemas) something you'd be comfortable maintaining in a year? Breaking changes called out explicitly?
  5. Readability & maintainability - Naming, function length, whether a future reader (including future-you) can follow the intent without re-deriving it.
  6. Performance - Only flag if there's a real cost: N+1 queries, unbounded loops over user-controlled input, obvious algorithmic complexity issues. Don't nitpick micro-optimizations with no measured impact.
  7. Style/nits - Last, and lightest touch. If a linter/formatter should catch it, say so once and move on; don't relitigate style in prose.

Cuts that are never acceptable

A change can be small and still be wrong to accept. Block on these regardless of how tidy the diff looks:

  • Input validation dropped at a trust boundary (anything from a user, network, or file).
  • No error handling on an operation that can fail: I/O, network calls, parsing.
  • A security check thinned out or removed: auth, authorization, escaping, sanitization.
  • Accessibility stripped from user-facing code: semantic elements, labels, keyboard paths.

Brevity is a property of the solution, not a license to skip the parts that prevent data loss. If a diff got shorter by deleting one of the above, that is not simplification.

How to write the actual comments

  • Lead with what's good, briefly, then get specific. No padding.
  • Every comment on a real issue includes: what's wrong, why it matters, and a concrete suggested fix, not just "this could be better."
  • Separate blocking issues from suggestions explicitly. Reviewers who don't do this either block on nits or let real issues slide because everything reads the same.
  • Ask questions when intent is unclear rather than assuming malice or incompetence: "What happens if items is empty here?" beats "This will break."
  • Reference specific lines/files, not vague summaries.

For a full PR (not just a diff)

Also check: does the PR do one thing (or is it three PRs wearing a trenchcoat)? Does the description explain why, not just what? Is the diff reviewable in one sitting, or should it be split?

Self-review mode

When the user wants to review their own code before pushing: be at least as strict as you'd be reviewing someone else's. The most common failure mode here is going easy because there's no external reviewer to disappoint.

Output format

A short summary verdict first (ship it / ship with fixes / blocking issues), then the issues grouped by severity, each with file:line, the problem, and the fix. Skip the sections above that had nothing to flag, don't force filler into them.

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.