Create Claude Code slash commands
claude-code-slash-commandsskillsetup L2★381
majiayu000/claude-skill-registry ↗What it does
Create custom slash commands for Claude Code
Best for
Automating recurring developer tasks (code review, issue triage, formatting) as reusable /slash commands scoped to project or user.
Inputs
- · Command name and description
- · Command logic (markdown template with optional frontmatter)
- · Allowed tools and execution context
Outputs
- · Markdown command file in .claude/commands/ or ~/.claude/commands/
- · Command registered and available as /command-name
- · Optional: dynamic content (bash, file references) in prompt
Requires
- · Claude Code harness
- · Markdown editor
Preconditions
- · .claude/commands/ directory exists (project scope)
- · Command description defined in frontmatter
- · Allowed-tools list matches command needs
Failure modes
- · Missing description frontmatter prevents command registration
- · Invalid allowed-tools reference causes permission errors
- · Dynamic bash content fails if command doesn't exist
- · Argument parsing fails if $ARGUMENTS format is incorrect
Trust signals
- · Supports frontmatter options (allowed-tools, argument-hint, model)
- · Dynamic content via bash (!) and file references (@) available
- · Namespacing by subdirectory reduces command collision