rryam/foundationmodelskit/foundation-models-app-builder

Claude Code and agent skill by rryam/foundationmodelskit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Build or modify Apple Foundation Models features in Swift, SwiftUI, iOS, and macOS apps. Use when adding or reviewing LanguageModelSession flows, model availability checks, streaming, GenerationOptions, @Generable structured output, DynamicGenerationSchema, tool calling, RAG, voice input/output, HealthKit-backed AI, multilingual responses, App Intents, reusable capability boundaries, or production error handling.

Install

npx vskill@latest install rryam/foundationmodelskit/foundation-models-app-builder

SKILL.md

Foundation Models App Builder

Use this skill as a self-contained Foundation Models app-building playbook. The recipes live inside this skill so agents can apply the patterns in any Swift app without needing to inspect a particular app repository.

What This Skill Optimizes For

  • Shipping app features, not reciting API docs.
  • Turning Foundation Models into reusable app capabilities with clear Swift types.
  • Keeping model orchestration separate from SwiftUI, App Intents, permissions, and persistence.
  • Choosing the smallest useful pattern: text, structured output, dynamic schema, tool, RAG, voice, or domain-specific integration.
  • Leaving every feature with availability handling, cancellation, recovery, and verification.

Workflow

  1. Identify the feature shape: availability, one-shot text, streaming, structured output, dynamic schema, tool calling, RAG, voice, HealthKit, multilingual, App Intent, or reusable capability extraction.
  2. Load only the reference file for that feature.
  3. Start from the packaged Swift recipe, then adapt naming, UI, permissions, and domain models to the target app.
  4. Keep reusable Foundation Models orchestration out of SwiftUI views when the feature will be shared by app screens, App Intents, CLI commands, widgets, or tests.
  5. Add graceful fallback behavior for unavailable Apple Intelligence, unsupported languages, denied permissions, context-window overflow, rate limits, decoding failures, and guardrail refusals.
  6. Verify with the narrowest build or test command that covers the changed surface.

Reference Routing

  • Reusable app architecture, providers, use cases, SwiftUI adapters: references/architecture.md
  • Availability, sessions, instructions, generation options, streaming, prewarming: references/availability-and-sessions.md
  • Compile-time structured output with `@Generable` and `@Guide`: references/structured-generation.md
  • Runtime schemas with `DynamicGenerationSchema` and `GeneratedContent`: references/dynamic-schemas.md
  • Foundation Models tools and permission-aware app integrations: references/tool-calling.md
  • Retrieval-augmented generation and grounded prompts: references/rag.md
  • Speech recognition, text-to-speech, and voice state machines: references/voice.md
  • App Intents backed by shared Foundation Models capabilities: references/app-intents.md
  • HealthKit-backed AI features and safety wording: references/healthkit.md
  • Supported languages, language selection, and code switching: references/multilingual.md
  • Generation errors, guardrails, retries, and verification checks: references/common-errors.md

Core Rules

  • Use @Generable when the output type is known at compile time.
  • Use DynamicGenerationSchema only when the schema is built at runtime.
  • Create a fresh LanguageModelSession for unrelated one-shot tasks; keep a session only when conversation memory matters.
  • Put permissions and user confirmation at app boundaries, not inside model prompts.
  • Keep streaming UI updates cancellable and main-actor safe.
  • Avoid App Intent-only prompt logic. Shared tasks should be callable from the app UI too.
  • Prefer compact, domain-specific instructions over giant prompts.
  • Do not assume Foundation Models are available; check SystemLanguageModel.default.availability.

Feature Contract

When adding a Foundation Models feature, aim to leave behind these pieces:

  • a Swift type that names the task input
  • a Swift type that names the task output
  • a small generation provider or use case
  • a UI, App Intent, or service adapter that calls the use case
  • a model-unavailable path
  • a cancellation path for streaming or long-running work
  • a user-facing recovery path for generation errors
  • a narrow verification command or manual check

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
159
Repository forks
8
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rryam/foundationmodelskit/foundation-models-app-builder/badge)](https://verified-skill.com/skills/rryam/foundationmodelskit/foundation-models-app-builder)

Something wrong with this skill or its page? Tell us.