Independent directory and educational resource. Not affiliated with Anthropic or Claude.
Command Reference

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.

/help

Show all available commands and skills. Pass a skill name to get help specific to that skill.

/help/help smart-git-commit
/clear

Clear conversation history and start a fresh session. All previous context is removed from memory.

/clear
/compact

Summarize and compress the conversation to save context window space. Useful for long sessions.

/compact
/quit  /exit

Exit the Claude Code session gracefully. Both /quit and /exit are accepted.

/quit/exit
/status

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 <file>

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 <file>

Remove a file from the active context to free up context window space for other files.

/remove src/index.ts
/ls  /list

List all files currently loaded into Claude's context window. Shows file paths and token usage.

/ls/list
/diff

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.

/skills

List all Claude Code skills installed in the current project's .agents/skills/ directory.

/skills
/config

Open configuration settings. Pass a key name to view or set a specific configuration value.

/config/config model/config theme dark
/model

Switch between available Claude models mid-session. Useful for balancing speed vs. capability.

/model claude-opus-4-7/model claude-haiku-4-5
/memory

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

Resume a previous conversation session. Run without arguments to pick from recent sessions interactively.

/resume/resume abc123
/export

Export the current conversation to a Markdown file. Useful for documentation or sharing context.

/export/export output.md
/reset

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