app-intent-driven-development
Installation
SKILL.md
App Intent–First Driven Development
Design features as App Intents first, then reuse those intents across Shortcuts, widgets, and SwiftUI views so automation and UI stay in lockstep.
Core Ideas
- Entities first: model the data users act on (events, categories, records) as
AppEntityso intents, widgets, and the app share one source of truth. - Intent-first feature: build the App Intent + entity query before UI; SwiftUI screens call those intents instead of duplicating service code.
- Single action, single intent: keep intents focused; avoid mega-intents that are hard to compose in Shortcuts.
- Predictable UI: supply
DisplayRepresentation,typeDisplayRepresentation, and icons so Siri/Shortcuts can render rich cards without opening the app. - Fast queries:
EntityQuerymust be quick and cancellable; avoid blocking the main actor. - Reuse business logic: intents call the same services your views use; do not fork logic inside the intent.
Minimal Entity Blueprint
import AppIntents