code-review

code-review is a skill for Codex from Borda/AI-Rig. It costs 24 tokens per session (10,540 once invoked), scanned A, original, Apache-2.0.

A structured review process for local changes, commits, files, or GitHub pull requests. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to review working-tree changes, paths, commits, or pull requests and decide whether blocking issues remain.
Why use it?
It finds blocking problems and applies an evidence-based gate before code is considered ready.

Skill for Codex

Written for Codex: runs codex exec. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

Good fit Use it to review working-tree changes, paths, commits, or pull requests and decide whether blocking issues remain.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/borda/ai-rig/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 Borda/AI-Rig --skill code-review
Clone the repo
git clone --depth 1 https://github.com/Borda/AI-Rig

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/borda/ai-rig/code-review.svg)](https://agentmods.dev/skills/borda/ai-rig/code-review)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/code-review"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00024 $0.10540
Opus 5 $0.00012 $0.05270
Sonnet 5 $0.00005 $0.02108
Haiku 4.5 $0.00002 $0.01054

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

Security

Grade A, and why

code-review scanned grade A with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (review_routing.py, validate_artifacts.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Never reconstruct changed source from `curl`, `raw.githubusercontent.com`, or `head-files/` snapshots.
plugins/codex-rig/skills/code-review/SKILL.md · 463 lines

How it starts

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

Code Review

Run tiered review with strict output gates.

Input Schema

{
  "scope": "optional working-tree|path|commit|pr; infer pr for bare number, #number, or PR URL",
  "target": "optional path, commit ref, PR number, PR URL, or current branch PR",
  "done_when": "blocking issues are identified with gate decision"
}

Scope And Routing

  • working-tree: review unstaged/staged local changes.
  • path: review one file/directory diff.
  • commit: review a git diff revision spec, such as COMMIT^!, BASE..HEAD, or BASE...HEAD.
  • pr: review an open pull request: collect GitHub PR metadata/review evidence, fetch target branch, update local checkout with gh pr checkout, inspect local files; target may be PR number, URL, or current-branch PR.

Input shorthand:

  • Canonical in-session: $code-review 123 or $code-review #123 => scope=pr, target=123.
  • Natural-language aliases: code-review 123, code-review #123, and code-review PR 123 => scope=pr, target=123.
  • code-review <github-pr-url> => scope=pr, target=<github-pr-url>.
  • Bare number = GitHub PR number; do not ask for scope=pr.

Never write to remote. PR scope may update local checkout to PR head; otherwise read-only except the run-directory artifacts defined below. Never pass --force to git or gh; if forced checkout seems needed to align local branch and PR head, stop, explain overwrite risk, and ask before retrying. To fix findings, switch to code-remediate after creating review artifact.

Workflow (Exact Commands)

01: Create run directory

Run create_run.py --skill code-review per ../../shared/helper-cli-contract.md and retain its printed timestamped path literally. A local review keeps that path for its complete lifecycle. A PR review begins there because current-branch input may not identify a PR before collection.

02: T0 mechanical scope gate

For local scopes, inspect python PLUGIN_ROOT/shared/collect_diff.py --help; collect normalized scope, optional target, and the literal <run-directory> path.

Read the full file on GitHub · 463 lines

Files

What ships with it

3 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. 2d ago Changed · +24 lines fab83e1e74e7
  2. 4d ago First seen · 439 lines · 24 tokens per session scan A 085bda380762

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository Borda/AI-Rig (26 stars, last pushed today), licensed Apache-2.0. It adds 24 tokens to every session and 10,540 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.