ablevarghese/ios-claude-toolkit/ios-review
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Check my code, is this correct, what do you think of this, review my changes, pre-merge check, PR feedback, look over my implementation. Comprehensive iOS code review covering architecture, SwiftUI patterns, concurrency, security, and accessibility. Use for code quality checks, architecture violation audits, pre-merge review, or any request for feedback on Swift/SwiftUI code. Trigger on 'does this look right', 'anything wrong here', 'review before I merge'. For implementing fixes, use forge-development. For security-focused PR review, use trailofbits-differential-review.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/ios-reviewSKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/ios-review.
iOS Code Review — 5-Phase Review Protocol
Perform comprehensive iOS-specific code review covering architecture compliance, SwiftUI patterns, concurrency safety, security, and accessibility. Every finding is specific: file, line, issue, fix.
Iron Law: "Every review finding must cite a specific file, line number, and concrete fix — never generic advice."
Project Discovery: Before executing, determine project-specific values (project name, scheme, bundle ID, target, architecture layers, ViewModel base class, dependency flow) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, Package.swift).
Pre-Review Gate: Is This a Review or a Refactor?
Why this gate exists: Review scope creep is the most common way reviews become multi-hour refactoring sessions. A review produces a report. Fixing the findings is a separate task with its own prioritization.
Phase 1: Triage — Classify Changed Files by Risk
Before reading code, classify every changed file. This determines review depth.
Risk Classification
| Risk Level | What It Touches | Review Depth | Examples | |
|---|---|---|---|---|
| HIGH | Auth, crypto, payments, keychain, token handling, PII | Line-by-line, every path | AuthService.swift, KeychainManager.swift, PaymentViewModel.swift | |
| MEDIUM | Business logic, state management, data models, navigation | Full method review, all error paths | TransferService.swift, UserProfileViewModel.swift, AppRouter.swift | |
| LOW | Tests, UI styling, documentation, asset catalogs | Scan for anti-patterns | TransferServiceTests.swift, Colors.swift, README.md |
Triage Process
- List all changed files (from diff or file list)
- Classify each file as HIGH / MEDIUM / LOW
- Order review: HIGH files first, then MEDIUM, then LOW
- Budget time: 60% on HIGH, 30% on MEDIUM, 10% on LOW
Phase Gate: TRIAGE
Cannot proceed to ANALYSIS until:
- [ ] EVERY changed file is listed with risk classification (HIGH/MEDIUM/LOW)
- [ ] No file is unclassified
- [ ] HIGH files are identified for line-by-line review
If you classified everything as LOW: Recheck. PRs that touch auth, payments, or data models are never LOW. If everything genuinely is LOW, document why.
Phase 2: Architecture Audit
Check for structural violations that undermine the entire codebase. These are always BLOCKER or CRITICAL severity.
Checks
- Layer violations — Does any file import from a layer it shouldn't?
- Domain imports SwiftUI/UIKit? → BLOCKER
- Presentation imports Infrastructure directly? → CRITICAL
- Infrastructure imports Presentation? → BLOCKER
- Dependency injection compliance — Are all dependencies protocol-based and injected?
.sharedsingleton access? → CRITICAL- Concrete type used instead of protocol? → CRITICAL
- Missing init-based injection? → CRITICAL
- Dependency direction — Do all arrows point inward?
- Verify: Presentation → Domain ← Infrastructure
- Any outward dependency is a violation
- Import analysis — Grep for suspicious imports:
`` Grep for: import UIKit in Domain/ Grep for: import SwiftUI in Domain/ Grep for: import (InfrastructureModule) in Presentation/ Grep for: .shared in ViewModels/ ``
Architecture Findings Template
Phase 3: Concurrency Audit
Swift 6 strict concurrency violations cause data races that crash at runtime. These are often invisible without careful review.
Checks
- @MainActor on ViewModels — Every ViewModel class must be
@MainActor
`` Grep for: class.*ViewModel.*ObservableObject Verify each has @MainActor annotation Missing? → BLOCKER ``
- @Published mutation isolation —
@Publishedproperties must only be mutated from@MainActorcontext
`` Look for: @Published var modifications inside Task {} without @MainActor Found? → BLOCKER (data race) ``
- Sendable conformance — Types crossing concurrency domains must be Sendable
`` Check: Are entities passed between actors marked Sendable? Check: Are closures passed to Task {} marked @Sendable? Missing conformance? → CRITICAL ``
- Actor isolation — Mutable shared state must be protected
`` Look for: var properties on classes without actor isolation Look for: mutable state accessed from multiple Task {} blocks Found? → BLOCKER (data race) ``
- @unchecked Sendable audit — Each usage must have a justification comment
`` Grep for: @unchecked Sendable Missing justification? → CRITICAL Wrapping mutable state without synchronization? → BLOCKER ``
Concurrency Findings Template
Phase 4: Security & Quality Scan
Security Checks
| Check | Pattern to Find | Severity | Fix | |
|---|---|---|---|---|
| Force unwraps | ! (not !=) | CRITICAL | Replace with guard let or if let | |
| Hardcoded secrets | API keys, tokens, passwords in source | BLOCKER | Move to environment/config, load at runtime | |
| PII in logs | print(), logger.info() with user data | BLOCKER | Remove PII, log only correlation IDs | |
| UserDefaults for secrets | UserDefaults storing tokens/passwords | BLOCKER | Use Keychain via KeychainAdapter | |
| Try without catch | try? silently discarding errors | WARNING | Handle error explicitly or document why ignored | |
| Force cast | as! | CRITICAL | Use as? with guard or if-let | |
| Implicitly unwrapped optionals | var x: Type! | CRITICAL | Use Type? with proper unwrapping |
Quality Checks
| Check | Pattern to Find | Severity | Fix | |
|---|---|---|---|---|
| Completion handlers | completionHandler:, callback:, { result in | CRITICAL | Convert to async/await | |
| Retain cycles | self. in closures without [weak self] | WARNING | Add [weak self] or verify no cycle exists | |
| View body complexity | body > 30 lines or > 3 nesting levels | WARNING | Extract subviews with @ViewBuilder | |
| Missing error handling | catch { } (empty catch) | CRITICAL | Handle or log the error | |
| Hardcoded strings | User-facing strings not in localization | WARNING | Use String(localized:) | |
| File size | > 300 lines | WARNING | Split by concern | |
| N+1 queries | Loop containing async call per item | WARNING | Batch request or use TaskGroup |
Security Findings Template
Phase Gate: ANALYSIS
Cannot proceed to REPORT until:
- [ ] Every HIGH file has been read line-by-line
- [ ] Every finding follows format:
[File:Line] | [Issue] | [Severity] | [Fix] - [ ] Every reviewed file has at least ONE observation (finding OR explicit "no issues — checked X, Y, Z")
Hard Stop: Generic findings are not findings. "Code looks clean" is not an observation. "Checked TransferService.swift:42-89 for actor isolation — all @MainActor usage correct, no cross-actor access" IS an observation. Be specific or go back.
Counter: If you found zero issues across 5+ changed files, you almost certainly missed something. Return to the highest-risk file and look again — specifically for: missing error handling, force unwraps, concurrency violations, missing accessibility labels.
Phase 5: Report Generation
Compile all findings into a structured report. The report is the deliverable of a review.
Report Format
Phase Gate: REPORT
Report must include ALL of these sections (missing = incomplete):
- [ ] Summary table:
| # | File:Line | Issue | Severity | Fix | - [ ] Files reviewed count and risk breakdown
- [ ] At least one finding per HIGH-risk file (or documented "no issues with evidence")
- [ ] Recommendation: APPROVE / REQUEST CHANGES / BLOCK (with justification)
Hard Stop: If you're about to write "LGTM" or "looks good" without the summary table — STOP. That is not a code review. Return to ANALYSIS.
Severity Definitions
| Severity | Definition | Merge Impact | |
|---|---|---|---|
| BLOCKER | Will cause crashes, data loss, security breach, or data race at runtime | Cannot merge. Must fix. | |
| CRITICAL | Significant code quality issue, architectural violation, or potential bug | Should fix before merge. Rare exceptions with owner approval. | |
| WARNING | Improvement opportunity, minor code quality issue, or tech debt | Document for future. Does not block merge. | |
| NOTE | Style preference, minor suggestion, or informational observation | Optional. |
Rationalizations (Do Not Skip)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ios-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/ios-review)