review-code

review-code is a skill for Claude Code, Codex from mock-server/mockserver-monorepo. It costs 78 tokens per session (1,608 once invoked), scanned A, original, Apache-2.0.

A structured, adversarial review of code changes using eight review perspectives. It checks the complete diff and surrounding code for correctness, security, missing work, and project-specific risks.

In plain words
What is it for?
Use it for pre-commit reviews, reviewing staged or unstaged changes, inspecting new files, and repeating a quality review after fixes.
Why use it?
It helps find defects before code is committed or merged, including problems that a quick read may miss. It also checks whether referenced types and methods actually exist.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mock-server/mockserver-monorepo/review-code
Any agent
npx skills add mock-server/mockserver-monorepo --skill review-code
Clone the repo
git clone --depth 1 https://github.com/mock-server/mockserver-monorepo

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/review-code.svg)](https://agentmods.dev/skills/mock-server/mockserver-monorepo/review-code)
Your own site
<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/review-code"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/review-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00078 $0.01608
Opus 5 $0.00039 $0.00804
Sonnet 5 $0.00016 $0.00322
Haiku 4.5 $0.00008 $0.00161

Measured 3d ago against content hash abb342b664db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/review-code/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adversarial Code Review

You are performing a deep adversarial review of code changes. Your job is to find defects, not to reassure the author. The code is wrong until proven right.

Step 1: Load the Review Constitution

Read .opencode/rules/review-constitution.md in full. This is the 8-lens framework you MUST apply. Do not skip any lens.

Step 2: Gather the Diff

If you have not already been given the diff, obtain it:

git diff --cached                              # staged changes
git diff                                       # unstaged changes
git ls-files --others --exclude-standard       # untracked new files

Read all three. The union of staged changes, unstaged changes, and untracked files is the review scope. For untracked files, read their full contents.

Step 3: Read Surrounding Context

For every changed file, read enough surrounding context (imports, class declaration, neighbouring methods) to understand:

  • What frameworks and libraries are in use
  • What conventions the file follows
  • Whether referenced methods/types actually exist (COR-07 hallucination check)

Step 4: Apply All 8 Lenses

Work through each lens from the constitution. For each lens:

  1. List the principles that are applicable to this change
  2. Evaluate the code against each applicable principle
  3. Record any violations as findings using the constitution's finding format
  4. If a lens is not applicable, state why (e.g., "Lens 4 (Infeasibility): N/A — no dependency changes or Java version concerns")

Lens Priority for Code Reviews

Focus effort on these high-impact areas:

Incorrectness (Lens 7) — highest priority:

  • Logic errors, off-by-one, null dereferences (COR-02)
  • Hallucinated function/method names (COR-07)
  • Race conditions in concurrent code (COR-06)
  • Netty ByteBuf leak: balanced retain()/release() (COR-10)
  • Ring buffer power-of-two invariant (COR-11)
  • Module boundary violations (COR-08)

Insecurity (Lens 5):

  • Secrets in logs, URLs, or error messages (SEC-06)
  • Input validation on control plane endpoints (SEC-05, SEC-11)
  • Template injection prevention (SEC-12)
  • Authentication/authorization enforcement (SEC-01, SEC-02)

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 176 lines · 78 tokens per session scan A abb342b664db

Subscribe to this mod's changes

review-code is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,962 stars, last pushed today), licensed Apache-2.0. It adds 78 tokens to every session and 1,608 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

verify-behavior

Verify or reproduce visible product behavior by driving the real UI with pi-computer-use's checked tools, requiring verified expect postconditions and durable state evidence for meaningful UI flows. Use when triage needs visual reproduction, implementation needs behavioral proof, review needs interactive confirmation…

nicknisi/dotfiles · 68 tokens

add-theme

Add a new named theme pack to the dotfiles theme system (bin/theme). Use when the user pastes an omarchy/omacosy-style theme repo URL, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.

nicknisi/dotfiles · 58 tokens

source-drafting

Use when drafting documents, reports, posts, presentations, or review comments from source materials, or conducting research across provided documents. Enforces read-first drafting, a source map for every claim, agent verification, and separation of verified from unverified claims.

nicknisi/dotfiles · 54 tokens

bro

Restate the last message in plain human language, with no jargon.

nicknisi/dotfiles · 16 tokens

pixiv-cli

Operate Pixiv through the pixiv-cli binary — search illustrations, novels, and users; reverse-search images with SauceNAO or ascii2d; inspect Pixiv artwork or user IDs/URLs; view rankings and recommendations; manage bookmarks/follows; and download works. Load only when the user explicitly mentions Pixiv or pixiv-cli…

FlanChanXwO/pixiv-cli · 134 tokens

pixiv-cli-ci

Diagnose, verify, monitor, and safely operate pixiv-cli GitHub Actions runs and local CI gates, including PR Quality gate, workflow policy, platform smoke, native/browser evidence, release handoffs, and approved reruns. Use when checks fail or hang, a PR needs readiness verification, a workflow run needs root-cause…

FlanChanXwO/pixiv-cli · 82 tokens