Swift Code Reviewer

    1

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

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    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.swift to prevent runtime crashes.
    • [Must fix] Add @MainActor isolation 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 !. Use guard let with explicit early return.

    Pattern: MainActor Isolation (1 occurrence)

    Suggested rule:

    All ViewModels mutating UI state must be marked with @MainActor.

    Next steps

    • Apply the @MainActor fix to PaymentViewModel.swift.
    • Replace the force-unwrap on line 42 with a guard statement.
    • Initialize a PR to run the full spec-adherence check.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Audit AI-generated PRs for spec adherence and scope creep.Find Swift 6 data races and MainActor isolation violations.Enforce project standards defined in .claude/CLAUDE.md.Generate recurring pattern feedback to improve agent instructions.

    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 install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 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

    Listed3 days ago

    What's inside

    Frequently Asked Questions