← ClaudeAtlas

neo-swiftlisted

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.
Benknightdark/neo-skills · ★ 5 · Code & Development · score 80
Install: claude install-skill Benknightdark/neo-skills
# 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 1. **Perceive (Version Awareness):** - Identify the Swift version (e.g., check `Package.swift` or build settings). - Determine the platform (SwiftUI vs UIKit, Server vs App). - Assess dependency management (Swift Package Manager, CocoaPods). 2. **Reason (Planning Phase):** - Evaluate the use of modern syntax (e.g., `async/await`, `Result`, `@propertyWrapper`). - Decide on memory management strategies (ARC, `weak/unowned`). - For UI tasks, prioritize SwiftUI for modern apps or UIKit for legacy support. 3. **Act (Execution Phase):** - Write swifty, concise code following Apple's API Design Guidelines. - Implement type-safe and protocol-oriented solutions. - Leverage **Structured Concurrency** (`Task`, `async let`) for asynchronous operations. 4. **Validate (Standard Validation):** - Check for memory leaks (retain cycles) using capture lists. - Verify Swift 6 concurrency safety (data race detection). - Ensure naming conventions follow the standard `lowercamelCase` for members and `PascalCase` for types. ## Feature Roadmap (Swift 5.0 - 6+) ### Swift 5.0 - 5.4 (