slash-commands

Create, use, and manage custom slash commands in Claude Code.

5|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/reggiechan74/claude-plugins --skill slash-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-commands
Source: https://github.com/reggiechan74/claude-plugins/tree/main/plugins/claude-code-metaskill/skills/slash-commands
Command: npx skills add https://github.com/reggiechan74/claude-plugins --skill slash-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repeatedly typing out long prompts for common tasks can be inefficient and time-consuming. This Skill allows users to define custom slash commands, turning complex instructions into simple shortcuts that boost productivity.

Core Features & Use Cases

  • Custom Shortcuts: Create Markdown files to define personalized commands with arguments, tailored to your specific needs.
  • Namespacing & Organization: Organize commands in subdirectories for clarity (e.g., /frontend:component), making them easy to find and use.
  • Bash & File Integration: Embed bash execution and file references directly within commands, enabling powerful, context-aware actions.
  • Use Case: Create a /review-pr command that automatically fetches the current Git diff and asks Claude to review it for security issues, saving you multiple steps and ensuring consistent review processes.

Quick Start

Show me how to create a simple custom slash command named '/hello' that greets the user.

Frequently Asked Questions about slash-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom slash commands in Claude Code?

Create custom slash commands by writing Markdown files that define command logic, arguments, and actions. Store them in your project or user environment, then invoke them with the slash syntax. Commands support bash execution, file references, and frontmatter metadata for configuration.

Can I organize slash commands using namespacing?

Yes, organize custom slash commands in subdirectories to create namespaced commands like `/frontend:component` or `/review:pr`. This structure keeps commands logically grouped and easy to discover without cluttering your command namespace.

What can I do with bash execution and file references in slash commands?

Embed bash commands and file references directly within slash command definitions to create context-aware shortcuts. For example, fetch Git diffs or read project files automatically, then pass that data to Claude for analysis or processing.

Do custom slash commands work with plugins and MCP commands?

Custom slash commands work across built-in, plugin, and MCP slash commands in both project and user environments. You can create shortcuts that integrate with existing command ecosystems through the SlashCommand tool for programmatic invocation.

How do slash commands reduce repetitive typing in my workflow?

Slash commands turn complex, multi-step prompts into single-word shortcuts. Instead of retyping lengthy instructions, invoke a command once to execute the same task consistently, saving time and ensuring standardized processes across repeated actions.