No slash command · from fuse-swift-apple-expert
Covers Swift 6 fundamentals across Apple platforms: async/await, actors, Sendable, MVVM with @Observable, Swift Testing, String Catalog localization, and Instruments profiling.
Ships in fuse-swift-apple-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
References cover each area in depth: concurrency, architecture/DI, testing, i18n, and performance.
Best practices: prefer actors over classes with locks for shared state, @Observable over ObservableObject, structured concurrency over completion handlers, String Catalogs for all user-facing text, profiling in Release (-O) builds, and value types (structs) over classes where possible.
Swift 6 fundamentals shared across all Apple platforms.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
| Actors | Thread-safe shared state without locks |
| @Observable | Simple reactive state (replaces ObservableObject) |
| String Catalogs | Automatic localization with Xcode 15+ |
| Instruments | Built-in performance profiling |
Modern async/await with strict concurrency checking. Actors provide thread-safe state, Sendable marks safe types.
MVVM with @Observable is the recommended pattern. Clean Architecture for complex apps with domain separation.
Swift Testing first: @Test, #expect / #require, exit tests (macOS only among Apple platforms), attachments, Issue.record(severity:), Test.cancel(). UI tests in Swift Testing arrive with Xcode 27.3 (beta); XCTest stays the legacy and UI-test path on 27.2. Details in testing.md.
String Catalogs are mandatory. All user-facing text must be localized.
Profile with Instruments. Use lazy loading, avoid heavy work in view body.
| Need | Reference |
|---|---|
| Async/await, actors, Sendable | concurrency.md |
| MVVM, Clean Architecture, DI | architecture.md |
| Swift Testing, exit tests, attachments, XCTest legacy, UI tests | testing.md |
| String Catalogs, localization | i18n.md |
| Instruments, optimization | performance.md |
| Swift 6.4.x: Swift Build/SwiftPM, Subprocess 1.0, language additions | swift-6-4.md |
| Xcode/OS 27.0-27.2 (current) + 27.3 beta: breaking changes, deprecations, release notes | sdk-27-changes.md |
-O optimization@Test / #expect; XCTest only for legacy and, until Xcode 27.3 ships, UI testsSWIFT_DEFAULT_ACTOR_ISOLATION, SWIFT_APPROACHABLE_CONCURRENCY), see concurrency.mdreferences/architecture.md (opens in a new tab)references/concurrency.md (opens in a new tab)references/i18n.md (opens in a new tab)references/performance.md (opens in a new tab)references/sdk-27-changes.md (opens in a new tab)references/swift-6-4.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-swift-apple-expert15 skills in this plugin
/apple-frameworksUse when adding an Apple system framework to an app - passkeys and credential exchange, MapKit geocoding, CloudKit, Core Data, TipKit, local notifications, continued background tasks, MetricKit state reporting, App Attest, HealthKit workout zones, CarPlay map panels, or Chart3D./apple-intelligenceUse when adding Apple Intelligence features to an Apple-platform app — Foundation Models framework (on-device and Private Cloud Compute language models, guided generation, tools), Writing Tools, Genmoji, Image Playground, Visual Intelligence — or when choosing between them and App Intents / Siri AI./Other plugins' skills for the same job