Skip to content

Swift Expert

Guides an agent to write idiomatic Swift for iOS/macOS apps, SwiftUI, async/await and actors.

Stars
12,176
Licence
MIT
Files
6 files

What it does

Once installed, the agent writes and reviews Swift code for Apple platforms with modern conventions: SwiftUI views with @Observable view models, async/await instead of completion handlers, actors for shared mutable state, and protocol-first designs. It also suggests verifying work by running swift build and swift test, and loads reference notes on memory, testing and concurrency when relevant.

Great for

  • iOS or macOS developers building apps in Swift 5.9+ with SwiftUI
  • Developers migrating older completion-handler or ObservableObject code to modern async and Observation patterns
  • Teams wanting consistent Swift style and thread-safety guidance during code review

Skip it if

  • Non-programmers who need a finished app without reviewing code, since the output is code that still needs building and testing
  • Projects on older Swift versions or pure UIKit codebases where the SwiftUI and @Observable advice does not apply

Try asking

  • “Convert this completion-handler networking code to async/await with proper error handling”
  • “Create a SwiftUI settings screen using @Observable view models”
  • “Design a protocol-based repository layer with associated types and write XCTest tests for it”
  • “Review my Swift code for actor isolation and Sendable warnings”
Step-by-step guide: how to use Swift ExpertInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 6 original files, the MIT licence and an attribution note.

    swift-expert.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip swift-expert.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip swift-expert.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name your target platform and minimum OS version so the agent avoids unavailable APIs.
  • Run the suggested swift build and swift test commands yourself on the generated code before trusting it.
  • Ask for the specific reference area (concurrency, memory, testing) to get deeper guidance.

What's inside

  • references/async-concurrency.md
  • references/memory-performance.md
  • references/protocol-oriented.md
  • references/swiftui-patterns.md
  • references/testing-patterns.md
  • SKILL.md

Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.