Claude Code Cheat Sheet

zero2hero | The essential commands and workflows

Terminal Basics

cd folderEnter folder
cd ..Go up one level
mkdir nameCreate folder
lsList files
pwdCurrent location
TabAuto-complete

Claude Code Basics

claudeLaunch Claude Code
Ctrl+C twiceExit Claude Code
Ctrl+OView last output
Ctrl+TView todo list
Cmd+TNew terminal tab
!commandRun bash inside

Slash Commands

/initCreate CLAUDE.md
/clearReset session
/modelSwitch AI model
/auditDesign analysis
/animateAdd animations
/bolderMore impactful

More Style Kit

/colorizeEnhance colors
/quieterTone down
/polishFinal refinements
/simplifyReduce complexity
/hardenError handling
/adaptResponsive design

Git Workflow

git statusCheck changes
git add .Stage all files
git commit -m ""Commit
git pushPush to GitHub
git pullPull latest

Installation

npm install -g @anthropic-ai/claude-code

Important: Copy and run the PATH export line shown after install!

First Project Workflow

1

Create and enter folder: mkdir my-project && cd my-project

2

Launch Claude Code: claude

3

Describe what you want in natural language

4

Approve actions (recommend "Yes, allow all" for session)

5

Preview: "Run this website locally so I can preview it"

Style Kit Setup

1

Copy .claude folder to home: cp -r ~/Downloads/.claude ~/

2

Exit Claude Code if running

3

Restart: claude

Critical: Skills load at startup! Always restart after adding.

Deploy to Live Website

GitHub Setup

1

Create repo at github.com

2

Ask Claude to set up git & SSH

3

git push

Netlify Setup

1

Log into netlify.com

2

Import from GitHub

3

Deploy (leave config empty)

Daily Workflow

1

Make changes in Claude Code

2

"Commit everything"

3

"Push" - auto deploys!

Troubleshooting

Skills not working?Exit, verify .claude folder, restart Claude
Context left until auto compactType /clear to reset
Exceeds maximum tokensFile too large, refactor or work in sections
Command not found: claudeRe-run PATH export, restart terminal
Undo last change?Press Escape twice after Claude finishes

Pro Tips

*

Run /init on existing projects

*

Break large files into components

*

Opus 4.5 is best for most work

*

Use Cmd+T for parallel sessions