Prerequisites
- An agent — see create and configure an agent.
- An access token.
Steps
Get a skill
Create one from inline content:Import one from GitHub by passing
github_url instead of content, upload a
directory with POST /v1/skills/upload, or install one from the catalog with
POST /v1/skills/{skill_id}/install. All four produce the same object; only
source_type differs.Compose skills, if useful
A skill can contain skills, through
POST /v1/skills/{skill_id}/members. Attach
the parent and the agent gets the set. POST /v1/skills/{skill_id}/flatten
resolves a composed skill into its effective content, which is the fastest way
to see what an agent will actually receive.Verify
Read back the agent and confirm the skill ids:Troubleshooting
The agent never activates the skill
The agent never activates the skill
Activation is a model decision. If the skill’s
description does not make
its trigger obvious, the model has nothing to match on — the description is
what appears in the catalog, not the content.The skill's files are missing in the sandbox
The skill's files are missing in the sandbox
Files land in the task workspace at activation, not at attach time. A task
that never activated the skill has no reason to have its files.
Context is exhausted despite progressive disclosure
Context is exhausted despite progressive disclosure
Attaching many skills still costs their catalog entries. Consider the
dynamic context strategy — see
context strategies .Related
Skills
A skill is a folder of files an agent loads only when a task calls for it
Create and configure an agent
Create an agent, bind it to a model instance, and give it instructions and
tools
Registry and catalog
Built-in agents, MCP servers, skills