Skills — SKILL.md support (coming in the next minor release)
Unreleased
This feature is merged but not released. It will ship in the next minor release of
@stewmore/expo-ai-core. It is not in 0.8.0.
You can now write reusable instructions as SKILL.md files, compile them at build time,
and pass them to any generation call.
What's coming
SKILL.mdfiles in the open Agent Skills layout: one folder per skill, YAML frontmatter, and a markdown body. Supported keys arename,description,version,mode,allowsDeactivation,requiredTools,providers, andmaxTokens. The parser ignores unknown keys. See SKILL.md format.- The
expo-ai-skills buildCLI. It is included in@stewmore/expo-ai-core. The CLI parses and lints a folder of skills and writes a content-hashedskills.manifest.jsonthat your app bundles. The runtime reads no files on the device. See build the manifest. - A
skillsoption ongenerate,stream,generateObject,generateObjectWithMeta,streamObject, andcreateSession.instructionsskills are always on. - On-demand activation of
promptskills: the model sees only a catalog and loads a skill's body when it needs it. On Apple (iOS 26+, on-device and PCC) this is native, anactivate_skillFoundation Models tool. On Android and cloud the runtime emulates it, including in sessions and streams. See on-demand activation. - A per-skill
providersfilter. If a fallback changes the provider, the runtime selects the skills again for the new provider. result.skillslists the skills that were applied or loaded for each generation.- Programmatic API:
parseSkill,lintSkill, andbuildSkillManifest.
Not yet
Turning a loaded skill off (allowsDeactivation), the iOS 27 Foundation Models Skills
API, requiredTools validation, and signed remote manifests are not in this release. See
the roadmap.
Read the full guide: Skills.