Command Palette

Search for a command to run...

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

app-intent-driven-development

БесплатноБез исполняемых скриптовНе проверен

WHEN designing or debugging App Intent-first iOS features for Siri, Shortcuts, widgets, Live Activities, or reuse of an existing intent in SwiftUI; NOT for…

mintuzот mintuz★ 38 звёзд на GitHub

Об этом скилле

App Intent-First Driven Development

Design features with a system surface as App Intents first, then reuse those intents across Siri, Shortcuts, widgets, Controls, and SwiftUI views so automation and UI share one action path.

This skill covers evergreen App Intents architecture and best practices. For iOS 26 / iOS 27 additions (SnippetIntent, Visual Intelligence IntentValueQuery, IndexedEntityQuery, RelevantEntities, SyncableEntity/EntityOwnership, LongRunningIntent, SystemShortcut, AppIntentsTesting, @ComputedProperty/@DeferredProperty), use app-intents-whats-new-27. For iOS 27.3 Siri model integration (@AppIntent(.tool), @AppEntity(.generable), Skills.skillsbundle), use siri-app-integration and siri-evaluations.

Guardrails

  • Public API only: Never recommend or emit non-public or underscore-prefixed symbols. State plainly if a capability is only reachable via non-public API.
  • Ground every symbol: Emit only types, initialisers, and parameters that exist in current public App Intents API.
  • Treat identifiers, raw values, URLs, and phrases as public contracts: Saved shortcuts and donations replay an intent by its type name, carrying AppEntity.id values and AppEnum string raw values. Renaming, removing, or renumbering any of those (or changing a URLRepresentable* path) breaks saved shortcuts and donations. AppShortcut phrases are a separate contract for spoken Siri invocation and Spotlight display: renaming or removing a phrase breaks voice triggers. Adding is safe; breaking edits must be flagged explicitly and never performed silently.
  • Large-codebase review: Scan the project to identify discrete areas (intents, entities, queries, AppShortcutsProvider), propose reviewing one area at a time with choices, or break a whole-codebase review into sections with a checklist.

References

Read a reference when its topic is in play:

  • references/queries-and-entities.md: EntityIdentifierConvertible (<= 4096 chars), @Property visibility, EntityStringQuery, EnumerableEntityQuery, and EntityPropertyQuery (QueryProperties, SortingOptions, comparators, manual filter/sort/limit execution).
  • references/enums-parameters-and-summaries.md: AppEnum string-persisted raw values and caseDisplayRepresentations fatalError, @IntentParameterDependency, ParameterSummary DSL (When, operator enums, Switch/Case/DefaultCase, % auto-escaping), and factoring (AppEnum vs AppEntity vs plain @Parameter).
  • references/execution-dependencies-and-errors.md: Nonisolated perform(), retry/idempotency around needsValueError/AppIntentError.restartPerform, requestConfirmation, @Dependency (AppDependencyManager.shared in App.init(), placement restrictions, Sendable), and thrown CustomLocalizedStringResourceConvertible / AppIntentError errors.
  • references/shortcuts-donation-and-localization.md: AppShortcut phrases (INAlternativeAppNames, Bool.IntentDisplayName, 10-shortcut / ~1,000-phrase caps, AppShortcuts.xcstrings), IntentDonationManager, PredictableIntent, and source-literal localization (TypeDisplayRepresentation.numericFormat).
  • references/url-representation-and-opening.md: OpenIntent, OpenURLIntent (.result(opensIntent:) / OpensIntent), and URLRepresentableIntent / URLRepresentableEntity / URLRepresentableEnum (applinks: universal links).
  • references/configuration-intents.md: Parameter-only WidgetConfigurationIntent and ControlConfigurationIntent (no perform()), and SetValueIntent for Control toggles.

Scope Check

An action earns an App Intent when it needs a system surface, e.g. Siri, Shortcuts, App Shortcuts, Spotlight, widgets, Controls, the Action button, Focus filters, or Live Activities (an open set).

  • The UI framework does not decide: a UIKit app can adopt App Intents, and a SwiftUI app can hold actions that stay inside one screen. A refusal is a product/security decision about surfaces, not a limit of the UI framework.
  • Keep an action with no system surface in the shared domain service the screen already calls; do not add an intent for consistency alone (principle-foundational-thinking).
  • An unused intent still costs: wider discoverability in system surfaces, App Intents metadata and Shortcuts cache upkeep, and system-facing verification with no user benefit.
  • When a system surface becomes a requirement, extract the intent around the same unchanged service.
  • A scope decision is a deliverable: record the missing surface, the cost the refusal avoids, and the condition that reverses the decision.

Core Ideas

  • Entities first: Model runtime domain records users select or inspect as flat AppEntity snapshots; use AppEnum only for compile-time fixed sets and plain @Parameter (String, Int, Bool, Date, Measurement) for free-form values.
  • Intent-first feature: Build the App Intent + entity/query path before UI; SwiftU
Полный SKILL.md на GitHub

Установить app-intent-driven-development в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/configuration-intents.mdreferences/enums-parameters-and-summaries.mdreferences/execution-dependencies-and-errors.mdreferences/queries-and-entities.mdreferences/shortcuts-donation-and-localization.mdreferences/url-representation-and-opening.md

FAQ

Что делает скилл app-intent-driven-development?

WHEN designing or debugging App Intent-first iOS features for Siri, Shortcuts, widgets, Live Activities, or reuse of an existing intent in SwiftUI; NOT for actions with no system surface; provides AppEntity, metadata, prompting, and view-reuse patterns.

Как установить скилл app-intent-driven-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл app-intent-driven-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить app-intent-driven-development с