agentleFS
aminemanai2003aminemanai2003/personal-agent-skills/skills/review-code/SKILL.md

review-code

Skill4 starsChanged 4 months agoMITView on GitHub

Review a patch, pull request, branch, or implementation for concrete defects and regression risk. Use when the user asks for code review, PR assessment, merge readiness, security or quality findings, or a second pass over completed code without authorizing changes.

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-security 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.
  • 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

  • PydanticSkill

    review-security

    Security review of the current branch against its merge base — sandbox escapes, memory errors, panics and resource-limit bypasses. Use when reviewing changes for security risk, or before merging anything touching the heap/ module, path_security.rs, the wire protocol or the pool.

    Also in 5 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

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 34 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:

    Check results, review threads, and known limitations.

    line 16
  2. Distinctive:

    Read changed tests early to understand claimed behavior and blind spots.

    line 26
  3. Distinctive:

    Look for concrete defects across correctness, security, data integrity, performance, concurrency, and architecture.

    line 28
  4. Distinctive:

    Do not modify code unless the user also asks for fixes.

    line 36
  5. Distinctive:

    Do not report formatting preferences already enforced by tools.

    line 37
  6. Distinctive:

    Do not flag a theoretical issue without a plausible triggering path.

    line 38
  7. Distinctive:

    Do not inflate severity to make the review look substantial.

    line 39
  8. Distinctive:

    Do not approve based only on green checks.

    line 40
  9. Distinctive:

    If no findings exist, remaining test gaps or residual risk are stated clearly.

    line 48

“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

Purpose

Find actionable correctness, compatibility, security, performance, and maintainability problems that could change the decision to ship.

Inputs

  • Diff, branch, PR, issue/spec, and base behavior.
  • Repository instructions, tests, public contracts, and relevant runtime context.
  • Check results, review threads, and known limitations.

Scope Boundary

This skill is review-only unless the user separately authorizes fixes. Use code-quality for implementation/refactoring and build-feature for end-to-end delivery.

Process

  1. Establish intent and expected behavior before judging implementation.
  2. Inspect repository rules, diff scope, changed contracts, and surrounding code.
  3. Read changed tests early to understand claimed behavior and blind spots.
  4. Trace important success, edge, error, authorization, and compatibility paths.
  5. Look for concrete defects across correctness, security, data integrity, performance, concurrency, and architecture.
  6. Validate suspicious behavior with code evidence or a focused reproduction when feasible.
  7. Rank findings by impact and likelihood; omit speculative style commentary.
  8. Report findings first with file/line, scenario, impact, and the smallest effective remedy.
  9. Then state open questions, test gaps, and a brief change summary.

Constraints

  • Do not modify code unless the user also asks for fixes.
  • Do not report formatting preferences already enforced by tools.
  • Do not flag a theoretical issue without a plausible triggering path.
  • Do not inflate severity to make the review look substantial.
  • Do not approve based only on green checks; confirm those checks cover the changed contract.

Verification

  • Each finding identifies a concrete behavior and supporting evidence.
  • Severity matches user impact and reachability.
  • File and line references point to the responsible code.
  • Recommended remedies address root cause without unnecessary redesign.
  • If no findings exist, remaining test gaps or residual risk are stated clearly.

Failure Modes

  • Summarizing the diff instead of reviewing it.
  • Listing many nits while missing a compatibility regression.
  • Treating missing tests as a defect without identifying the behavior at risk.
  • Reporting a pre-existing issue unrelated to the patch as a blocker.
  • Trusting a test name without reading what it asserts.

Examples

High: an authorization check occurs after data is returned; cite the path and recommend moving enforcement to the boundary with a regression test.

No findings: say so directly, then note that the external integration path was not exercised if that is the remaining risk.

Sources

See ../../sources/review-code.sources.md.

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.