Claude Cheat Sheet
"Claude" isn't one product — knowing which surface you're in changes what's possible.
Beginner
| Surface | What it is | Best for |
|---|---|---|
| Claude.ai | the chat web app / desktop app | conversations, research, writing, quick questions, Projects |
| Claude Code | an agentic CLI/IDE tool that reads, edits, and runs code in your actual repo | real software engineering work — the rest of this section is about this one |
| API (Messages API) | direct programmatic access — no UI at all | building your own product or automation on top of Claude |
curl -fsSL https://claude.ai/install.sh | bash
[help]
the recommended install for macOS, Linux, and WSL — auto-updates in the background
CLAUDE.md you've
left for it (see Effective Prompting).
tail -200 app.log | claude -p "Slack me if you see any anomalies"
git diff main --name-only | claude -p "review these changed files for security issues"
-p flag runs Claude Code non-interactively — give it a prompt, let it
finish, read the result — the mode that fits inside a script or a CI job rather than an
interactive terminal session (see
Claude Code for Remote/GPU Workflows for more on this).
| Habit | Why it matters |
|---|---|
| State the goal, not just the step | "fix this bug" gives Claude room to find the actual root cause; "change line 42" doesn't |
| Give the why, not just the what | constraints and reasons let Claude make good judgment calls on the parts you didn't specify |
| Say what you've already tried | prevents re-treading dead ends you've already ruled out |
| Correct early, not at the end | a wrong assumption compounds the longer a task runs before you catch it |