·foundation-models-on-device
</>

foundation-models-on-device

用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。

353安装·35热度·@affaan-m

安装

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

如何安装 foundation-models-on-device

通过命令行快速安装 foundation-models-on-device AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:affaan-m/everything-claude-code。

SKILL.md

查看原文

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.

Stream structured responses for real-time UI with PartiallyGenerated types:

| On-device execution | Privacy — no data leaves the device; works offline | | 4,096 token limit | On-device model constraint; chunk large data across sessions | | Snapshot streaming (not deltas) | Structured output friendly; each snapshot is a complete partial state |

用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。 来源:affaan-m/everything-claude-code。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from affaan-m/everything-claude-code

快速解答

什么是 foundation-models-on-device?

用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。 来源:affaan-m/everything-claude-code。

如何安装 foundation-models-on-device?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/affaan-m/everything-claude-code