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.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
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).