review-ai-code

review-ai-code is a command for Claude Code from latestaiagents/agent-skills. It costs 13 tokens per session (849 once invoked), scanned A, original, MIT.

A command for checking code written by an AI for correctness, security, and code quality.

In plain words
What is it for?
Use it to review files or pasted code for bugs, injection risks, exposed secrets, unsafe settings, missing validation, and maintainability problems.
Why use it?
AI-generated code can use made-up programming interfaces, contain logic mistakes, miss edge cases, or introduce security risks.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the latestaiagents plugin — 54 skills, 10 commands, 7 plugins shipped together

Good fit Use it to review files or pasted code for bugs, injection risks, exposed secrets, unsafe settings, missing validation, and maintainability problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/latestaiagents/agent-skills/review-ai-code
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/latestaiagents/agent-skills

Made for: Claude Code.

Or install latestaiagents, the plugin that ships this one along with the rest of its 54 skills, 10 commands, 7 plugins.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/latestaiagents/agent-skills/review-ai-code"><img src="https://agentmods.dev/badge/commands/latestaiagents/agent-skills/review-ai-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 849 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.00013 $0.00849
Opus 5.5 $0.00005 $0.00340
Sonnet 5.5 $0.00003 $0.00170
Haiku 4.5 $0.00001 $0.00085

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

Security

Grade A, and why

review-ai-code 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 3mo 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.

commands/review-ai-code.md · 152 lines

How it starts

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

/review-ai-code

Systematic review of AI-generated code for bugs, security issues, and best practices.

What to Review

Paste the AI-generated code, or point me to the file(s) to review.

Review Checklist

I'll check for these common AI code issues:

1. Correctness Issues

Issue What I Look For
Hallucinated APIs Methods/functions that don't exist
Wrong signatures Incorrect parameter types or order
Logic errors Off-by-one, wrong comparisons, missing cases
Incomplete handling Missing error cases, edge cases
Outdated patterns Deprecated APIs, old syntax

2. Security Issues

Issue What I Look For
Injection vulnerabilities SQL injection, XSS, command injection
Hardcoded secrets API keys, passwords in code
Insecure defaults Missing auth, permissive CORS
Data exposure Logging sensitive data, verbose errors

3. Quality Issues

Issue What I Look For
Over-engineering Unnecessary abstractions
Under-engineering Missing validation, error handling
Inconsistent style Doesn't match codebase conventions
Poor naming Unclear variable/function names
Missing types TypeScript any, missing interfaces

Review Process

Step 1: Quick Scan

## First Impressions

- [ ] Code compiles/runs
- [ ] Imports exist
- [ ] Functions are called correctly
- [ ] Types are correct

Step 2: Line-by-Line Review

I'll annotate issues:

// ❌ Issue: SQL injection vulnerability
const query = `SELECT * FROM users WHERE id = ${userId}`;

// ✅ Fixed: Use parameterized query
const query = 'SELECT * FROM users WHERE id = $1';
const result = await db.query(query, [userId]);

Step 3: Verification Steps

## Verify Before Using

1. **Test the happy path**
   - Does it work with valid inputs?

2. **Test edge cases**
   - Empty inputs, null values, boundaries

3. **Test error cases**
   - Invalid inputs, network failures, timeouts

4. **Check against real APIs**
   - Do the function calls actually exist?
   - Are the parameters correct?

Read the full file on GitHub · 152 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. 3mo ago First seen · 152 lines · 13 tokens per session scan A 984467cd5278

Subscribe to this mod's changes

review-ai-code is a command published in the GitHub repository latestaiagents/agent-skills (6 stars, last pushed 28d ago), licensed MIT. It adds 13 tokens to every session and 849 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

review-ai-code compared with commands from other repositories

review-ai-code next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-ai-codelatestaiagents/agent-skillsCommand628d agoMITA13Claude Code
fdk-refactorfreshworks-developers/fw-dev-toolsCommand62mo agoMITA41Claude Code
fdk-react-createfreshworks-developers/fw-dev-toolsCommand62mo agoMITA49Claude Code
pr-enhancesmith-horn/skillsmithCommand78todaynoneA0Claude Code
fw-setup-uninstallfreshworks-developers/fw-dev-toolsCommand62mo agoMITC24Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code