Axiom ios ai

From ComeOnOliver/skillshub · View interactive version

Axiom ios ai is an AI agent skill from the GitHub repository ComeOnOliver/skillshub. Use when implementing ANY Apple Intelligence or on-device AI feature. Covers Foundation Models, @Generable, LanguageModelSession, structured output, Tool protocol, iOS 26 AI integration.

How to use this skill

Skill file

iOS Apple Intelligence Router

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

When to Use

Use this router when:

AI Approach Triage

First, determine which kind of AI the developer needs:

| Developer Intent | Route To |

|-----------------|----------|

| On-device text generation (Apple Intelligence) | Stay here → Foundation Models skills |

| Custom ML model deployment (PyTorch, TensorFlow) | Route to ios-ml → CoreML conversion, compression |

| Computer vision (image analysis, OCR, segmentation) | Route to ios-vision → Vision framework |

| Cloud API integration (OpenAI, etc.) | Route to ios-networking → URLSession patterns |

| System AI features (Writing Tools, Genmoji) | No custom code needed — these are system-provided |

Key boundary: ios-ai vs ios-ml

Cross-Domain Routing

Foundation Models + concurrency (session blocking main thread, UI freezes):

Foundation Models + data (@Generable decoding errors, structured output issues):

Routing Logic

Foundation Models Work

Implementation patterns → /skill axiom-foundation-models

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

Diagnostics → /skill axiom-foundation-models-diag

Decision Tree

  1. Custom ML model / CoreML / PyTorch conversion? → Route to ios-ml (not this router)
  2. Computer vision / image analysis / OCR? → Route to ios-vision (not this router)
  3. Cloud AI API integration? → Route to ios-networking (not this router)
  4. Implementing Foundation Models / @Generable / Tool protocol? → foundation-models
  5. Need API reference / code examples? → foundation-models-ref
  6. Debugging AI issues (blocked, slow, guardrails)? → foundation-models-diag
  7. Foundation Models + UI freezing? → foundation-models (async patterns) + also invoke ios-concurrency if needed

Anti-Rationalization

| Thought | Reality |

|---------|---------|

| "Foundation Models is just LanguageModelSession" | Foundation Models has @Generable, Tool protocol, streaming, and guardrails. foundation-models covers all. |

| "I'll figure out the AI patterns as I go" | AI APIs have specific error handling and fallback requirements. foundation-models prevents runtime failures. |

| "I've used LLMs before, this is similar" | Apple's on-device models have unique constraints (guardrails, context limits). foundation-models is Apple-specific. |

Critical Patterns

foundation-models:

foundation-models-diag:

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

User: "I want to add AI to my app"

→ First ask: Apple Intelligence (Foundation Models) or custom ML model? Route accordingly.

User: "My Foundation Models session is blocking the UI"

→ Invoke: /skill axiom-foundation-models (async patterns) + also invoke ios-concurrency if needed

User: "I want to run my PyTorch model on device"

→ Route to: ios-ml router (CoreML conversion, not Foundation Models)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.