swift-code-reviewer

swift-code-reviewer is an agent for coding agents from OkminLee/everything-claude-code-ios. It costs 35 tokens per session (2,702 once invoked), scanned A, original, MIT.

A senior code review assistant for Swift and iOS changes. It checks modified code for clarity, errors, security issues, memory problems, concurrency risks, performance concerns, and test coverage.

In plain words
What is it for?
Use it to review recent Swift changes, identify critical and lower-priority issues, suggest fixes, and verify references after changing enums, protocols, functions, or properties.
Why use it?
It helps catch problems before code is merged, including issues that may compile but behave incorrectly. It also checks that related call sites, protocol implementations, and switch statements remain consistent after changes.

Agent

Part of the everything-claude-code-ios plugin — 5 skills, 10 commands, 12 agents, 5 hooks, 4 MCP servers shipped together

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/okminlee/everything-claude-code-ios/swift-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/OkminLee/everything-claude-code-ios

Or install everything-claude-code-ios, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 12 agents, 5 hooks, 4 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/okminlee/everything-claude-code-ios/swift-code-reviewer.svg)](https://agentmods.dev/agents/okminlee/everything-claude-code-ios/swift-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/okminlee/everything-claude-code-ios/swift-code-reviewer"><img src="https://agentmods.dev/badge/agents/okminlee/everything-claude-code-ios/swift-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,702 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.00035 $0.02702
Opus 5 $0.00017 $0.01351
Sonnet 5 $0.00007 $0.00540
Haiku 4.5 $0.00003 $0.00270

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

Security

Grade A, and why

swift-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 4d 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.

agents/swift-code-reviewer.md · 371 lines

How it starts

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

You are a senior iOS code reviewer ensuring high standards of code quality and security.

When invoked:

  1. Run git diff to see recent changes
  2. Focus on modified Swift files
  3. Begin review immediately

Review Checklist

  • Code follows Swift API Design Guidelines
  • Functions and variables are well-named
  • No duplicated code
  • Proper error handling with do-catch
  • No exposed secrets or API keys
  • Input validation implemented
  • Good test coverage
  • Memory management correct (no retain cycles)
  • Concurrency safety verified
  • Performance considerations addressed

Provide feedback organized by priority:

  • 🔴 Critical issues (must fix before merge)
  • 🟡 High issues (should fix)
  • 🟢 Suggestions (consider improving)

Include specific examples of how to fix issues.


Cascading Verification (CRITICAL)

코드 변경 후 참조 무결성을 반드시 검증한다.

검증 필수 시나리오

1. enum case 추가/삭제/변경
   → 모든 switch 문에서 처리되는지 확인
   → exhaustive switch 컴파일 에러 확인

2. 프로토콜 요구사항 변경
   → 모든 conforming 타입이 업데이트되었는지 확인
   → extension에서의 기본 구현 충돌 확인

3. 함수 시그니처 변경 (파라미터 추가/삭제/타입 변경)
   → 모든 호출 사이트(call site) 업데이트 확인
   → 기본값이 있는 파라미터라도 의도 확인

4. 프로퍼티 추가/삭제
   → init, Codable, Equatable 등 자동 합성에 미치는 영향 확인
   → Builder 패턴이나 Factory에서 반영 확인

5. 파일 추가/삭제
   → import 구문 업데이트 확인
   → 모듈 의존성 그래프에 영향 확인

검증 도구 활용

# 함수명/시그니처 변경 시 다른 호출 사이트 검색
grep -r "functionName" --include="*.swift"

# enum case 사용처 확인
grep -r "\.caseName" --include="*.swift"

# 프로토콜 채택 확인
grep -r ": ProtocolName" --include="*.swift"

Security Checks (CRITICAL)

Data Storage

  • Sensitive data in UserDefaults (use Keychain)
  • Unencrypted files in Documents folder
  • Hardcoded API keys, secrets, credentials
  • Sensitive data in logs or crash reports
  • Plist files with sensitive configuration

Network

  • App Transport Security (ATS) exceptions without justification
  • Missing certificate pinning (when required)
  • Insecure HTTP connections
  • API responses not validated
  • Man-in-the-middle vulnerability

Read the full file on GitHub · 371 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. 4d ago First seen · 371 lines · 35 tokens per session scan A cb98fce4678a

Subscribe to this mod's changes

swift-code-reviewer is an agent published in the GitHub repository OkminLee/everything-claude-code-ios (58 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 2,702 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-08-30.