Apple FoundationModels framework for on-device LLM — text generation, guided generation with @Generable, tool calling, and snapshot streaming in iOS 26+. Use when adding on-device LLM features with Apple FoundationModels on iOS 26+.
Install
npx skills add affaan-m/ECC --skill foundation-models-on-devicenpx skills add affaan-m/ECC --skill foundation-models-on-device -a claude-code -gnpx skills add affaan-m/ECC --skill foundation-models-on-device -a codex -ggemini skills install https://github.com/affaan-m/ECC.git --path docs/zh-CN/skills/foundation-models-on-devicegh skill install affaan-m/ECC foundation-models-on-devicegit clone --depth 1 https://github.com/affaan-m/ECC /tmp/affaan-m__ECC
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/affaan-m__ECC/docs/zh-CN/skills/foundation-models-on-device ~/.claude/skills/foundation-models-on-device # Claude Code
cp -R /tmp/affaan-m__ECC/docs/zh-CN/skills/foundation-models-on-device ~/.agents/skills/foundation-models-on-device # Codex, Cursor, Gemini CLI, Copilot, OpenCode