review-code

review-code is a skill for Claude Code, Codex from BlackBeltTechnology/pi-agent-dashboard. It costs 96 tokens per session (2,068 once invoked), scanned A, original, MIT.

A structured way to inspect a code change before committing it. It covers design, correctness, complexity, tests, naming, and security, then classifies problems by severity.

In plain words
What is it for?
Use it to review a diff or other substantial code change, fix the findings, and review it again before the commit.
Why use it?
It reduces both missed defects and reviews that get stuck on minor preferences. A review-and-fix loop helps confirm that important issues were addressed.

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/blackbelttechnology/pi-agent-dashboard/review-code
Any agent
npx skills add BlackBeltTechnology/pi-agent-dashboard --skill review-code
Clone the repo
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard

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/blackbelttechnology/pi-agent-dashboard/review-code.svg)](https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/review-code)
Your own site
<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/review-code"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/review-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,068 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.1 $0.00096 $0.02068
Opus 5 $0.00048 $0.01034
Sonnet 5 $0.00019 $0.00414
Haiku 4.5 $0.00010 $0.00207

Measured 6d ago against content hash 224c9245062f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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.

packages/eng-disciplines/.pi/skills/review-code/SKILL.md · 137 lines

How it starts

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

Review Code

Overview

Code review is the discipline of judging whether a change improves the health of the codebase — not whether it is perfect. An undirected reviewer does one of two failure modes: it rubber-stamps (misses real defects) or it nit-blocks (treats every preference as mandatory and never lets the change land). This skill prevents both by giving the review a governing principle, a fixed set of dimensions to inspect in value order, a parseable severity taxonomy, and a loop with an explicit stop condition.

This is the inline development-loop reviewer — it runs after you write a non-trivial change and before you commit. It is engine-agnostic: the reviewer can be a model (invoked via a role alias), a human, or a cloud tool. Because a model-backed reviewer has effectively unlimited throughput, it is the right engine for the inner loop — run it on every non-trivial change without spending a rate-limited cloud quota.

The cloud PR gate (CodeRabbit, via the rabbit-code-review skill) is a separate, later gate reserved for the pull request — do not spend it inside the inner loop. This skill covers everything up to the commit; the ship gate covers the PR.

Distilled from Google's Engineering Practices ("The Standard of Code Review", "What to look for"), the Conventional Comments spec, and the local severity→fix loop.

When to Use

  • After writing a non-trivial change, before committing it (the inner loop)
  • On an explicit request: "review this", "critique this diff", "is this change sound"
  • Reviewing a subagent's or another author's diff before integrating it
  • As a checkpoint in an implementation loop, once a task's code is written

When NOT to use:

  • Shipping a PR — that is the cloud gate (rabbit-code-review), run once, at the PR
  • A one-line or mechanical change (rename, import tweak) — review overhead > benefit
  • In-flight, before the code exists — that is doubt-driven-review (per-decision, not per-diff)
  • Diagnosing a failure — that is systematic-debugging

Read the full file on GitHub · 137 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. 6d ago First seen · 137 lines · 96 tokens per session scan A 224c9245062f

Subscribe to this mod's changes

review-code is a skill published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (273 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 2,068 once invoked, about $0.0005 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.