app-intents

Write and review Swift code for the App Intents framework.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/PicoMLX/SwiftSQLite --skill app-intents-picomlx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: app-intents
Source: https://github.com/PicoMLX/SwiftSQLite/tree/main/.agents/skills/app-intents
Command: npx skills add https://github.com/PicoMLX/SwiftSQLite --skill app-intents-picomlx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development of App Intents, ensuring your app's functionality is correctly exposed to Siri, Shortcuts, Spotlight, and Apple Intelligence while avoiding common architectural pitfalls.

Core Features & Use Cases

  • Intent Implementation: Provides structured guidance for creating AppIntents, OpenIntents, and SnippetIntents with proper protocol conformance.
  • Data Integration: Offers patterns for safely wiring SwiftData models and networked data into intents without violating actor boundaries.
  • Use Case: Use this Skill when you need to expose a specific app action, such as "Create a new task," to Siri or when you want to make your app's data searchable via Spotlight indexing.

Quick Start

Use the app-intents skill to review my current AppIntent implementation and ensure it follows the shadow-struct pattern for SwiftData models.

Frequently Asked Questions about app-intents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose SwiftData models to Siri using App Intents?

To expose SwiftData models to Siri using App Intents, you implement the shadow-struct pattern to safely wire your data into intents without violating actor boundaries. This ensures Sendable compliance and correct dependency injection for system-wide discoverability.

What's the best way to structure an AppShortcutsProvider for iOS and macOS?

The best way to structure an AppShortcutsProvider for iOS and macOS is to properly register your AppIntents within the provider to ensure system-wide discoverability. This guarantees your app functionality is correctly exposed to Siri and Shortcuts across platforms.

Can I use AppEntity protocols to make my app's data searchable in Spotlight?

Yes, you can use AppEntity protocols to make your app's data searchable in Spotlight. By conforming to AppEntity and AppIntent protocols, you expose your app's specific data models and actions directly to system-wide Apple services for indexing.

Why does my AppIntent implementation fail Sendable requirements?

Your AppIntent implementation fails Sendable requirements when it improperly crosses actor boundaries or lacks correct dependency injection. Applying the shadow-struct pattern for SwiftData models resolves these architectural pitfalls and ensures safe asynchronous execution.

Do I need to implement AppIntent differently for Apple Intelligence integration?

For Apple Intelligence integration, AppIntent implementation requires strict adherence to Sendable requirements and correct registration for discoverability. Exposing app functionality properly ensures your intents are fully accessible to system-wide Apple services including Apple Intelligence.

How do I create a Shortcut to trigger a specific app action programmatically in Swift?

To create a Shortcut to trigger an app action programmatically in Swift, implement the AppIntent protocol to define the action, then register it via AppShortcutsProvider. This exposes your app's functionality directly to the Shortcuts app and Siri.