Claude Code Commands

Reusable prompt macros you invoke with /name — capture a workflow once and replay it in seconds.

Claude Code commands are reusable slash commands — user-triggered prompt macros you run by typing /name to execute a saved instruction on demand.

Each command is a Markdown file kept in .claude/commands for project scope, or in your home directory for personal scope. The file holds the prompt text Claude should run, and it can accept arguments so one command adapts to many situations. Turning a prompt you retype constantly into a command makes your workflow faster and keeps a team consistent.

How commands are triggered

Unlike skills or agents, commands are explicitly user-triggered: you type the slash command in the Claude Code prompt, optionally with arguments, and its stored instructions run immediately. The command name comes from the filename, so .claude/commands/review.md becomes /review.

When to use a command

  • Frequent, repeatable prompts such as writing tests or opening a pull request
  • Team conventions you want everyone to invoke the same way
  • Parameterized tasks that take an argument like a file path or ticket ID

Install from the catalog

Explore ready-made options on the Claude Code commands hub, then add one with:

npx claude-code-templates@latest --command="category/name" --yes

Commands often kick off a specialized subagent to do the heavy lifting. For patterns, arguments, and examples, see the Claude Code commands guide.

Cheat sheet: every Claude Code slash command

Showing 60 of 286 commands

CommandTesting

Generate Tests

Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a…

1.3k installsView →
CommandUtilities

Ultra Think

Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and…

833 installsView →
CommandDocumentation

Create Architecture Documentation

Generate comprehensive architecture documentation with diagrams, ADRs, and interactive visualization

637 installsView →
CommandUtilities

Code Review

Comprehensive code quality review with security, performance, and architecture analysis

565 installsView →
CommandUtilities

Refactor Code

A ready-to-install Claude Code component.

490 installsView →
CommandGit Workflow

Commit

Create well-formatted commits with conventional commit format and emoji

418 installsView →
CommandDocumentation

Update Docs

Systematically update project documentation with implementation status, API changes, and synchronized content

369 installsView →
CommandTeam

Architecture Review

Comprehensive architecture review with design patterns analysis and improvement recommendations

342 installsView →
CommandProject Management

Todo

Manage project todos in todos.md file

301 installsView →
CommandProject Management

Create Prd

Create Product Requirements Document (PRD) for new features

264 installsView →
CommandAutomation

Workflow Orchestrator

Orchestrate complex automation workflows with task dependencies, scheduling, and cross-platform execution

248 installsView →
CommandUtilities

Explain Code

A ready-to-install Claude Code component.

241 installsView →
CommandDeployment

Add Changelog

Generate and maintain project changelog with Keep a Changelog format

221 installsView →
CommandGit

Feature

Create a new Git Flow feature branch from develop with proper naming and tracking

193 installsView →
CommandGit

Release

Create a new Git Flow release branch from develop with version bumping and changelog generation

173 installsView →
CommandDocumentation

Generate Api Documentation

Auto-generate API reference documentation with multiple output formats and automated deployment

171 installsView →
CommandGit

Hotfix

Create a new Git Flow hotfix branch from main for emergency production fixes

169 installsView →
CommandGit

Finish

Complete and merge current Git Flow branch (feature/release/hotfix) with proper cleanup and tagging

163 installsView →
CommandGit

Flow Status

Display comprehensive Git Flow status including branch type, sync status, changes, and merge targets

154 installsView →
CommandProject Management

Init Project

Initialize new project with essential structure, configuration, and development environment setup

149 installsView →
CommandSecurity

Security Audit

Perform comprehensive security assessment and vulnerability analysis

148 installsView →
CommandUtilities

All Tools

A ready-to-install Claude Code component.

142 installsView →
CommandDeployment

Containerize Application

Containerize application with optimized Docker configuration, security, and multi-stage builds

136 installsView →
CommandDatabase

Supabase Schema Sync

Synchronize database schema with Supabase using MCP integration

120 installsView →
CommandDocumentation

Docs Maintenance

Use PROACTIVELY to implement comprehensive documentation maintenance systems with quality assurance, validation, and automated updates

118 installsView →
CommandOrchestration

Start

A ready-to-install Claude Code component.

99 installsView →
CommandSetup

Design Database Schema

Design optimized database schemas with proper relationships, constraints, and performance considerations

96 installsView →
CommandDocumentation

Create Onboarding Guide

Create comprehensive developer onboarding guide with environment setup, workflows, and interactive tutorials

91 installsView →
CommandPerformance

Optimize Database Performance

Optimize database queries, indexing, and performance for improved response times and scalability

91 installsView →
CommandDatabase

Supabase Data Explorer

Explore and analyze Supabase database data with intelligent querying and visualization

90 installsView →
CommandGit Workflow

Create Pr

A ready-to-install Claude Code component.

90 installsView →
CommandProject Management

Create Feature

Scaffold new feature with boilerplate code, tests, and documentation

89 installsView →
CommandDatabase

Supabase Performance Optimizer

Optimize Supabase database performance with intelligent analysis and recommendations

87 installsView →
CommandNextjs Vercel

Nextjs Component Generator

Generate optimized React components for Next.js with TypeScript and best practices

84 installsView →
CommandDatabase

Supabase Migration Assistant

Generate and manage Supabase database migrations with automated testing and validation

81 installsView →
CommandDatabase

Supabase Type Generator

Generate TypeScript types from Supabase schema with automatic synchronization and validation

81 installsView →
CommandDatabase

Supabase Security Audit

Conduct comprehensive Supabase security audit with RLS analysis and vulnerability assessment

80 installsView →
CommandDocumentation

Doc Api

Generate comprehensive API documentation from code with interactive examples and testing capabilities

79 installsView →
CommandSetup

Setup Docker Containers

Setup Docker containerization with multi-stage builds and development workflows

77 installsView →
CommandTesting

Test Coverage

Analyze and improve test coverage with comprehensive reporting and gap identification

77 installsView →
CommandUtilities

Debug Error

A ready-to-install Claude Code component.

77 installsView →
CommandPerformance

Performance Audit

Comprehensive performance audit with metrics, bottleneck identification, and optimization recommendations

76 installsView →
CommandNextjs Vercel

Nextjs Performance Audit

Comprehensive Next.js performance audit with actionable optimization recommendations

73 installsView →
CommandSecurity

Dependency Audit

Audit dependencies for security vulnerabilities, license compliance, and update recommendations

71 installsView →
CommandTesting

Generate Test Cases

Generate comprehensive test cases with automatic analysis and coverage optimization

71 installsView →
CommandSecurity

Secrets Scanner

Scan codebase for exposed secrets, credentials, and sensitive information

68 installsView →
CommandPerformance

Optimize Bundle Size

Reduce and optimize bundle sizes through analysis, configuration, and code splitting strategies

67 installsView →
CommandSetup

Setup Development Environment

Setup comprehensive development environment with tools, configurations, and workflows

63 installsView →
CommandUtilities

Prime

A ready-to-install Claude Code component.

63 installsView →
CommandDatabase

Supabase Backup Manager

Manage Supabase database backups with automated scheduling and recovery procedures

62 installsView →
CommandDatabase

Supabase Realtime Monitor

Monitor and optimize Supabase realtime connections with performance analysis and debugging

61 installsView →
CommandDesign

Web Design Reviewer

This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review…

61 installsView →
CommandPerformance

Optimize Build

A ready-to-install Claude Code component.

61 installsView →
CommandNextjs Vercel

Nextjs Bundle Analyzer

Analyze and optimize Next.js bundle size with detailed recommendations

60 installsView →
CommandOrchestration

Resume

A ready-to-install Claude Code component.

59 installsView →
CommandSetup

Setup Linting

Configure comprehensive code linting and quality analysis tools with automated enforcement

57 installsView →
CommandTesting

E2e Setup

Configure comprehensive end-to-end testing suite with framework selection and CI integration

57 installsView →
CommandGit Workflow

Pr Review

A ready-to-install Claude Code component.

55 installsView →
CommandOrchestration

Commit

A ready-to-install Claude Code component.

54 installsView →
CommandPerformance

Optimize Api Performance

Comprehensive API performance optimization with response time reduction, throughput improvement, and scalability enhancements

53 installsView →

A custom slash command in Claude Code is a reusable prompt stored as a Markdown file in your project's .claude/commands directory, or in ~/.claude/commands for personal commands that work across every project. The file name becomes the command name: a file called fix-tests.md is invoked by typing /fix-tests. Instead of retyping the same detailed instructions each session, you write them once and replay them with a single keystroke.

Slash commands shine for the tasks you repeat daily — generating a conventional commit message, running a review pass over a diff, scaffolding a component, writing tests for changed files, or updating a changelog. They accept input through the $ARGUMENTS placeholder and can reference project files, so a good command behaves like a small, shareable macro any teammate can drop into a repo. Every command in this curated hub, part of ToolZip's growing Claude Code catalog, installs with a single line and no manual file copying:

npx claude-code-templates@latest --command="category/name" --yes

Replace category/name with the path shown on any command page, run it in your project root, and the Markdown file drops into .claude/commands ready to use. From there, pair commands with subagents, hooks, and skills, or start with popular picks like testing/generate-tests and git/commit-message.

Frequently Asked Questions

What is a Claude Code slash command?
A slash command is a reusable prompt saved as a Markdown file in the .claude/commands directory. The file name becomes the command, so a file named review.md is run by typing /review. It lets you save detailed instructions once and rerun them on demand instead of retyping them every session.
Where are custom commands stored?
Project commands live in .claude/commands inside your repository and are shared with your team through version control. Personal commands go in ~/.claude/commands in your home directory and are available in every project you open. Both are plain Markdown files you can edit by hand.
How do I install a command from this catalog?
Run the npx command shown on any command page from your project root, for example npx claude-code-templates@latest --command="git/commit-message" --yes. It writes the Markdown file into .claude/commands, and the command is available in Claude Code immediately, no restart required.
Can slash commands accept arguments?
Yes. Reference the $ARGUMENTS placeholder inside the command file, and anything you type after the command name is substituted in. For example, /fix-issue 123 passes 123 into the prompt, so a single command can handle many different inputs.
What is the difference between a command and a subagent or skill?
A command is a prompt macro you trigger manually with /name in your current session. A subagent runs as a separate assistant with its own context and tools, and a skill is packaged instructions that Claude loads automatically when relevant. Commands are the simplest choice when you just want to replay a prompt on demand.

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.