SKILL.md Frontmatter Validation Rules & Clean .zip Packaging
- Strict
nameConstraints (1–64 chars): Must use lowercase letters, digits, and single hyphens only (^[a-z0-9]+(-[a-z0-9]+)*$—no spaces, underscores, or leading/trailing hyphens) and must match the parent folder name exactly (e.g.,.agents/skills/my-skill/SKILL.mdor.claude/skills/my-skill/SKILL.md). - Level-1 Progressive Disclosure (
description1–1,024 chars): At startup, agents load only the YAML frontmatter (~50–100 tokens per skill). Yourdescriptionmust state both what the skill does and explicit trigger phrases/when to invoke it. - Clean
.zipArchive Structure: Our browser-local zip builder packages<skill-name>/SKILL.md,scripts/, andreferences/at the archive root with zero macOS__MACOSXor.DS_Storemetadata pollution.