Usage
Description
Theinit command creates a new skill by generating a SKILL.md file with proper frontmatter and structure. It provides a starting template that follows the Agent Skills specification.
Arguments
Optional skill name. Determines the skill directory and default skill name.
- With name: Creates
<name>/SKILL.md - Without name: Creates
SKILL.mdin current directory (uses current directory name as skill name)
skills init my-skill→ Createsmy-skill/SKILL.mdskills init→ CreatesSKILL.md(in current directory)
Generated Template
The command generates a SKILL.md file with this structure:Template Components
Frontmatter (YAML)
Frontmatter (YAML)
The frontmatter contains metadata:Required fields:
name: Unique identifier (lowercase, hyphens allowed)description: Brief explanation of the skill’s purpose
Title
Title
Main heading using the skill name:
Overview
Overview
General instructions for the agent:
When to use
When to use
Describes scenarios where the skill should be invoked:
Instructions
Instructions
Step-by-step guide for the agent:
Examples
Output Example
Next Steps
After creating a skill:Edit SKILL.md
Open the generated file and customize:
- Update
namein frontmatter - Write a clear
description - Add detailed instructions
- Document when the skill should be used
Skill Naming Best Practices
Use Kebab Case
Name skills with lowercase and hyphens:✅
web-scraper
✅ pr-review
✅ commit-message❌ WebScraper
❌ pr_review
❌ commit messageBe Descriptive
Choose names that clearly indicate purpose:✅
frontend-design-guidelines
✅ typescript-best-practices
✅ api-documentation❌ skill1
❌ helper
❌ utilsKeep It Concise
Prefer shorter names when possible:✅
pr-review
✅ web-design
✅ commit-msg⚠️ pull-request-review-and-approval
⚠️ comprehensive-web-design-guidelinesAvoid Conflicts
Check existing skills to avoid name collisions:
Advanced Frontmatter
You can extend the generated frontmatter with additional fields:File Already Exists
IfSKILL.md already exists at the target path:
Repository Structure
When creating skills for a repository, follow these patterns:- Single Skill
- Multiple Skills
- Plugin Manifest
For repositories with one skill:
Related Resources
- Skills Specification - Full specification for SKILL.md format
- Skills Directory - Browse existing skills for inspiration
skills add- Install and test your skillskills find- Search for existing skills