Tooluck logoTooluck
SKILL.md

foundation-models

Agent skill fromrshankras/claude-code-apple-skills

On-device LLM integration using Apple's Foundation Models framework. Use when implementing AI text generation, structured output, or tool calling.

How to install foundation-models

install foundation-models
# install the claude-code-apple-skills pack with the skills CLI
npx skills add rshankras/claude-code-apple-skills

# or add only this skill to Claude Code: copy the folder

skills/apple-intelligence/foundation-models/

# into

~/.claude/skills/foundation-models/ (all projects)

.claude/skills/foundation-models/ (one project)

skills/apple-intelligence/foundation-models/SKILL.md

MITFull file
1# Foundation Models
2
3Integrate Apple's on-device LLM into your apps for privacy-preserving AI features. Companion references: **safety-and-guardrails.md** (model limits, prompt design, the four-layer safety stack), **models-and-agents.md** (Private Cloud Compute, `LanguageModel` protocol, vision input, `DynamicProfile` agentic sessions — the iOS 27 wave), and **utilities-package.md** (Apple's open-source utilities package: OpenAI-compatible endpoints, just-in-time Skills, history compression).
4
5## When This Skill Activates
6
7- User wants AI text generation features
8- User needs structured data from natural language
9- User asks about prompting or LLM integration
10- User wants to implement AI assistants or agentic features (tool loops, multi-profile sessions)
11- User needs content summarization or extraction
12- User asks about Private Cloud Compute, guardrails, or model safety
13
14## Model Fit — Check Before Building
15
16The on-device model is ~3B parameters (2-bit quantized): built for **summarization, extraction, classification, tagging, revision, short chat** — not math, code generation, facts, or world knowledge (WWDC25 248). For capability boundaries, prompt-design rules, and the safety stack, read `safety-and-guardrails.md` first. For anything bigger, `PrivateCloudComputeLanguageModel` (32k context, reasoning) and third-party backends are in `models-and-agents.md`.
17
18## Quick Start
19
20### 1. Check Availability
21
22```swift
23import FoundationModels
24
25struct IntelligentView: View {
26…

Excerpt shown under the repository's MIT license.

More skills in claude-code-apple-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates