Cheat Sheet

CLAUDE
/COMMANDS
CHEAT SHEET

Every command. What it does. When to use it.

Core Commands

/help

Shows all available slash commands and keyboard shortcuts.

Pro Tip

Run this first in any new session to see what's available.

/init

Creates a CLAUDE.md file in your project with instructions for Claude.

Pro Tip

Put your coding standards, project context, and preferred patterns here. Claude reads it every session.

/clear

Clears the conversation history and starts fresh.

Pro Tip

Use this when context gets too long and responses slow down. Your CLAUDE.md persists.

/compact

Compresses conversation history to save context window space.

Pro Tip

Better than /clear when you want to keep working but free up tokens. Use often on long sessions.

/cost

Shows how much you've spent in the current session.

Pro Tip

Check this periodically. A single long session can cost more than you think.

/doctor

Diagnoses common issues with your Claude Code setup.

Pro Tip

Run this when things feel broken — permissions, auth, or config issues.

/login

Authenticates your Claude Code CLI with your Anthropic account.

Pro Tip

You'll need an API key or Claude Pro/Max subscription.

/logout

Logs you out of the current session.

Pro Tip

Use when switching between accounts or API keys.

/memory

Opens your persistent memory file where Claude stores context across sessions.

Pro Tip

Review this regularly. Remove outdated info so Claude doesn't hallucinate based on old context.

/review

Asks Claude to review your code changes (like a PR review).

Pro Tip

Run this before committing. It catches bugs, suggests improvements, and checks for security issues.

Bonus Commands

/fast

Switches to a faster, cheaper model for quick tasks.

Pro Tip

Perfect for simple edits, formatting, or questions that don't need deep reasoning.

/config

Opens the Claude Code configuration file.

Pro Tip

Set default model, custom instructions, key bindings, and more here.

/terminal-setup

Configures your terminal for optimal Claude Code experience.

Pro Tip

Sets up shell integration, keybindings, and autocomplete.

/vim

Toggles vim-style keybindings in the Claude Code interface.

Pro Tip

If you're a vim user, this makes navigation feel native.

/status

Shows current model, session info, and connection status.

Pro Tip

Quick way to check which model you're on and how much context is left.

More cheat sheets and frameworks — free, daily.

Follow @aibyflo on Instagram

Built with AI. Obviously.