apple-foundation-models-skill

apple-foundation-models-skill is a skill for Claude Code from alessiorubicini/Apple-Foundation-Models-Agent-Skill. It costs 89 tokens per session (1,057 once invoked), scanned A, original, MIT.

A reference guide for Apple’s FoundationModels framework, the software interface used to add Apple’s on-device language-model features to iOS and macOS apps.

In plain words
What is it for?
Use it when building features such as generated text, structured results, tool calls, streaming responses, image attachments, or multi-step AI agents in Apple apps.
Why use it?
It helps developers find the relevant API guidance before writing or reviewing code, including guidance for newer beta APIs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the apple-foundation-models plugin — 2 skills shipped together

Good fit Use it when building features such as generated text, structured results, tool calls, streaming responses, image attachments, or multi-step AI agents in Apple apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alessiorubicini/Apple-Foundation-Models-Agent-Skill --skill apple-foundation-models-skill
Clone the repo
git clone --depth 1 https://github.com/alessiorubicini/Apple-Foundation-Models-Agent-Skill

Made for: Claude Code.

Or install apple-foundation-models, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apple-foundation-models-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill/github.svg)](https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill)
Your own site
<a href="https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill"><img src="https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apple-foundation-models-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill"><img src="https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/apple-foundation-models-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.01057
Opus 5 $0.00044 $0.00528
Sonnet 5 $0.00018 $0.00211
Haiku 4.5 $0.00009 $0.00106

Measured 11d ago against content hash bb36d612928c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

apple-foundation-models-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apple-foundation-models-skill/SKILL.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Apple Foundation Models Skill

This skill acts as a router. When handling tasks or queries related to Apple's FoundationModels framework, identify the relevant topic below and load the corresponding reference file before performing any code generation or analysis.

Topic Router

Topic / API Surface Target Reference
All References Index references/_index.md
Model Access & Availability system-language-model.md
Session & Transcript Lifecycle session-lifecycle.md
Structured Output (@Generable) guided-generation.md
Tool Calling & Capabilities tool-calling.md
Sampling & Options generation-options.md
Streaming UI & Responses streaming.md
Error Handling & Overflow error-handling.md
Swift Concurrency & Actor Isolation concurrency.md
Performance & Prewarming performance.md
Prompt Engineering & Strategy prompting-techniques.md
Prompt Attachments (Images) prompt-attachments.md
Dynamic Profiles & Policies dynamic-profiles.md
Session Properties session-properties.md
Private Cloud Compute (PCC) private-cloud-compute.md
Custom Language Model Providers custom-language-model-provider.md
Framework Glossary glossary.md

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 39 lines · 89 tokens per session scan A bb36d612928c

Subscribe to this mod's changes

apple-foundation-models-skill is a skill published in the GitHub repository alessiorubicini/Apple-Foundation-Models-Agent-Skill (13 stars, last pushed 2mo ago), licensed MIT. It adds 89 tokens to every session and 1,057 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.