Claude Code Cheat Sheet

Quick reference for getting things done with Claude Code in the terminal

0. Install Everything

Before you can use Claude Code, you need a few things installed. Do these once, then you're set.

Homebrew (Mac Package Manager)

Open Terminal (Spotlight → type "Terminal") and paste this:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the prompts. This also installs Git and Apple's command line tools.

Node.js

brew install node

VS Code

Download from code.visualstudio.com and drag it to Applications. Then open VS Code, press Cmd+Shift+P, type "shell command", and select Install 'code' command in PATH.

Docker Desktop

Download from docker.com and install. Needed for AutoMem (persistent memory).

Claude Code

curl -fsSL https://claude.ai/install.sh | bash

Git for Windows (Required First)

Download from git-scm.com and install with default settings.

Node.js

Download the LTS installer from nodejs.org and run it.

VS Code

Download from code.visualstudio.com and install. Check "Add to PATH" during setup.

Docker Desktop

Download from docker.com and install. Needed for AutoMem (persistent memory).

Claude Code

Open PowerShell and run:

irm https://claude.ai/install.ps1 | iex

Git & Node.js

sudo apt update && sudo apt install -y git nodejs npm

VS Code

Download the .deb or .rpm from code.visualstudio.com, or install via snap:

sudo snap install code --classic

Docker Desktop

Follow instructions at docs.docker.com. Needed for AutoMem (persistent memory).

Claude Code

curl -fsSL https://claude.ai/install.sh | bash
You'll need an Anthropic account with a Pro, Max, or Team plan to use Claude Code. Sign up at claude.ai.

1. Open Your Terminal

In VS Code: press Cmd+` (backtick — the key above Tab). That opens the terminal panel at the bottom of your editor.

No VS Code? Open Spotlight (Cmd+Space), type Terminal, hit Enter.

In VS Code: press Ctrl+` (backtick — the key above Tab). That opens the terminal panel at the bottom of your editor.

No VS Code? Click Start, type PowerShell, hit Enter.

In VS Code: press Ctrl+` (backtick — the key above Tab). That opens the terminal panel at the bottom of your editor.

No VS Code? Open Terminal from your application menu.

Start Claude Code

claude

That's it. Type claude and hit Enter. You're in a conversation.

2. Skip the Permission Prompts

Claude asks for permission before every action. Here's how to turn that off.

Auto Mode (Recommended)

An AI reviews each action and auto-approves safe ones. Smart guardrails, no interruptions.

claude --auto

Make It Your Default

Create a shortcut so you just type cc instead:

echo 'alias cc="claude --auto"' >> ~/.zshrc
source ~/.zshrc

Run this in PowerShell, then restart PowerShell:

Add-Content $PROFILE 'function cc { claude --auto @args }'
echo 'alias cc="claude --auto"' >> ~/.bashrc
source ~/.bashrc
Now just type cc to start Claude Code in auto mode.

Full Send: Skip All Permissions

Approves everything automatically. No guardrails. The command name is intentionally scary.

claude --dangerously-skip-permissions

Want this as your shortcut instead? Change the alias:

echo 'alias cc="claude --dangerously-skip-permissions"' >> ~/.zshrc
source ~/.zshrc

Edit your PowerShell profile and change the function:

notepad $PROFILE

Replace the cc function with:

function cc { claude --dangerously-skip-permissions @args }
echo 'alias cc="claude --dangerously-skip-permissions"' >> ~/.bashrc
source ~/.bashrc

3. Skills to Run First

These are skills you can give your agent to set up its personality, memory, and capabilities. Copy the prompt, paste it into Claude Code, and let it do the work.

Create Your Agent's Identity & Soul

Walks you through an interview to create IDENTITY.md and SOUL.md — gives your agent a name, personality, and behavioral rules.

Read this skill and use it to create my agent's identity and soul files: https://gist.github.com/flintfromthebasement/90fedfb062a76f903dbc8596d8d8847d
Set Up AutoMem (Persistent Memory)

Gives your agent long-term memory across sessions. Requires Docker Desktop — install that first.

Read the Docker Compose setup instructions at https://github.com/verygoodplugins/automem and help me set up AutoMem locally. Then configure it as an MCP server in my Claude Code settings.
Create a Voice Profile

Analyzes your writing samples to capture your voice — so the agent can write like you, not like a robot.

Read this voiceprint skill and use it to create a voice profile for me: https://github.com/jamesckemp/claude-plugins/tree/master/voiceprint
Watch YouTube Videos

Lets your agent pull transcripts from YouTube videos so it can summarize, analyze, or reference video content.

Read this skill and set it up so you can watch YouTube videos: https://gist.github.com/flintfromthebasement/1dd03ea0f3f23e261dd0dd932c9a7c07
Query Google Analytics (GA4)

Lets your agent pull website analytics data and report on traffic, conversions, and campaign performance.

Read this skill and set it up so you can query our Google Analytics: https://gist.github.com/flintfromthebasement/4d2c098cd01de9bcc4addcb5a0955bdc
You don't have to do all of these at once. Identity & Soul is the best starting point. Add memory and voice when you're ready.

4. How It Works

The Loop: You → Claude → You

Claude Code is a conversation. You describe what you want, Claude does the work (writes copy, builds pages, generates assets, edits files), then you review and keep going. Each round gets closer to what you need.

You don't need to get your prompt perfect. Start rough, then iterate. "Make the headline punchier." "Actually, target it at small business owners." "Add a testimonial section." That's the workflow.

Feed It Context — The More the Better

Claude works best when it knows what you're working with. Don't be shy — dump everything in:

More context = better output. A vague ask gets a vague answer. A specific ask with brand voice docs, examples, and reference screenshots gets exactly what you want.

5. Your Project Folder

Opening a Project in VS Code

In VS Code: File → Open Folder, then pick your project. The terminal inside VS Code will automatically be in that folder.

Or from Terminal: code ~/Projects/my-website

Or from PowerShell: code ~\Projects\my-website

Or from Terminal: code ~/Projects/my-website

Claude Code is designed to run from inside a single project folder. Open your project folder in VS Code, open the terminal, and run claude from there.

Since you are using an AI agent, your agent manages multiple projects from one home folder. The folder structure looks like this:

my-agent/
  CLAUDE.md          ← agent instructions
  IDENTITY.md        ← agent personality
  SOUL.md            ← agent values & behavior
  skills/            ← task recipes the agent can run
  projects/          ← individual project folders live here
    website/
    email-campaigns/
    landing-pages/

What's in Your Project Folder

You'll notice some special files and folders Claude uses:

CLAUDE.md Instructions for Claude — project rules, preferences, conventions
IDENTITY.md Who the AI is — name, personality, tone of voice
SOUL.md How the AI behaves — values, communication style, boundaries
skills/ Step-by-step recipes for specific tasks (like a playbook)
.claude/ Claude Code settings, custom commands, and hooks
.git/ Git's tracking data (don't touch this — Git manages it)

6. Things to Say to Claude

Just type what you want in plain English. Here are some starting points:

Create Content & Assets

Edit & Improve

Research & Understand

Get More Out of It

7. Commands & Controls

Type these inside a Claude Code session:

/help Show all available commands
/model Switch between Opus, Sonnet, Haiku
/model sonnet Switch to a specific model
/compact Compress the conversation (saves memory)
/clear Start fresh within the same session
/resume Pick up a previous conversation where you left off
/cost See how much this session has cost
! ls Run any terminal command without leaving
Esc Stop Claude mid-task
/exit Exit Claude Code

8. Git — Just Ask Claude to Do It

Git tracks changes to your code. You don't need to memorize commands — just ask Claude.

First Time? Let Claude Set It Up

If you don't have Git set up yet, just ask:

Install git if it's not installed, then set up git in this project folder. My name is [Your Name] and my email is [you@example.com].

Quick Vocabulary

Repo
Your project folder (tracked by Git)
Commit
A save point — a snapshot of your changes
Push
Upload your commits to GitHub
Pull
Download the latest changes from GitHub

Say This to Claude

Always pull before you start working, and push when you're done. Ask Claude to remind you.

Working with a Team? You'll Also Use:

Branch
A separate copy to work on without affecting the main code
PR (Pull Request)
Ask the team to review and merge your branch
Main / Dev
The primary branch — the "real" version of the code

If you're working solo, you can ignore branches and PRs. Just commit and push.

9. Memory

Your agent uses AutoMem to remember things across sessions — decisions, preferences, lessons learned, and completed work. You can talk to it directly.

Starting a Session

Open with context so the agent recalls what it knows:

Ask It to Remember Something

Ask It to Recall

Ending a Session

Before you close out, ask the agent to save what it learned:

The more you teach it, the less you repeat yourself. Store preferences, decisions, and brand rules early — it pays off in every future session.

10. Pro Tips

Images & Screenshots

You can drag and drop images into the conversation. Drop a screenshot of a design and say build this. Drop a screenshot of a bug and say fix this.

The Interview Prompt

When you have a big idea but aren't sure how to describe it, start with: "Interview me until you have 95% confidence about what I actually want. Then do the work."

11. When Things Go Wrong

Claude seems confused Type /clear and start over
Session is getting long/slow Type /compact to free up memory
Wrong model / too expensive Type /model sonnet (cheaper & fast)
Claude broke something Say undo that — Git can reverse changes
Need to stop it mid-task Press Esc to interrupt
Closed the terminal by accident Type /resume to pick up where you left off