Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
rshankras avatar

Apple Intelligence

  • 398 installs
  • 591 repo stars
  • Updated July 24, 2026
  • rshankras/claude-code-apple-skills

apple-intelligence is a Claude Code skill that integrates Apple Intelligence APIs—including on-device models, App Intents, and Writing Tools hooks—into iOS and macOS apps for developers who need privacy-preserving genera

About

apple-intelligence is a skill from rshankras/claude-code-apple-skills that guides integration of Apple Intelligence APIs into iOS and macOS applications and agent workflows. The skill covers on-device models, App Intents, and Writing Tools hooks so generative features run with Apple’s privacy-preserving on-device stack. Developers reach for apple-intelligence when shipping native Apple apps that need generative assistance, system intent surfaces, or writing augmentation without routing sensitive data through remote-only models. It fits teams building Swift/UIKit/SwiftUI apps that must align with Apple Intelligence platform contracts.

  • Covers Apple Intelligence platform APIs
  • Guides on-device model usage patterns
  • Links App Intents with agent automation
  • Addresses entitlements and privacy constraints
  • Supports generative features in SwiftUI apps

Apple Intelligence by the numbers

  • 398 all-time installs (skills.sh)
  • +19 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #1,988 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill apple-intelligence

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs398
repo stars591
Last updatedJuly 24, 2026
Repositoryrshankras/claude-code-apple-skills

How do you integrate Apple Intelligence APIs in Swift apps?

Integrate Apple Intelligence APIs—on-device models, App Intents, Writing Tools hooks—into iOS/macOS apps and agent workflows requiring privacy-preserving generative features.

Who is it for?

iOS and macOS developers adding privacy-preserving Apple Intelligence features through App Intents and on-device models.

Skip if: Teams building cross-platform or server-only LLM features without native Apple Intelligence API requirements.

When should I use this skill?

A developer is wiring Apple Intelligence, App Intents, or Writing Tools into an iOS or macOS app or agent workflow.

What you get

App Intents definitions, on-device model call sites, and Writing Tools hook integrations in iOS or macOS projects

  • App Intents integration
  • On-device model call sites

Files

app-intents/SKILL.mdMarkdownGitHub ↗

App Intents

Build intents that expose your app's functionality to Siri, Shortcuts, Spotlight, and Apple Intelligence. Covers the full App Intents framework from basic actions through advanced features like interactive snippets, intent modes, visual intelligence integration, and Spotlight entity indexing.

When This Skill Activates

  • User wants to add Siri or Shortcuts integration
  • User asks about App Intents, AppIntent, or AppEntity
  • User needs Spotlight indexing for app content
  • User wants to create App Shortcuts with voice phrases
  • User is implementing interactive snippets for Siri results
  • User asks about intent modes (foreground, background)
  • User needs visual intelligence integration via App Intents
  • User wants onscreen entity support for Siri/ChatGPT
  • User asks about Swift package support for App Intents

Decision Tree

What do you need?
|
+-- Expose an action to Siri/Shortcuts
|   +-- Simple action, no UI needed
|   |   --> Basic AppIntent (intents-basics.md)
|   +-- Needs to show UI or ask user questions
|   |   --> Intent Modes + Interactive Snippets (advanced-features.md)
|   +-- Needs a predictable voice phrase
|       --> App Shortcuts (intents-basics.md)
|
+-- Make content searchable
|   +-- In Spotlight
|   |   --> IndexedEntity + @Property (entities-spotlight.md)
|   +-- In Visual Intelligence
|   |   --> IntentValueQuery + SemanticContentDescriptor (advanced-features.md)
|   +-- As onscreen entities for Siri/ChatGPT
|       --> .userActivity() + EntityIdentifier (advanced-features.md)
|
+-- Show rich results in Siri
|   +-- Static display only
|   |   --> .result(view:) snippet (advanced-features.md)
|   +-- Interactive buttons/controls
|       --> SnippetIntent protocol (advanced-features.md)
|
+-- Present choices to the user
|   --> requestChoice(between:) (advanced-features.md)
|
+-- Share intents via Swift Package
    --> AppIntentsPackage protocol (advanced-features.md)

API Availability

FeatureMinimum OSFramework
AppIntent protocoliOS 16 / macOS 13AppIntents
AppEntity protocoliOS 16 / macOS 13AppIntents
AppShortcutsProvideriOS 16 / macOS 13AppIntents
@Parameter macroiOS 16 / macOS 13AppIntents
IndexedEntity protocoliOS 18 / macOS 15AppIntents
@Property with indexingKeyiOS 18 / macOS 15AppIntents
Intent Modes (supportedModes)iOS 26 / macOS 26AppIntents
requestChoice(between:)iOS 26 / macOS 26AppIntents
@ComputedPropertyiOS 26 / macOS 26AppIntents
@DeferredPropertyiOS 26 / macOS 26AppIntents
SnippetIntent protocoliOS 26 / macOS 26AppIntents
AppIntentsPackage protocoliOS 26 / macOS 26AppIntents
Onscreen entities (.userActivity())iOS 26 / macOS 26AppIntents
@UnionValueiOS 18 / macOS 15AppIntents

Quick Reference

TaskType/APIReference File
Define an actionAppIntent protocolintents-basics.md
Accept parameters@Parameter macrointents-basics.md
Create voice phrasesAppShortcutsProviderintents-basics.md
Define a data entityAppEntity protocolentities-spotlight.md
Index in SpotlightIndexedEntity protocolentities-spotlight.md
Mark indexable fields@Property(indexingKey:)entities-spotlight.md
Run in background/foregroundsupportedModesadvanced-features.md
Continue in foregroundcontinueInForeground()advanced-features.md
Show result UI.result(view:)advanced-features.md
Interactive result UISnippetIntent protocoladvanced-features.md
Present choicesrequestChoice(between:)advanced-features.md
Visual intelligence searchIntentValueQueryadvanced-features.md
Onscreen entity association.userActivity() modifieradvanced-features.md
Computed/deferred properties@ComputedProperty, @DeferredPropertyadvanced-features.md
Share via packagesAppIntentsPackageadvanced-features.md

Process

1. Identify Integration Needs

Read the user's code or requirements to determine:

  • What actions should be exposed to Siri/Shortcuts
  • What content should be searchable in Spotlight
  • Whether interactive snippets are needed for Siri results
  • Whether the intent needs foreground UI or can run in background
  • Target platform and minimum OS version

2. Load Relevant Reference Files

Based on the need, read from this directory:

  • intents-basics.md -- AppIntent protocol, @Parameter, perform(), App Shortcuts
  • entities-spotlight.md -- AppEntity, IndexedEntity, Spotlight indexing, @Property
  • advanced-features.md -- Intent modes, interactive snippets, visual intelligence, onscreen entities, choices, packages

3. Review or Implement

Apply patterns from the reference files. Check for common mistakes (see Top Mistakes below).

4. Cross-Reference

  • For Visual Intelligence camera search, see apple-intelligence/visual-intelligence/
  • For Foundation Models on-device LLM, see apple-intelligence/foundation-models/
  • For deep linking from intents, see generators/deep-linking/ skill

Top Mistakes

These are the most frequent errors when implementing App Intents.

1. Missing static metadata

// ❌ Wrong -- no title or description
struct MyIntent: AppIntent {
    func perform() async throws -> some IntentResult {
        return .result()
    }
}

// ✅ Correct -- static title is required
struct MyIntent: AppIntent {
    static var title: LocalizedStringResource = "Do Something"
    static var description: IntentDescription = "Performs the action"

    func perform() async throws -> some IntentResult {
        return .result()
    }
}

2. Forgetting to index entities after changes

// ❌ Wrong -- entities updated but Spotlight not notified
func saveRecipe(_ recipe: Recipe) {
    database.save(recipe)
}

// ✅ Correct -- reindex after mutations
func saveRecipe(_ recipe: Recipe) async throws {
    database.save(recipe)
    try await CSSearchableIndex.default().indexAppEntities()
}

3. Using foreground intent for background-safe work

// ❌ Wrong -- forces app to foreground for a simple toggle
struct ToggleFavoriteIntent: AppIntent {
    static var title: LocalizedStringResource = "Toggle Favorite"
    static var openAppWhenRun = true  // Unnecessary

    func perform() async throws -> some IntentResult {
        toggleFavorite()
        return .result()
    }
}

// ✅ Correct -- runs silently in background
struct ToggleFavoriteIntent: AppIntent {
    static var title: LocalizedStringResource = "Toggle Favorite"

    var supportedModes: IntentModes { .background }

    func perform() async throws -> some IntentResult {
        toggleFavorite()
        return .result()
    }
}

4. Not providing EntityStringQuery for entities

// ❌ Wrong -- entity has no way to be queried
struct NoteEntity: AppEntity {
    var id: String
    var title: String
    // Missing: static var defaultQuery
}

// ✅ Correct -- provides a query so Siri can resolve entities
struct NoteEntity: AppEntity {
    var id: String
    var title: String

    static var defaultQuery = NoteEntityQuery()
    // ... typeDisplayRepresentation, displayRepresentation
}

5. Returning too many Spotlight results

// ❌ Wrong -- indexing thousands of items at once blocks the main thread
func indexAll() async throws {
    let allItems = database.fetchAll()  // 50,000 items
    try await CSSearchableIndex.default().indexAppEntities()
}

// ✅ Correct -- batch index and run off main thread
func indexAll() async throws {
    try await CSSearchableIndex.default().indexAppEntities(
        of: RecipeEntity.self
    )
}

Review Checklist

Before shipping App Intents integration:

  • [ ] Every AppIntent has a static var title and static var description
  • [ ] Every AppEntity has typeDisplayRepresentation, displayRepresentation, and defaultQuery
  • [ ] @Parameter properties have descriptive titles
  • [ ] Entities used in Shortcuts have EntityStringQuery or EntityPropertyQuery
  • [ ] IndexedEntity types call CSSearchableIndex.default().indexAppEntities() after data changes
  • [ ] @Property fields used in indexing have indexingKey set
  • [ ] App Shortcuts have clear, natural-language phrases with \(.applicationName)
  • [ ] Intent modes match the actual work: background for data ops, foreground for UI
  • [ ] Interactive snippets use SnippetIntent (not plain AppIntent)
  • [ ] perform() handles errors gracefully and returns meaningful dialog
  • [ ] Intents are tested in Shortcuts app and via Siri voice
  • [ ] Deep links from entity results navigate to the correct screen

References

Related skills

FAQ

Which Apple Intelligence APIs does apple-intelligence cover?

apple-intelligence focuses on on-device models, App Intents, and Writing Tools hooks for iOS and macOS. The skill helps developers wire these APIs into native apps and agent workflows that require privacy-preserving generative features.

When should developers use apple-intelligence?

Developers should use apple-intelligence when building iOS or macOS apps that need Apple Intelligence integration rather than remote-only LLM calls. It fits App Intents surfaces, on-device inference, and Writing Tools augmentation in Swift projects.

AI & Agent Buildingllmagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.