update-foundation-models-apis

update-foundation-models-apis is a skill for Claude Code from alessiorubicini/Apple-Foundation-Models-Agent-Skill. It costs 90 tokens per session (703 once invoked), scanned A, original, MIT.

A maintenance tool that re-crawls Apple’s Foundation Models documentation and rebuilds a local catalogue of its programming symbols, platform versions, and deprecations.

In plain words
What is it for?
Use it to refresh Foundation Models API references, check changes in iOS 26 point releases, and find newly deprecated symbols. It requires network and repository write access.
Why use it?
It keeps the local reference accurate after a new iOS or Xcode release, so developers do not have to compare Apple’s documentation by hand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the apple-foundation-models plugin — 2 skills shipped together

Good fit Use it to refresh Foundation Models API references, check changes in iOS 26 point releases, and find newly deprecated symbols. It requires network and repository write access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alessiorubicini/Apple-Foundation-Models-Agent-Skill --skill update-foundation-models-apis
Clone the repo
git clone --depth 1 https://github.com/alessiorubicini/Apple-Foundation-Models-Agent-Skill

Made for: Claude Code.

Or install apple-foundation-models, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-foundation-models-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis/github.svg)](https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis)
Your own site
<a href="https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis"><img src="https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-foundation-models-apis

Your own site · 80×15
<a href="https://agentmods.dev/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis"><img src="https://agentmods.dev/badge/skills/alessiorubicini/apple-foundation-models-agent-skill/update-foundation-models-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.00703
Opus 5 $0.00045 $0.00351
Sonnet 5 $0.00018 $0.00141
Haiku 4.5 $0.00009 $0.00070

Measured 11d ago against content hash 81f7a0977bd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

update-foundation-models-apis scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

If Sosumi is unavailable, raw `curl` + JSON parse is sufficient per step 1.
.agents/skills/update-foundation-models-apis/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Update Foundation Models API reference

Regenerate the local symbol catalog and 26.x delta notes for this repository’s apple-foundation-models-skill/references/.

Prerequisites

  • Network access to https://developer.apple.com/tutorials/data/documentation/
  • Write access to this repo

Optional: Sosumi MCP (same tool names as SwiftUI maintenance skill) for interactive search—mirrors .agents/skills/update-foundation-models-apis/references/scan-manifest.md.

Workflow

1. BFS crawl foundationmodels.json

Seed queue with /documentation/foundationmodels.json.

For each downloaded JSON:

  • Parse references object.
  • For every value with "url" starting /documentation/foundationmodels, enqueue ${url}.json if not yet fetched.
  • Persist JSON files under a local cache directory (e.g. _extract/, gitignored).

2. Rebuild symbol-index.md

Emit a markdown table:

  • Columns: Path, Kind (symbolKind / article kind), Min platform (platforms[0].introducedAt when present), Title.

Sort paths lexicographically.

3. Fetch release notes

Required URL: https://developer.apple.com/documentation/Updates/FoundationModels

Summarize new bullets into references/ios-26-4-release-notes-and-pending.md (or add a new ios-26-5-… file if Apple publishes a new section).

4. Pending-symbol audit

Given a candidate list (e.g. FoundationModelAgent, LatentMemory, ModelConfiguration, user-reported betas):

  • Grep the crawled JSON corpus for exact symbol strings.
  • If absent: mark Documentation pending in the pending matrix—never invent signatures.

5. Spot-check high-traffic types

Manually re-fetch markdown or JSON for:

  • LanguageModelSession
  • SystemLanguageModel
  • Generable
  • Tool
  • LanguageModelSession/GenerationError

Verify no signature drift against man-pages; update reference files if fragments changed.

6. Commit

  • Branch: update/foundation-models-apis-YYYY-MM
  • Files: apple-foundation-models-skill/references/symbol-index.md, delta markdown, any corrected man-pages.
  • PR description lists new paths count and removed paths count vs. previous crawl.

Read the full file on GitHub · 77 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 77 lines · 90 tokens per session scan A 81f7a0977bd6

Subscribe to this mod's changes

update-foundation-models-apis is a skill published in the GitHub repository alessiorubicini/Apple-Foundation-Models-Agent-Skill (13 stars, last pushed 2mo ago), licensed MIT. It adds 90 tokens to every session and 703 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.