
If you're writing skills for the agentskills.io spec, this walks you through the constraints: frontmatter rules, token budgets (SKILL.md under 500 tokens soft limit, references under 1000 each), and progressive disclosure patterns. It's clear about the gotchas, like linking to specific reference files instead of folders, and the fact that references only load when explicitly linked. Includes validation scripts for checking broken links and token counts. The guidance is crisp and example-driven, which matters when you're trying to figure out whether to use WHEN triggers or how to structure multi-option skills with the recipes pattern. Authored by Microsoft, so it reflects real production constraints.
$ npx -y skills add microsoft/github-copilot-for-azure --skill skill-authoring --agent claude-codeInstalls into .claude/skills of the current project.
This skill provides guidance for writing Agent Skills that comply with the agentskills.io specification.
name: 1-64 chars, lowercase + hyphens, match directorydescription: 1-1024 chars, ≤60 words, explain WHAT and WHENWHEN: with quoted trigger phrases (preferred over USE FOR:)DO NOT USE FOR: unless the skill has trigger overlap with a broader skill (see frontmatter guidelines)>- folded scalars)SKILL.md (required) - Instructionsreferences/ (optional) - Detailed docsscripts/ (optional) - Executable codeFrontmatter: name (lowercase-hyphens), description (WHAT + WHEN)
Metadata (~100 tokens) loads at startup. SKILL.md (<5000 tokens) loads on activation. References load only when explicitly linked (not on activation). Keep SKILL.md lean.
References are JIT (just-in-time) loaded:
[text](references/file.md) load[Recipes](references/recipes/README.md) not [Recipes](references/recipes/)See REFERENCE-LOADING.md for details.
# Run from the scripts directory
cd scripts
npm run references # Validate all skill links
npm run tokens -- check # Check token limits
When reviewing or authoring skills, verify:
See Validation for detailed procedures.
Sponsors