Creating Skills
How to create effective AI agent skills
Creating Skills
This guide covers best practices for creating skills that work well with AI agents.
Skill Structure
Every skill needs a SKILL.md file with:
- Frontmatter (required metadata)
- Description (what the skill does)
- Instructions (how to use it)
Basic Template
---
name: my-skill
description: Brief description of what this skill does
version: 1.0.0
---
# My Skill
[One paragraph explaining the skill's purpose]
## When to Use
Use this skill when [specific scenarios].
## Instructions
[Detailed instructions for the AI]Writing Good Instructions
Be Specific
Instead of:
"Review the code"
Write:
"Review the code for: 1) Security vulnerabilities 2) Performance issues 3) Code style violations"
Provide Examples
Show the expected output format:
## Output Format
Provide feedback in this format:
### Issues Found
- [severity] Description of issue
- File: path/to/file.ts
- Line: 42
- Suggestion: How to fix itSet Boundaries
Define what the skill should and shouldn't do:
## Scope
DO:
- Check for SQL injection
- Validate input sanitization
DO NOT:
- Modify code automatically
- Run testsTesting Skills
Test your skill by:
- Installing it locally
- Asking your AI agent to use it
- Verifying the output matches expectations
Sharing Skills
Once tested, share skills by:
- Pushing to a GitHub repository
- Adding the repo:
skilluse repo add owner/repo - Installing:
skilluse install skill-name