Review a code change well — engine-agnostic critical review discipline for an inline dev loop.

MITAuto-check passedDevelopment

Install Review Code

skills CLI
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill review-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install BlackBeltTechnology/pi-agent-dashboard review-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/eng-disciplines/.pi/skills/review-code .claude/skills/review-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
review-code
GitHub stars
315
Token cost
~3k tokens
SKILL.md length
1,459 words
Files
1
Skills in repo
66
Repo updated
First seen
Licence
MIT

At a glance

Review a code change well — engine-agnostic critical review discipline for an inline dev loop.

  • Works in 4 steps: Reproducing test first. Write a test… → Smallest fix. The minimal change that… → Sibling sweep. Search the change for the… → …
  • Tasks that involve Code review
  • SKILL.md covers Overview, When to Use, The Governing Principle — the… and Review Dimensions — inspect in…, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Review Code is an agent skill from BlackBeltTechnology/pi-agent-dashboard. Review a code change well — engine-agnostic critical review discipline for an inline dev loop. Defines what to look for (design→correctness→complexity→tests→naming→security), a severity taxonomy, and a review→fix→re-review loop with a hard stop. Use on "review this code", "review my diff", "is this change good", "critique this implementation", "review before commit". Not a ship-gate.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review. The repository describes itself as: Real-time web dashboard for pi coding-agent sessions. Multi-session view, live chat mirroring, integrated terminal, diff viewer, pi-flows execution, and mobile-first remote… The licence is MIT.

When your agent uses it

  • Tasks that involve Code review

Example prompts

  • “review this code”
  • “review my diff”
  • “is this change good”
  • “/review-code”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Reproducing test first. Write a test that fails because of the defect, and see it fail. If no automated test can observe it, write down…
  2. Smallest fix. The minimal change that turns that test green.
  3. Sibling sweep. Search the change for the same pattern (same helper, same check shape, same resource) and fix every other instance. Record…
  4. Re-read the fix against the finding's class. Read the fix hunk itself through that defect class — a cleanup fix can leak on its own error…

What it can do on your machine

Read from SKILL.md and the folder at commit e23e533. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Review Code loads about 3k tokens when it runs. Until then it costs about 100 tokens; SKILL.md has 1,459 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~100
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from BlackBeltTechnology/pi-agent-dashboard at commit e23e533, republished under its MIT licence (© BlackBeltTechnology). 1,459 words, ~3,040 tokens.

Download SKILL.mdSave it as .claude/skills/review-code/SKILL.md (or your agent's skills folder).
name
review-code
description
Review a code change well — engine-agnostic critical review discipline for an inline dev loop. Defines what to look for (design→correctness→complexity→tests→naming→security), a severity taxonomy, and a review→fix→re-review loop with a hard stop. Use on "review this code", "review my diff", "is this change good", "critique this implementation", "review before commit". Not a ship-gate.
related_skills
doubt-driven-review, systematic-debugging, security-hardening, code-simplification

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

The Governing Principle — the loop terminator

Pass the change when it definitely improves code health. Not when it is perfect.

This is the single most important rule, because it is what ends the loop. A reviewer without it keeps finding one more nitpick forever and the change never lands. Approve once no blocking defect remains — even if you can still imagine improvements. Leave the non-blocking improvements as labelled suggestions the author may take or defer.

Two corollaries:

  • There is no perfect change, only a healthier codebase. Block on defects, not on taste.
  • Continuous improvement over perfection. A change that measurably improves things and leaves a suggestion: for the rest is better than a change stalled on a reviewer's ideal.

Review Dimensions — inspect in value order

Review every changed line, in context, highest-value dimension first. Most defects that matter live near the top of this list; do not spend the review budget on naming while a design flaw goes unexamined.

text
1. DESIGN         Does the change fit the system? Right layer, right seam?
                  Does it integrate, or bolt on? (highest-value — a wrong
                  design is expensive later; a wrong variable name is cheap.)
2. CORRECTNESS    Does it do what it claims? Edge cases, error paths,
                  concurrency/races, boundary values, empty/null inputs.
3. COMPLEXITY     Is it more complex than it needs to be? Over-engineering
                  and speculative generality (YAGNI) — solve the problem
                  that exists now, not a hypothetical future one.
4. TESTS          Are there tests, and do they test behaviour (not just
                  cover lines)? Would they fail if the code were wrong?
5. NAMING         Do names reveal intent? Could a reader guess wrong?
6. COMMENTS       Do comments explain WHY, not WHAT? (What is in the code.)
7. CONSISTENCY    Does it match the repo's conventions and style?
8. SECURITY       Untrusted input, secrets, authz, injection. On any hit,
                  escalate to the `security-hardening` skill.
9. DOCS           Are public surfaces / behavioural changes documented?

Also, deliberately look for something done well and say so — a sincere praise: per review is part of the discipline, not decoration.

Defect Classes — sweep populations, not samples

The dimensions say what to judge; these classes say where blocking defects cluster. For each class, find every instance of its pattern in the change (grep for it), not the first one you happen to read. Report, per class, what you checked — including "no instances".

ClassHow to sweep
Spec and task conformanceWalk each requirement/scenario and task the change claims; find the code and test that satisfy it. Flag anything claimed but absent, or present but contradicting the stated intent.
Canonicalize before checkFind every guard/allowlist/lookup on a path, URL, id, or name; confirm the value is normalised (resolve, decode, case-fold, trim) before the check, the same way the consumer will interpret it.
Degenerate and boundary inputFor every new input: empty, whitespace-only, zero, one, max, duplicate, missing file/dir, malformed data. Does each take a defined path?
Stale state and reconciliationFind every cache, map, derived copy or persisted record the change writes; confirm it is updated or invalidated on each mutation path (rename, delete, restart, reconnect).
Error-path cleanupFor every resource acquired (temp dir, lock, listener, timer, child process, open handle), follow each throw/early-return path and confirm release.
Shared-helper blast radiusFor every shared function/type/constant the change modifies, list its callers (grep) and check each still holds under the new behaviour.
Concurrency and interleavingFor every async step, check-then-act, or shared mutable state: can two callers interleave between the check and the act? Is ordering assumed but unenforced?
Test fidelityFor every new test: does it drive the production wiring (real entry point, real config), and would it fail if the code were wrong? Mocks that bypass the path under test do not count.

Severity Taxonomy — parseable, prioritized

Every finding carries a label so the author (or the loop) knows what is mandatory versus optional. Without labels, everything reads as blocking and the change stalls. Based on Conventional Comments; the blocking / non-blocking decoration is what the loop keys on.

LabelMeaningBlocks the loop?
issue(blocking)A real defect that must be fixed before pass — wrong behaviour, a design flaw, a security hole, a missing critical testYes
issue(non-blocking)A real but low-stakes defect; fine to fix now or file a follow-upNo
suggestionAn improvement; the author decides. Pair with the concrete changeNo
nitpickTrivial preference (style, phrasing). Never blocksNo
questionYou are unsure a problem exists — ask for intent before judgingNo (resolve first)
praiseSomething genuinely good. Aim for ≥1 per reviewNo

Finding format (explain the reasoning, point at the fix):

text
<label>[(blocking|non-blocking)]: <one-line subject>
  path/to/file.ts:42 — why this is a problem, and the suggested change.

Rules for writing findings (from Google's "How to write comments"):

  • Explain the reasoning, don't just assert. "This can race" → say how.
  • Point at the problem and suggest the fix — balance directing with letting the author choose.
  • Be kind and specific. Review the code, never the author.
  • Label honestly. Do not inflate a nitpick to issue(blocking) to force it.
Show full SKILL.md (484 more words)Show less

The Review → Fix Loop

Coherence-preserving: the reviewer and the fixer share the same context, so the fix understands the change's intent.

text
1. Review every changed line across the dimensions and sweep every defect
   class → emit labelled findings.
2. Triage: collect all issue(blocking) + issue(non-blocking) you intend to fix.
3. Fix each one under the fix protocol below. Every changed line traces to a
   finding. Do NOT refactor adjacent code "while you're here".
4. Re-review the new diff (fixes can introduce defects).
5. Repeat 1–4 until only non-blocking / suggestion / nitpick / praise remain.
6. PASS. Leave remaining suggestions labelled for the author to take or defer.

Fix protocol — per blocking finding, in order:

  1. Reproducing test first. Write a test that fails because of the defect, and see it fail. If no automated test can observe it, write down why (one concrete sentence), not "hard to test".
  2. Smallest fix. The minimal change that turns that test green.
  3. Sibling sweep. Search the change for the same pattern (same helper, same check shape, same resource) and fix every other instance. Record the search you ran, even when it finds nothing.
  4. Re-read the fix against the finding's class. Read the fix hunk itself through that defect class — a cleanup fix can leak on its own error path; a canonicalisation fix can miss a caller.

Most defects found in a second review round are introduced or left behind by the first round's fixes; steps 1 and 3 are what prevent them.

The stop condition is the governing principle made mechanical: zero issue(blocking) remaining ⇒ pass. Do not loop on suggestions.

Choosing the reviewer engine

  • Inner loop (this skill): a model via a role alias (e.g. a strong-reasoning role). Unlimited throughput — run it on every non-trivial change. No cloud quota spent.
  • PR ship gate: the cloud tool (rabbit-code-review / CodeRabbit), run once at the pull request, where its GitHub integration and auto-fix loop earn their cost. Never call it inside the inner loop — that spends the quota you need at ship time.
  • Give the reviewer the diff plus the change's intent (the task text / spec). A reviewer that can't see intent flags style noise instead of real defects — when intent is missing, emit a question: and get it before judging.

Red Flags

  • Treating every finding as blocking — the nit-block spiral; the change never lands
  • Rubber-stamping PASS without reading every changed line
  • Reviewing naming/style while a design flaw goes unexamined (wrong dimension order)
  • Blocking on taste instead of defects (violates the governing principle)
  • Scope-creep refactors inside the fix step ("while I'm here") — every changed line must trace to a finding
  • Judging code whose intent you never established — ask (question:) first
  • Spending a rate-limited cloud gate on the inner loop
  • No praise: ever — you are only modelling fault-finding

Verification

  • Every changed line was reviewed, in context, across the dimensions in value order
  • A per-class sweep summary states, for each defect class, what was checked and what was found (including "no instances")
  • Each blocking fix followed the fix protocol: reproducing test (or stated reason), smallest fix, sibling sweep, re-read against its class
  • Findings carry honest labels; blocking vs non-blocking is explicit
  • All issue(blocking) findings were fixed surgically and the diff re-reviewed
  • The loop stopped at zero blocking findings (not at "perfect")
  • Fixes introduced no scope-creep; every changed line traces to a finding
  • The cloud PR gate was NOT spent — it remains reserved for the pull request

© BlackBeltTechnology, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/eng-disciplines/.pi/skills/review-code of BlackBeltTechnology/pi-agent-dashboard.

Open the folder on GitHubat commit e23e533

Compare with similar skills

Review Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Review Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Review Code this skillBlackBeltTechnology/pi-agent-dashboard315—~3kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Backend Code Reviewlangflow-ai/langflow156k—~3.5kAutomated safety check: NotesMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    156k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Backend Code Review

    langgenius/dify

    Reviews backend code under api/ for concrete, reproducible defects, routes to rule packs for architecture, schema, repositories and SQLAlchemy, and ranks findings from P0 to P3.

    158k GitHub stars~676 tokensUpdated today
    DevelopmentAuto-check passed

More from BlackBeltTechnology/pi-agent-dashboard

All 66 skills in this repo
  • Browser

    BlackBeltTechnology/pi-agent-dashboard

    Browser automation via the agent-browser CLI. An agent skill from BlackBeltTechnology/pi-agent-dashboard.

    315 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Pi Dashboard

    BlackBeltTechnology/pi-agent-dashboard

    Monitor and control the pi-dashboard server. An agent skill from BlackBeltTechnology/pi-agent-dashboard.

    315 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • CI Troubleshoot

    BlackBeltTechnology/pi-agent-dashboard

    Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 11-file workflow taxonomy, affected-test selection, the release pipeline, known failure modes, and how to read gh run logs and…

    315 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Debug Dashboard

    BlackBeltTechnology/pi-agent-dashboard

    Diagnose problems in the running pi-agent-dashboard system: server.log, /api/health, bridge WebSocket connectivity, vitest triage, known-issue FAQ entries.

    315 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Implement

    BlackBeltTechnology/pi-agent-dashboard

    Disciplined implementation in pi-agent-dashboard: the rebuild matrix (extension→reload, server→restart, client→build+restart, openspec-apply→full rebuild) plus the project's code discipline rules.

    315 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Session To Guideline

    BlackBeltTechnology/pi-agent-dashboard

    Turn a pi session into a Markdown "how-we-did-it" collaboration guideline: reads the session's JSONL transcript and synthesizes a reusable playbook of which prompts worked, what had to be steered…

    315 GitHub stars~3.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Review Code

What does Review Code do?

Review a code change well — engine-agnostic critical review discipline for an inline dev loop. Review Code is an agent skill from BlackBeltTechnology/pi-agent-dashboard. Review a code change well — engine-agnostic critical review discipline for an inline dev loop.

When should I use Review Code?

Review Code fits situations like: tasks that involve Code review.

How do I install Review Code in Claude Code?

Run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill review-code -a claude-code`. Or copy the skill folder (packages/eng-disciplines/.pi/skills/review-code in BlackBeltTechnology/pi-agent-dashboard) into .claude/skills/review-code in your project. Claude Code loads it when a task matches its description.

How do I install Review Code in Codex?

Run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill review-code -a codex`. Or copy the skill folder (packages/eng-disciplines/.pi/skills/review-code in BlackBeltTechnology/pi-agent-dashboard) into .agents/skills/review-code in your project. Codex loads it when a task matches its description.

Can I use Review Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill review-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/review-code, .gemini/skills/review-code, .github/skills/review-code and .opencode/skills/review-code in your project.

What does Review Code need to run?

SKILL.md names no scripts, command-line tools or credentials: Review Code is instructions for the agent only.

Does Review Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Review Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Review Code use?

Review Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Review Code use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Review Code?

Skills that share tags, products or a category with Review Code: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Backend Code Review (langflow-ai/langflow, 156k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Review Code?

BlackBeltTechnology (a GitHub organization) maintains it in BlackBeltTechnology/pi-agent-dashboard, which has 315 GitHub stars. The repository holds 66 skills in this directory. The repository was last updated on October 8, 2026.

Source: BlackBeltTechnology/pi-agent-dashboard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.