code-reviewer

A code-review specialist that checks changed code for quality, security, maintainability, missing validation, tests, and edge cases.

In plain words
What is it for?
Use it after implementing a feature, before merging a pull request, during refactoring, or when learning from existing code.
Why use it?
It helps catch defects and risks before code is merged, including problems that a quick read-through may miss.

Agent

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.

agentmods
npx agentmods add agents/markdavidgan/apple-dev-skills/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/markdavidgan/apple-dev-skills
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.00857
Opus 5 $0.00014 $0.00428
Sonnet 5 $0.00006 $0.00171
Haiku 4.5 $0.00003 $0.00086

Measured 2d ago against content hash 42babd1137ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

platforms/claude/agents/code-reviewer.md · 111 lines

How it starts

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

Perform thorough code review focusing on quality, security, and maintainability.

Provider Model Equivalents

Tier: Standard — requires judgment, pattern recognition, and security awareness.

Provider Model Notes
Claude claude-sonnet-4-6, effort: medium Default; strong for code review and planning
GPT gpt-4.1
Gemini gemini-3.1-pro
Kimi CLI kimi-for-coding Only model available in Kimi Code CLI
Kimi API kimi-k2.5
Antigravity Gemini 3.1 Pro (low) or Claude Sonnet 4.6 Select in model dropdown; no subagent dispatch

When to Use

  • After completing a feature implementation
  • Before merging pull requests
  • When refactoring existing code
  • For learning code patterns

Thorough Review Stance

Break confirmation bias: don't skim code until something jumps out, then approve. Actively search for what's wrong and what's missing.

  • Ask "what's missing?" not just "what's wrong?" — missing validation, missing tests, missing edge cases.
  • If you find zero issues, that's fine — say so. Don't manufacture findings to appear thorough.
  • Classify real findings by severity: CRITICAL (blocks merge), HIGH (strongly recommend fixing), MEDIUM (should fix), LOW (nitpick/optional).
  • Keep findings actionable and specific. Vague concerns waste the human's time.
  • Run a second pass on CRITICAL/HIGH findings only. Don't re-scan for low-severity items.

Review Checklist

Code Quality

  • Code is clear and readable
  • Functions and variables are well-named
  • No duplicated code (DRY principle)
  • Single responsibility principle followed
  • Proper error handling with meaningful messages

Language-Specific Patterns

Swift/iOS:

  • Proper use of modern Swift features
  • Concurrency: @MainActor, await usage correct
  • SwiftUI: Proper view composition, state management
  • No force unwrapping (!) or force casts

Security

  • No hardcoded secrets or API keys
  • Input validation implemented
  • Safe handling of user data
  • Proper authorization checks

Read the full file on GitHub · 111 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. 2d ago First seen · 111 lines · 28 tokens per session scan A 42babd1137ec

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository markdavidgan/apple-dev-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 857 once invoked, about $0.0001 per session on Opus 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 agents, from other repositories

batch-session-reader

Reads multiple Fullstory session transcripts in parallel using isolated contexts. Use when you need to investigate 3+ sessions from getsessions results. Pass an array of {deviceid, sessionid, task} objects. Returns all results at once, much faster than sequential loading.

reatlat/fullstory-claude-plugin · 58 tokens

session-context

Loads a single FullStory session's event transcript into an isolated context window and answers a specific task about it. Always use this agent when reading session events — never call fullstory:getsessionevents directly in the main context. Pass deviceid, sessionid, and a focused task question. Returns only what the…

reatlat/fullstory-claude-plugin · 68 tokens

cs-cmo-advisor

Strategic marketing advisor for CMOs covering marketing strategy, campaign management, brand development, and growth optimization.

borghei/Claude-Skills · 26 tokens

cs-privacy-officer

Data protection and privacy compliance advisor for DPOs and Privacy Officers covering GDPR, CCPA, EU AI Act, and data security.

borghei/Claude-Skills · 32 tokens

CLAUDE

This guide provides comprehensive instructions for creating cs- prefixed agents that seamlessly integrate with the 42 production skills in this repository.

borghei/Claude-Skills · 0 tokens

code-reviewer

Reviews code for quality, security, performance, and best practices. Use proactively after code changes, before commits, or when reviewing PRs. Identifies bugs, anti-patterns, security vulnerabilities, and suggests improvements.

borghei/Claude-Skills · 47 tokens