capacitor-app-intents
БесплатноБез исполняемых скриптовНе проверенExposes Capacitor app features to Siri, Shortcuts, Spotlight, the Action button, Apple Intelligence, widgets and controls with native App Intents in…
от Cap-go★ 79 звёзд на GitHubОб этом скилле
App Intents for Capacitor Apps
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.
When to Use
TRIGGER when:
- The user wants Siri phrases, Shortcuts actions, App Shortcuts, Spotlight actions, Action button or Apple Intelligence integration for a Capacitor app
- The user wants a widget button or a Control Center control to run an app action
- An intent opens the app, but the web view does not navigate, or it navigates only on warm launch
- A background intent crashes, times out, or tries to call JS
- Migrating
openAppWhenRuntosupportedModes, or adopting iOS 26/27 App Intents APIs - A plugin author wants to ship App Intents with a plugin
Do not use:
- JavaScript dispatch for Siri, Shortcuts, Spotlight, or Home Screen quick actions via
@capgo/capacitor-app-intents: usecapacitor-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. - Universal Links / custom scheme /
appUrlOpensetup:capacitor-deep-linking - AppDelegate to SceneDelegate migration:
capacitor-uiscene-migration - Push notification actions:
capacitor-push-notifications - Live Activities or SVG widgets driven from JS:
capacitor-plugins(@capgo/capacitor-widget-kit) - Android app shortcuts and intents: not covered here
Facts that drive the design
- App Intents need iOS 16. Capacitor 8 deploys to iOS 15, so every intent type, entity, query and
AppShortcutsProviderneeds@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). - A background intent has no WebView. iOS can launch the app process headless for
.backgroundintents.AppDelegate.application(_:didFinishLaunchingWithOptions:)runs, but no scene connects andCAPBridgeViewControllernever 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.runor@MainActor func perform()) before you touch UIKit, the bridge or@MainActorstate. Do irreversible work last. Details: references/intent-traps.md.- With UIScene (Capacitor 8.5+) URL delivery moved. Universal Links and custom-scheme opens reach
SceneDelegateand are forwarded bySceneDelegateProxy, which posts the notifications@capacitor/applistens to. If the app still has custom URL code inAppDelegate, it no longer runs. Checkcapacitor-deep-linkingfirst ifappUrlOpendoes not fire for a normal link. An intent cannot fix a broken link pipeline. - On cold launch the JS listener does not exist yet. Any route an intent hands to the web layer must survive until JS asks for it: use
App.getLaunchUrl()for URLs, or a pending-route store plusnotifyListeners(..., retainUntilConsumed: true)for the local-plugin path. - Identifiers are a public contract. Intent type names,
AppEntity.idvalues,AppEnumraw 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.
References
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 |
Workflow
1. Inspect (read-only)
- Read
package.json(@capacitor/iosversion),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). - Check whether the app already handles deep links in JS (`App.a
Установить capacitor-app-intents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл capacitor-app-intents?
Exposes Capacitor app features to Siri, Shortcuts, Spotlight, the Action button, Apple Intelligence, widgets and controls with native App Intents in ios/App/App, bridged to the web layer. Covers open-app intents routed through Universal Links / `OpenURLIntent` and @capacitor/app `appUrlOpen`, or a local plugin with a pending-route store; headless background intents; App Group / Preferences data sharing; AppShortcutsProvider phrases, AppEntity queries; iOS 26/27 APIs (`supportedModes` replacing `openAppWhenRun`, `continueInForeground`, `LongRunningIntent`, AppIntentsTesting) gated for Capacitor 8 (iOS 15) and 9 (iOS 16). Covers file placement, target membership, and UIScene (Capacitor 8.5+) URL delivery. Use for "add Siri shortcut", "Shortcuts action", "App Shortcuts", "control widget", or an intent that opens the app but the web view never navigates. Do not use for deep link setup (capacitor-deep-linking), push (capacitor-push-notifications), or Android shortcuts.
Как установить скилл capacitor-app-intents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл capacitor-app-intents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic