·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