swift-expert

swift-expert is a skill for Claude Code from Jeffallan/claude-skills. It costs 98 tokens per session (1,374 once invoked), scanned A, original, MIT.

A Swift development guide for Apple applications, including iOS, macOS, watchOS, and tvOS. It covers SwiftUI screens, application state, protocols, asynchronous work, thread safety, and tests with XCTest.

In plain words
What is it for?
It helps build SwiftUI views, design protocol-based code, implement async/await operations and actors, investigate Swift-specific issues, and run builds and XCTest tests.
Why use it?
It helps structure Swift applications and catch compiler, concurrency, and test problems during development. It also guides checks for warnings and failing asynchronous tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fullstack-dev-skills plugin — 67 skills shipped together

Good fit It helps build SwiftUI views, design protocol-based code, implement async/await operations and actors, investigate Swift-specific issues, and run builds and XCTest tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffallan/claude-skills/swift-expert
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 11,907 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jeffallan/claude-skills --skill swift-expert
Clone the repo
git clone --depth 1 https://github.com/Jeffallan/claude-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 67 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swift-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffallan/claude-skills/swift-expert/github.svg)](https://agentmods.dev/skills/jeffallan/claude-skills/swift-expert)
Your own site
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/swift-expert"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/swift-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swift-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/swift-expert"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/swift-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01374
Opus 5.5 $0.00039 $0.00550
Sonnet 5.5 $0.00020 $0.00275
Haiku 4.5 $0.00010 $0.00137

Measured 13d ago against content hash a50b57faf2ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swift-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

func fetch(id: Entity.ID) async throws -> Entity
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/swift-expert/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swift Expert

Core Workflow

  1. Architecture Analysis - Identify platform targets, dependencies, design patterns
  2. Design Protocols - Create protocol-first APIs with associated types
  3. Implement - Write type-safe code with async/await and value semantics
  4. Optimize - Profile with Instruments, ensure thread safety
  5. Test - Write comprehensive tests with XCTest and async patterns

Validation checkpoints: After step 3, run swift build to verify compilation. After step 4, run swift build -warnings-as-errors to surface actor isolation and Sendable warnings. After step 5, run swift test and confirm all async tests pass.

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
SwiftUI references/swiftui-patterns.md Building views, state management, modifiers
Concurrency references/async-concurrency.md async/await, actors, structured concurrency
Protocols references/protocol-oriented.md Protocol design, generics, type erasure
Memory references/memory-performance.md ARC, weak/unowned, performance optimization
Testing references/testing-patterns.md XCTest, async tests, mocking strategies

Code Patterns

async/await — Correct vs. Incorrect

// ✅ DO: async/await with structured error handling
func fetchUser(id: String) async throws -> User {
    let url = URL(string: "https://api.example.com/users/\(id)")!
    let (data, _) = try await URLSession.shared.data(from: url)
    return try JSONDecoder().decode(User.self, from: data)
}

// ❌ DON'T: mixing completion handlers with async context
func fetchUser(id: String) async throws -> User {
    return try await withCheckedThrowingContinuation { continuation in
        // Avoid wrapping existing async APIs this way when a native async version exists
        legacyFetch(id: id) { result in
            continuation.resume(with: result)
        }
    }
}

Read the full file on GitHub · 169 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 169 lines · 98 tokens per session scan A a50b57faf2ed

Subscribe to this mod's changes

swift-expert is a skill published in the GitHub repository Jeffallan/claude-skills (11,907 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 1,374 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.

Related

Other skills, from other repositories

android-development

Android development guidelines for Kotlin with clean architecture, MVI pattern, Material Design, and best practices for building robust mobile applications.

Mindrally/skills · 27 tokens

flutter

Expert in Flutter and Dart development with clean architecture and state management.

Mindrally/skills · 14 tokens

swift-dev

Native iOS and macOS apps in Swift 6 - SwiftUI, SwiftData, concurrency, Swift Testing, XcodeGen projects, CallKit and audio sessions, App Intents and the Action Button, devices, TestFlight, notarization. Use for any iPhone or Mac app work.

tenequm/skills · 63 tokens

swift-macos

Build native macOS apps with Swift 6.3 (latest: 6.3.3, bundled in Xcode 26.6, Jun 2026), SwiftUI, SwiftData, and macOS 26 Tahoe (26.6.2 current). Target macOS 14+ for SwiftData/@Observable, macOS 15+ for latest SwiftUI, macOS 26 for Liquid Glass and Foundation Models. Note Xcode 26.6 still bundles the macOS 26.5 SDK…

tenequm/skills · 62 tokens

swift

Use when writing Swift for iOS, macOS, or server-side. Covers value semantics, optionals, protocol-oriented design, structured concurrency with async/await and actors, and SwiftUI state management. Trigger on "migrate this completion handler to async/await", "sendable warnings under strict concurrency", "retain cycle…

nimadorostkar/Claude-Skills-collection · 97 tokens

swift-concurrency

Use for any Swift Concurrency question on Apple platforms. Triggers on: actor reentrancy (stale state after await), AsyncStream lifecycle (continuation.finish, onTermination), TaskGroup memory and task throttling (activeProcessorCount), Sendable conformance across actor boundaries (non-Sendable third-party types)…

rusel95/ios-agent-skills · 170 tokens