apple-engineer-superpowers

Solid

Use when writing Swift code for Apple platforms - iOS, macOS, visionOS. Covers Swift 6 concurrency, actors, Sendable, async/await, SwiftUI, MVVM architecture, Metal GPU programming, RealityKit ECS, visionOS scenes, interpolation/animation, advanced collection types, property wrappers, Combine bridging, error handling, testing, and API design patterns.

Web & Frontend 23 stars 1 forks Updated 2 months ago MIT

Install

View on GitHub

Quality Score: 75/100

Stars 20%
46
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apple Platform Engineering Comprehensive Swift engineering standards for building production-quality Apple platform applications. ## Core Principles 1. **No Force Unwrapping (`!`)** - Use `guard let`, `if let`, nil coalescing (`??`), or optional chaining. Never crash on nil. 2. **Actor-First Concurrency** - Use actors as the default for stateful components. Prefer actor isolation over manual locking. 3. **Async/Await Always** - Never use completion handlers in new code. Use `async throws` functions. 4. **Sendable Everything** - All shared types must conform to `Sendable`. All closures crossing concurrency boundaries must be `@Sendable`. 5. **Swift 6 Strict Concurrency** - Enable `StrictConcurrency` from the start. No data races. 6. **Protocol-Oriented Design** - Define contracts through protocols. Use dependency injection for testability. 7. **LocalizedError for Errors** - Domain-specific error enums conforming to `LocalizedError, Sendable`. ## Quick Reference ### Safe Optional Handling | Instead of | Use | |------------|-----| | `value!` | `guard let value else { return }` | | `string.data(using: .utf8)!` | `string.data(using: .utf8) ?? Data()` | | `url!` | `guard let url = URL(string: s) else { return }` | | `object.property!` | `object.property?.method()` or `if let prop = object.property { }` | ### Concurrency Primitives | Need | Use | |------|-----| | Stateful shared component | `actor` | | Simple value protection | `Mutex<State>` | | Low-level sync | `OSAlloca...

Details

Author
piemonte
Repository
piemonte/apple-engineer-superpowers
Created
2 months ago
Last Updated
2 months ago
Language
N/A
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

swift-

专为 iOS/macOS 现代开发打造的代码分析规范。全面剖析 SwiftUI 响应式模式、ARC 强引用循环破除、以及 Swift 5.5+ 下基于 Actor 与 async/await 的全新并发架构。

40 Updated today
microwind
Code & Development Featured

swift-concurrency

Diagnose data races, convert callback-based code to async/await, implement actor isolation patterns, resolve Sendable conformance issues, and guide Swift 6 migration. Use when developers mention: (1) Swift Concurrency, async/await, actors, or tasks, (2) "use Swift Concurrency" or "modern concurrency patterns", (3) migrating to Swift 6, (4) data races or thread safety issues, (5) refactoring closures to async/await, (6) @MainActor, Sendable, or actor isolation, (7) concurrent code architecture or performance optimization, (8) concurrency-related linter warnings (SwiftLint or similar; e.g. async_without_await, Sendable/actor isolation/MainActor lint).

1,509 Updated 3 weeks ago
AvdLee
API & Backend Featured

stellar-ios-sdk

Build Stellar blockchain applications in Swift using stellar-ios-mac-sdk. Use when generating Swift code for transaction building, signing, Horizon API queries, Soroban RPC, smart contract deployment and invocation, XDR encoding/decoding, and SEP protocol integration. Covers 26+ operations, 50 Horizon endpoints, 12 RPC methods, and 17 SEP implementations with Swift async/await and callback-based streaming patterns. Full Swift 6 strict concurrency support (all types Sendable).

129 Updated today
Soneso
Testing & QA Solid

swift-testing-expert

Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and maintainability in Apple-platform or Swift server projects.

392 Updated 1 months ago
AvdLee
Web & Frontend Solid

ios-design-system

Clinic-architecture-aligned iOS design system engineering for SwiftUI (iOS 26 / Swift 6.2) covering token architecture, color/typography/spacing systems, component style libraries, asset governance, and theming. Enforces @Equatable on views and keeps design-system usage compatible with Feature-to-Domain+DesignSystem boundaries. Use when building or refactoring DesignSystem infrastructure for the clinic modular MVVM-C stack.

146 Updated today
pproenca