CMD5 verified commands

5 Best Claude Code Slash Command Collections — Extend Your CLI Workflow

Claude Code slash commands are reusable prompt templates that extend the Claude Code CLI with custom workflows. Stored as markdown files in the .claude/commands/ directory, they let developers invoke complex, multi-step instructions with a single / prefix command. Slash commands eliminate repetitive prompting, enforce consistency across teams, and turn tribal knowledge into executable, version-controlled automation that lives alongside your codebase.

The command system in Claude Code follows a straightforward convention: one markdown file equals one command. When you create a file at .claude/commands/review.md, Claude Code automatically registers it as the /review command. The file content becomes the prompt template that Claude receives when you invoke the command. This design means there is no build step, no configuration file to update, and no registration process. You write a markdown file, and the command appears instantly in your CLI autocomplete.

Project-scoped commands live in your repository's .claude/commands/ directory and are shared with every developer who clones the project. This is the recommended approach for team workflows because commands stay in sync through version control. When a senior developer writes a thorough code review command that checks for security issues, performance antipatterns, and style violations, every team member gets access to that same review standard simply by pulling the latest changes.

User-scoped commands live in ~/.claude/commands/ in your home directory and are available across all projects. These are ideal for personal productivity commands that are not project-specific, such as a general debugging workflow, a commit message generator, or a documentation template. User-scoped commands let you carry your personal toolkit from project to project without polluting each repository's configuration.

Commands support dynamic arguments through the $ARGUMENTS placeholder. When you invoke /deploy staging, the word "staging" replaces $ARGUMENTS in the command template. This makes commands flexible without sacrificing simplicity. A single deploy command can target different environments, a test command can focus on specific modules, and a documentation command can generate docs for whichever component you specify. The argument system keeps the number of commands manageable while covering a wide range of use cases.

Organizing commands into subdirectories creates namespaced command groups. Placing files in .claude/commands/test/unit.md and .claude/commands/test/integration.md creates /test:unit and /test:integration commands. This naming convention scales well for large projects that need dozens of commands without cluttering the top-level autocomplete menu. Teams commonly organize commands by workflow stage: plan/, build/, test/, deploy/, and review/.

The real power of slash commands emerges when you combine them with Claude Code's other extension mechanisms. A command can reference project-specific instructions from CLAUDE.md, trigger hooks that run before or after tool execution, and leverage skills for complex behavioral patterns. For example, a full release command might instruct Claude to run the test suite, update the changelog, bump the version number, create a git tag, and open a pull request, all from a single /release invocation. The command file contains the orchestration logic, while hooks and settings provide the guardrails.

This directory contains 5 curated command collections covering the most impactful slash command patterns. Each collection has been tested for reliability, documented with installation instructions, and categorized by use case. Whether you need to streamline code reviews, automate deployment workflows, standardize testing practices, or build custom project management commands, you will find production-ready solutions below.

Top 5 Command Collections Compared

CollectionFocus AreaCommandsDifficultyTeam Ready
Code Review SuiteSecurity, performance, style review8-12BeginnerYes
Testing ToolkitUnit, integration, E2E test generation6-10IntermediateYes
Deployment PipelineCI/CD, release, versioning automation5-8AdvancedYes
Documentation GeneratorAPI docs, READMEs, changelogs5-7BeginnerYes
Refactoring AssistantCode modernization, pattern migration7-10IntermediateYes

How to Install Slash Commands

Step 1: Create the commands directory

mkdir -p .claude/commands

Step 2: Add a command file

Create a markdown file where the filename becomes the command name. For example, to create a /review command:

.claude/commands/review.md

Step 3: Write the prompt template

Add your prompt instructions inside the markdown file. Use $ARGUMENTS for dynamic input:

Review the following code for security vulnerabilities,
performance issues, and style violations.

Focus area: $ARGUMENTS

Check for:
- SQL injection and XSS vulnerabilities
- Memory leaks and unnecessary allocations
- Consistent naming conventions
- Missing error handling

Step 4: Use the command

Type / in Claude Code to see your command in the autocomplete menu, then invoke it:

/review authentication module

Step 5: Share with your team (optional)

Commit the .claude/commands/ directory to version control so every team member gets access to the same commands. For personal commands that apply across all projects, place files in ~/.claude/commands/ instead.

All Slash Commands

5 resources

Production-Ready Slash Commands

Intermediate

A comprehensive collection of 57 production-ready slash commands (15 workflows, 42 tools) for Claude Code. Provides multi-agent orchestration systems and specialized utilities covering feature development, code review, testing, security scanning, and DevOps.

slash-commandsworkflowsmulti-agent
2,300by wshobson
GitHub

Claude Sessions (Session Tracking Commands)

Beginner

Custom slash commands for Claude Code providing comprehensive development session tracking and documentation. Six core commands (session-start, session-update, session-end, etc.) store sessions as markdown files with timestamps.

session-trackingdocumentationteam-collaboration
1,200by iannuttall
GitHub

Claude Command Suite (216+ Commands)

Intermediate

Development toolkit with 216+ slash commands, 12 Claude Code Skills, and 54 AI agents. Covers code review, testing, deployment, security auditing, media processing, and GitHub-Linear synchronization.

slash-commandsagentssecurity-audit
1,100by qdhenry
GitHub

Claude Slash Commands Collection (87+)

Beginner

A curated collection of 87+ custom slash commands for Claude Code CLI organized by category. Also serves as an index for standalone slash command repositories, with Python automation scripts and Git hooks.

slash-commandsdocumentationautomation
420by danielrosehill
GitHub

My Claude Code Essentials

Intermediate

Personal collection of workflows, skills, plugins, and configurations for Claude Code featuring a five-stage development pipeline with competitive proposal generation and specialized agents for different roles.

workflowsskillsplugins
133by vincenthopf
GitHub

Frequently Asked Questions

What are Claude Code slash commands?

Claude Code slash commands are reusable prompt templates stored as markdown files in the .claude/commands/ directory. When you type / in the Claude Code CLI, these commands appear as selectable options alongside built-in commands. Each command file contains a prompt template that Claude executes when invoked. Slash commands let you standardize repetitive workflows, enforce consistent prompting patterns across a team, and encapsulate complex multi-step instructions into a single invocation. They are one of the primary extension mechanisms for customizing Claude Code behavior.

How do I create a custom slash command?

To create a custom slash command, create a markdown file inside your project's .claude/commands/ directory. The filename becomes the command name: for example, .claude/commands/review.md creates a /review command. The file content is the prompt template that Claude receives when the command is invoked. You can include placeholder variables using $ARGUMENTS to capture user input, reference specific files or directories, and write multi-paragraph instructions. After saving the file, the command is immediately available the next time you type / in Claude Code. No restart or configuration change is required.

What is the difference between commands, skills, and agents?

Commands are simple prompt templates stored as markdown files that execute a single prompt when invoked with the / prefix. Skills are more sophisticated extensions that can include logic, tool usage patterns, and multi-step workflows with branching behavior. Agents are autonomous sub-processes that Claude can spawn to handle complex tasks independently, often running in parallel. Commands are the simplest to create and are ideal for standardizing common prompts. Skills add behavioral intelligence on top of prompts. Agents provide full autonomy for long-running or complex tasks.

Can I share commands across projects?

Yes, you can share commands across projects in two ways. For personal commands that apply to all your projects, place markdown files in ~/.claude/commands/ in your home directory. These commands are available in every project you open with Claude Code. For project-specific commands that the whole team should use, place them in the project's .claude/commands/ directory and commit them to version control. This way, every team member who clones the repository gets the same set of commands. You can also organize commands into subdirectories for categorization, such as .claude/commands/deploy/ or .claude/commands/test/.

How many slash commands are available?

The number of available slash commands depends on your configuration. Claude Code ships with several built-in commands like /help, /clear, /compact, and /config. Beyond these defaults, there is no limit to how many custom commands you can create. Community command collections typically include between 5 and 30 commands organized by use case. Many development teams maintain between 10 and 20 project-specific commands covering their most common workflows such as code review, testing, deployment, documentation generation, and debugging patterns.

Know a command collection we're missing?

Help us build the most complete directory of Claude Code slash commands.

Submit a Resource