Back to Skills

slash-command-builder

Create custom slash commands for Claude Code including syntax, arguments, bash execution, file references, and frontmatter configuration. Use when creating slash commands, custom commands, .md command files, or when asked about command creation, /command syntax, or command best practices.

11starsUpdated 2/27/2026

Security Assessment

Safe(100/100)
Security Score100/100

About slash-command-builder

The slash-command-builder skill enables users to create custom slash commands for Claude Code, which are used to automate specific tasks through simple command inputs. This skill simplifies the process of crafting commands that can trigger bash executions, reference files, or take dynamic arguments, helping users streamline their workflows. It is particularly useful when creating commands for team-wide collaboration or personal automations that require tailored functionality within the Claude Code environment.

FAQ

How do I create a new slash command?

To create a new slash command, navigate to the appropriate directory and create a markdown file. You can use templates provided in the 'templates/' directory to structure your command. Once created, add frontmatter and define the prompt, arguments, or bash execution as needed.

Can I create personal commands that are not shared with my team?

Yes, you can create personal commands by placing them in the '~/.claude/commands/' directory. These commands will be available only to you and not shared with the team.

What tools can I restrict slash commands to use?

You can restrict commands to specific tools by using the 'allowed-tools' field in the frontmatter. For example, you can limit a command to read-only operations, such as 'Read', 'Grep', or 'Glob', or allow broader tool access like 'Bash(git:*)'.

How do I test a slash command after creating it?

To test a slash command, use '/help' to verify if it appears in the command list. Then, test the command by invoking it using '/your-command'. If the command accepts arguments or performs bash execution, test these features by invoking the command with appropriate inputs.

Can I create commands that reference files?

Yes, you can reference files within your command by using the '@path/to/file' syntax. This allows the command to interact with file contents as part of its execution.

Install slash-command-builder

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill