Agent Skills
Agent Skills is an open format, published at agentskills.io and developed in the agentskills/agentskills GitHub repository, for giving agents task-specific instructions and resources. A skill is a folder with a SKILL.md file (YAML frontmatter plus Markdown) and optional bundled files. With this skill the agent writes and reviews skills that follow the specification, validates them with skills-ref, and implements skill discovery and loading in a client.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: skill author (writes or edits a skill), reviewer (checks one against the spec), or client implementer (adds skills support to an agent or tool).
- Target version: Agent Skills spec 2026-08-04 (default and only line). The specification is unversioned, so the line is pinned by the date and commit of the specification page. No preview exists. See
references/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the commit history of
docs/specification.mdxin the GitHub repository for a newer commit, and update the pins. - Skill purpose: the task the skill teaches, the user phrases that should trigger it, and the near-miss phrases that should not.
- Environment needs: tools, packages, runtimes or network access the skill's instructions rely on (for
compatibility). - Client environment (client role only): local filesystem or sandboxed/cloud, and whether the model can read files or needs a dedicated activation tool.
Invariants
- A skill is a directory with a
SKILL.md(spec, Directory structure). Everything else in the folder is optional, and any extra files or directories are allowed (spec, Optional directories). SKILL.mdis YAML frontmatter followed by Markdown (spec,SKILL.mdformat). The frontmatter sits between---delimiters at the start of the file (client guide, Step 2).nameis required and strict. 1 to 64 characters; only lowercasea-z,0-9and-; no leading or trailing hyphen; no--; equal to the parent directory name (spec,namefield).descriptionis required. 1 to 1024 characters, non-empty, and says both what the skill does and when to use it, with keywords that help agents match tasks (spec,descriptionfield). Clients skip a skill whose description is missing (client guide, Lenient validation).- Only the six defined fields. The spec defines
name,description,license,compatibility,metadataandallowed-tools(spec, Frontmatter).skills-refrejects any other top-level key (validator.py,ALLOWED_FIELDS). Extra properties go inmetadata(spec,metadatafield). compatibilityis 1 to 500 characters when present, and only used for real environment requirements (spec,compatibilityfield).metadatamaps string keys to string values; pick reasonably unique key names (spec,metadatafield). Quote values such as"1.0"so they stay strings.allowed-toolsis a space-separated string and is experimental; support varies by client (spec,allowed-toolsfield).- File references are relative to the skill root and one level deep from
SKILL.md; avoid nested reference chains (spec, File references). - Progressive disclosure budget. Name and description load at startup for every skill (~100 tokens); the full body loads on activation (< 5000 tokens recommended); resources load only when needed. Keep
SKILL.mdunder 500 lines (spec, Progressive disclosure).
Workflow
- Pick the version. Use the Agent Skills spec 2026-08-04 line and note the pinned commit.
->
references/versions.md✓ The target line and commit are recorded. - Scope and name the skill. One coherent unit of work, neither so narrow that several skills must load for one task nor so broad it cannot activate precisely (best practices, Design coherent units). Pick a
namethat satisfies invariant 3 and create the folder with that exact name. ->references/format.md✓ The folder name equalsname, andnamepasses every rule in thenamefield section. - Write the frontmatter.
name,description, then only the optional fields you need. Quote or block-scalar any value containing:(client guide, Handling malformed YAML). ->references/format.md✓ The frontmatter parses as YAML, has no extra top-level keys, and every length limit holds. - Write the description for triggering. Imperative ("Use this skill when…"), user intent over implementation, explicit contexts including ones where the user does not name the domain, at most 1024 characters (optimizing descriptions, Writing effective descriptions).
->
references/authoring-and-validation.md✓ It states what the skill does and when to use it, and it is under 1024 characters. - Write the body. Add what the agent lacks and cut what it already knows; give defaults instead of menus; add gotchas, templates, checklists and validation loops where they fit (best practices).
->
references/authoring-and-validation.md✓ Every instruction would change the agent's behaviour if removed. - Split for progressive disclosure. Move long material to
references/, executable code toscripts/, templates and data toassets/, and say in the body when to load each file (best practices, Structure large skills with progressive disclosure). ->references/progressive-disclosure.md✓SKILL.mdis under 500 lines, and every bundled file is referenced by a relative path one level deep with a load condition. - Bundle scripts for agents (when the skill runs code). No interactive prompts,
--help, clear errors, structured stdout and diagnostics on stderr, pinned dependencies (using scripts). ->references/authoring-and-validation.md✓ Each script runs non-interactively from the skill root with a single documented command. - Validate. Run
skills-ref validate path/to/skill, then check what it does not: body length, references, and description triggering against should-trigger and near-miss prompts. ->references/authoring-and-validation.md✓skills-ref validateprintsValid skill:and exits 0, and trigger evals pass. - Integrate in a client (client role only). Discover, parse leniently, disclose a catalog, activate on demand, protect activated content from compaction.
->
references/client-integration.md✓ A test skill appears in the catalog, activates from a matching task, and its resources load only when referenced. - Upgrade (only when asked). Re-read the specification at its latest commit, apply the changes listed in the upgrade section, and re-validate.
->
references/versions.md✓ The skill validates against the new revision and behaves the same.
Verify before done
- The folder contains
SKILL.md, and the folder name equalsname(spec,namefield). -
namematches^[a-z0-9]+(-[a-z0-9]+)*$and is at most 64 characters. -
descriptionis 1 to 1024 characters and says what and when. -
compatibility, if present, is at most 500 characters;metadatavalues are strings;allowed-toolsis one space-separated string. - No frontmatter keys beyond the six defined fields.
-
SKILL.mdis under 500 lines; bundled files are referenced by relative path, one level deep, with a load condition. -
skills-ref validatepasses. - For clients: project-level skills override user-level ones on a name collision, and untrusted project skills are gated (client guide, Step 1).
Reference index
references/versions.md: the single spec line, how it is pinned, its history, how to refresh the pin, and open spec proposals to watch. Load for steps 1 and 10.references/format.md: folder layout, every frontmatter field with its constraints and examples, body content, optional directories and file references. Load for steps 2 and 3.references/progressive-disclosure.md: the three loading tiers, their budgets, and how to split a skill so each tier stays small. Load for step 6.references/authoring-and-validation.md: description and body writing guidance, scripts for agentic use,skills-refinstall and checks, trigger evals, and common mistakes. Load for steps 4, 5, 7 and 8.references/client-integration.md: discovery paths, parsing and lenient validation, the catalog, activation, and context management for clients. Load for step 9.
Related skills
agents-mdfor repository-wide agent instructions inAGENTS.md, which complement task-specific skills:npx skills add ScaleDockHQ/scaledock-skills --skill agents-md.llms-txtfor publishing an/llms.txtindex of documentation for language models:npx skills add ScaleDockHQ/scaledock-skills --skill llms-txt.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- Agent Skills Specification: published, unversioned, commit 217be548739f of
docs/specification.mdx(2026-08-04), checked 2026-10-05. - Agent Skills Overview: published, commit 092659e3ec0e of
docs/home.mdx(2026-04-19), checked 2026-10-05. - How to add skills support to your agent: published guide, commit 22d6aeb3534d (2026-03-10), checked 2026-10-05.
- Best practices for skill creators: published guide, commit b8d2613ac050 (2026-04-19), checked 2026-10-05.
- Optimizing skill descriptions: published guide, commit b8d2613ac050 (2026-04-19), checked 2026-10-05.
- Using scripts in skills: published guide, commit 6102affec88b (2026-02-27), checked 2026-10-05.
- agentskills/agentskills on GitHub: specification and documentation repository,
mainat 69ef37e9424c (2026-08-09), withCONTRIBUTING.md, checked 2026-10-05. - skills-ref reference library: reference library 0.1.0, demonstration only, commit f130f348f502 (2026-08-03), checked 2026-10-05.