GUIDE

Claude Code Slash Commands Cheat Sheet

A scannable cheat sheet of Claude Code slash commands, grouped by purpose, with a quick reference table and tips for memorizing the ones you use most.

By Ian MacCallum··8 min read

This Claude Code slash commands cheat sheet is a fast, scannable reference for the commands you type at the start of a prompt to steer a coding session. Claude Code (Anthropic's agentic coding tool for the terminal and IDE) ships with a generous set of built-in slash commands, and you can add your own. The goal here is not to make you memorize a fixed list (the set genuinely changes between releases), but to group the commands by purpose so you can find the right one quickly and build muscle memory for the handful you reach for every day. AI Drops, the maker of Claude Drops, is an independent project and is not affiliated with Anthropic.

The authoritative list of slash commands for your version is whatever your own install shows. Type a forward slash to open the autocomplete menu, or run /help to print everything. Treat this cheat sheet as a map, not a contract, command names and arguments evolve.

How to use this cheat sheet

A slash command is an instruction that begins with a / and is only recognized at the very start of your message. Anything you type after the command name is passed to it as arguments. Some commands act on the session directly (clearing history, switching models), while others expand into a prompt the model then acts on. Below, the commands are grouped into the jobs you actually do: managing context, choosing a model, setting up a project, configuring the tool, and inspecting what is going on. Because exact names differ by version, the descriptions stay general. When you want the precise spelling and arguments, the official Claude Code documentation and your own /help output are the source of truth.

Context and session management

The single highest-leverage habit in Claude Code is controlling your context window. As a session grows, accumulated history can drag the model off-task and burn tokens. There is a command to clear the conversation and start fresh, and one to compact a long conversation in place (summarizing it so you keep the thread but free up room). When you switch from, say, debugging an API route to writing docs, clearing or compacting first keeps responses sharp. Other session commands cover things like ending or resuming work and visualizing how your context budget is being spent.

Make clearing context between unrelated tasks reflexive. It is the cheapest way to improve answer quality and the easiest slash command habit to build. If you only memorize one command from this cheat sheet, make it the clear command.

Models, project setup, and configuration

Claude Code lets you change which Claude model is handling the session on the fly. Reach for a lighter, faster model for quick edits and a more capable one for gnarly refactors or architecture work, and switch in a single command instead of committing to one model for the whole session. Some pickers also let you tune an effort level. For project setup, there is an initialize command that scaffolds a CLAUDE.md by scanning your repository so future sessions start with shared context, plus commands for managing permissions, reviewing or editing configuration, and signing in and out. Running the initialize command once on a new repo is among the highest-leverage things you can do.

For deeper background on the files and settings these commands touch, our companion guide on Claude Code tips and tricks is a good next read, and the official docs cover the exact configuration surface.

The cheat sheet: commands by purpose

Here is the quick reference. The left column names the job, the middle column describes what the relevant command does, and the right column tells you when to reach for it. Command names are kept general on purpose, run /help to confirm the exact spelling in your version.

PurposeWhat the command doesWhen to use it
Help / discoveryLists every available command with a short descriptionYour first stop when you are unsure what exists or how a command works
Clear contextDrops accumulated conversation history and starts freshWhen you switch to an unrelated task and want focused, cheaper responses
Compact contextSummarizes a long conversation in place to free up roomWhen a thread is getting long but you still need its gist to continue
Switch modelChanges which Claude model (and sometimes effort level) is activeWhen task difficulty changes mid-session, light for edits, heavy for refactors
Initialize projectScans the repo and scaffolds a CLAUDE.md of conventions and commandsOnce per new repository, so future sessions start with shared context
ConfigurationOpens or edits settings and managed permissionsWhen you want to adjust behavior, tools, or permission rules
Account / authSigns in or out and manages your account sessionWhen setting up a new machine or switching accounts
Usage / costShows token usage, cost, or how context is being spentWhen you want visibility into spend or why context feels full
Custom commandsRuns a prompt you defined as a markdown file (for example /review)When you have a repeatable workflow worth turning into one keystroke
This table intentionally avoids hardcoding exact command names because they vary across releases and platforms. Use it to know what is possible, then confirm the precise command with /help or the official commands reference.

Custom slash commands you can add

Beyond the built-ins, the most useful entries on your personal cheat sheet are the ones you write. Custom slash commands in Claude Code are just markdown files: drop review.md into a commands directory and the file body becomes a reusable prompt you trigger with /review. Project commands live in .claude/commands/ inside a repo (commit them so your team shares the same workflows), and personal commands live under ~/.claude/commands/ so they follow you everywhere. Commands can take arguments, and Claude Code has been converging custom commands with skills, so the same /name can come from a command file or a skill directory. For the full walkthrough, see our guide to Claude Code slash commands.

  • Name custom commands by the verb you reach for, like /test, /review, or /release, so they are easy to recall.
  • Keep each command focused on one job. Small, composable prompts beat one giant catch-all.
  • Commit project commands to version control so the whole team benefits and they stay in sync.
  • Use the argument placeholder for the parts that change (an issue number, a path) and hardcode the parts that do not.

How to actually memorize them

A cheat sheet you have to look up every time is a crutch, not a skill. The fastest way to internalize the commands you use most is spaced repetition: review a small deck a little every day until recall is automatic. That is exactly what /cards for Claude Code is built for, a flashcards app that drills Claude Code slash commands (and the rest of the workflow) so the right command comes to mind without scanning a table. Think of it as the learning companion to Claude Drops: /cards helps you master what exists today, while Claude Drops keeps you current as new commands ship.

  1. Start with the five commands you would type most: help, clear, compact, switch model, and initialize.
  2. Run /help on your own install and note anything new since you last looked.
  3. Turn your two or three most-repeated prompts into custom commands and add them to the deck.
  4. Drill the deck in /cards for a couple of minutes a day until recall is automatic.
  5. Re-run /help after each Claude Code update to catch additions, then update your deck.

Stay current

Claude Code's command set keeps expanding, so a cheat sheet is only as good as how recently it was checked. For exact, current syntax, the official Claude Code docs and your own /help output are always the source of truth. To catch new commands and capabilities the moment they land, browse the Claude Code changelog or get the Claude Drops app on the App Store for a push notification on every Claude Code release. Pair that with /cards for Claude Code to memorize the commands, and you will both know what exists and remember how to use it. Bottom line: keep this cheat sheet as a map, lean on /help for the territory, and let the two apps handle freshness and recall.

Sources

  1. Claude Code documentation
  2. Claude Code slash commands reference
  3. Claude Code settings and configuration
  4. Anthropic news and announcements
IM

Ian MacCallum

Maintainer, Claude Drops

Ian builds Claude Drops and reads every Claude Code release so you don't have to. He writes plain-English guides to Claude Code's features, drawing directly from the official changelog and documentation.

Stay on top of Claude Code

Get notified the moment a new version ships, and browse the full Claude Code changelog.

Get Claude Drops

FAQ

Frequently asked questions

How do I see every slash command in my version of Claude Code?+
Type a forward slash at the start of the prompt to open an autocomplete menu, or run the help command to print the full list. Both show the built-ins plus any custom commands found in your project's .claude/commands directory or your home directory. Because the exact set changes between releases, your own /help output and the official Claude Code documentation are the authoritative reference, not any static cheat sheet.
Why does this cheat sheet not list exact command names?+
Slash command names and arguments evolve between Claude Code releases and can differ by platform, so hardcoding an exact list would quickly go stale and mislead you. Grouping commands by purpose stays accurate over time: you learn what is possible, then confirm the precise spelling with /help. For the current, exact reference, check the official commands documentation.
What is the most important slash command to learn first?+
The help command and the clear command. Help lists everything available so you never have to guess, and clearing context between unrelated tasks is the cheapest way to improve answer quality and reduce token usage. Once those two are reflexive, add the compact, model-switch, and initialize commands to your routine.
What is the best way to memorize Claude Code slash commands?+
Spaced repetition. Reviewing a small deck a little each day moves commands from "I have to look it up" to instant recall. /cards for Claude Code is a flashcards app built for exactly this, and it pairs well with Claude Drops, which notifies you when new commands ship so your deck stays current.
Is Claude Drops affiliated with Anthropic?+
No. Claude Drops is an independent app and website from AI Drops that sends push notifications for new Claude Code releases and lets developers browse the full changelog. It is not affiliated with, endorsed by, or sponsored by Anthropic. Claude Code and Claude are products of Anthropic.