converting-commands-to-skills
Installation
SKILL.md
Contains Hooks
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Converting Slash Commands to Skills
This skill automates the conversion of Claude Code slash commands (in ./commands/ or ~/.claude/commands/) to the Skills format (in ./skills/ or ~/.claude/skills/).
Conversion Process
1. Choose Conversion Type
CRITICAL: Before starting, use AskUserQuestion to ask the user which conversion type they want:
Basic Conversion:
- Transforms YAML frontmatter (name to gerund form, remove command-specific fields, enhance description)
- Transforms directory structure (./commands → ./skills)
- Does NOT change any content below the YAML frontmatter (keeps @path, !commands, all content as-is)
Full Conversion:
- Everything in basic conversion
- PLUS transforms content below frontmatter (progressive disclosure, @path → ./path, !command → Bash tool instructions, supporting files)