new
Create a new skill with a SKILL.md template.
skillshare new <name> # Create a new skill
skillshare new <name> --dry-run # Preview without creating
What happens:
┌─────────────────────────────────────────────────────────────────┐
│ skillshare new my-skill │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 1. Validate skill name │
│ → lowercase, numbers, hyphens only │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 2. Create skill directory │
│ → ~/.config/skillshare/skills/my-skill/ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ 3. Generate SKILL.md template │
│ → ~/.config/skillshare/skills/my-skill/SKILL.md │
└─────────────────────────────────────────────────────────────────┘
Options
| Flag | Description |
|---|---|
--dry-run, -n | Preview without creating files |
--help, -h | Show help |
Skill Name Rules
- Lowercase letters, numbers, hyphens, underscores
- Must start with a letter or underscore
- Examples:
my-skill,code_review,pdf-tools
Template Structure
The generated SKILL.md follows this format:
---
name: my-skill
description: Brief description of what this skill does
---
# My Skill
Instructions for the agent when this skill is activated.
## When to Use
Describe when this skill should be used.
## Instructions
1. First step
2. Second step
3. Additional steps as needed
Examples
Create a simple skill
skillshare new code-review
Output:
New Skill Created
─────────────────────────────────────────────
✓ Created: ~/.config/skillshare/skills/code-review/SKILL.md
Next steps:
1. Edit ~/.config/skillshare/skills/code-review/SKILL.md
2. Run 'skillshare sync' to deploy
Preview before creating
skillshare new my-skill --dry-run
Output:
New Skill (dry-run)
─────────────────────────────────────────────
→ Would create: ~/.config/skillshare/skills/my-skill
→ Would write: ~/.config/skillshare/skills/my-skill/SKILL.md
Template preview:
─────────────────────────────────────────────
---
name: my-skill
description: Brief description of what this skill does
---
...
Next Steps
After creating a skill:
- Edit the SKILL.md — Add your instructions
- Sync to targets —
skillshare sync - Test in your AI CLI — Use
/skill:my-skillor mention it
Related
- install — Install skills from repos
- sync — Sync skills to targets
- Configuration — Config reference