What a skill is
A folder with aSKILL.md:
SKILL.md is YAML frontmatter followed by instructions:
name+descriptionare always visible to the agent; the body is loaded only when the agent decides the skill is relevant — progressive disclosure that keeps context lean.- Helper files alongside
SKILL.md(checklists, scripts, references) are available when the skill runs.
How it works
When a session starts, the agent’s skills are materialized into its runtime. The model sees each skill’sname + description and invokes one when the task matches, then follows its instructions (and can read its helper files). Skills don’t run on their own — the agent uses them like tools.
Skills are part of the agent’s revision: they’re versioned, rolled back, and activated together with the prompt and model. Changing skills is a deployment.
Add skills
Three ways. Each is a deployment that creates a new immutable revision (your new skills + the agent’s current prompt & model) and activates it — so changing skills is versioned and instantly reversible, never a destructive edit.- Upload a .zip
- Inline in a deployment
- From a repo / CLI
One folder per skill (a top-level In the dashboard, the agent’s Skills panel uploads the same
skills/ wrapper is fine — it’s stripped):.zip. This is a deployment: it creates a new revision (keeping the current prompt + model, replacing the skills) and activates it. The previous skills aren’t lost — roll back anytime by re-activating the earlier revision (one click in the Revisions panel, or oc agent rollback <n>).List & remove
REST API
GET returns each skill with its parsed name/description and file list — handy for showing what an agent currently knows.
Authoring tips
- One skill, one job. A sharp
descriptionis what tells the agent when to use it. - Keep
SKILL.mdinstructions concrete and ordered; move long reference material into helper files the body points to. - Skills are instructions, not code — they shape how the agent works, using the runtime’s own tools.
Limits & availability
- Up to 64 files, 256 KiB total, UTF-8 text, file modes
0644/0755. clauderuntime only today; skills oncodexagents are coming soon.