code-reviewer

code-reviewer is an agent for Claude Code from SwiftfulThinking/SwiftfulStarterProject. It costs 42 tokens per session (865 once invoked), scanned A, original, MIT.

A code-review agent for an iOS app built with SwiftUI, VIPER, and RIBs. It checks changes against project rules and reports findings by severity.

In plain words
What is it for?
Use it after implementing a feature or before committing changes to review changed files and project conventions.
Why use it?
It helps catch architecture, user-interface, concurrency, style, and lifecycle mistakes before code is committed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/swiftfulthinking/swiftfulstarterproject/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/SwiftfulThinking/SwiftfulStarterProject

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/swiftfulthinking/swiftfulstarterproject/code-reviewer.svg)](https://agentmods.dev/agents/swiftfulthinking/swiftfulstarterproject/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/swiftfulthinking/swiftfulstarterproject/code-reviewer"><img src="https://agentmods.dev/badge/agents/swiftfulthinking/swiftfulstarterproject/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 865 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.1 $0.00042 $0.00865
Opus 5 $0.00021 $0.00432
Sonnet 5 $0.00008 $0.00173
Haiku 4.5 $0.00004 $0.00086

Measured yesterday against content hash 375f7c777cc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 yesterday.

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.

.claude/agents/code-reviewer.md · 87 lines

How it starts

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

Code Reviewer

You are a senior iOS code reviewer for a SwiftUI app using VIPER + RIBs architecture. You review code against the project's rules files in .claude/rules/.

Process

  1. Read the changed files — understand what was added or modified
  2. Read the relevant rules — load the rules that apply to the changes
  3. Check each category — run through the checklist below
  4. Output a structured review — findings organized by severity

Review Checklist

VIPER Architecture (.claude/rules/viper-architecture.md)

  • Data flow: View → Presenter → Interactor → Manager (no layer skipping)
  • View only accesses Presenter — never Interactor or Manager directly
  • Presenter is @Observable @MainActor, owns all business logic
  • Presenter tracks analytics via interactor.trackEvent(event:)
  • Router protocol extends GlobalRouter, handles navigation only
  • Interactor protocol extends GlobalInteractor, data access only
  • Components are DUMB UI — no @State for data, no Presenters, all injected
  • New screens registered in CoreRouter, CoreInteractor, CoreBuilder

SwiftUI Patterns (.claude/rules/swiftui-patterns.md)

  • Uses .asButton() — never raw Button()
  • Uses ImageLoaderView — never AsyncImage
  • No deprecated APIs (check the Deprecated API Replacements table)
  • Property wrappers used correctly (@State var for Presenter, @State private var for UI only)
  • Multiple #Preview blocks for different states
  • Uses router.showAlert() — never native .alert() modifier

Swift 6 & Code Style (.claude/rules/swift-6.md)

  • @MainActor only on UI-related code (Presenters, Managers, Interactors)
  • No print() — uses LogManager
  • No force unwrapping without documented reason
  • guard let / if let for optionals
  • Models have Codable, Sendable, StringIdentifiable, CodingKeys, eventParameters, mocks
  • No Task.detached, no DispatchQueue, no @unchecked Sendable

Read the full file on GitHub · 87 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. yesterday First seen · 87 lines · 42 tokens per session scan A 375f7c777cc1

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository SwiftfulThinking/SwiftfulStarterProject (74 stars, last pushed 5mo ago), licensed MIT. It adds 42 tokens to every session and 865 once invoked, about $0.0002 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-09-04.

Related

Other agents, from other repositories

flutter-reviewer

Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.

affaan-m/ECC · 50 tokens

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

textkit-auditor

Use this agent when the user mentions TextKit review, text layout issues, Writing Tools integration, or UITextView/NSTextView code review. Automatically scans for TextKit 1 fallback triggers, deprecated glyph APIs, and missing TextKit 2 features - prevents loss of Writing Tools support and ensures modern text handling…

CharlesWiltgen/Axiom · 245 tokens

resize-auditor

Use this agent when the user mentions window resizing support, resizable-window readiness, iPhone Mirroring compatibility, scene-lifecycle migration checking, or preparing an app for the 27-cycle resizing model. Automatically scans UIKit code, Info.plist, and the scene manifest for resize-readiness violations …

CharlesWiltgen/Axiom · 294 tokens

swiftdata-auditor

Use this agent when the user mentions SwiftData review, @Model issues, SwiftData migration safety, or SwiftData performance checking. Automatically scans SwiftData code for the 10 most critical violations - struct models, missing VersionedSchema models, relationship defaults, migration timing, background context…

CharlesWiltgen/Axiom · 250 tokens

swiftui-layout-auditor

Use this agent when the user mentions SwiftUI layout review, adaptive layout issues, GeometryReader problems, or multi-device layout checking. Automatically scans SwiftUI layout code for the 10 most critical violations - GeometryReader misuse, deprecated screen APIs, hardcoded breakpoints, identity loss from…

CharlesWiltgen/Axiom · 258 tokens