Skip to content
agent-review logo

Agent Review

agent-review

Get external agent review and feedback. Routes Anthropic models through Claude Agent SDK (uses local subscription) and other models through OpenRouter API. Use for code review, architecture feedback, or any external consultation.

SKILL.md

Full skill instructions

Agent Review

Get feedback from an external AI agent. Useful for code review, architecture decisions, or getting a second opinion.

Running Commands

echo "code or prompt" | node .claude/​skills/​agent-review/​query.mjs [options] "Your question"
# or
node .claude/​skills/​agent-review/​query.mjs --file <path> [options] "Your question"

Options

FlagShortDescription
--model <model>-mModel or alias (default: gemini)
--file <path>-fRead input from file instead of stdin
--lines <start-end>-lExtract specific lines from file (e.g., 50-100)
--context <path>-cAdditional context file (can repeat)
--system <prompt>-sCustom system prompt
--temperature <n>-tTemperature 0-1 (default: 0.7)
--quiet-qSuppress status messages and usage stats
--listList available models
--jsonOutput raw JSON response

Available Models

Model IDAliasesProviderNotes
google/​gemini-3-pro-previewgemini, g3OpenRouterDefault - good for external perspective
openai/​gpt-5.1-codexgpt, codex, gpt5OpenRouterStrong at code analysis
anthropic/​claude-opus-4.5opus, claude-opusAgent SDKUses local subscription
anthropic/​claude-sonnet-4.5sonnet, claudeAgent SDKUses local subscription

Anthropic models route through Claude Agent SDK (uses your Claude subscription). Other models route through OpenRouter API (requires OPENROUTER_API_KEY).

Environment Variables

VariableRequiredDescription
OPENROUTER_API_KEYFor non-Anthropic modelsOpenRouter API key
AGENT_REVIEW_DEFAULT_MODELNoOverride default model

Examples

Code Review

# Review a file for security issues
cat src/​server/​auth.ts | node .claude/​skills/​agent-review/​query.mjs \
  "Review this authentication code for security vulnerabilities"

# Review with a specific model (using alias)
node .claude/​skills/​agent-review/​query.mjs -m gpt -f src/​utils/​parser.ts \
  "Review this parser for edge cases and error handling"

Reviewing Specific Lines

# Review a specific function (lines 50-100)
node .claude/​skills/​agent-review/​query.mjs \
  -f src/​server/​auth.ts -l 50-100 \
  "Review this authentication function for security issues"

# Review a single line
node .claude/​skills/​agent-review/​query.mjs \
  -f src/​utils/​parser.ts -l 42 \
  "Is this regex safe from ReDoS attacks?"

With Context Files

# Review code with type definitions as context
node .claude/​skills/​agent-review/​query.mjs \
  -f src/​api/​routes.ts \
  -c src/​types/​api.ts \
  -c src/​types/​models.ts \
  "Review this API implementation"

# Review component with its hooks as context
node .claude/​skills/​agent-review/​query.mjs \
  -f src/​components/​UserProfile.tsx \
  -c src/​hooks/​useUser.ts \
  "Review this React component for performance issues"

Architecture Feedback

# Get feedback on a proposed design
cat docs/​design-proposal.md | node .claude/​skills/​agent-review/​query.mjs \
  "What are the potential issues with this architecture?"

Custom System Prompt

node .claude/​skills/​agent-review/​query.mjs \
  -f src/​api/​routes.ts \
  -s "You are a security expert specializing in API design" \
  "Audit this API for OWASP top 10 vulnerabilities"

Temperature Control

# Lower temperature for more deterministic analysis
node .claude/​skills/​agent-review/​query.mjs -t 0.2 -f src/​algo.ts \
  "Analyze the time complexity"

# Higher temperature for creative suggestions
node .claude/​skills/​agent-review/​query.mjs -t 0.9 -f src/​ui.tsx \
  "Suggest ways to improve the user experience"

Using Anthropic Models (Local Subscription)

# Uses Claude Agent SDK - no API credits consumed
node .claude/​skills/​agent-review/​query.mjs -m opus -f complex-algorithm.ts \
  "Analyze the time complexity and suggest optimizations"

Quiet Mode (for scripting)

# Suppress all status messages, only output the response
REVIEW=$(node .claude/​skills/​agent-review/​query.mjs -q -f src/​auth.ts \
  "List security issues as JSON array")
echo "$REVIEW" | jq .

Output

The response text is written to stdout. After the response, usage stats are shown on stderr:

Tokens: 189 in / 871 out (1060 total)
Cost: $0.0108

This helps track token consumption and costs for OpenRouter requests. Use --quiet to suppress.

When to Use

  • Code Review: Get a second opinion on code quality, security, or performance
  • Architecture Decisions: Validate design choices with another perspective
  • Bug Analysis: Share error context and get debugging suggestions
  • Documentation Review: Check if docs are clear and complete
  • Test Coverage: Identify missing test cases

Tips

  • Default model (Gemini 3 Pro) is recommended for most external reviews
  • Use Anthropic models when you want consistency with Claude's style
  • Use -l to review specific functions without sending the entire file (saves tokens)
  • Use -c to include type definitions or related files for better context
  • Use -t 0.2 for more focused/​deterministic responses, -t 0.8 for creative suggestions
  • Pipe code directly for quick reviews: cat file.ts | node ... "review this"

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View