swift

Installation
SKILL.md

Swift Best Practices

Production guide for modern Swift on iOS and macOS. Rules are prioritized by impact to guide code generation, review, and refactoring. Toolchain baseline: Swift 6.2+ language mode with Approachable Concurrency (Swift 6.4 / Xcode 27).

When to Apply

Use these guidelines when:

  • Writing new Swift code, SwiftUI views, or Swift packages
  • Building or reviewing a macOS app (scenes, menus, shortcuts, menu bar extras, distribution)
  • Reviewing or refactoring Swift for correctness, safety, or structure
  • Fixing Swift 6 concurrency diagnostics (Sendable, actor isolation, data races)
  • Designing app architecture, module boundaries, or repository layout
  • Integrating REST/OpenAPI backends, persistence, push notifications, webhooks, or WebSockets
  • Verifying agent-produced changes by building, testing, running, and looking up Apple documentation
  • Explaining Swift to a developer coming from TypeScript, JavaScript, or Python

This skill complements Apple's platform documentation and Xcode's documentation search. Prefer looking up unfamiliar Apple APIs in local docs instead of inventing signatures from memory.

Core Principle

Installs
2
First Seen
Nov 15, 2026