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.
- Type
- Skill
- Author
- emilkowalski
- Category
- Learning
- GitHub stars
- 50.2K
- Installs
- 121.3K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/emilkowalski/skills --skill write-swiftUse cases
- Write Swift 6 concurrency code that avoids data races.
- Fix a hang or retain cycle in an existing Swift codebase.
- Migrate older Swift code to value types and modern language features.
Frequently Asked Questions
Which Swift topics does this skill cover?
Value-type modeling, Swift 6 data-race safety and concurrency, protocols and generics, API design, ARC performance, Swift Testing, and macros.
Does it help with concurrency errors?
Yes, it is intended for concurrency errors, hangs, data races, and retain cycles.
Can it help migrate existing Swift code?
Yes, it applies when writing, reviewing, or migrating Swift.
About this skill
A guide to writing modern Swift well, covering value-type modeling, 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, and macros. Use it when writing, reviewing, or migrating Swift, or when fixing a concurrency error, hang, data race, retain cycle, or performance problem. It also covers newer language features that agents often don't know about.
Summary written with AI assistance from the project's public description.
Categories
More from emilkowalski
Emil Design Eng
This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software fee...
by emilkowalski
Review Animations
Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approva...
by emilkowalski
Apple Design
Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring a...
by emilkowalski
Animation Vocabulary
Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover op...
by emilkowalski
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh