Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 openAppWhenRun to supportedModes, 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: 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.
  • Universal Links / custom scheme / appUrlOpen setup: 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 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).
  • A background intent has no WebView. iOS can launch the app process headless for .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.
  • With UIScene (Capacitor 8.5+) URL delivery moved. Universal Links and custom-scheme opens reach 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.
  • 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 plus notifyListeners(..., retainUntilConsumed: true) for the local-plugin path.
  • Identifiers are a public contract. Intent type names, 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.

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)

  1. Read 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).
  2. Check whether the app already handles deep links in JS (`App.a
Полный SKILL.md на GitHub

Установить capacitor-app-intents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.jsonreferences/intent-traps.mdreferences/ios-26-27-apis.mdreferences/project-setup.mdreferences/web-bridge.mdreferences/widgets-and-controls.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить capacitor-app-intents с