Use this skill when writing, reviewing, debugging, or modernizing Swift code for iOS, macOS, server-side Swift, or shared packages. Trigger for Swift 5+ language features, structured concurrency, memory safety, protocols/generics, SwiftUI integration, and performance-sensitive code.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Use this skill when writing, reviewing, debugging, or modernizing Swift code for iOS, macOS, server-side Swift, or shared packages. Trigger for Swift 5+ language features, structured concurrency, memory safety, protocols/generics, SwiftUI integration, and performance-sensitive code.
compatibility
Supports Swift 5.0 through 6.0+. Adaptive to iOS, macOS, and Server-side Swift environments.
metadata
{"version":"1.0.0","category":"Language"}
Modern Swift (5.0+) Expert Skill
Trigger On
The user asks to write, debug, refactor, or review Swift code.
The project directory contains *.swift, Package.swift, or *.xcodeproj.
Development involves iOS (SwiftUI/UIKit), macOS, or Server-side Swift (Vapor).
Code modernization is needed (e.g., migrating to Structured Concurrency or Swift 6 language mode).
Workflow
Perceive (Version Awareness):
Identify the Swift version (e.g., check Package.swift or build settings).
Determine the platform (SwiftUI vs UIKit, Server vs App).