SKILL.md file: YAML frontmatter for metadata, a Markdown body with the instructions agents follow. This page is the reference for that format — structure, frontmatter fields, and the instruction patterns agents apply most reliably.
File structure
Every skill follows the same shape — frontmatter first, then instruction sections as Markdown headings:Frontmatter fields
Writing effective instructions
Every token counts
Agents process skill instructions alongside their own system prompt and task context. Keep instructions concise — write only what the agent doesn’t already know.Degrees of freedom
Match your instruction style to how much flexibility the agent should have:Examples beat explanations
Agents follow concrete examples more reliably than abstract rules. When possible, show the expected behavior instead of describing it.Complete example
A realistic skill for enforcing PR review standards:Troubleshooting
Skill name rejected
Skill name rejected
The
name field must be in slug format: lowercase letters, numbers, and hyphens only. No spaces, underscores, or special characters.security-checklist— validSecurity Checklist— invalidsecurity_checklist— invalid
Agent ignores skill instructions
Agent ignores skill instructions
- Verify the skill is enabled (toggle is on)
- Verify the skill is assigned to the correct feature
- Check that instructions are specific and actionable — vague guidance is often deprioritized
- Shorter, focused skills are applied more reliably than long, broad ones
Instructions are too long
Instructions are too long
If your skill exceeds a few hundred lines, consider splitting it into multiple focused skills. Agents handle several short skills better than one massive skill.Split by domain: separate security rules, performance guidelines, and style conventions into individual skills.
Related
Custom Skills
Create, upload, enable, and assign skills in your workspace.
Skills Overview
Understand how skills fit into the CloudThinker platform and agent workflow.