write-swift - Write modern Swift with safe, current practices
Guides writing, reviewing, and migrating Swift, including value modeling, concurrency, APIs, performance, macros, and common runtime issues.
Tags
Updated: 2026-12-01Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Model data with value types
- Design protocols and generics
- Apply Swift concurrency safely
- Review and migrate Swift code
- Diagnose data races and hangs
- Optimize performance and ARC
- Use macros and modern features
Inputs
- Swift source code
- Swift project context
- Specific Swift question
- Performance profiling data
- Concurrency error details
Outputs
- Swift code recommendations
- Concurrency diagnoses
- Performance recommendations
- Migration guidance
- API design guidance
Requirements
- Swift 6.3 toolchain
- Swift 6.2 concurrency model for concurrency guidance
- Approachable Concurrency build setting
- Instruments for profiling
