0
Create Custom Slash Commands
create-custom-slash-commands
Custom slash commands (skills) let you create reusable prompts. Create a .claude/skills/ directory and add markdown files:
mkdir -p .claude/skills
Create a commit skill at .claude/skills/commit.md:
---
name: commit
description: Create a conventional commit
---
Review all staged changes with `git diff --cached`.
Write a conventional commit message following this format:
- feat: for new features
- fix: for bug fixes
- refactor: for code refactoring
- test: for adding tests
Keep the first line under 72 characters.
Add a body if the change needs explanation.
Now you can use it:
/commit
Claude will read the skill file and follow those instructions. You can create skills for anything — code review, PR creation, deployment checks, etc.
Skills can also reference other tools and have complex multi-step workflows.
~/recombobulate
$
tip --comments --count=0
Log in to leave a comment.