# Swift Code Reviewer

> Automated Swift/SwiftUI code reviews with spec adherence, Swift 6 concurrency safety, and CLAUDE.md standard enforcement.

Swift Code Reviewer is a paid AI agent skill pack (several skills in one listing) on Agensi by Vinicius Carvalho, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Vinicius Carvalho](https://www.agensi.io/creators/vinicius-carvalho)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-09-30
- Security: scan passed (2026-09-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/swift-code-reviewer
- Tags: code-review, swift, swiftui, ios, github-actions

## 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 `@MainActor` isolation, and `Sendable` violations.
- **Severity-Ranked Audits** categorizes findings into Critical, High, Medium, and Low severities with specific `file:line` references.
- **Agent Loop Optimization** detects recurring patterns in AI-generated code to suggest specific rule updates for your `CLAUDE.md` file.
- **Performance Analysis** flags costly SwiftUI view bodies, `ForEach` identity issues, and retain cycles.

### How it works
1. **Resolve Scope** via `gh pr view` or `git diff` to identify modified, deleted, and related files.
2. **Context Gathering** reads the linked issue or PR body to establish the technical requirements.
3. **Multi-Layer Analysis** scans for Swift quality, SwiftUI patterns, security, and architecture compliance.
4. **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 use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Swift Code Reviewer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the skill ensure my code actually meets the project's specifications?

The reviewer uses a multi-layer analysis that maps code changes directly to requirements found in your PR body or linked issues, ensuring every requested feature is implemented and no 'scope creep' occurs.

### Does this skill handle the new Swift 6 concurrency and thread-safety requirements?

Yes, the skill is specifically optimized for Swift 6 and focuses on identifying data races, Sendable violations, and missing @MainActor annotations that standard linters might miss.

### Which AI agents or development environments are compatible with this skill?

It is designed to work with any agentic IDE or CLI tool that supports GitHub/GitLab CLI integration, though it performs best when given access to a CLAUDE.md file for project-specific standards.

### Are there any specific tools I need to have installed for the Reviewer to work?

You will need the GitHub (gh) or GitLab (glab) CLI installed and authenticated to allow the skill to fetch PR metadata and issue descriptions.

### What specific SwiftUI performance issues does the skill look for?

Beyond standard bug detection, the skill analyzes SwiftUI view body efficiency, ForEach identity stability, and potential retain cycles to ensure your UI remains responsive.

### How does the skill help improve my project's long-term coding standards?

The skill includes an Agent Loop Optimization feature that tracks patterns in your code and suggests specific rule updates for your CLAUDE.md to prevent the same mistakes in future AI generations.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
