/capacitor-features:capacitor-app-intentsfrom capacitor-features
Adds native App Intents to Capacitor iOS apps for Siri, Shortcuts, Spotlight, Action button, Apple Intelligence, widgets, and controls. Covers open-app intents, headless background intents, App Group data sharing, and iOS 26/27 APIs.
Ships in capacitor-features. 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.
Add native App Intents to the iOS project so system surfaces can run app actions, and connect them to the web layer. App Intents are Swift only. There is no JavaScript API for them, so every intent is native code in the App target or an extension, and the web layer is reached through a URL or a small local plugin.
TRIGGER when:
openAppWhenRun to supportedModes, or adopting iOS 26/27 App Intents APIsDo not use:
@capgo/capacitor-app-intents: use capacitor-plugins (capgo-plugin-index.md, package @capgo/capacitor-app-intents). This skill is for native Swift App Intents (app target, extensions, or plugin native code), not that plugin API.appUrlOpen setup: capacitor-deep-linkingcapacitor-uiscene-migrationcapacitor-push-notificationscapacitor-plugins (@capgo/capacitor-widget-kit)AppShortcutsProvider needs @available(iOS 16.0, *), or the user raises the deployment target. Capacitor 9 deploys to iOS 16, so the base API needs no gating. Newer APIs still do (tables in references/ios-26-27-apis.md)..background intents. AppDelegate.application(_:didFinishLaunchingWithOptions:) runs, but no scene connects and CAPBridgeViewController never loads. Background intents must do native work only (network, storage, HealthKit, etc.). They cannot call JS or plugins through the bridge.perform() is not on the main actor, and it can run more than once. Hop explicitly (await MainActor.run or @MainActor func perform()) before you touch UIKit, the bridge or @MainActor state. Do irreversible work last. Details: references/intent-traps.md.SceneDelegate and are forwarded by SceneDelegateProxy, which posts the notifications @capacitor/app listens to. If the app still has custom URL code in AppDelegate, it no longer runs. Check capacitor-deep-linking first if appUrlOpen does not fire for a normal link. An intent cannot fix a broken link pipeline.App.getLaunchUrl() for URLs, or a pending-route store plus notifyListeners(..., retainUntilConsumed: true) for the local-plugin path.AppEntity.id values, AppEnum raw values, URL formats and shipped phrases are stored in users' saved shortcuts. Add new ones; do not rename or remove shipped ones without telling the user.Only load a reference when its topic is in play.
| File | Load when |
|---|---|
| references/project-setup.md | Creating files, target membership, extensions, App Groups, availability gating, build verification |
| references/web-bridge.md | Connecting an intent to the web layer: URL routing, the local AppIntentsBridge plugin, pending routes, shared data |
| references/intent-traps.md | Writing or reviewing any intent, entity, query, phrase, dependency, error or donation |
| references/ios-26-27-apis.md | supportedModes, foreground continuation, long-running/cancellable/undoable intents, execution targets, snippets, Spotlight indexing, schemas, testing |
| references/widgets-and-controls.md | Widget configuration intents, interactive widget buttons, Control Center controls |
package.json (@capacitor/ios version), ios/App/App/Info.plist (scene manifest present?), ios/App/App/AppDelegate.swift, ios/App/App/SceneDelegate.swift, the App target's deployment target, and any existing *.entitlements (Associated Domains, App Groups).App.addListener('appUrlOpen', ...), App.getLaunchUrl()) and which routes exist.grep -rn "AppIntent\|AppShortcutsProvider\|openAppWhenRun" ios/App.ios/App/App.xcodeproj/project.pbxproj (PBXNativeTarget entries other than App).For each action the user wants, decide and confirm:
| Question | Options |
|---|---|
| Does it need the UI? | No: background intent, native only. Yes: foreground intent that routes into the web app |
| How does it reach JS? | Universal Link via OpenURLIntent (iOS 18+, needs Associated Domains), or a local plugin with a pending-route store (works with custom schemes and iOS 16+) |
| What data does it need? | Fixed set: AppEnum. Dynamic, queryable: AppEntity + EntityQuery. Free text or number: plain @Parameter |
| Where must it run? | App target only, or also a widget / control (then the intent file needs both target memberships) |
| Which surfaces? | App Shortcut phrase (at most 10 App Shortcuts per app), Spotlight, widget, control |
Keep one intent per atomic task. Report the plan (files to add, targets, entitlements, JS changes) before editing.
ios/App/App/Intents/ with the App target membership (references/project-setup.md).CAPBridgeViewController subclass.AppShortcutsProvider with shortTitle, systemImageName and \(.applicationName) in every phrase.npx cap sync ios
xcodebuild -project ios/App/App.xcodeproj -scheme App \
-destination 'generic/platform=iOS Simulator' build
# CocoaPods projects: -workspace ios/App/App.xcworkspace
\(.applicationName) produces a build warning and is dropped at runtime.ios-android-logs).| Symptom | Cause | Fix |
|---|---|---|
'AppIntent' is only available in iOS 16.0 or newer | Capacitor 8 project deploys to iOS 15 | Add @available(iOS 16.0, *) to every App Intents type, or raise the deployment target with the user's approval |
| Intent missing from Shortcuts after install | File not in the App target, or metadata extraction failed | Check target membership. Read the build log for the App Intents metadata step. Reinstall the app |
| Phrase never triggers Siri; build warning about the application name | Phrase lacks \(.applicationName) | Add the token to every phrase |
| Build error about more than 10 App Shortcuts | Per-app cap | Merge actions or drop low-value ones |
Crash "...was not initialized prior to access" from @Dependency | Dependency registered too late (in a view controller) | Register in AppDelegate.application(_:didFinishLaunchingWithOptions:), which runs on headless launches too |
| Foreground intent opens the app but the web view stays on the home route on cold start | The route was posted before JS added its listener | Use the pending-route store + retainUntilConsumed, or App.getLaunchUrl() |
appUrlOpen never fires for OpenURLIntent | Universal Links not configured, or custom AppDelegate URL code under UIScene | Fix with capacitor-deep-linking. OpenURLIntent needs a real https Universal Link |
| Swift 6 error: main actor-isolated property cannot satisfy nonisolated requirement | The intent type is marked @MainActor | Remove @MainActor from the type. Put it on perform() or hop inside |
| Background intent killed after about 30 seconds | iOS limit for background intents | Shorten the work, or use LongRunningIntent on iOS 27 |
'openAppWhenRun' was deprecated in iOS 26.0 | iOS 26 SDK | Add a gated supportedModes (references/ios-26-27-apis.md). Keep openAppWhenRun while the deployment target is below 26 |
capacitor-deep-linking: Universal Links and appUrlOpen routing the intents rely oncapacitor-uiscene-migration: required before Xcode 27; moves URL handling to SceneDelegatecapacitor-plugins: @capgo/capacitor-widget-kit for Live Activities and JS-driven widgetscapacitor-testing: native unit tests and the device verification loopios-android-logs: logs from headless intent runsWhat SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/capacitor-deep-linkingImplements and debugs deep links in Capacitor apps - custom URL schemes, iOS Universal Links (apple-app-site-association, Associated Domains entitlement), Android App Links (assetlinks.json, autoVerify), and routing via @capacitor/app `appUrlOpen` + `App.getLaunchUrl()`. Covers the Capacitor 8.5+ UIScene change where AppDelegate `application(_:open:options:)` and `continue userActivity` stop being called and custom handling must move to SceneDelegate, plus cold vs warm launch testing. Use when links open Safari/Chrome instead of the app, `appUrlOpen` never fires, the launch URL is lost on cold start, or OAuth redirects do not return to the app. Do not use for the full UIScene migration (capacitor-uiscene-migration), push notification taps (capacitor-push-notifications), or social login plugin setup (capacitor-plugins)./capacitor-keyboardFixes on-screen keyboard behavior in Capacitor apps with @capacitor/keyboard - iOS `resize` modes (`native` default, `body`, `ionic`, `none`), `keyboardWillShow`/`keyboardDidShow` heights, `setAccessoryBarVisible`, `setScroll`, `style` (`DARK`/`LIGHT`/`DEFAULT`), `autoBackdropColor` (8.0.4+), Android edge-to-edge/SystemBars interaction (drop legacy `resizeOnFullScreen` on Capacitor 8), iOS 26 fixes, and iOS input auto-zoom. Use when inputs are hidden behind the keyboard, the WebView jumps or leaves a white/black gap above the keyboard, fixed footers float mid-screen, `vh` layouts shrink, or keyboard events do not fire. Do not use for general safe-area/notch padding (safe-area-handling), Ionic component styling (ionic-design), or form accessibility (capacitor-accessibility)./capacitor-offline-firstDesigns and implements offline-first data in Capacitor apps - local SQLite source of truth with @capgo/capacitor-fast-sql (`FastSQL.connect`, `KeyValueStore`), an outbox/sync queue, delta pulls, conflict resolution, @capacitor/network `networkStatusChange`, background sync with @capgo/capacitor-background-task, and why localStorage/IndexedDB get evicted and service workers break plugin injection in native WebViews. Use when the app must work without internet, data disappears after iOS storage pressure, sync duplicates or loses writes, or `Plugin not implemented` appears after adding a service worker. Do not use for migrating an existing SQLite plugin (sqlite-to-fast-sql), shipping web bundle updates offline (capgo-live-updates), HTTP security/certificate pinning (capacitor-security), or general performance (capacitor-performance)./capacitor-push-notificationsSets up and debugs remote push in Capacitor apps with @capacitor/push-notifications (FCM on Android, APNs on iOS), or Capgo alternatives @capgo/capacitor-firebase-messaging and @capgo/capacitor-notifications. Covers APNs keys, Push Notifications capability, AppDelegate `didRegisterForRemoteNotificationsWithDeviceToken` forwarding (stays in AppDelegate under the Capacitor 8.5 UIScene lifecycle), Android 13+ POST_NOTIFICATIONS permission, notification channels and icons, `firebaseMessagingVersion`, foreground `presentationOptions` (Capacitor 9 removes iOS `alert`; use `banner`/`list`), and tap routing. Use when `registration` never fires, iOS returns an APNs token instead of an FCM token, errors like "no valid aps-environment entitlement string found" appear, or notifications do not show. Do not use for local-only notifications or deep link URL handling (capacitor-deep-linking), UIScene migration (capacitor-uiscene-migration), or log capture (ios-android-logs)./capacitor-splash-screenConfigures and debugs launch splash screens in Capacitor apps with @capacitor/splash-screen and @capacitor/assets - `launchAutoHide`, `SplashScreen.hide()`, `launchFadeOutDuration` (Android default changed 200 -> 0 in Capacitor 9), Android 12+ SplashScreen API theme (`Theme.SplashScreen`, `windowSplashScreenAnimatedIcon`), iOS `LaunchScreen.storyboard` + `Splash.imageset`, and Capacitor 8.5 UIScene/SceneDelegate effects (window created in code, Main.storyboard no longer supplies the root view controller). Use for white/black flash at launch, splash never hiding, cropped/tiny Android 12 icon, dark-mode splash, or regenerating icons and splash assets. Do not use for status/navigation bar color and insets (safe-area-handling), the UIScene migration itself (capacitor-uiscene-migration), or startup performance profiling (capacitor-performance).npx claudepluginhub cap-go/capgo-skills --plugin capacitor-featuresOther plugins' skills for the same job