Claude Code Slash Commands
Claude Code slash commands cheat sheet — complete reference for all built-in CLI commands with syntax, options, and usage examples.
Other AI Sheets
Sign in to mark items as known and track your progress.
Sign inCore Commands
Essential commands for managing your session
/help
Display all available commands
/help/clear
Clear conversation history and start fresh
/clear/exit
Exit Claude Code CLI
/exit/status
View current status and configuration
/statusConversation Management
Manage conversation state, history, and context
/compact
Compress conversation to reduce token usage
/compact
/compact [focus instructions]/context
Visualize current context usage
/context/resume
Restore previous conversation
/resume/rewind
Return conversation to earlier state
/rewind/export
Export conversation to file or clipboard
/export
/export [filename]Project & Files
Project initialization and file management
/init
Initialize project with CLAUDE.md
/init/memory
Edit CLAUDE.md memory file
/memory/add-dir
Add supplementary working directories
/add-dir <directory-path>Code Review & Quality
Code analysis, review, and security checks
/review
Request code review from Claude
/review/security-review
Comprehensive security audit
/security-review/bug
Report bugs to Anthropic
/bugConfiguration & Settings
Customize Claude Code behavior and preferences
/config
Open Settings interface
/config/model
Switch AI model
/model/output-style
Set response output style
/output-style
/output-style explanatoryTools & Integration
Manage plugins, MCP servers, and integrations
/mcp
Manage Model Context Protocol servers
/mcp/plugin
Manage Claude Code plugins
/plugin/hooks
Configure event-triggered automation
/hooksSystem & Diagnostics
Health checks and system administration
/doctor
Check Claude Code installation health
/doctor/permissions
Manage tool and file access
/permissions/sandbox
Enable isolated execution environment
/sandboxCustom Commands
Create your own slash commands
Project Custom Command
Create team-shared custom command
# .claude/commands/review-pr.md
---
description: Review pull request changes
---
Review the current PR and provide feedbackUser Custom Command
Create personal custom command
# ~/.claude/commands/daily-standup.md
---
description: Generate daily standup summary
argument-hint: <date>
---
Summarize work completed on $1Command with File Reference
Use @file syntax in custom commands
# Command that reads files
---
description: Analyze file for security issues
---
Review @$1 for security vulnerabilitiesCommand with Bash Execution
Run bash before command prompt
# Command with bash prefix
---
description: Test and review results
allowed-tools: [Bash]
---
!npm test
Review test results above