Claude Code Commands Cheat Sheet

Back to the full guide

Session commands

CommandWhat it does
/clearWipes the conversation, starts fresh
/compactSummarizes history to free up context
/modelSwitches between Claude models
/costShows token usage and session cost
/agentsLists and manages available subagents
/initScans the project, writes a CLAUDE.md
/rewindRolls files back to an earlier checkpoint
--resumeReopens a previous session with full history

Plan Mode & checkpoints

Toggle Plan Mode with Shift+Tab. Claude proposes a step-by-step plan and waits for approval before touching a file. Every accepted edit becomes a checkpoint you can undo with /rewind.

Custom commands

Save a markdown file in .claude/commands/ (or ~/.claude/commands/ for global) and the filename becomes a slash command. Use $ARGUMENTS to accept input:

# .claude/commands/fix-issue.md
Find and fix issue #$ARGUMENTS in this repo.

/fix-issue 482 runs it against issue #482.

Skills

A folder in .claude/skills/ bundling instructions with scripts or reference files. Claude loads the right one automatically when a task matches — a step up from a single-prompt custom command.

Hooks & MCP

Hooks: run your own shell commands at points in the workflow — auto-format after an edit, block a risky git push.
MCP: connects Claude Code to outside tools — Slack, a database, your CRM.

The 80/20

/clear between unrelated tasks, /compact when a session drags, Plan Mode before anything risky, one or two custom commands or Skills for your most repeated task. That covers most of the daily value.


Ready to build something that pays?

AI Automation Agency is a full paid module — which automations clients pay for, what to charge, how to land client #1 — built with this exact workflow.

Get my plan →