agentleFS
ayushgoelayushgoel/skills/review-code/SKILL.md

review-code

Skill1 starsChanged 3 months agoMITView on GitHub

Use for code, branch, diff, and pull-request reviews in any language, and for technical-plan or design reviews. Performs analysis-only review by default, prioritizes correctness and production risk, adds Kotlin-specific analysis through kotlin-code-reviewer, and uses PRFlow or TWG when remote PR state or company context is needed.

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

11 rules. 0 are common, 8 are distinctive, and 3 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.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not edit files, push commits, post comments, approve, merge, or update a PR unless the user explicitly requests that action.

    line 18
  2. Very specific:

    When fixes are requested, switch to write-code after completing enough analysis to define the change.

    line 21
  3. Distinctive:

    When a request includes both, review the design assumptions first, then check whether the implementation preserves them.

    line 31
  4. Distinctive:

    Read repository guidance and identify the exact diff or files in scope.

    line 39
  5. Very specific:

    Use prflow for direct Bitbucket PR metadata, diff context, comments, checks, pipelines, and failed logs.

    line 42
  6. Very specific:

    Use twg for linked Jira requirements, Confluence designs, historical decisions, ownership, and cross-repository context.

    line 44
  7. Distinctive:

    Use live CLI help through the owning skill when command syntax is uncertain.

    line 49
  8. Distinctive:

    Check whether each issue is introduced by the reviewed change.

    line 65
  9. Distinctive:

    Avoid speculative edge cases, generic best practices, unrelated legacy issues, and preferences already enforced by repository tooling.

    line 77
  10. Distinctive:

    Keep changes surgical when suggesting corrections.

    line 81
  11. Distinctive:

    Use code snippets only when they make the correction clearer.

    line 102

“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

Review for actionable defects and material engineering risk. Default to analysis-only.

Mutation Boundary

  • Do not edit files, push commits, post comments, approve, merge, or update a PR unless the user explicitly requests that action.
  • A request to "review", "audit", "inspect", or "give feedback" is read-only.
  • When fixes are requested, switch to write-code after completing enough analysis to define the change.

Choose The Review Mode

  • For code, branches, diffs, or pull requests, use the code-review workflow below.
  • For implementation plans, architecture proposals, or technical designs, read references/plan-review.md. Review whether the proposal is ready to execute, not whether it matches a preferred template.
  • When a request includes both, review the design assumptions first, then check whether the implementation preserves them.

For a plan or design, follow the linked reference. The mutation boundary still applies; the remaining sections below define the code-review workflow.

Gather The Right Evidence

  1. Read repository guidance and identify the exact diff or files in scope.
  2. Inspect nearby code, tests, callers, contracts, and configuration needed to validate suspected findings.
  3. Use prflow for direct Bitbucket PR metadata, diff context, comments, checks, pipelines, and failed logs.
  4. Use twg for linked Jira requirements, Confluence designs, historical decisions, ownership, and cross-repository context.
  5. For Kotlin or Kotlin-script changes, apply kotlin-code-reviewer as a language-specific extension to this review.

Use live CLI help through the owning skill when command syntax is uncertain. Remote reads are allowed when needed for the review. Remote mutations still require an explicit user request.

Review Priorities

Review in this order:

  1. Correctness and behavioral regressions
  2. Security, authorization, privacy, and data integrity
  3. Concurrency, resource lifecycle, failure handling, and reliability
  4. Public contracts, compatibility, architecture, and cross-module impact
  5. Missing or misleading tests for changed behavior
  6. Performance issues supported by a realistic execution path
  7. Maintainability and style only when they create material risk

Check whether each issue is introduced by the reviewed change. Verify the execution path and surrounding code before reporting it.

Finding Threshold

Report an issue when all of these are true:

  • The changed code introduces or exposes it.
  • It has a concrete impact.
  • The evidence is visible in the diff or supporting code.
  • A reasonable correction exists.

Avoid speculative edge cases, generic best practices, unrelated legacy issues, and preferences already enforced by repository tooling. Match existing style unless that style causes a material defect.

Keep changes surgical when suggesting corrections. Do not turn a local defect into an unrelated redesign. Prefer existing utilities and dependencies over new abstractions.

Feedback Format

Lead with findings ordered by severity:

  • Blocker: unsafe to merge or deploy
  • High: likely correctness, security, data, or reliability failure
  • Medium: real defect with narrower impact or conditions
  • Low: material maintainability or test weakness

Each finding must include:

  • severity and a precise title
  • file and line reference
  • concrete impact and triggering conditions
  • evidence or reasoning that establishes the issue
  • the smallest credible correction

Use code snippets only when they make the correction clearer. After findings, list open questions or assumptions, then give a short summary. When no findings meet the threshold, say so clearly and note any test gaps or residual risk.

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.