axiom-ios-ai

Use when implementing ANY Apple Intelligence or on-device AI feature. Covers Foundation Models, @Generable, LanguageModelSession, structured output, Tool protocol, iOS 26 AI integration.

⭐181stars🔀11forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

The iOS Apple Intelligence Router is a specialized Claude skill designed to streamline the development of on-device AI features for the Apple ecosystem. It serves as a central hub for implementing Foundation Models, managing LanguageModelSession, and utilizing the Tool protocol. By providing optimized implementation patterns, comprehensive API references, and diagnostic tools, it helps developers efficiently integrate iOS 26 AI capabilities, handle structured output with @Generable, and resolve common generation issues like guardrail violations or performance bottlenecks.

Use Cases

  • Case 1: Implementing on-device AI features using LanguageModelSession and Foundation Models for iOS 26 applications.
  • Case 2: Generating structured data and dynamic schemas using the @Generable macro to ensure type-safe AI responses.
  • Case 3: Integrating the Tool protocol to enable function calling and streaming AI generation with PartiallyGenerated patterns.
  • Case 4: Troubleshooting and debugging AI generation issues, including blocked responses, slow performance, and context limit management.
nameaxiom-ios-ai
descriptionUse when implementing ANY Apple Intelligence or on-device AI feature. Covers Foundation Models, @Generable, LanguageModelSession, structured output, Tool protocol, iOS 26 AI integration.
user-invocablefalse

iOS Apple Intelligence Router

You MUST use this skill for ANY Apple Intelligence or Foundation Models work.

When to Use

Use this router when:

  • Implementing Apple Intelligence features
  • Using Foundation Models
  • Working with LanguageModelSession
  • Generating structured output with @Generable
  • Debugging AI generation issues
  • iOS 26 on-device AI

Routing Logic

Foundation Models Work

Implementation patterns → /skill axiom-foundation-models

  • LanguageModelSession basics
  • @Generable structured output
  • Tool protocol integration
  • Streaming with PartiallyGenerated
  • Dynamic schemas
  • 26 WWDC code examples

API reference → /skill axiom-foundation-models-ref

  • Complete API documentation
  • All @Generable examples
  • Tool protocol patterns
  • Streaming generation patterns

Diagnostics → /skill axiom-foundation-models-diag

  • AI response blocked
  • Generation slow
  • Guardrail violations
  • Context limits exceeded
  • Model unavailable

Decision Tree

User asks about Apple Intelligence
  ├─ Implementing? → foundation-models
  ├─ Need API reference? → foundation-models-ref
  └─ Debugging issues? → foundation-models-diag

Critical Patterns

foundation-models:

  • LanguageModelSession setup
  • @Generable for structured output
  • Tool protocol for function calling
  • Streaming generation
  • Dynamic schema evolution

foundation-models-diag:

  • Blocked response handling
  • Performance optimization
  • Guardrail violations
  • Context management

Example Invocations

User: "How do I use Apple Intelligence to generate structured data?" → Invoke: /skill axiom-foundation-models

User: "My AI generation is being blocked" → Invoke: /skill axiom-foundation-models-diag

User: "Show me @Generable examples" → Invoke: /skill axiom-foundation-models-ref

User: "Implement streaming AI generation" → Invoke: /skill axiom-foundation-models