Custom Slash Commands

•
3.4k
•

Creates and manages custom slash commands for Claude Code to automate repetitive prompts and bash-integrated workflows.

The Slash Commands skill allows developers to extend the Claude Code CLI by defining custom commands that function as sophisticated, reusable prompt templates. By creating Markdown files in specific project or global directories, users can trigger complex workflows using simple /command syntax. This system supports real-time bash execution for context gathering, file referencing with the @ prefix, and dynamic argument passing. It bridges the gap between manual prompting and autonomous agents, providing a standardized way for teams to share best practices for code reviews, git management, and environment configurations.

Key Features

013,382 GitHub stars
02Support for dynamic arguments ($1, $2, $ARGUMENTS) for flexible command usage
03Define project-level or global personal commands via Markdown files
04Expose MCP server prompts as standardized slash commands automatically
05Integrate real-time shell command output directly into AI context windows
06Quick-reference files and directories using the @ symbol syntax

Use Cases

01Standardizing team-wide code review checklists for security or performance audits
02Automating semantic git commit messages based on staged diffs and bash output
03Creating quick-access commands for project-specific documentation or style guide lookups