agentleFS
vaaynevaayne/agent-kit/skills/code-review/SKILL.md

code-review

Skill53 starsChanged 3 months agoMITView on GitHub

Review code changes for reproducible defects and regression risks. Use when reviewing a diff, branch, pull request, or uncommitted changes.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing 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.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 4

    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 normal review unless the request or a concrete risk warrants deeper review.

    line 13
  2. Distinctive:

    If the scope is empty, confirm you checked the right scope first, then stop and say there is nothing to review.

    line 26
  3. Distinctive:

    Write in the user's language.

    line 34
  4. Distinctive:

    Check related tests for the behavior believed unverified.

    line 42

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

Two modes, chosen by request and risk:

  • Normal review (default) — you read the changes and the touched files yourself and report evidence-backed findings in chat. No subagents, no report files.
  • Deep review — parallel reviewer agents, adversarial verification, and a persistent review bundle (review.json, events.jsonl, report.html, summary.md). Run it only when the user explicitly asks for a thorough or deep review, or the diff carries substantive cross-module, security, or concurrency risk. Full process: references/deep-review.md.

Use normal review unless the request or a concrete risk warrants deeper review. The evidence protocol applies in both modes.

Gather context

  1. Determine the review scope from the user's request:
    • Branch or PR changes — find the base branch (default main or master), then:
      git log --oneline $(git merge-base HEAD <base>)..HEAD
      git diff $(git merge-base HEAD <base>)..HEAD
      For a PR number, use gh pr diff <number> and gh pr view <number> for the diff, title, description, and linked issues.
    • Uncommitted changes — git status, then git diff for unstaged and git diff --cached for staged changes. Read in-scope untracked files from git status too; neither diff includes them.
    • An explicit commit range, ref, or file list from the user — use it as given.
  2. If the scope is empty, confirm you checked the right scope first, then stop and say there is nothing to review.
  3. Capture intent: commit messages, PR description, the user's stated goal. Note the claimed purpose and whether the changes actually match it.

Normal review

  1. Apply the evidence protocol below to everything in scope and report findings ordered by severity in the finding format. "No findings" is a valid result — don't manufacture issues.
  2. Unless the user asked for findings only, first briefly explain what changed and why — a few sentences per area, enough for a shared mental model. If intent is unclear, say what you inferred and on what evidence.
  3. List pre-existing bugs found in unchanged code adjacent to the changes separately as side quests — valuable, but they don't block the work.
  4. Write in the user's language. Do not create a review bundle or report files unless the user asks for one; if they do, read only the Review bundle and Report details sections of references/deep-review.md. A report request alone does not require reviewer agents.

Evidence protocol

The diff is a claim, not evidence — a hunk hides the five lines above it. Before reporting a finding:

  1. Read the current content of the changed file, not just the hunks — the whole file when reasonable; for large files, the changed regions plus enough context to verify the claim. Check the revision the diff actually targets (working tree for uncommitted changes, branch tip for a PR).
  2. Trace the callers and callees of any changed symbol being flagged (rg / ast-grep) and confirm the problematic path is actually reachable.
  3. Check related tests for the behavior believed unverified.

Confidence is operational, not vibes:

  • high — verified against the actual code; a concrete triggering input or sequence can be stated.
  • medium — the defect and reachable path are established, but its frequency or full impact is uncertain.
  • low — unverified suspicion; report it as an unresolved doubt, not a confirmed finding.

Report each finding in this format:

### [SEVERITY] Title
- **File**: path/to/file.ext:L42-L50
- **Category**: bug | security | architecture | correctness | performance
- **Description**: What's wrong and why it matters.
- **Evidence**: Concrete trigger — the input, state, or call sequence that provokes the problem, and the code path it takes.
- **Suggestion**: Concrete fix or approach.
- **Confidence**: high | medium | low

A claim without an established trigger belongs in unresolved doubts when the missing evidence is actionable; otherwise omit the speculation. Architecture findings need a concrete harm scenario ("next time someone does X they must also change Y", or "caller A already works around this at file:line"), not an aesthetic preference.

Severity:

  • Critical — data loss, security vulnerability, crash in production path
  • High — incorrect behavior users will hit, silent data corruption
  • Medium — edge case bugs, maintainability issues that will cause future bugs
  • Low — minor defects with limited blast radius

Pure style or naming cleanup is refine-code territory — at most a side note, not a finding. And no findings is not proof of adequate verification: if parts of the scope went unchecked, say so, and report suspected issues you could neither confirm nor refute as unresolved doubts rather than findings or silence.

References and scripts

Paths below are relative to this skill's directory (the folder containing this SKILL.md).

  • references/deep-review.md — deep review process: reviewer lenses, verifier debate, review bundle generation, incremental reruns, follow-up fix workflow.
  • references/review-schema.md — review.json shape. Read when generating or updating a bundle.
  • scripts/render-review.mjs — render report.html and summary.md from review.json.
  • scripts/update-review.mjs — update a finding's status inside an existing bundle.

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.