agentleFS
obendidiobendidi/skills/skills/review/SKILL.md

review

Skill2 starsChanged 5 days agoMITView on GitHub

Quality, security, elegance, and value review of a code change, commit, branch, or pull request. Checks correctness and spec alignment, whether the change is worth it and tracks adoption, design elegance vs. brute-force hotfix, high-confidence security and data safety, scale, tests, and bloat. Use when the user asks to "review this", "code review", "review my PR", "review the last commit", "is this over-engineered", or "is there a cleaner way".

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

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 5

    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:

    Read-only review of a change from the perspective of the engineer who will own it six months from now.

    line 8
  2. Distinctive:

    Identify intent / spec: Check the PR description, commit messages, or linked issue/plan so you know what problem the change is supposed to …

    line 14
  3. Distinctive:

    Design elegance vs. hotfix: Ask whether this is a band-aid (special-case flags, duplicated workarounds, patching symptoms at the wrong …

    line 24
  4. Distinctive:

    Every finding needs a concrete failure case, verified unused/duplicated path, or concrete simpler alternative — no vague worries or …

    line 32
  5. Distinctive:

    Start with What this change does (2–3 plain sentences, including whether it solves the stated problem and whether it reads as a clean fix …

    line 40

“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

Review

Read-only review of a change from the perspective of the engineer who will own it six months from now. Do not edit, commit, push, or post PR comments unless explicitly asked.

1. Understand First

  • Scope: Review what the user named (uncommitted diff, commit, branch, PR, or files). If nothing was named, review uncommitted changes, or HEAD~1..HEAD if clean.
  • Read beyond the diff: Inspect callers of every changed function, the functions it calls, nearby tests, and repo rules (AGENTS.md, CLAUDE.md, CONTRIBUTING.md). A change can break untouched callers.
  • Identify intent / spec: Check the PR description, commit messages, or linked issue/plan so you know what problem the change is supposed to solve.
  • Calibrate load: Note the expected scale (single-user script vs. multi-user/concurrent service) and judge scale findings against it.

2. Review Dimensions (in Priority Order)

  1. Correctness & spec alignment: Bugs, broken callers, unhandled edge cases (empty, zero, timezone, partial failure), requirements from the spec/issue that are missing or wrong, and unintended scope creep.
  2. Value & adoption (is it worth it?): Does this actually solve the root problem, or is it solving the wrong/low-value problem? If it introduces a new user-facing surface, workflow, or tool, can adoption and real usage be observed (logs, metrics, events), or is it shipping blind?
  3. Security & data safety (high-confidence only): Trace data flow across the codebase before flagging.
    • Distinguish attacker-controlled input (params, headers, cookies, uploads, URL segments, other users' data) from server-controlled config (env vars, settings, constants) and framework mitigations (ORM parameterization, auto-escaping).
    • Flag exploitable injection, auth/authz bypass, SSRF, secrets, or data-loss hazards (swallowed errors, wrong write order, missing transactions). Skip theoretical warnings and test-only noise.
  4. Design elegance vs. hotfix: Ask whether this is a band-aid (special-case flags, duplicated workarounds, patching symptoms at the wrong layer) or a clean design that shrinks complexity.
    • Sketch any cleaner redesign concretely so the author can weigh it. Label pragmatic, time-boxed fixes honestly as tactical trade-offs instead of blocking for aesthetics.
  5. Scale & tests: Concurrency races (check-then-write), N+1 queries, unbounded memory growth, or O(n²) hot paths at expected load. Flag risky new logic (branches, parsers, money, auth, writes, bug fixes) lacking one test that fails when it breaks — not coverage percentages.
  6. Lean / anti-bloat: Flag code to delete or shrink — dead code, unused options, one-impl speculative abstractions, reinvented stdlib/repo helpers, or new deps for a few lines.
    • Apply the Deletion Test (if deleted, does complexity disappear or spill into callers?) and flag half-finished migrations that leave old callers or replaced paths behind.

3. Noise Gate (Check Before Reporting)

  • Every finding needs a concrete failure case, verified unused/duplicated path, or concrete simpler alternative — no vague worries or "consider X".
  • Skip style, formatting, or anything linters/typecheckers already enforce unless it hides a real bug.
  • Re-read the referenced lines to verify the caller exists, the input can really be attacker-controlled or empty, or the code is genuinely unused.
  • Impact: Tag each finding observed (logs, tickets, hit in normal use), likely, or rare (needs unusual timing or sequence). A rare finding outside auth, security, or irreversible data loss is a nit.
  • Propose the smallest fix that solves the cause. Prefer fixes that delete or simplify code over adding layers or guards.

4. Output Format

Start with What this change does (2–3 plain sentences, including whether it solves the stated problem and whether it reads as a clean fix or a tactical hotfix).

Then list findings in three groups (skip empty groups), numbered continuously across all groups so the user can say "fix 1 and 4":

  • Blocker (blocker): intended case wrong, exploitable security bug, data loss, or breaks at expected load.
  • Should fix (should): real bug callers will hit, missing spec requirement, ugly hotfix with a clearly better seam, risky code without a test, adoption blindness on a major new surface, or clear bloat/duplication.
  • Nit (nit): small simplifications, minor speed-ups, or optional polish.

For each finding, state in plain English: N. **Short title** (file:line) [observed|likely|rare] — What breaks or why it matters. Fix: smallest concrete change (or cleaner alternative).

Close with one line: Verdict (APPROVE or CHANGES) and what went unchecked (e.g. runtime tests, live infra, missing spec).

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.