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
Core Commands
Essential commands for managing your session
Display all available commands
/helpClear conversation history and start fresh
/clearExit Claude Code CLI
/exitView current status and configuration
/statusConversation Management
Manage conversation state, history, and context
Compress conversation to reduce token usage
/compact
/compact [focus instructions]Visualize current context usage
/contextRestore previous conversation
/resumeReturn conversation to earlier state
/rewindExport conversation to file or clipboard
/export
/export [filename]Project & Files
Project initialization and file management
Initialize project with CLAUDE.md
/initEdit CLAUDE.md memory file
/memoryAdd supplementary working directories
/add-dir <directory-path>Code Review & Quality
Code analysis, review, and security checks
Request code review from Claude
/reviewComprehensive security audit
/security-reviewReport bugs to Anthropic
/bugConfiguration & Settings
Customize Claude Code behavior and preferences
Open Settings interface
/configSwitch AI model
/modelSet response output style
/output-style
/output-style explanatoryTools & Integration
Manage plugins, MCP servers, and integrations
Manage Model Context Protocol servers
/mcpManage Claude Code plugins
/pluginConfigure event-triggered automation
/hooksSystem & Diagnostics
Health checks and system administration
Check Claude Code installation health
/doctorManage tool and file access
/permissionsEnable isolated execution environment
/sandboxCustom Commands
Create your own slash commands
Create team-shared custom command
# .claude/commands/review-pr.md
---
description: Review pull request changes
---
Review the current PR and provide feedbackCreate personal custom command
# ~/.claude/commands/daily-standup.md
---
description: Generate daily standup summary
argument-hint: <date>
---
Summarize work completed on $1Use @file syntax in custom commands
# Command that reads files
---
description: Analyze file for security issues
---
Review @$1 for security vulnerabilitiesRun bash before command prompt
# Command with bash prefix
---
description: Test and review results
allowed-tools: [Bash]
---
!npm test
Review test results above