ai-code-review

ai-code-review is a skill for Claude Code, Codex from backspace-shmackspace/claude-devkit. It costs 53 tokens per session (1,902 once invoked), scanned A, a copy of ai-code-review, MIT.

A security review guide for code written or assisted by AI coding tools. It focuses on mistakes that AI-generated code can make, such as inventing APIs or missing important security checks.

In plain words
What is it for?
Use it to review AI-generated patches, tests, security fixes, or pull requests marked as AI-assisted. It is not intended for ordinary code reviews with no AI involvement.
Why use it?
AI-written code may look plausible while containing incorrect assumptions or unsafe shortcuts. This guide adds checks specifically for those risks before the code is merged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review AI-generated patches, tests, security fixes, or pull requests marked as AI-assisted. It is not intended for ordinary code reviews with no AI involvement.

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

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 ai-code-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/backspace-shmackspace/claude-devkit/ai-code-review"><img src="https://agentmods.dev/badge/skills/backspace-shmackspace/claude-devkit/ai-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,902 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 89% copy Near-identical to another mod 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.00053 $0.01902
Opus 5.5 $0.00021 $0.00761
Sonnet 5.5 $0.00011 $0.00380
Haiku 4.5 $0.00005 $0.00190

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

Security

Grade A, and why

ai-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 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.

Origin

This is a copy

89% identical to ai-code-review — 29 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ai-code-review/SKILL.md · 229 lines

How it starts

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

AI-Generated Code Security Review

Security review checklist and methodology for code produced by AI coding assistants (Claude, Copilot, Cursor, Gemini, or any LLM-based tool). AI-generated code has characteristic failure modes that differ from human-written code and require specific review attention.

When to Use

  • Reviewing PRs or patches marked with Assisted-by: or Generated-by: attribution
  • Auditing code known or suspected to be AI-generated
  • As a supplementary checklist during any code review where AI assistance was used
  • Verifying AI-generated security fixes or test code

When NOT to Use

  • General code review without AI involvement (use module/skills/differential-review/SKILL.md)
  • Reviewing AI model behavior or prompt injection (use module/skills/prompt-injection-mitigation/SKILL.md)
  • Evaluating AI tool security posture (use module/skills/third-party-model-security/SKILL.md or module/skills/file-protection/SKILL.md)

AI-Specific Failure Modes

AI code generation has characteristic error patterns that differ from typical human mistakes. Review for these specifically:

1. Hallucinated APIs and symbols

LLMs confidently generate calls to functions, methods, flags, configuration keys, or library features that do not exist. These compile or parse correctly but fail at runtime, or worse, silently do nothing.

Detection:

  • Verify every imported module, function call, and configuration key against the actual codebase and library documentation
  • Check that method signatures match (argument count, types, return values)
  • Search the project for the symbol: rg "function_name" — if it only appears in the new code, it may be hallucinated
  • Check library version: AI may reference APIs from a different version than what the project uses

Security impact: A hallucinated security function (e.g., a nonexistent sanitize_input() call) provides zero protection while giving the appearance of safety.

2. Plausible-but-wrong logic

Read the full file on GitHub · 229 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 · 229 lines · 53 tokens per session scan A 04ecac7c13b8

Subscribe to this mod's changes

ai-code-review is a skill published in the GitHub repository backspace-shmackspace/claude-devkit (15 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 1,902 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to ai-code-review, differing in 29 lines, and is treated as a copy.

Related

Other skills, from other repositories

architect

Produces Alon's design-doc system before code: SOURCEOFTRUTH.md, ARCHITECTUREROADMAP.md, TODOWORKFLOW.md, CLAUDE.md, plus a modular docs/architecture set for larger projects. Model first: data and invariants before framework, every invariant enforced at two boundaries, failure paths designed as deliberately as happy…

alonbaron/claude-skills · 96 tokens

ponytail

Forces the laziest solution that actually works: YAGNI, reuse before new code, stdlib before custom, native platform before dependencies, one line before fifty. Three levels — lite (name the lazier alternative, build what's asked), full (ladder enforced, default), ultra (YAGNI extremist, challenge the requirement…

alonbaron/claude-skills · 74 tokens

review-swarm

Local, free, multi-specialist review of a diff: parallel Claude subagents for correctness, security/trust boundaries, data/perf, architecture-altitude, ponytail-simplicity, and tests/failure-paths, each non-trivial finding adversarially verified before being kept, deduped, and ranked into a Blockers / Should-fix /…

alonbaron/claude-skills · 92 tokens

ask-the-council

Convenes a panel of opinionated Claude advisors, each with a distinct mandate and a forbidden move so they genuinely diverge, then a Chairman synthesis that commits to one recommendation with the decisive tradeoff and the strongest dissent named.

alonbaron/claude-skills · 51 tokens

prompt-generator

Turns a vague ask into a rigorous, grounded, token-efficient prompt for another agent or LLM: role and objective, testable done criteria, anti-hallucination and anti-tokenmaxing rules baked into the generated prompt itself, and strict agent discipline for coding-agent hand-offs.

alonbaron/claude-skills · 60 tokens

up-to-date

Preflight sync and situational brief before repo work: fetches origin, reports ahead/behind divergence (with a no-upstream/detached-HEAD fallback), recent commits, open PRs and issues touching the work, and dirty-tree warnings, then names one recommended first action. Read-only by default — never pulls, rebases…

alonbaron/claude-skills · 83 tokens