Skill Structure
Every skill needs a SKILL.md file with YAML frontmatter:
---
name: my-skill
description: A helpful skill for...
triggers:
- when user asks about X
---
# Instructions
When triggered, follow these steps:
1. Analyze the user's request
2. Perform the action
3. Return the result
Best Practices
- Be Specific - Clear triggers help the AI know when to use your skill
- Provide Examples - Show sample inputs and outputs
- Handle Errors - Include fallback instructions
Publishing
To share your skill with the community:
- Create a GitHub repository
- Add your
SKILL.mdto.agent/skills/ - Submit a PR to the registry (optional)