- Home
- Skills
- Mobile Development
- Swift Code Reviewer
Swift Code Reviewer
Automated Swift/SwiftUI code reviews with spec adherence, Swift 6 concurrency safety, and CLAUDE.md standard enforcement.
$5
Works with the AI tools you already use
Swift Code Reviewer
Example session with this skill installed
Review the uncommitted changes in my local branch against the current main branch and check for Swift 6 concurrency issues.
- Read your context and instructions
- Compiled the swift code reviewer
Scope: local (base: main) · modified: 2 (0 pushed, 2 uncommitted) · related: 4
Code Review — local
Summary
Files: 2 | Critical: 1 | High: 1 | Medium: 0 | Low: 0
Spec Adherence
Source: Local changes (no PR/Issue context found)
Note: Spec adherence marked as not assessed due to missing context.
PaymentViewModel.swift
[Critical] Swift Quality (line 42)
Current
let transaction = repository.lastTransaction!
Fix: crashes if lastTransaction is nil.
guard let transaction = repository.lastTransaction else {
logger.error("No transaction found")
return
}
[High] Swift Concurrency (line 15)
Current
func updateBalance() async {
self.balance = await api.fetchBalance()
}
Fix: @Published or @Observable properties must be mutated on the @MainActor.
@MainActor
func updateBalance() async {
self.balance = await api.fetchBalance()
}
Positive Observations
- Clean separation of networking logic into the repository layer.
Prioritized Action Items
- [Must fix] Replace force-unwraps in
PaymentViewModel.swiftto prevent runtime crashes. - [Must fix] Add
@MainActorisolation to UI-mutating functions in view models.
Agent Loop Feedback
Recurring patterns suggest the following rules are missing in .claude/CLAUDE.md:
Pattern: Force-unwraps (1 occurrence)
Suggested rule:
Never use
!. Useguard letwith explicit early return.
Pattern: MainActor Isolation (1 occurrence)
Suggested rule:
All ViewModels mutating UI state must be marked with
@MainActor.
Next steps
- Apply the
@MainActorfix toPaymentViewModel.swift. - Replace the force-unwrap on line 42 with a
guardstatement. - Initialize a PR to run the full spec-adherence check.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
Reviewing Swift and SwiftUI code requires balancing modern Swift 6 concurrency rules with project-specific architecture. This skill automates the detection of crashes, data races, and spec deviations before code reaches production.
What it does
- Spec Adherence Tracking maps every acceptance criterion from PR descriptions or Jira/GitHub issues to specific code changes.
- Swift 6 Concurrency Checks identifies data races, missing
@MainActorisolation, andSendableviolations. - Severity-Ranked Audits categorizes findings into Critical, High, Medium, and Low severities with specific
file:linereferences. - Agent Loop Optimization detects recurring patterns in AI-generated code to suggest specific rule updates for your
CLAUDE.mdfile. - Performance Analysis flags costly SwiftUI view bodies,
ForEachidentity issues, and retain cycles.
How it works
- Resolve Scope via
gh pr vieworgit diffto identify modified, deleted, and related files. - Context Gathering reads the linked issue or PR body to establish the technical requirements.
- Multi-Layer Analysis scans for Swift quality, SwiftUI patterns, security, and architecture compliance.
- Report Generation outputs a prioritized list of action items, code diffs, and project standard suggestions.
Frameworks & tools
Uses gh (GitHub CLI) or glab (GitLab CLI) for metadata. Optimized for Swift 6, SwiftUI, and modern architectures like MVVM and TCA.
Why this beats prompting it yourself
Generic prompts often miss the subtle context of a PR spec or the specific concurrency requirements of Swift 6. This skill enforces a strict multi-phase workflow that ensures no requirement is left unimplemented while providing ready-to-paste code fixes.
Use cases
- Auditing AI-generated PRs for scope creep and safety.
- Enforcing strict project standards defined in
.claude/CLAUDE.md. - Validating Swift 6 migration efforts for thread safety.
- Performing architectural reviews on new feature branches.
Known limitations
Spec adherence requires a PR description or linked issue to function. gh or glab must be authenticated for full PR metadata support.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 3 days ago
- Passed all security checks, Safe to install
Needs access to