review-code-security

review-code-security is a skill for Claude Code, Codex from nirecom/agents. It costs 21 tokens per session (1,842 once invoked), scanned A, original, MIT.

A code-review procedure that looks for common security mistakes in implemented software, especially around user input, secrets, and outside services.

In plain words
What is it for?
Use it to review a file, code change, or diff and receive findings with locations, categories, fixes, and notes about possible false alarms.
Why use it?
It helps catch security problems after coding and checks whether related functions or patterns need the same treatment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; mentions subagents; mentions Codex.

Good fit Use it to review a file, code change, or diff and receive findings with locations, categories, fixes, and notes about possible false alarms.

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

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-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirecom/agents/review-code-security/github.svg)](https://agentmods.dev/skills/nirecom/agents/review-code-security)
Your own site
<a href="https://agentmods.dev/skills/nirecom/agents/review-code-security"><img src="https://agentmods.dev/badge/skills/nirecom/agents/review-code-security/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 review-code-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirecom/agents/review-code-security"><img src="https://agentmods.dev/badge/skills/nirecom/agents/review-code-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,842 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.00021 $0.01842
Opus 5.5 $0.00008 $0.00737
Sonnet 5.5 $0.00004 $0.00368
Haiku 4.5 $0.00002 $0.00184

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

Security

Grade A, and why

review-code-security 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/run-codex-review-loop.sh, scripts/run-quality-gates.sh), 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.

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.

skills/review-code-security/SKILL.md · 77 lines

How it starts

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

Scan implemented code for security anti-patterns across the same three axes as /review-plan-security, via Codex through the shared review loop (round-continuing under the 2+1 cap: fix concerns and re-run). Use after implementation to verify the plan's security goals hold in the actual code.

When to Use

Use when the implementation touches external input, secrets handling, or third-party integrations.

Rules

  • Report each finding with: file/location, pattern category, and recommended fix.
  • Note context for potential false positives (test fixtures, comments, examples).
  • For commit-time auto-scanning of hard secrets (AWS/LLM API keys, PEM keys, GitHub/Slack tokens, .env commits), see docs/scan-outbound.md — those are covered automatically.
  • Sibling sweep: enumerate functions, logic, or patterns the change touches that belong to a class; flag siblings as MUST / OPTIONAL / NA for same treatment.

Procedure

RCS-1. Resolve <PLANS_DIR> via skills/_shared/resolve-plans-dir.md. Initialize EXTENSIONS_USED=0. RCS-2. Invoke "$AGENTS_MAIN_ROOT/skills/review-code-security/scripts/run-codex-review-loop.sh" (Bash), exporting AGENTS_MAIN_ROOT, SESSION_ID, PLANS_DIR, EXTENSIONS_USED. Pass CTX_SURVEY_CODE, CTX_SURVEY_HISTORY when available. CTX_CONCERNS_LOG is auto-generated by the wrapper from the ledger (concern-ledger render-concerns-log, format review-security-shared) and auto-exported when non-empty — do not set it manually (#2185). Exit-code handling SSOT: skills/_shared/codex-review-loop.md. On exit 3 (codex unavailable): load prior concerns via bash "$AGENTS_MAIN_ROOT/bin/concern-ledger" render-prior --plans-dir <PLANS_DIR> --session-id <session-id> --format review-security-shared; also render the carrier via bash "$AGENTS_MAIN_ROOT/bin/concern-ledger" render-concerns-log --plans-dir <PLANS_DIR> --session-id <session-id> --format review-security-shared and, if the returned path is non-empty and non-zero-size, export it as CTX_CONCERNS_LOG in the security-scanner subagent's environment so rejected concerns are not re-raised. Launch the security-scanner subagent with model: = the model= line of node "$AGENTS_MAIN_ROOT/bin/resolve-role-model" --role reviewer, then re-run the wrapper with --prestaged-report <artifact_path> --prestaged-producer security-scanner --prestaged-exec <COMPLETE|PARTIAL|ABSENT> (mapping scanner status: complete→COMPLETE / partial→PARTIAL / failed→ABSENT); on failed still re-run with --prestaged-exec ABSENT so the round is recorded. The security-scanner JSON prompt sets its dispatch_directive key to the canonical line of the rules/shell-commands.md Subagent Dispatch Prompts section. RCS-3. Triage — per skills/_shared/priority-hierarchy.md, reject a concern only when it directly contradicts a decision already settled in the approved intent.md / outline.md (including their ## Accepted Tradeoffs). Raising a topic the code does not address is never grounds to reject; a reject must cite the specific governing decision. For each rejected concern, record the verdict durably so it does not re-surface next round: bash "$AGENTS_MAIN_ROOT/bin/concern-ledger" reject --plans-dir <PLANS_DIR> --session-id <session-id> --format review-security-shared --id C<N> --reason "<cited decision>" (#2185).

Read the full file on GitHub · 77 lines

Files

What ships with it

2 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. 9d ago Changed · +1 lines b1f085f31a34
  2. 11d ago Changed 57af7d8dda9c
  3. 17d ago Changed · -1 lines c773071e18aa
  4. 21d ago Changed · -1 lines ea189c35891a
  5. 29d ago Changed · +4 lines 310059781d44
  6. 1mo ago Changed · -16 lines 9697082c365e
  7. 1mo ago First seen · 90 lines · 21 tokens per session scan A 562b3589b9ba

Subscribe to this mod's changes

review-code-security is a skill published in the GitHub repository nirecom/agents (3 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 1,842 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

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

openclaw/clawhub · 17 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

asplos-writing-style

Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…

brycewang-stanford/Awesome-Journal-Skills · 65 tokens

explore-unknowns

Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…

dzhng/skills · 162 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens