← Back to the catalog Use when writing Swift code for Apple platforms like iOS, macOS, and visionOS. It covers Swift 6 concurrency, SwiftUI, MVVM, Metal GPU programming, RealityKit ECS, visionOS scenes, and advanced Swift features.
View on GitHub ↗ Copy repo URL Copy SKILL.md link License: MIT /plugin marketplace add piemonte/apple-engineer-superpowers The exact command may vary by repository. Check the README on GitHub.
For the skill author
Shows your skill is listed on Skillteca, generates a backlink and trackable traffic.
Markdown HTML
[](https://www.skillteca.com.br/skills/apple-engineer-superpowers?utm_source=badge&utm_medium=readme&utm_campaign=badge) Copy snippet Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a C
Desenvolvimento #ai #api by anthropics
Create new skills, modify and improve existing ones, and measure their performance. Use this skill for developing, editing, optimizing, testing, and benchmarking skills, as well as refining their descriptions for better triggering.
Desenvolvimento #test by anthropics
Captures agent actions across sessions, compresses them with AI, and injects relevant context into future interactions. Compatible with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode, and more.
Desenvolvimento #ai by thedotmack
This skill clusters GitHub issue backlogs by root cause into plan-master issues, redirects related children, and bundles architectural-fix PRs to close clusters atomically. It's ideal for triaging and consolidating numerous issues sharing underlying defects, or for building a plan series or roadmap.
Desenvolvimento #github #git by thedotmack
Category alert
One short email with only the new Desenvolvimento skills. 4 minutes of reading, no spam, unsubscribe with one click.
You confirm your email on the first send. No spam. Unsubscribe with one click.
Apple Platform Engineering
Comprehensive Swift engineering standards for building production-quality Apple platform applications.
Core Principles
No Force Unwrapping (!) - Use guard let, if let, nil coalescing (??), or optional chaining. Never crash on nil.
Actor-First Concurrency - Use actors as the default for stateful components. Prefer actor isolation over manual locking.
Async/Await Always - Never use completion handlers in new code. Use async throws functions.
Sendable Everything - All shared types must conform to Sendable. All closures crossing concurrency boundaries must be @Sendable.
Swift 6 Strict Concurrency - Enable StrictConcurrency from the start. No data races.
Protocol-Oriented Design - Define contracts through protocols. Use dependency injection for testability.
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 actorSimple value protection Mutex<State>Low-level sync OSAllocatedUnfairLockUI state management @MainActor on ViewModelsProgress/events stream AsyncStream / AsyncThrowingStreamMulti-subscriber broadcast AsyncBroadcastChannel or AsyncNotifier
Actor vs @MainActor Decision
Scenario Use API service, data operations actorViewModel with @Published @MainActor final class: ObservableObjectService with @Published properties Views observe @MainActor ObservableObject (rare)Pure data model struct: Sendable
Error Handling Pattern
enum ServiceError: LocalizedError, Sendable {
case operationFailed(String)
var errorDescription: String? {
switch self {
case .operationFailed(let msg): return "Operation failed: \(msg)"
}
}
}
API Design
Pattern Use func work() async throws -> TStandard async operation func work() -> AsyncThrowingStream<Event, Error>Progress/event reporting func work(progress: @Sendable (Float) -> Void) async throws -> TSimple progress callback
Metal GPU Quick Reference
Need Use Compute pipeline MTLComputePipelineDescriptor + device.makeComputePipelineStateRender pipeline MTLRenderPipelineDescriptor + vertex/fragment functionsBuffer management MetalBuffer<Element> generic wrapperMulti-frame pipelining Ring buffer (pool of 3) with tick() Texture from IOSurface device.makeTexture(descriptor:iosurface:plane:)Threadgroup sizing min(elementCount, pipelineState.maxTotalThreadsPerThreadgroup)
RealityKit/visionOS Quick Reference
Need Use Custom entity data struct: ComponentPer-frame logic class: System with scene subscriptionsShow entities in SwiftUI RealityView { content in content.add(entity) }Observe component changes entity.componentChangePublisher(T.self)Full immersion ImmersiveSpace(id:) { }.immersionStyle(.full)Multi-window WindowGroup(id:) with WindowPlacement
Advanced Patterns Quick Reference
Need Use Smooth value tracking ExponentialDamper<T: Lerpable>Generic interpolation Lerpable protocol with lerp(from:to:blend:)Non-empty guarantee NonEmpty<C: Collection>Enum-keyed storage Table<E: CaseIterable, V>Multi-consumer async AsyncBroadcastChannel with back-pressureCombine to async publisher.sinkSingleValue() async throwsCustom defaults @DefaultValue<T> property wrapper
Detailed References
swift-concurrency.md — Swift 6 concurrency patterns: actors, Sendable, AsyncSequence, task cancellation, synchronization, state machines, reactive patterns, generics, persistence, networking, testing, diagnostics
swiftui-architecture.md — SwiftUI app architecture: MVVM, ViewModel/View guidelines, service layer patterns, data flow, App Intents, file organization
metal-graphics.md — Metal GPU programming: pipelines, buffers, textures, compute dispatch, ring buffers, shaders, frame pacing
realitykit-visionos.md — RealityKit ECS and visionOS: entities, components, systems, scene subscriptions, immersive spaces, windows, hand tracking
advanced-swift-patterns.md — Property wrappers, interpolation/animation, collection types, Combine bridging, advanced async abstractions, @dynamicMemberLookup
Read full description↓
Comments · No comments No comments yet. Be the first.