Free Download ยท Cheat Sheet
Claude Code Command Card.
The one-page reference for using Claude Code without the fear. Pin it next to your terminal โ the commands, the safe defaults, and the workflow that keeps you in control.
โณ Companion to the Claude Code Confidence course
๐ The one habit that keeps you safe
AskโReviewโApprove
Never let an agent run blind. It proposes, you review what it wants to do (especially anything that deletes, installs, spends, or touches the internet), then you approve before it runs. Speed never outruns judgment.
โจ๏ธ Essential commands
claudeStart an interactive session in the current project folder.
claude -p "task"Run one task and exit (great for quick, scoped jobs).
claude -cContinue your most recent session.
/resumeReopen an earlier session from inside the CLI.
/clearStart fresh โ and make Claude re-read your CLAUDE.md.
/compactSummarize a long session without losing the main thread.
/planAsk for a plan (files, risks, steps) before any edits happen.
claude --version ยท
claude doctorCheck your install and diagnose setup issues.
๐ Permissions โ start safe
Ask modeThe beginner default. Claude requests approval for writes & shell actions.
AllowlistPre-approve narrow, repeatable, safe actions only (e.g. read + one test command).
Skip permissionsโ Reserve for tightly-controlled automation. Never for everyday learning.
A safe starter allowlist (in settings)
{
"permissions": { "allow": [
"Read", "Glob", "Grep", "Bash(npm test*)"
] }
}
โ Never allowlist Bash(*) โ it permits any shell command. And never paste API keys or secrets into a prompt or a project file; they belong in environment variables.
๐ CLAUDE.md โ your project playbook
# My Project
## Project Context
What this product does and who it serves.
## Stack
- Frontend: React + Vite
## Code Standards
- Keep components small and accessible
- Don't change shared brand tokens without asking
## Commands
- npm run dev โ starts the preview
- npm test โ runs tests
Three levels: ~/.claude/CLAUDE.md (follows you everywhere) ยท ./CLAUDE.md (this repo) ยท ./src/CLAUDE.md (one area). Edited it? Run /clear so Claude re-reads it.
๐ The workflow that prevents chaos
PlanโApproveโBuild (small)โReview the diffโTestโCommit
The golden rule: the plan describes intent, the diff shows the edits, the tests provide evidence. You need all three for real work โ a confident explanation is not proof.