agentleFS
Reef123Reef123/OpenVera/.claude/skills/code-review/SKILL.md

code-review

Skill9 starsChanged 5 months agoMITView on GitHub

Adversarial code review by a clean-context Claude subagent. Read-only. Returns Critical/High/Medium/Low findings against correctness, security, design, reliability, tests, quality. Standalone (no /build pipeline coupling).

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

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 5

    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:

    If you can't tell whether an arg is a path or a git range, prefer path.

    line 41
  2. Very specific:

    If the range is a single ref (HEAD, <sha>), expand to <ref>~1..<ref>.

    line 53
  3. Distinctive:

    Size guard: If the captured content exceeds ~50KB (roughly 1500 lines of source or 1000 lines of diff), warn the user, list the largest …

    line 55
  4. Very specific:

    (Optional) Spec: If --against <spec> was provided, append "Alignment spec follows.

    line 74
  5. Distinctive:

    Keep the prompt under ~100KB total.

    line 76
  6. Distinctive:

    If the YAML doesn't parse, surface the raw output and a one-line "subagent returned non-YAML — re-run with a smaller target or tighter …

    line 107
  7. Very specific:

    If --write <output-path> was passed, write a Markdown file at that path matching .claude/skills/build/templates/code-review.md structure:

    line 113
  8. Distinctive:

    Use the Write tool. Confirm the path is reachable (parent dir exists or is creatable).

    line 121

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

Spawn a clean-context Claude subagent (code-reviewer) to adversarially review a file, directory, or git diff. The subagent returns findings as YAML; this skill formats them and (optionally) writes a review artifact.

Use this when:

  • You want a second pair of eyes on a file before committing.
  • You finished a build phase outside /build full and want a code-review.md-shape report.
  • You want to review the last commit (/code-review with no args defaults to HEAD~1..HEAD).

Don't use this for:

  • /build full Phase 6 — that pipeline still uses Agent(subagent_type: "reviewer", ...) internally, which writes .build/review.md in-flow. This skill is a sibling, not a replacement.
  • Reviewing ideas or PRDs — that's the /build new Stage 0 interview gate (vera-system/memory/interview-method.md), not this skill.

Cost: Free-ish. The subagent uses your Claude Code plan tokens, on the same model as your session, so the reviewer is never weaker than the model that wrote the code. No external API. If you want a cheaper pass, ask for the smaller background model when you invoke the skill.


Step 0: Parse arguments

$ARGUMENTS shapes:

ShapeExampleInterpretation
File path.claude/hooks/pre-compact.pyReview that file
Directory path.claude/hooks/Review every file in it (cap: 10 files)
Git rangeHEAD~1..HEAD, main..HEAD, <sha>..<sha>Review the diff
Single refHEAD, <sha>Review the commit's diff vs its parent
Empty(no args)Default to HEAD~1..HEAD

Flags (any order):

  • --against <path> — also pass <path> to the reviewer as alignment spec (PRD, tech spec, EARS acceptance criteria, etc.)
  • --write <path> — after findings come back, render them into templates/code-review.md shape at <path>. Default: print to chat only.

If you can't tell whether an arg is a path or a git range, prefer path. Then fall back to git if the path doesn't exist.


Step 1: Resolve the target

For a path:

  • Single file → read the file content.
  • Directory → glob **/*.{py,ts,tsx,js,jsx,svelte,md,sh,yml,yaml,json} (or anything else obviously code), cap at 10 files. If more, list them in chat and ask the user to narrow.

For a git range:

  • git diff <range> — capture the diff output.
  • If the range is a single ref (HEAD, <sha>), expand to <ref>~1..<ref>.

Size guard: If the captured content exceeds ~50KB (roughly 1500 lines of source or 1000 lines of diff), warn the user, list the largest files, and ask which subset to review. Do not silently truncate.


Step 2: Spawn the reviewer subagent

Agent(
  subagent_type: "code-reviewer",
  description: "Code review <target>",
  prompt: <see below>
)

The prompt to the subagent has four parts:

  1. Role primer (one line): "You are a clean-context senior code reviewer. Follow the checklist and YAML schema in your agent definition. Return ONLY the YAML block."
  2. Target context: "Target: <path-or-range>. Project: OpenVera (personal AI workbench, Markdown + Python harness scripts + Claude Code skills)."
  3. The content: The file content OR the diff output OR (for directories) each file's content concatenated with a # === <path> === separator.
  4. (Optional) Spec: If --against <spec> was provided, append "Alignment spec follows. Compare the target against this:" plus the spec content.

Keep the prompt under ~100KB total. The agent's checklist + schema live in its definition file, so don't restate them — just remind it to follow them.


Step 3: Receive + display findings

The subagent returns a YAML block. Parse it.

Print to chat in this shape:

**Verdict:** <pass | pass-with-findings | fail>  ·  C: <n>  H: <n>  M: <n>  L: <n>
**Summary:** <one_liner from YAML>

### Critical
| # | File:Line | Finding | Fix |
|---|-----------|---------|-----|
| C1 | path:12 | <finding> | <fix> |

### High
... (same shape)

### Medium
...

### Low
...

Empty severity sections: omit the heading + table entirely (don't print empty headers).

If the YAML doesn't parse, surface the raw output and a one-line "subagent returned non-YAML — re-run with a smaller target or tighter prompt." Don't try to repair the YAML — the subagent should obey schema; if it doesn't, the prompt needs tightening.


Step 4: Optional --write

If --write <output-path> was passed, write a Markdown file at that path matching .claude/skills/build/templates/code-review.md structure:

  • Header (Reviewer: Vera, Date: today's date, Status from verdict)
  • Review Summary (one_liner from YAML)
  • Files Reviewed table (each file in the target)
  • Findings — Critical / High / Medium / Low tables (same shape as Step 3)
  • Checklist section: copy the checklist from the agent definition with each category marked ✓ (since the agent walks the full list)

Use the Write tool. Confirm the path is reachable (parent dir exists or is creatable).


Step 5: Gate line

Print a single closing line:

Verdict: <pass | pass-with-findings | fail>. <N> Critical, <N> High. Run again on a different target, or fix and re-run on the same one.

That's it. No follow-up questions. The skill is one-shot.


Author: Shareef Ellis · @shareefatwork

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.