What are Slash Commands?
“Slash Commands are customized, carefully refined prompts that control Claude’s behavior in order to perform a specific task”Slash commands are powerful tools that enable you to extend Claude Code’s functionality with custom, project-specific behaviors. By creating slash commands, you can automate common workflows, enforce project standards, and streamline your development process.
Command Categories
The Awesome Claude Code community has created slash commands across several categories:Version Control & Git
Commands for commits, pull requests, issues, and branch management
Code Analysis & Testing
Commands for quality checks, testing, optimization, and TDD workflows
Context Loading & Priming
Commands to prime Claude with project context and documentation
Documentation & Changelogs
Commands for generating and maintaining project documentation
CI/CD & Deployment
Commands for releases, CI checks, and deployment workflows
Project & Task Management
Commands for managing tasks, issues, and project planning
General Purpose Commands
/create-hook
by Omri LaviSlash command for hook creation - intelligently prompts you through the creation process with smart suggestions based on your project setup (TS, Prettier, ESLint…).
/linux-desktop-slash-commands
by Daniel RosehillA library of slash commands intended specifically to facilitate common and advanced operations on Linux desktop environments (although many would also be useful on Linux servers). Command groups include hardware benchmarking, filesystem organisation, and security posture validation.
Specialized Commands
/fixing_go_in_graph
by Mjvolk3Focuses on Gene Ontology annotation integration in graph databases, handling multiple data sources, addressing graph representation issues, and ensuring correct data incorporation.
/mermaid
by GaloyMoneyGenerates Mermaid diagrams from SQL schema files, creating entity relationship diagrams with table properties, validating diagram compilation, and ensuring complete entity coverage.
/review_dcell_model
by Mjvolk3Reviews old Dcell implementation files, comparing with newer Dango model, noting changes over time, and analyzing refactoring approaches for better code organization.
/use-stepper
by zuploReformats documentation to use React Stepper component, transforming heading formats, applying proper indentation, and maintaining markdown compatibility with admonition formatting.
Getting Started
To use these slash commands in your project:- Browse the category pages to find commands relevant to your workflow
- Click through to the GitHub repository for the command
- Copy the command file to your project’s
.claude/commands/directory - Customize the command to match your project’s needs
- Invoke the command in Claude Code using
/command-name