Apple Intelligence Skills
Skills for implementing Apple Intelligence features including on-device LLMs, visual recognition, App Intents integration, and intelligent assistants.
When This Skill Activates
Use this skill when the user:
- Wants to add AI/LLM features to their app
- Needs on-device text generation or understanding
- Asks about Foundation Models or Apple Intelligence
- Wants to implement structured AI output
- Needs prompt engineering guidance
- Wants camera-based visual intelligence features
- Needs Siri, Shortcuts, or Spotlight integration via App Intents
- Wants to expose app actions or content to the system
Available Skills
foundation-models/
On-device LLM integration with prompt engineering best practices.
- Model availability checking
- Session management
- @Generable structured output (property-order + schema-injection rules)
- Tool calling patterns
- Snapshot streaming
- Prompt engineering techniques
safety-and-guardrails.md — model limits, the instructions-over-prompts hierarchy, guardrail handling, the four-layer safety stack, evals
models-and-agents.md — Private Cloud Compute, LanguageModel protocol (third-party backends), vision input, DynamicProfile agents, tool-calling modes, KV-cache rules
visual-intelligence/
Integrate with iOS Visual Intelligence for camera-based search.
- IntentValueQuery implementation
- SemanticContentDescriptor handling
- AppEntity for searchable content
- Display representations
- Deep linking from results
app-intents/
App Intents for Siri, Shortcuts, Spotlight, and Apple Intelligence.
- AppIntent protocol, parameters, perform()
- AppEntity and entity queries
- App Shortcuts with voice phrases
- IndexedEntity and Spotlight indexing
- Intent modes (background, foreground)
- Interactive snippets with SnippetIntent
- Visual intelligence integration
- Onscreen entities for Siri/ChatGPT
- Multiple choice API
- Swift package support
Key Principles
1. Privacy First
- On-device processing by default; Private Cloud Compute extends capacity without storing prompts (no account/API keys — WWDC26 241)
- When routing to less-private backends, redact context first (see foundation-models/models-and-agents.md)
2. Graceful Degradation
- Always check model availability
- Provide fallback UI for unsupported devices
- Handle errors gracefully (incl. guardrail violations — silent for proactive features, explained for user-initiated)
3. Efficient Prompting
- Keep prompts focused and specific
- Use structured output when possible
- Respect context window limits — query
model.contextSize, never hardcode (4,096 first-gen on-device; 8,192 iOS 27 on-device; 32,000 Private Cloud Compute)
Reference Documentation
- Foundation Models
- Visual Intelligence
- App Intents
- Local captured docs (optional): if
~/Downloads/docs/ contains FoundationModels-Using-on-device-LLM-in-your-app.md, Implementing-Visual-Intelligence-in-iOS.md, or AppIntents-Updates.md, read them for extra detail; skip silently if absent.
1---2name: apple-intelligence3description: Apple Intelligence skills for on-device AI features including Foundation Models, Visual Intelligence, App Intents, and intelligent assistants. Use when implementing AI-powered features.4---5
6# Apple Intelligence Skills
7
8Skills for implementing Apple Intelligence features including on-device LLMs, visual recognition, App Intents integration, and intelligent assistants.
9
10## When This Skill Activates
11
12Use this skill when the user:
13- Wants to add AI/LLM features to their app
14- Needs on-device text generation or understanding
15- Asks about Foundation Models or Apple Intelligence
16- Wants to implement structured AI output
17- Needs prompt engineering guidance
18- Wants camera-based visual intelligence features
19- Needs Siri, Shortcuts, or Spotlight integration via App Intents
20- Wants to expose app actions or content to the system
21
22## Available Skills
23
24### foundation-models/
25On-device LLM integration with prompt engineering best practices.
26- Model availability checking
27- Session management
28- @Generable structured output (property-order + schema-injection rules)
29- Tool calling patterns
30- Snapshot streaming
31- Prompt engineering techniques
32- `safety-and-guardrails.md` — model limits, the instructions-over-prompts hierarchy, guardrail handling, the four-layer safety stack, evals
33- `models-and-agents.md` — Private Cloud Compute, LanguageModel protocol (third-party backends), vision input, DynamicProfile agents, tool-calling modes, KV-cache rules
34
35### visual-intelligence/
36Integrate with iOS Visual Intelligence for camera-based search.
37- IntentValueQuery implementation
38- SemanticContentDescriptor handling
39- AppEntity for searchable content
40- Display representations
41- Deep linking from results
42
43### app-intents/
44App Intents for Siri, Shortcuts, Spotlight, and Apple Intelligence.
45- AppIntent protocol, parameters, perform()
46- AppEntity and entity queries
47- App Shortcuts with voice phrases
48- IndexedEntity and Spotlight indexing
49- Intent modes (background, foreground)
50- Interactive snippets with SnippetIntent
51- Visual intelligence integration
52- Onscreen entities for Siri/ChatGPT
53- Multiple choice API
54- Swift package support
55
56## Key Principles
57
58### 1. Privacy First
59- On-device processing by default; Private Cloud Compute extends capacity without storing prompts (no account/API keys — WWDC26 241)
60- When routing to less-private backends, redact context first (see foundation-models/models-and-agents.md)
61
62### 2. Graceful Degradation
63- Always check model availability
64- Provide fallback UI for unsupported devices
65- Handle errors gracefully (incl. guardrail violations — silent for proactive features, explained for user-initiated)
66
67### 3. Efficient Prompting
68- Keep prompts focused and specific
69- Use structured output when possible
70- Respect context window limits — query `model.contextSize`, never hardcode (4,096 first-gen on-device; 8,192 iOS 27 on-device; 32,000 Private Cloud Compute)
71
72## Reference Documentation
73
74- [Foundation Models](https://developer.apple.com/documentation/foundationmodels)
75- [Visual Intelligence](https://developer.apple.com/documentation/visualintelligence)
76- [App Intents](https://developer.apple.com/documentation/appintents)
77- Local captured docs (optional): if `~/Downloads/docs/` contains `FoundationModels-Using-on-device-LLM-in-your-app.md`, `Implementing-Visual-Intelligence-in-iOS.md`, or `AppIntents-Updates.md`, read them for extra detail; skip silently if absent.