name: example-skill version: "1.0.0" description: "An example skill template showing the SKILL.md format. Use this when you need to understand skill structure." license: "MIT" dependencies:
- typescript
Example Skill
This is an example skill that demonstrates the SKILL.md format used by Claude and GitHub Copilot.
When to Use This Skill
Use this skill when:
- You need to understand the skill file format
- You're creating a new skill
- You want to see best practices for skill documentation
Core Instructions
- Always use YAML frontmatter at the top of the file with at least
nameanddescription - Write clear, actionable instructions in the markdown body
- Include examples to demonstrate expected behavior
- List guidelines for consistent results
Examples
Good Skill Instruction
When creating a new React component:
1. Use functional components with hooks
2. Define props interface with TypeScript
3. Export as named export for better tree-shaking
Bad Skill Instruction
Make good components.
Guidelines
- Keep instructions specific and actionable
- Include code examples where helpful
- Reference related skills in dependencies
- Use consistent formatting throughout
- Test the skill with various prompts
Resources
You can include additional files in a resources/ subdirectory:
- Scripts for automation
- Templates for code generation
- Configuration files
Related Skills
- typescript - For TypeScript-specific patterns
- react - For React component patterns
- testing - For testing best practices