CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

foundation-models-on-device

Apple FoundationModels framework for on-device LLM — text generation, guided generation with @Generable, tool calling, and snapshot streaming in iOS 26+.

Quality

80%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/foundation-models-on-device/SKILL.md

The canonical home for this skill is foundation-models-on-device in affaan-m/ECC

SKILL.md
Quality
Evals
Security

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An excellent API-pattern reference: every code example is executable and specific to FoundationModels, with a well-organized availability-first structure. The main cost is token redundancy — duplicate trigger sections, generic prompt-writing guidance, and the same constraints restated across three sections — plus a missed opportunity to split the longer SwiftUI material into a reference file.

Suggestions

Merge the near-duplicate 'When to Activate' and 'When to Use' sections into one trigger section, saving ~10 lines.

Delete the 'Key points for instructions' list (generic prompt-writing Claude already knows) and deduplicate the .content-vs-.output, 4,096-token, and availability points that currently appear across the Key Design Decisions table, Best Practices, and Anti-Patterns.

Move the SwiftUI streaming integration example into a references/ file (e.g. references/streaming-ui.md) linked from the main body, keeping SKILL.md as the lean overview.

DimensionReasoningScore

Conciseness

Most of the file is FoundationModels-specific API code Claude does not know and every example earns its place, but it could be tightened in several places: 'Key points for instructions' re-teaches generic prompt-writing, 'When to Activate' and 'When to Use' are near-duplicate sections, and the .content-vs-.output, 4,096-token, and availability points each repeat 2–3 times across the Key Design Decisions table, Best Practices, and Anti-Patterns. Not 4: the tightening opportunities span multiple sections, exceeding 'minor instances'.

3 / 5

Actionability

Every section contains complete, executable Swift: the availability switch, session creation with instructions, @Generable structs with @Guide constraints, a full Tool conformance with error handling, and streamResponse with SwiftUI .task integration. Not 4: there are no gaps — the code covers the common cases copy-paste ready.

5 / 5

Workflow Clarity

Each pattern is clearly numbered (e.g. '1. Define a Generable Type / 2. Request Structured Output') with an explicit upfront checkpoint ('Always check model availability before creating a session') and do/catch error handling shown for tools and streaming. Not 5: it is a pattern catalog rather than a single end-to-end workflow with explicit validate-fix-retry feedback loops; not 3: checkpoints and error recovery are present, not merely implied.

4 / 5

Progressive Disclosure

No bundle files exist, and the single SKILL.md is cleanly sectioned with consistent headers and no nested references — appropriate for a mid-sized skill. Not 5: at ~240 lines, material such as the SwiftUI streaming integration could arguably live in a references/ file, so the split is good but not optimal.

4 / 5

Total

16

/

20

Passed

Description

75%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, distinctive description that names the framework and its four concrete capabilities with a platform constraint. Its one real weakness is the missing 'when to use' trigger clause and the absent 'Apple Intelligence' synonym, which leave completeness and trigger coverage short of the best examples.

Suggestions

Add an explicit 'Use when...' clause (e.g. 'Use when building Apple Intelligence on-device features, extracting structured data from natural language, or streaming model output in SwiftUI') to lift the completeness cap.

Include the 'Apple Intelligence' synonym and natural trigger phrases like 'structured output' or 'LLM in my app' so users searching with consumer terminology match this skill.

DimensionReasoningScore

Specificity

Lists four concrete capabilities — 'text generation, guided generation with @Generable, tool calling, and snapshot streaming' — which comprehensively covers the body's core patterns. Not 4: no meaningful capability gaps; availability checking is a prerequisite rather than a capability.

5 / 5

Completeness

The 'what' is clear and concrete, but there is no 'Use when...' clause or equivalent explicit trigger guidance, which caps this dimension at 3. Not 4: the 'when' is not even weakly present in the description text.

3 / 5

Trigger Term Quality

'FoundationModels', 'on-device LLM', 'tool calling', and 'iOS 26+' are natural user phrasings, but the synonym 'Apple Intelligence' (the term users most commonly use) is missing. Not 3: keyword coverage goes well beyond generic level; not 5: a common natural variation is absent.

4 / 5

Distinctiveness Conflict Risk

'Apple FoundationModels', '@Generable', and 'iOS 26+' define a clear niche with distinct triggers; no other skill would plausibly claim these terms. Not 4: there is no overlap risk with even closely related skills.

5 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

valeriibeck-star/claude-skills

Path

skills/foundation-models-on-device/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.