No slash command · from apple-plugin
Provides watchOS-specific guidance for building single-target SwiftUI watch apps: glanceable UI, Digital Crown, complications, HealthKit, WatchConnectivity, and power/performance constraints.
Ships in apple-plugin. 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.
None: SKILL.md is the whole skill.
SDKROOT = watchos, @main struct …: App). Old projects may still have a WatchKit extension (WKExtensionDelegate, storyboard) — follow it, do not migrate as part of a feature.WKCompanionAppBundleIdentifier) vs independent (WKRunsIndependentlyOfCompanionApp = YES): an independent app must work without the phone — its own networking and sign-in.WATCHOS_DEPLOYMENT_TARGET gates APIs; check before using newer SwiftUI or WidgetKit features.List with concise rows; .listStyle(.carousel) only where the app already uses it.NavigationStack, or a vertically paged TabView (.tabViewStyle(.verticalPage)) for parallel views; NavigationSplitView gives the list-detail pattern on the watch. Keep flows to two or three levels..containerBackground(…, for: .navigation) / .tabView for the system-style gradient backgrounds.ToolbarItem(placement: .topBarTrailing / .bottomBar) for secondary actions instead of extra buttons in content..digitalCrownRotation($value, …) for value adjustment; scrolling content gets it for free.TextFields; never require typing for a primary flow.@Environment(\.isLuminanceReduced) is true..accessoryCircular, .accessoryRectangular, .accessoryInline, .accessoryCorner. Render with AccessoryWidgetBackground, Gauge, ProgressView and support the tinted / vibrant rendering modes (@Environment(\.widgetRenderingMode)).WidgetCenter.shared.reloadTimelines(ofKind:) when the app's data changes. Reload budgets are limited — never reload on a timer from the app.TimelineEntryRelevance, RelevantContext) helps the Smart Stack surface the widget at the right moment.WatchConnectivity (WCSession) for phone ↔ watch: updateApplicationContext for latest-state sync, transferUserInfo for queued delivery, sendMessage only while both apps are reachable and the user is waiting. Activate the session early, handle isReachable / activationState, and treat every received dictionary as untrusted input.URLSession works directly on the watch (Wi-Fi, cellular or through the phone); keep payloads small and requests few. Background transfers use a background URLSession.WKApplication.shared().scheduleBackgroundRefresh(withPreferredDate:userInfo:) and handle it with .backgroundTask(.appRefresh); complete every task promptly.WKExtendedRuntimeSession with the matching session type in the target's background modes.HKWorkoutSession + HKLiveWorkoutBuilder; request HealthKit authorization only for the types the feature needs (NSHealthShareUsageDescription / NSHealthUpdateUsageDescription); end the session and save the workout on every exit path.WKNotificationScene / notification controller only if the app already has one.xcodebuild -scheme <WatchScheme> -destination 'generic/platform=watchOS Simulator' build.#Preview(as: .accessoryRectangular) { Widget() } timeline: { … }.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
watchos, swiftui, apple-watch, complications, healthkit, watchconnectivity
7 skills in this plugin
/apple-testingTesting Apple apps: what to unit-test in a SwiftUI app (observable models, services, mappers, reducers), MainActor-isolated tests, SwiftData and Core Data in memory, protocol doubles for system services, TCA TestStore, XCUITest UI tests (launch arguments, accessibility identifiers, page objects), snapshot tests with swift-snapshot-testing, previews as smoke tests, running tests per platform with xcodebuild and test plans, coverage. Builds on swift-foundation:swift-testing for framework basics.
Use this skill to:
- Test app logic without launching the UI.
- Write UI tests that survive layout changes.
- Run the right scheme and destination for each platform target.
Do NOT use this skill for:
- Swift Testing / XCTest basics — see swift-foundation:swift-testing.
- Server-side Swift tests — see swift-plugin.
/ios-ipadosiPhone and iPad specifics for Apple apps: device families and size classes, adaptive layouts across iPhone, iPad and foldable iPhone screens, iPad multitasking and resizable windows, multiple scenes, pointer, hardware keyboard shortcuts, drag and drop, Apple Pencil, app lifecycle and background work (BGTaskScheduler, background URLSession), push and local notifications, permissions and Info.plist usage descriptions, privacy manifests, WidgetKit / Live Activities / App Intents extensions, Mac Catalyst and "Designed for iPad" on Mac.
Use this skill to:
- Make a screen correct on every iPhone and iPad size the target supports.
- Add a system capability (notifications, background refresh, location, camera) with the right plist keys and permission flow.
- Add or extend a widget, Live Activity or App Intent.
Do NOT use this skill for:
- Mac-native (AppKit / SwiftUI macOS) targets — see apple-plugin:macos-app.
- watchOS targets — see apple-plugin:watchos-app.
/macos-appmacOS app specifics: SwiftUI scenes on the Mac (WindowGroup, Window, DocumentGroup, Settings, MenuBarExtra, UtilityWindow), opening and managing windows, menus and commands (CommandMenu, CommandGroup, keyboard shortcuts, focused values), Mac-idiomatic UI (Table, Inspector, toolbars, sidebar, context menus, hover), document-based apps and file access, App Sandbox and security-scoped bookmarks, hardened runtime and notarization constraints, AppKit interop, login items and menu-bar apps, Mac Catalyst vs native.
Use this skill to:
- Make a feature feel native on the Mac instead of a stretched iPad screen.
- Add windows, menu commands, settings and keyboard shortcuts.
- Read and write user files correctly under the App Sandbox.
Do NOT use this skill for:
- iPad apps running on Mac via Catalyst or "Designed for iPad" — see apple-plugin:ios-ipados.
- Shared SwiftUI view rules — see apple-plugin:swiftui-conventions.
/swiftui-conventionsSwiftUI conventions for Apple apps: app and scene structure, view composition and identity, modifiers and custom ViewModifiers, layout (stacks, Grid, ViewThatFits, Layout), lists and lazy containers, async work with .task, environment values (@Entry), design-system tokens from the asset catalog, Dynamic Type, Dark Mode, accessibility, String Catalog localization, #Preview, UIKit / AppKit interop, performance. Platform specifics live in ios-ipados, macos-app and watchos-app.
Use this skill to:
- Build screens out of small, previewable views that match the rest of the app.
- Keep side effects out of view bodies.
- Make every new screen accessible, localized and theme-aware.
- Bridge to UIKit / AppKit only where SwiftUI cannot do the job.
Do NOT use this skill for:
- Where state lives and how it flows — see apple-plugin:swiftui-state.
- Navigation, deep links, sheets — see apple-plugin:swiftui-navigation.
- Tests and previews as tests — see apple-plugin:apple-testing.
/swiftui-navigationNavigation in SwiftUI apps: NavigationStack with value-based navigationDestination and a programmatic path, NavigationSplitView for iPad and Mac, TabView (including the sidebar-adaptable style), sheets, full-screen covers, popovers, inspectors, alerts and confirmation dialogs, router / coordinator objects, deep links (custom URL schemes, Universal Links), state restoration, UIKit navigation interop.
Use this skill to:
- Add a destination the same way existing ones are added.
- Drive navigation from models (deep links, notifications, post-save redirects).
- Handle incoming URLs safely.
Do NOT use this skill for:
- Platform-specific window and scene management — see apple-plugin:macos-app and apple-plugin:ios-ipados.
- Screen state — see apple-plugin:swiftui-state.
/swiftui-stateState and data flow in SwiftUI apps: Observation (@Observable, @State, @Bindable, @Environment), legacy ObservableObject (@StateObject, @ObservedObject, @EnvironmentObject, @Published) in existing code, ownership rules, MainActor-isolated models, dependency injection, SwiftData (@Model, ModelContainer, ModelContext, @Query, migrations) and Core Data in existing apps, The Composable Architecture when installed. Detect and follow the pattern in place.
Use this skill to:
- Decide who owns a piece of state and how it reaches a view.
- Write observable models that update only the views that read them.
- Persist data with SwiftData or the project's existing store.
- Inject services so models are testable.
Do NOT use this skill for:
- View composition and layout — see apple-plugin:swiftui-conventions.
- Navigation state — see apple-plugin:swiftui-navigation.
npx claudepluginhub aratkruglik/claude-sdlc --plugin apple-pluginOther plugins' skills for the same job