write-swift
Guidance for writing, reviewing, and migrating modern Swift code, including Swift 6 concurrency, value types, generics, and performance.
What it does
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.
Quality judgment
Exceptionally clear, opinionated, and current guidance with a strong through-line and well-organized sections, though the document is truncated mid-section 9 and the referenced §10-12 (Swift Testing, macros) are missing. Code examples are apt but sparse relative to the density of rules. Triggers are specific and actionable.