Agent Skillsopenai/plugins › ios-app-intents

ios-app-intents

GitHub

指导为iOS应用设计App Intents、实体及快捷方式,以暴露核心操作至Siri、Spotlight等系统入口。涵盖从识别高价值动作、定义精简实体、决策执行模式到验证运行时跳转的完整工作流,强调保持意图层轻量并与主应用解耦。

plugins/build-ios-apps/skills/ios-app-intents/SKILL.md openai/plugins

触发场景

需要为iOS应用添加Siri或快捷指令支持 实现通过Widget或控制中心触发应用内特定功能 优化应用与系统级搜索(Spotlight)的集成

安装

npx skills add openai/plugins --skill ios-app-intents -g -y
更多选项

非标准路径

npx skills add https://github.com/openai/plugins/tree/main/plugins/build-ios-apps/skills/ios-app-intents -g -y

不安装直接使用

npx skills use openai/plugins@ios-app-intents

指定 Agent (Claude Code)

npx skills add openai/plugins --skill ios-app-intents -a claude-code -g -y

安装 repo 全部 skill

npx skills add openai/plugins --all -g -y

预览 repo 内 skill

npx skills add openai/plugins --list

SKILL.md

Frontmatter
{
    "name": "ios-app-intents",
    "description": "Design App Intents, app entities, and App Shortcuts for iOS system surfaces. Use when exposing app actions or content to Shortcuts, Siri, Spotlight, widgets, or controls."
}

iOS App Intents

Overview

Expose the smallest useful action and entity surface to the system. Start with the verbs and objects people would actually want outside the app, then implement a narrow App Intents layer that can deep-link or hand off cleanly into the main app when needed.

Read these references as needed:

  • references/first-pass-checklist.md for choosing the first intent and entity surface
  • references/example-patterns.md for concrete example shapes to copy and adapt
  • references/code-templates.md for generalized App Intents code templates
  • references/system-surfaces.md for how to think about Shortcuts, Siri, Spotlight, widgets, and other system entry points

Core workflow

1) Start with actions, not screens

  • Identify the 1-3 highest-value actions that should work outside the app UI.
  • Prefer verbs like compose, open, find, filter, continue, inspect, or start.
  • Do not mirror the entire app navigation tree as intents.

2) Define a small entity surface

  • Add AppEntity types only for the objects the system needs to understand or route.
  • Keep the entity shape narrower than the app's persistence model.
  • Add EntityQuery or other query types only where disambiguation or suggestions are genuinely useful.

3) Decide whether the action completes in place or opens the app

  • Use non-opening intents for actions that can complete directly from the system surface.
  • Use openAppWhenRun or open-style intents when the user should land in a specific in-app workflow.
  • When the app must react inside the main scene, add one clear runtime handoff path instead of scattering ad hoc routing logic.
  • If the action can work in both modes, consider shipping both an inline version and an open-app version rather than forcing one compromise.

4) Make the actions discoverable

  • Add AppShortcutsProvider entries for the first set of high-value intents.
  • Choose titles, phrases, and symbols that make sense in Shortcuts, Siri, and Spotlight.
  • Keep shortcut phrases direct and task-oriented.
  • Reuse the same action model for widgets and controls when a widget configuration or intent-driven control already needs the same parameters.

5) Validate the runtime handoff

  • Build the app and confirm the intents target compiles cleanly.
  • Verify the app opens or routes to the expected place when an intent runs.
  • Summarize which actions are now exposed, which entities back them, and how the app handles invocation.

Strong defaults

  • Prefer a dedicated intents target or module for the system-facing layer.
  • Keep intent types thin; business logic should stay in app services or domain models.
  • Keep app entities small and display-friendly.
  • Use AppEnum for fixed app choices such as tabs, modes, or visibility levels before reaching for a full entity type.
  • Prefer one predictable app-intent routing surface in the main app scene or root router.
  • Treat App Intents as system integration infrastructure, not only as a Shortcuts feature.

Anti-patterns

  • Exposing every screen or tab as its own intent without a real user value.
  • Mirroring the entire model graph as AppEntity types.
  • Hiding runtime handoff in global side effects with no clear app entry path.
  • Adding App Shortcuts with vague phrases or generic titles.
  • Treating the first App Intents pass as a broad taxonomy project instead of a small useful release.

Notes

  • Apple documentation to use as primary references:
    • https://developer.apple.com/documentation/appintents/making-actions-and-content-discoverable-and-widely-available
    • https://developer.apple.com/documentation/appintents/creating-your-first-app-intent
    • https://developer.apple.com/documentation/appintents/adopting-app-intents-to-support-system-experiences
  • In addition to the links above, use web search to consult current Apple Developer documentation when App Intents APIs or platform behavior may have changed.
  • A good first pass often includes one open-app intent, one action intent, one or two entity types, and a small AppShortcutsProvider.
  • Good example families to cover are:
    • open a destination or editor in the app
    • perform a lightweight action inline without opening the app
    • choose from a fixed enum such as a tab or mode
    • resolve one or more entities through EntityQuery
    • power widget configuration or controls from the same entity surface

版本历史

  • 11c74d6 当前 2026-07-19 09:28

同 Skill 集合

.agents/skills/plugin-creator/SKILL.md
plugins/airtable/skills/airtable-cli/SKILL.md
plugins/airtable/skills/airtable-filters/SKILL.md
plugins/airtable/skills/airtable-overview/SKILL.md
plugins/atlassian-rovo/skills/capture-tasks-from-meeting-notes/SKILL.md
plugins/atlassian-rovo/skills/generate-status-report/SKILL.md
plugins/base44/skills/base44-cli/SKILL.md
plugins/base44/skills/base44-sdk/SKILL.md
plugins/base44/skills/base44-troubleshooter/SKILL.md
plugins/boltz-api-cli/skills/boltz-check-status/SKILL.md
plugins/boltz-api-cli/skills/boltz-cli-setup/SKILL.md
plugins/boltz-api-cli/skills/boltz-protein-design/SKILL.md
plugins/boltz-api-cli/skills/boltz-protein-screen/SKILL.md
plugins/boltz-api-cli/skills/boltz-small-molecule-adme/SKILL.md
plugins/boltz-api-cli/skills/boltz-small-molecule-design/SKILL.md
plugins/boltz-api-cli/skills/boltz-small-molecule-screen/SKILL.md
plugins/boltz-api-cli/skills/boltz-structure-and-binding/SKILL.md
plugins/box/skills/box/SKILL.md
plugins/brighthire/skills/brighthire/SKILL.md
plugins/build-ios-apps/skills/ios-debugger-agent/SKILL.md
plugins/build-ios-apps/skills/ios-ettrace-performance/SKILL.md
plugins/build-ios-apps/skills/ios-memgraph-leaks/SKILL.md
plugins/build-ios-apps/skills/ios-simulator-browser/SKILL.md
plugins/build-ios-apps/skills/swiftui-liquid-glass/SKILL.md
plugins/build-ios-apps/skills/swiftui-performance-audit/SKILL.md
plugins/build-ios-apps/skills/swiftui-ui-patterns/SKILL.md
plugins/build-ios-apps/skills/swiftui-view-refactor/SKILL.md
plugins/build-macos-apps/skills/appkit-interop/SKILL.md
plugins/build-macos-apps/skills/build-run-debug/SKILL.md
plugins/build-macos-apps/skills/liquid-glass/SKILL.md
plugins/build-macos-apps/skills/packaging-notarization/SKILL.md
plugins/build-macos-apps/skills/signing-entitlements/SKILL.md
plugins/build-macos-apps/skills/swiftpm-macos/SKILL.md
plugins/build-macos-apps/skills/swiftui-patterns/SKILL.md
plugins/build-macos-apps/skills/telemetry/SKILL.md
plugins/build-macos-apps/skills/test-triage/SKILL.md
plugins/build-macos-apps/skills/view-refactor/SKILL.md
plugins/build-macos-apps/skills/window-management/SKILL.md
plugins/build-web-apps/skills/frontend-app-builder/SKILL.md
plugins/build-web-apps/skills/frontend-testing-debugging/SKILL.md
plugins/build-web-apps/skills/react-best-practices/SKILL.md
plugins/build-web-apps/skills/shadcn-best-practices/SKILL.md
plugins/build-web-apps/skills/supabase-best-practices/SKILL.md
plugins/build-web-data-visualization/skills/accessibility-and-inclusive-visualization/SKILL.md
plugins/build-web-data-visualization/skills/canvas2d-data-visualization/SKILL.md
plugins/build-web-data-visualization/skills/d3-data-visualization/SKILL.md
plugins/build-web-data-visualization/skills/dashboards-and-real-time-visualization/SKILL.md
plugins/build-web-data-visualization/skills/data-visualization/SKILL.md
plugins/build-web-data-visualization/skills/gantt-chart-visualization/SKILL.md

元信息

文件数
0
版本
11c74d6
Hash
ecfa87ec
收录时间
2026-07-19 09:28

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 07:00
浙ICP备14020137号-1 $访客地图$