Skip to content
SkillModel-led1,181 tokens in use

Swift Expert

Builds Apple-platform apps in Swift: SwiftUI views and state, protocol-oriented design, async/await, actors and Sendable-safe concurrency.

12,471 stars on the repository MIT LicenseJeffallan/claude-skills · skills/swift-expert
/plugin install fullstack-dev-skills@fullstack-dev-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Swift Expert costs

93tokens idle
1,181tokens in use
10,300tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

networkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure23/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 97

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Excellent
  • Development activity100
  • Maintenance100
  • Community60
  • Maturity36
  • Momentum40

Swift Expert gives the agent a workflow for iOS, macOS, watchOS and tvOS code in Swift 5.9 and later: analyze the architecture, design protocols, implement with async/await and value types, optimize with Instruments and test with XCTest.

The skill pairs each pattern with its pitfall: async/await versus wrapped completion handlers, the Observable macro versus ObservableObject, protocols with associated types versus base classes, and actors versus manual locks. It also names build commands to run after each step.

What You Get

  • A five-step workflow with build and test checkpoints
  • Do and don’t examples for async/await, SwiftUI state, protocol-oriented repositories and actors
  • A must-do list covering Sendable, value types, API Design Guidelines and profiling first
  • A must-not list covering force unwrapping, retain cycles and ignored actor isolation warnings
  • Reference files for SwiftUI, concurrency, protocols, memory and testing

Common Use Cases

  • Building SwiftUI screens with Observable view models
  • Fixing Sendable and actor isolation warnings
  • Designing a repository layer with protocols and associated types
  • Writing async XCTest cases for network code

What Makes It Unique

Each example shows the preferred pattern and the one to avoid in the same block, for modern Swift 5.9 features such as the Observable macro and actors. The compiler checks at fixed points, including a warnings-as-errors build that exposes concurrency problems early.

Under The Hood

The skill is a SKILL.md with five reference files that the agent loads by topic. It ships no scripts. The instructions tell the agent to run swift build, swift build -warnings-as-errors and swift test in your package, and to profile with Instruments, so it compiles code and writes build output in your project. The examples include a URLSession call to a sample API address, which is code to adapt and not something the skill runs.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers