🧠
AI EngineeringJavaScript

Foundation Models On-Device

by xu-xiang

Foundation Models On-Device is an AI Engineering skill for Claude Code, published by xu-xiang in everything-claude-code-zh.

1.9K stars307 forkson xu-xiang/everything-claude-code-zhAdded 2026/08/18+1% in starsRepository updated 2026/03/05
ai-agentsanthropicclaudeclaude-codedeveloper-toolseverything-claude-codellmmcponeskillproductivity
Install in seconds
Install Foundation Models On-Device
Copy Foundation Models On-Device into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/xu-xiang/everything-claude-code-zh/tree/main/skills/foundation-models-on-device ~/.claude/skills/foundation-models-on-device

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/xu-xiang/everything-claude-code-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/foundation-models-on-device/SKILL.md in xu-xiang/everything-claude-code-zh
Installs to
~/.claude/skills/foundation-models-on-device
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering2451 skills

What Foundation Models On-Device does

Foundation Models On-Device integrates Apple's FoundationModels framework for on-device generative AI on iOS 26. It covers text generation, @Generable structured output, custom tool calls, and snapshot streaming for privacy-sensitive or offline features.

Foundation Models On-Device is cataloged under AI Engineering on DirSkills. Foundation Models On-Device comes from a repository tagged ai-agents, anthropic, claude, claude-code and developer-tools.

Documentation

README

FoundationModels:设备端大语言模型 (iOS 26)

使用 FoundationModels 框架将 Apple 的设备端语言模型集成到应用中的模式。涵盖文本生成、使用 @Generable 的结构化输出、自定义工具调用以及快照流式传输 —— 全部在设备端运行,以支持隐私保护和离线使用。

何时激活

  • 使用 Apple Intelligence 在设备端构建 AI 驱动的功能
  • 在不依赖云端的情况下生成或总结文本
  • 从自然语言输入中提取结构化数据
  • 为特定领域的 AI 操作实现自定义工具调用
  • 流式传输结构化响应以实现实时 UI 更新
  • 需要隐私保护的 AI(数据不离开设备)

核心模式 —— 可用性检查

在创建会话(Session)之前,请务必检查模型的可用性:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Foundation Models On-Device

  • What else does xu-xiang publish alongside Foundation Models On-Device?

    Foundation Models On-Device is one of 25 skills that DirSkills catalogs from xu-xiang/everything-claude-code-zh, the repository it ships in. Its siblings there include API Design Patterns, Article Writing and Autonomous Loops. Each one is a separate skill with its own page in this directory, installs the same way Foundation Models On-Device does, and is maintained by xu-xiang in that same repository. The rest of the collection is listed on the xu-xiang/everything-claude-code-zh page.

  • How does Foundation Models On-Device compare to other AI Engineering skills?

    Foundation Models On-Device ranks #915 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Foundation Models On-Device against them. Open each page to compare what they document and how they install.

More from xu-xiang/everything-claude-code-zh

Foundation Models On-Device is one of 25 skills cataloged on DirSkills from xu-xiang/everything-claude-code-zh.

See all 25 skills
📐
2w ago

API Design Patterns

API Design Patterns provides conventions and best practices for designing consistent, developer-friendly REST APIs, including resource naming, HTTP status codes, pagination, filtering, error responses, versioning, and rate limiting.
DevOps
1.9K307
✍️
2w ago

Article Writing

Article Writing drafts long-form content such as articles, guides, tutorials, and newsletters in a specific voice captured from examples or brand guidelines. Use it when you need polished copy longer than a paragraph with consistent tone, structure, and credibility.
Writing
1.9K307
🔁
2w ago

Autonomous Loops

Autonomous Loops provides patterns and architectures for running Claude Code without human intervention, from simple claude -p pipelines to RFC-driven multi-agent DAG orchestration. Use it to set up autonomous development workflows, CI/CD pipelines, parallel agents, and quality gates.
Automation
1.9K307
⚙️
2w ago

Backend Patterns

Backend Patterns provides architectural patterns and best practices for building scalable server-side applications, covering REST API design, repository/service layers, database optimization, caching, and error handling. Use it when implementing Node.js, Express, or Next.js API routes.
DevOps
1.9K307
🛠️
2w ago

C++ Coding Standards

C++ Coding Standards provides a set of rules and best practices based on the C++ Core Guidelines for writing modern, safe, and idiomatic C++ code. Use it when writing, reviewing, or refactoring C++ code to enforce type safety, resource safety, immutability, and clarity.
Quality
1.9K307
🧪
2w ago

C++ Testing

C++ Testing guides writing and debugging C++17/20 tests with GoogleTest/Mock, CMake/CTest, coverage, and sanitizers. Use it when creating or fixing C++ tests, configuring CI test gates, or diagnosing flaky failures.
Quality
1.9K307