code-review

code-review is a skill for Codex from kreek/consult. It costs 25 tokens per session (1,574 once invoked), scanned A, original, MIT.

A coding guide for reviewing code changes and pull requests, looking for bugs, regressions, edge cases, missing evidence, and problems that should block a merge.

In plain words
What is it for?
Use it to review a local diff, a branch, a GitHub pull request, or code generated by an agent.
Why use it?
It helps find correctness and safety issues before changes are merged or handed off.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it to review a local diff, a branch, a GitHub pull request, or code generated by an agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kreek/consult/code-review
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.

Any agent
npx skills add kreek/consult --skill code-review
Clone the repo
git clone --depth 1 https://github.com/kreek/consult

Made for: 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 code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/kreek/consult/code-review/github.svg)](https://agentmods.dev/skills/kreek/consult/code-review)
Your own site
<a href="https://agentmods.dev/skills/kreek/consult/code-review"><img src="https://agentmods.dev/badge/skills/kreek/consult/code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreek/consult/code-review"><img src="https://agentmods.dev/badge/skills/kreek/consult/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00025 $0.01574
Opus 5.5 $0.00010 $0.00630
Sonnet 5.5 $0.00005 $0.00315
Haiku 4.5 $0.00003 $0.00157

Measured 16d ago against content hash 3a6c17a1a09c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-review 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 16d 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.

agents/.agents/skills/code-review/SKILL.md · 133 lines

How it starts

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

Code Review

Iron Law

FINDINGS FIRST. BLOCK ON CORRECTNESS, SAFETY, DATA LOSS, AND UNPROVEN CLAIMS.

When to Use

  • Independent review of your diff in the workflow completion loop, after proof and before claiming done. Default for any non-trivial agent-generated change; use a fresh-context subagent, review agent, or separate session when the host provides one.
  • Diff review: local, branch, or a GitHub PR through the host's GitHub surface.
  • Review-comment follow-up on the user's own PRs.

When NOT to Use

  • Commit grouping or history repair only; use git-workflow.
  • A narrow domain-only review where security, database, api, or ui-design is sufficient.

Rules

  1. Review owns defect discovery; proof owns checks. Find behavioral bugs, regressions, unsafe edge cases, missing evidence, and merge blockers.

  2. Reports to the requester put findings first by severity. Each names a file/line or thread anchor, issue, impact, fix direction, and evidence or missing proof. Summaries follow. Ask only when uncertainty blocks a finding.

    Severity When to use
    Critical Exploitable security, data loss, broken auth, destructive migration, outage risk
    High Incorrect behavior, broken contract, missing authorization, race, serious regression
    Medium Maintainability, error handling, observability, compatibility, or test gaps likely to cause defects
    Low Non-blocking clarity, skip unless asked
  3. Every review includes a security pass and a proof-evidence pass. A claim the review cannot verify is reported as unproven. Red or absent CI makes the review unproven, not blocked from inspection. Missing intent on a non-trivial PR is a finding.

  4. Repository constraints beat generic advice. Check declared runtime, framework, dependency, CI, and support policy before applying a language reference.

  5. Maintainability findings need a concrete risk: hidden state, coupled effects, stale flags, duplicated rules with divergent meaning, dead compatibility, unreachable paths. Style is not blocking unless it hides ambiguity or unsafe control flow.

  6. Agent-written code gets an AI-generated risk pass: speculative abstraction, unnecessary shims, dead defensive code, test theater, fabricated APIs, scope creep, refactor drift, and code too large or vague for the human to keep a mental model of. Hand-rolled versions of solved problems (HTTP clients, ORMs, parsers, retry loops, validators, crypto) are findings.

  7. A diff the human cannot review in one sitting gets a declared partial scope, and split/scope becomes a finding. Bundled reformatting or unrelated edits are split before deep review. Sample generated, vendored, and lockfile churn only enough to detect obvious risk.

  8. GitHub reads use host permissions; git-workflow owns access. Modify a PR only if it belongs to the user or the user asks. Get explicit permission for every published write: comment, review, thread resolution, or push. Address the smallest coherent set of feedback and surface conflicts before editing.

  9. PR comments are courteous and specific: critique code, explain impact, and label required versus optional feedback. Ask genuine questions for clarification or alternatives; state verified blockers plainly. Suggest fixes and acknowledge specific strengths when useful. Match the GitHub review decision to requiredness.

Read the full file on GitHub · 133 lines

Files

What ships with it

11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 16d ago Changed 3a6c17a1a09c
  2. 23d ago Changed · +3 lines 7322b676051a
  3. 1mo ago Changed · -58 lines 35b636f6497f
  4. 1mo ago First seen · 188 lines · 25 tokens per session scan A 720bf29222e6

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 17d ago), licensed MIT. It adds 25 tokens to every session and 1,574 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

Other skills, from other repositories

arch-review

Team baseline for architecture, design-doc, and RFC review — produces summary, strengths, concerns, and open questions. Auto-triggers when you say review this design, review this architecture, review this proposal, review my RFC, poke holes in this proposal, is this design sound, or critique this tech spec. Defers to…

ramboz/jig · 207 tokens

pr-review

Team baseline for PR and code review — produces scope, blockers, nits, and strengths. Auto-triggers when you say review this PR, check this diff, review these changes, pre-review before I share, what do you think of this PR, or review the diff on this branch. Defers to any other installed skill whose description…

ramboz/jig · 183 tokens

security-review

Team baseline for security review — a best-effort heuristic security pass over a diff or change-set. Auto-triggers for review this for security, any vulnerabilities here, security pass on this diff, is this code secure, check this for security issues, or security review this. Uses installed scanners when available…

ramboz/jig · 147 tokens

improve

Autonomous quality improvement loop. Scores a target against a rubric, selects the highest-leverage axis, attacks it, verifies, documents, and loops. No pre-planning between iterations — each loop re-scores from scratch.

SethGammon/Citadel · 48 tokens

triage

GitHub issue and PR investigator. Pulls open issues/PRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to…

SethGammon/Citadel · 71 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens