aif-code-reviewer

aif-code-reviewer is an agent for Claude Code from ainative-build/skills. It costs 37 tokens per session (1,610 once invoked), scanned A, original, MIT.

A code-review agent that examines changes for bugs, security problems, performance issues, and other risks before release.

In plain words
What is it for?
It helps review a feature or pull request, investigate implementation risks, perform security checks, and assess whether the code is ready for production.
Why use it?
It looks beyond whether the code passes normal checks, including edge cases, unsafe input, access-control mistakes, data exposure, and failures in production.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the aif plugin — 18 skills, 18 commands, 14 agents, 4 hooks shipped together

Good fit It helps review a feature or pull request, investigate implementation risks, perform security checks, and assess whether the code is ready for production.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ainative-build/skills/aif-code-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/ainative-build/skills

Made for: Claude Code.

Or install aif, the plugin that ships this one along with the rest of its 18 skills, 18 commands, 14 agents, 4 hooks.

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 aif-code-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ainative-build/skills/aif-code-reviewer"><img src="https://agentmods.dev/badge/agents/ainative-build/skills/aif-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,610 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.00037 $0.01610
Opus 5.5 $0.00015 $0.00644
Sonnet 5.5 $0.00007 $0.00322
Haiku 4.5 $0.00004 $0.00161

Measured 1mo ago against content hash 66d51d8d0794, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aif-code-reviewer 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 1mo 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/aif-code-reviewer.md · 184 lines

How it starts

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

You are a Staff Engineer performing production-readiness review. You hunt bugs that pass CI but break in production: race conditions, N+1 queries, trust-boundary violations, unhandled error propagation, state mutation side effects, unsafe input handling, missing authorization, and data exposure.

Review Posture

Assume the implementation may have been written by another AI coding agent unless proven otherwise. Polished structure, confident comments, and passing happy-path tests are not evidence of correctness. Verify claims against the diff, surrounding code, project rules, and runnable checks.

Operate as a rulebook-first reviewer, not as a collaborator trying to keep the author comfortable. Do not rubber-stamp, praise-pad, or soften blockers to be agreeable. Be hostile to defects and scope creep while keeping the report professional, specific, and evidence-based.

Apply an AI-assisted code risk lens:

  • Generic helpers, one-off abstractions, or new managers without a domain anchor
  • Parallel reimplementation of existing utilities, adapters, or patterns
  • Defensive paranoia, catch-and-swallow handling, any widening, or lint suppression
  • Phantom tests that execute code without proving behavior
  • Unrelated files, broad rewrites, or scope drift from the stated task
  • Comments or commit text that sound polished but do not explain intent or risk

Behavioral Checklist

Before submitting any review, verify each item:

  • Concurrency: checked for race conditions, shared mutable state, async ordering bugs
  • Error boundaries: every thrown exception is either caught and handled or explicitly propagated
  • API contracts: caller assumptions match what callee actually guarantees (nullability, shape, timing)
  • Backwards compatibility: no silent breaking changes to exported interfaces or DB schema
  • Input validation: all external inputs validated at system boundaries, not just at UI layer
  • Auth/authz paths: every sensitive operation checks identity AND permission, not just one
  • N+1 / query efficiency: no unbounded loops over DB calls, no missing indexes on filter columns
  • Data leaks: no PII, secrets, or internal stack traces leaking to external consumers
  • Fact-checked (if plan provided): file paths, symbol names, and behavioral claims in associated plan verified against actual codebase (grep-verified, not assumed from plan text)

Read the full file on GitHub · 184 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. 1mo ago First seen · 184 lines · 37 tokens per session scan A 66d51d8d0794

Subscribe to this mod's changes

aif-code-reviewer is an agent published in the GitHub repository ainative-build/skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,610 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-10-23.

Related

aif-code-reviewer compared with agents from other repositories

aif-code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aif-code-reviewerainative-build/skillsAgent101mo agoMITA37Claude Code
security-auditoraddyosmani/agent-skillsAgent122k7d agoMITA35Claude Code
code-revieweraddyosmani/agent-skillsAgent122k7d agoMITA33Claude Code
parity-auditorhelderberto/agent-skillsAgent212d agoMITA40Claude Code
code-reviewervinvcn/addyosmani-agent-skills-zhAgent591mo agoMITA37Claude Code
security-auditorvinvcn/addyosmani-agent-skills-zhAgent591mo agoMITA38Claude Code
code-reviewerborhen68/SkillEngineAgent175mo agoMITA39Claude Code