# Swift/Xcode Audit: iOS and SwiftUI Code Review

> A prioritized audit of an iOS, Swift or SwiftUI project: secrets, crash risks, threading, memory leaks, SwiftUI pitfalls, performance and architecture, each finding with file, line, evidence and fix.

Swift/Xcode Audit: iOS and SwiftUI Code Review is a paid AI agent skill on Agensi by Hatim Lk, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Hatim Lk](https://www.agensi.io/creators/hatim-lk)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/swift-xcode-audit-ios-and-swiftui-code-review
- Tags: code-review, swift, ios, swiftui, xcode, mobile

## About this skill

### What it does

Runs a structured code audit of an iOS / Swift / SwiftUI / Xcode project and reports findings by severity, so you fix what can crash or leak first.

**Checklist, in priority order**
- **P0 Security:** hardcoded API keys, tokens and passwords
- **P0 Crash risks:** `fatalError`, force unwraps, `try!`
- **P1 Threading and concurrency:** main-thread UI updates, `asyncAfter` timing hacks, races
- **P1 Memory:** retain cycles, timers and subscriptions never cancelled
- **P1 SwiftUI:** `.sheet(isPresented:)` races, state misuse, god views
- **P1 Performance**, **P2 Architecture**, **Data and persistence**, **Error handling**, **P3 Code quality**

**Each finding** comes with the file and line, the exact code as evidence, the impact, and a concrete fix.

**Search commands included:** ready-to-run `grep` and `find` commands for prints, `fatalError`, `asyncAfter`, timers, singletons, force unwraps, secrets, sheet patterns, file sizes and dead files.

### Requirements

Nothing to install: the agent reads your code and runs standard shell commands (macOS or Linux).

### Used on a real app

Used to audit Glood (glood.app), a SwiftUI app for iPhone and iPad, now in public beta.

## Known limitations

Cannot perform runtime profiling or dynamic analysis. Relies on static analysis of Swift files and project structure. Requires shell access to run grep and wc commands.

## 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/Xcode Audit: iOS and SwiftUI Code Review 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

### What specific types of code issues can this skill detect in my project?

This skill analyzes Swift and SwiftUI projects to identify P0 through P3 issues, including security flaws like hardcoded secrets, stability risks such as force unwraps, and memory leaks caused by retain cycles or unmanaged Timers.

### What do I need to provide for the skill to analyze my code?

You only need to provide the skill with access to your local .swift codebase files. It utilizes standard shell commands like grep and find to scan your project for anti-patterns and vulnerabilities.

### What does the final report look like?

You will receive a structured audit report that categorizes findings by severity. Each entry includes the exact file name and line number, a code snippet of the evidence, the potential impact, and a concrete fix.

### Are there any types of analysis this skill cannot perform?

This skill focuses on static analysis of source code and does not perform dynamic analysis or runtime profiling. It is designed specifically for the Xcode ecosystem and frameworks like Combine, Core Data, and Foundation.

### How should I ask my agent to start a code audit?

You can trigger an analysis by asking your agent to audit your codebase, review your Swift code, or check your iOS app for bugs and memory leaks. It is especially useful for pre-release checks before a TestFlight or App Store submission.

---

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.
