SLASH COMMANDS · @ MENTIONS · CLI FLAGS · POWER TRICKS · CONFIG (j.n)

Claude Code Master Cheat Sheet — all in one place:

Claude Code Master Cheat Sheet

Every slash command, @ mention, CLI flag, and power trick — all in one place.

By @Dav23Jonn76


/ Slash Commands

Command What It Does Mental Model
/help Show all commands Open the manual
/clear Clear conversation history Fresh whiteboard
/compact Summarize + compress context Zip the memory
/cost Show token usage & cost Check the bill
/status Show current session info Dashboard
/bug Report a bug to Anthropic File a ticket
/review Request code review Call in the expert
/init Init CLAUDE.md in project Set up home base
/memory Edit CLAUDE.md memory file Edit the brain
/model Switch AI model Change the engine
/terminal-setup Install shell key bindings Wire the keyboard
/vim Toggle vim mode Summon vim spirit

@ Mentions

Syntax What It Does Mental Model
@filename Add a file to context Hand Claude a file
@folder/ Add entire folder Hand Claude a folder
@url Fetch & read a URL live Read a webpage
@git Reference git context Read the repo history
@changes Include git diff/changes Show what changed
@README.md Load project README Brief Claude on project
@package.json Load package info Show dependencies
@*.test.ts Glob pattern file match Batch load files

- CLI Flags

Flag What It Does Mental Model
--print / -p Print response, no interactive UI One-shot mode
--output-format Set output: text / json / stream Choose the format
--model Specify which model to use Pick the engine
--no-tools Disable all tools Chat only mode
--allowedTools Whitelist specific tools Selective permissions
--dangerously-skip-permissions Skip all confirmations Auto-approve all 🚨
--verbose Show detailed logs Debug mode on
--max-turns Limit agentic loop turns Set a leash
--system-prompt Override system prompt Custom instructions
--resume Resume a past session by ID Load a save file
--continue / -c Continue last conversation Pick up where left off
--version Show Claude Code version Version check

CLAUDE.md & Config

Concept What It Does Mental Model
CLAUDE.md Project memory Claude always reads Standing orders
~/.claude/CLAUDE.md Global memory across all projects Personal rules
settings.json Config file for permissions & tools Claude's rulebook
allowedTools Tools Claude can use without asking Pre-approved list
blockedTools Tools Claude can never use Banned list
ANTHROPIC_API_KEY Your API key env variable Secret credential
/init Auto-generate CLAUDE.md from codebase Auto-brief Claude
MCP servers Connect external tools to Claude Plugin system

💡 Pro tip: Put your stack, coding style, and never-do rules in CLAUDE.md once. Claude will follow them forever across that project.

# CLAUDE.md example

## Stack
- Next.js 14, TypeScript, Tailwind
- Supabase for database

## Rules
- Never use var, always const/let
- Always add error handling
- Write tests for every function