agentleFS
Phelan164Phelan164/codex-howto/skills/review-code/SKILL.md

review-code

Skill12 starsChanged 4 months agoMITView on GitHub

Review code changes for correctness defects, regressions, security risks, data-integrity problems, concurrency hazards, and missing meaningful tests. Use for pull requests, branches, commits, patches, or working-tree reviews; do not use for implementation unless the user separately requests fixes.

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-deps, review-design and 9 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.
  • cjohnhansonSkill

    review-deps

    Judge dependencies, advisories, and licences. Use as a required review, or as /review-deps. Not for how a dependency is called: review-code covers that.

    Also in 3 projects that use this

  • dirkkok101Skill

    review-design

    Use before /plan, after /technical-design, when user says "review design", "check the design", or when design quality is uncertain.

    Also in 4 projects that use this

  • JetBrainsSkill

    review-plan

    Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    review-pr

    Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    test

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 8

    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:

    Use correctness as the default lens.

    line 18
  2. Distinctive:

    Do not report style preferences, theoretical risks without a reachable path, or issues outside the change unless the diff materially …

    line 35
  3. Distinctive:

    Do not run production-integrated, shared-environment, or destructive tests without explicit authorization and verified isolation.

    line 40
  4. Distinctive:

    Do not modify, comment, approve, or request changes on a remote PR unless asked.

    line 42
  5. Distinctive:

    Do not equate passing tests with correctness.

    line 43
  6. Distinctive:

    Do not treat generated code or lockfile churn as a defect without understanding its source.

    line 44
  7. Distinctive:

    Read references/review-checklist.md when the change touches APIs, data, authorization, concurrency, infrastructure, or tests.

    line 50
  8. Distinctive:

    If there are no actionable findings, say so directly and name residual unverified areas.

    line 54

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

Workflow

  1. Establish the review target and comparison base.
  2. Inspect the diff, then trace changed behavior through callers, contracts, persistence, side effects, and tests.
  3. Inspect the target, isolation, fixtures, and side effects before running a narrow check that materially confirms a suspected issue.
  4. Rank findings by impact and confidence; remove duplicates and speculation.
  5. Return findings first, followed by open questions and a short summary.

Use correctness as the default lens. For large, risky, or requirement-heavy changes, add the standards and specification lenses in references/review-lenses.md. Keep each finding tied to its source; documented rules and acceptance criteria outrank personal preference.

Finding standard

Each finding must include:

  • severity;
  • precise file and line or symbol;
  • the failing scenario or invariant;
  • user or system impact;
  • evidence or a reproduction path;
  • a concise fix direction when clear.

Do not report style preferences, theoretical risks without a reachable path, or issues outside the change unless the diff materially exposes them.

Review boundaries

  • Review in read-only mode by default.
  • Do not run production-integrated, shared-environment, or destructive tests without explicit authorization and verified isolation.
  • Do not modify, comment, approve, or request changes on a remote PR unless asked.
  • Do not equate passing tests with correctness.
  • Do not treat generated code or lockfile churn as a defect without understanding its source.
  • Respect repository-specific compatibility and risk rules.
  • State when a claim was not reproduced.

Checklist

Read references/review-checklist.md when the change touches APIs, data, authorization, concurrency, infrastructure, or tests.

Output

If there are no actionable findings, say so directly and name residual unverified areas. Keep the summary shorter than the findings.

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.