axiom-foundation-models

Integrate on-device AI with Apple's Foundation Models framework using @Generable types.

61|3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/joelhooks/joelclaw --skill axiom-foundation-models
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: axiom-foundation-models
Source: https://github.com/joelhooks/joelclaw/tree/main/.agents/skills/axiom-foundation-models
Command: npx skills add https://github.com/joelhooks/joelclaw --skill axiom-foundation-models

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to integrate powerful on-device AI features using Apple's Foundation Models framework, preventing common pitfalls like context overflow, UI blocking, incorrect model usage, and manual data parsing.

Core Features & Use Cases

  • On-Device AI Implementation: Seamlessly add AI capabilities like text summarization, classification, and extraction directly on Apple devices.
  • Structured Output: Generate data in predefined Swift types using the @Generable macro, ensuring type safety and eliminating manual JSON parsing errors.
  • Tool Calling: Integrate external data sources by allowing the model to autonomously call defined tools for real-time information.
  • Streaming: Improve user experience for longer generations by displaying results incrementally.
  • Error Handling & Safety: Provides robust error handling for context overflow, guardrail violations, and unsupported languages, along with guidance on avoiding anti-patterns.

Quick Start

Use the axiom-foundation-models skill to generate a structured Person object with a name and age.

Frequently Asked Questions about axiom-foundation-models

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

FAQPage Schema
How do I generate structured data with Apple's Foundation Models framework in Swift?▼

To generate structured data with Apple's Foundation Models framework, use the `@Generable` macro to define Swift types. This ensures type safety and eliminates manual JSON parsing errors when extracting information on-device.

What is the best way to prevent UI blocking during on-device AI text summarization on iOS?▼

The best way to prevent UI blocking during on-device AI text summarization is to use streaming capabilities. This displays text generation results incrementally, improving user experience for longer outputs without freezing the interface.

Can I use Foundation Models for tool calling to fetch external data on Apple platforms?▼

Yes, you can use Foundation Models for tool calling on Apple platforms. The framework allows the model to autonomously call defined tools to integrate external data sources for real-time information retrieval during generation.

Does on-device AI with Foundation Models work offline and ensure user privacy?▼

On-device AI with Foundation Models works offline and ensures privacy by processing data locally. This approach provides cost-effective functionality compared to cloud-based LLMs while maintaining offline capability.

How do I handle context overflow and guardrail violations in Apple Foundation Models?▼

To handle context overflow and guardrail violations in Apple Foundation Models, implement robust error handling. This addresses unsupported languages and context limits, preventing incorrect model usage and application crashes.

Why should I use on-device AI instead of cloud-based LLMs for text classification in Swift?▼

You should use on-device AI for text classification in Swift to ensure privacy, enable offline functionality, and reduce costs. It processes data locally without cloud-based LLMs, making it ideal for secure environments.