Skip to main content
Back to registry

foundation-models-on-device

affaan-m/everything-claude-code

Patterns for integrating Apple's on-device language model into apps using the FoundationModels framework. Covers text generation, structured output with @Generable , custom tool calling, and snapshot streaming — all running on-device for privacy and offline support.

Installs476
Install command
npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Patterns for integrating Apple's on-device language model into apps using the FoundationModels framework. Covers text generation, structured output with @Generable , custom tool calling, and snapshot streaming — all running on-device for privacy and offline support. Always check model availability before creating a session: Key points for instructions: Generate structured Swift types instead of raw strings: Let the model invoke custom code for domain-specific tasks: Stream structured responses for real-time UI with PartiallyGenerated types: - Building AI-powered features using Apple Intelligence on-device - Generating or summarizing text without cloud dependency - Extracting structured data from natural language input - Implementing custom tool calling for domain-specific AI actions - Streaming structured responses for real-time UI updates - Need privacy-preserving AI (no data leaves the device) - Define the model's role ("You are a mentor") - Specify what to do ("Help extract calendar events") - Set style preferences ("Respond as briefly as possible") - Add safety measures ("Respond with 'I can't help with that' for dangerous requests") - .range(0...20) — numeric range - .count(3) — array element count - description: — semantic guidance for generation - Always check model.availability before creating a session — handle all unavailability cases - Use instructions to guide...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does foundation-models-on-device do?

Patterns for integrating Apple's on-device language model into apps using the FoundationModels framework. Covers text generation, structured output with @Generable , custom tool calling, and snapshot streaming — all running on-device for privacy and offline support.

Is foundation-models-on-device good?

foundation-models-on-device does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does foundation-models-on-device work with?

foundation-models-on-device currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, amp.

What are alternatives to foundation-models-on-device?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install foundation-models-on-device?

npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device

Related skills

More from affaan-m/everything-claude-code

Related skills

Alternatives in Software Engineering