No slash command · from apple-plugin
Covers iPhone and iPad specifics: device families, size classes, adaptive layouts, iPad multitasking, hardware keyboard shortcuts, drag and drop, Apple Pencil, app lifecycle, notifications, permissions, Info.plist keys, privacy manifests, WidgetKit, Live Activities, App Intents, and Mac Catalyst.
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.
TARGETED_DEVICE_FAMILY: 1 iPhone, 2 iPad, 1,2 universal. A universal app must work on both — check every new screen on a compact-width iPhone and a regular-width iPad.IPHONEOS_DEPLOYMENT_TARGET decides which APIs need if #available(iOS …, *).SUPPORTS_MACCATALYST / "Designed for iPad" on Apple silicon Macs — the iPad UI also runs on Mac; avoid APIs marked unavailable on Catalyst or guard them with #if targetEnvironment(macCatalyst).@Environment(\.horizontalSizeClass) and switch between compact (stack, single column) and regular (split view, multi-column) layouts. Never branch on UIDevice.current.userInterfaceIdiom for layout.UIRequiresFullScreen; newer SDKs deprecate it and devices letterbox apps that set it.UISupportedInterfaceOrientations lists (iPad apps should support all four).NavigationSplitView / .tabViewStyle(.sidebarAdaptable) for top-level navigation on regular width..hoverEffect() and .contentShape(...)..keyboardShortcut("n", modifiers: .command) on primary actions; menu-bar commands with .commands { CommandMenu("Orders") { … } } (shown in the iPad menu bar and the shortcut overlay)..draggable(item) / .dropDestination(for: Item.self) with Transferable types — between apps and within the app.UIApplicationSupportsMultipleScenes only if the feature needs it; open with @Environment(\.openWindow); each scene has its own navigation state.PKCanvasView via representable) or .onPencilSqueeze / .onPencilDoubleTap only where the feature is about drawing or annotation.@Environment(\.scenePhase) (.active / .inactive / .background) to save state or pause work; UIKit apps use UIScene delegate callbacks.BGTaskScheduler identifiers in BGTaskSchedulerPermittedIdentifiers and handle them with .backgroundTask(.appRefresh("id")); keep tasks short and always set an expiration handler.URLSessionConfiguration.UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]).registerForRemoteNotifications and send the token to the backend over an authenticated request.UNUserNotificationCenterDelegate and route through the same deep-link handler as URLs.NSCameraUsageDescription, NSLocationWhenInUseUsageDescription, NSPhotoLibraryUsageDescription, NSContactsUsageDescription, …) in Info.plist or the target's Info build settings — the app crashes on access without it. Write the purpose in user terms and add it to the String Catalog if InfoPlist.xcstrings exists.PhotosPicker, the document picker, LocationButton (CoreLocationUI).UIApplication.openSettingsURLString).PrivacyInfo.xcprivacy: declare required-reason APIs you add (UserDefaults, file timestamps, system boot time, disk space) and any newly collected data types.TimelineProvider / AppIntentTimelineProvider, views per WidgetFamily, data shared with the app through an App Group container (UserDefaults(suiteName:) for non-secret values, a shared SwiftData store, or files). Reload with WidgetCenter.shared.reloadTimelines(ofKind:) after the app changes the data.ActivityAttributes with a small ContentState, Lock Screen and Dynamic Island presentations, NSSupportsLiveActivities in Info.plist; end activities when the task completes.AppIntent structs with @Parameters and an AppShortcutsProvider for Siri / Shortcuts / Spotlight; perform work through the same services the app uses; validate parameters like any other input.APPLICATION_EXTENSION_API_ONLY respected (no UIApplication.shared).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ios, ipados, adaptive-layout, size-classes, ipad-multitasking, apple-pencil
npx claudepluginhub aratkruglik/claude-sdlc --plugin apple-plugin7 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.
/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.
/watchos-appwatchOS app specifics: single-target SwiftUI watch apps (companion or independent), glanceable design for small screens, navigation on the watch, the Digital Crown, complications and Smart Stack widgets with WidgetKit, background refresh and extended runtime sessions, workouts and HealthKit, WatchConnectivity with the iPhone app, networking and data sync constraints, notifications, power and performance limits.
Use this skill to:
- Build a watch screen that is useful in a two-second glance.
- Add or update a complication / Smart Stack widget.
- Share data between the iPhone and the watch correctly.
- Run workout or health features within watchOS limits.
Do NOT use this skill for:
- iPhone / iPad targets — see apple-plugin:ios-ipados.
- Shared SwiftUI view rules — see apple-plugin:swiftui-conventions.
Other plugins' skills for the same job