Claude Code Commands
Every Claude Code slash command, keyboard shortcut, and terminal short-hand — organized, searchable, and copy-paste ready.
Essential Commands
The commands you'll use in every session — start here.
Show all available commands and skills. Pass a skill name to get help specific to that skill.
/help/help smart-git-commit
Clear conversation history and start a fresh session. All previous context is removed from memory.
/clear
Summarize and compress the conversation to save context window space. Useful for long sessions.
/compact
Exit the Claude Code session gracefully. Both /quit and /exit are accepted.
/quit/exit
Show current session status, including loaded skills, context usage percentage, and active model.
/status
File & Code Commands
Manage what files and code Claude has access to in the current session.
Add a specific file to the current context so Claude can read and reference its contents.
/add src/index.ts/add components/Button.tsx
Remove a file from the active context to free up context window space for other files.
/remove src/index.ts
List all files currently loaded into Claude's context window. Shows file paths and token usage.
/ls/list
Show all uncommitted git changes in the current repository. Equivalent to running git diff.
/diff
Skills & Config
Manage Claude's loaded skills, settings, and active model.
List all Claude Code skills installed in the current project's .agents/skills/ directory.
/skills
Open configuration settings. Pass a key name to view or set a specific configuration value.
/config/config model/config theme dark
Switch between available Claude models mid-session. Useful for balancing speed vs. capability.
/model claude-opus-4-7/model claude-haiku-4-5
View or edit Claude's persistent memory for this project. Changes persist across sessions.
/memory
Session Management
Save, restore, and manage your Claude Code sessions and conversation exports.
Resume a previous conversation session. Run without arguments to pick from recent sessions interactively.
/resume/resume abc123
Export the current conversation to a Markdown file. Useful for documentation or sharing context.
/export/export output.md
Reset all Claude Code settings to their factory defaults. This cannot be undone — use with caution.
/reset
Missing a command?
Know a Claude Code command or shorthand that isn't listed here? Submit it and we'll add it to the reference.
Submit a Command