Brief in AI engineering
Agent Skills format and skill folders
States the skill discovery index rules, the folders agents scan for skills, and per-agent listing limits.
- Changed 4 Dec 2026
- Sources read 4 Dec 2026
- 6 sources
- Version 1
- About 1,250 tokens
- Needed by the small model tested, 4 Dec 2026
A skill is a folder holding SKILL.md: YAML frontmatter with name and description, then Markdown instructions. Agents differ in folders and listing budgets. Codex, Gemini CLI and Grok Build read .agents/skills/; Claude Code documents only .claude/skills/ folders.
Facts
| Subject | Setting | Value |
|---|---|---|
| Spec validator | Command that checks a skill folder | skills-ref validate ./my-skill [1] |
| Discovery index (draft RFC 0.2.0) | Index location | /.well-known/agent-skills/index.json [2] |
| Discovery index | Location in draft version 0.1.0 | /.well-known/skills/ [2] |
| Discovery index | Required top-level field $schema |
https://schemas.agentskills.io/discovery/0.2.0/schema.json [2] |
| Discovery index | Required top-level field skills |
An array of skill entries [2] |
| Discovery index | Required fields of each entry | name, type, description, url, digest [2] |
| Discovery index | Allowed type values |
skill-md (one SKILL.md file) or archive [2] |
| Discovery index | digest format |
sha256: followed by 64 lowercase hexadecimal characters [2] |
| Discovery index | Client duty on download | Must verify the file against its digest [2] |
| Discovery index | Archive formats clients must support | .tar.gz and .zip [2] |
| Discovery index | Archive layout | SKILL.md at the archive root, no wrapper folder [2] |
| Claude Code | name field |
Optional; defaults to the folder name [3] |
| Claude Code | description plus when_to_use in the listing |
Cut at 1,536 characters [3] |
| Claude Code | Budget of the skill listing | 1% of the model's context window [3] |
| Claude Code | Each skill kept after compaction | First 5,000 tokens [3] |
| Claude Code | All skills kept after compaction | 25,000 tokens combined [3] |
| OpenAI Codex | Default budget of the initial skill list | At most 2% of the model's context window [4] |
| OpenAI Codex | Budget when the context window is unknown | 8,000 characters [4] |
| OpenAI Codex | Setting that changes the budget | skills.max_context_tokens, up to 10,000 tokens [4] |
| OpenAI Codex | Optional file agents/openai.yaml |
Sets UI metadata, invocation policy and tool dependencies [4] |
| Gemini CLI | Project skill folders | .gemini/skills/ or .agents/skills/ [5] |
| Gemini CLI | User skill folders | ~/.gemini/skills/ or ~/.agents/skills/ [5] |
| Gemini CLI | Same skill name in user and workspace folders | The workspace skill wins [5] |
| Gemini CLI | .agents/skills/ and .gemini/skills/ in the same tier |
.agents/skills/ wins [5] |
| Gemini CLI | How a skill is activated | The model calls the activate_skill tool [5] |
| Gemini CLI | Before activation | The user sees a confirmation prompt [5] |
| Grok Build Agents Window | Project skill folders | .agents/skills/, .cursor/skills/, .claude/skills/, .codex/skills/ [6] |
| Grok Build Agents Window | User skill folders | ~/.agents/skills/, ~/.cursor/skills/, ~/.claude/skills/, ~/.codex/skills/ [6] |
| Grok Build | Folder read by both Agents Window and Terminal UI | Only ~/.agents/skills/ [6] |
Use it for
- Publishing skills on a website with a valid discovery index.
- Choosing a folder that several agents read, such as
.agents/skills/. - Predicting when a long skill description or many skills get cut from the listing.
- It does not cover per-agent extra frontmatter fields beyond those listed.
Sources
- [1] Specification, Agent Skills (agentskills.io)read 4 Dec 2026
- [2] Agent Skills Discovery via Well-Known URIs, Cloudflareread 4 Dec 2026
- [3] Extend Claude with skills, Anthropicread 4 Dec 2026
- [4] Build skills, OpenAIread 4 Dec 2026
- [5] Agent Skills, Google (Gemini CLI)read 4 Dec 2026
- [6] Agent skills, Grok Buildread 4 Dec 2026
Pairs with
- agent-config-reviewSkill
Tested
Tested 4 Dec 2026: claude-haiku-5-5 stated 0 of its 29 facts without this page and 29 with it; claude-fable-5-2 stated 7 of its 29 facts without this page and 19 with it.
Changes
- Opened on mysi.4 Dec 2026
Cite as: mysi, Agent Skills format and skill folders, mysi.dev/agent-skills-format, version 1, changed 2026-12-04. Text and data CC BY 4.0.