CtrlK
BlogDocsLog inGet started
Tessl Logo

foundation-models-on-device

Apple FoundationModels 框架,用于设备端大语言模型(LLM)—— iOS 26+ 中的文本生成、配合 @Generable 的引导式生成、工具调用以及快照流式传输。

72

Quality

87%

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

SKILL.md
Quality
Evals
Security

Quality

Content

92%

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

An actionable, well-sequenced, lean body with complete executable examples and clear validation checkpoints; its only weakness is the absence of progressive disclosure, since everything is inline with no reference files to offload detail into.

Suggestions

Move the more extensive patterns (tool calling, snapshot streaming, SwiftUI integration) into reference files such as references/tools.md and references/streaming.md, keeping SKILL.md as an overview with one-level-deep links.

Collapse the near-duplicate '何时激活' and '何时使用' trigger lists into a single section to tighten the body and remove redundancy.

DimensionReasoningScore

Conciseness

The body is lean and code-heavy, focusing on FoundationModels API specifics Claude is unlikely to know (availability states, @Guide constraints, .content vs .output) rather than padding with basics; every section earns its place.

3 / 3

Actionability

Provides complete, executable Swift examples for every core pattern (availability switch, sessions, @Generable, Tool protocol, streaming, SwiftUI integration) that are copy-paste ready rather than pseudocode.

3 / 3

Workflow Clarity

Multi-step patterns are numbered (tool definition → session → error handling; @Generable type → request) with an explicit availability-check checkpoint before session creation and a tool-error feedback loop for recovery.

3 / 3

Progressive Disclosure

Content is well-organized into clear sections but is entirely monolithic — all ~240 lines and detailed API patterns (tools, streaming, SwiftUI) live inline with no external reference files, matching the 'content that should be separate is inline' anchor.

2 / 3

Total

11

/

12

Passed

Description

82%

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 specific, third-person description naming four concrete capabilities and a clear niche, but it omits explicit 'when to use' trigger guidance which caps completeness. Adding a 'Use when...' clause would raise the weakest dimension.

Suggestions

Append an explicit trigger clause such as 'Use when building on-device AI features with Apple Intelligence, generating text offline, or extracting structured data on iOS 26+' to satisfy the 'when' half of completeness.

Add common user phrasings (e.g. 'on-device LLM', 'offline AI', 'Apple Intelligence') to strengthen natural trigger-term coverage beyond the framework-specific jargon.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities — "文本生成", "配合 @Generable 的引导式生成", "工具调用", "快照流式传输" — rather than vague language, matching the 'lists multiple specific concrete actions' anchor.

3 / 3

Completeness

Clearly answers 'what' (framework for on-device LLM with four named capabilities) but lacks any 'Use when...' clause or equivalent explicit trigger guidance, so per the rubric guideline completeness is capped at 2.

2 / 3

Trigger Term Quality

Includes natural terms a user would say (on-device LLM, text generation, tool calling) alongside framework terms, giving good coverage rather than pure jargon.

3 / 3

Distinctiveness Conflict Risk

Scoped to Apple FoundationModels on iOS 26+ with a clear on-device niche, making it unlikely to trigger for or conflict with unrelated skills.

3 / 3

Total

11

/

12

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
xu-xiang/everything-claude-code-zh
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.