Write Swift

How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.

emilkowalskiGitHub stars: 51.4KSource on GitHubExternal
Works withUniversal
Install

Install the Write Swift skill with npx skills add emilkowalski/skills --skill write-swift -a claude-code, confirm the prompts, then wait for it to finish before continuing.

Paste this into Claude Code.

Hosted in an external repository

This skill's instructions live in its source repository. Read them on GitHub, or copy a prompt that sends your agent to the file.

View on GitHub

Add to your agent

Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides

CLI

npx uiskillbook get write-swift

MCP server

https://www.uiskillbook.com/mcp

Questions