01

Keyboard Shortcuts

Enter Send
Esc Interrupt
Esc Esc Rewind
Shift+Tab Cycle modes
Ctrl+C/D Cancel / Exit
Ctrl+R History search
Ctrl+T/O Tasks / Verbose
Ctrl+S Stash prompt
Ctrl+V Paste image
Ctrl+G Ext. editor
Cmd+P/T Model / Think
Ctrl+A/E Home / End
Opt+F/B Word fwd/back
Ctrl+W Del word
\+Enter New line
Ctrl+B Background
02

Slash Commands

/init Create CLAUDE.md
/clear Reset conversation history
/compact Compress context window
/rewind Undo chat turns & code
/cost Spend & plan limits
/context Token usage visualizer
/model Switch active model
/config Open settings
/permissions Tool access config
/keybindings Edit key shortcuts
/terminal-* Setup shift+enter
/doctor Health check
/memory Edit CLAUDE.md
/review Code review
/tasks Task list management
/agents Manage sub-agents & MCP
/teleport Move Web ↔ Local
/export Save chat to file
/insights HTML usage report
/pr_comments GitHub PR feedback
03

CLI Launch Flags

claude "query" Start with initial prompt
claude -p "query" Print mode — answer & exit
claude -c Continue last session
claude -r "name" Resume named session
claude -w name Start in git worktree
--add-dir ../path Add extra context dirs
--model opus Force specific model
--permission-mode plan Start in read-only
--output-format json JSON or stream-json output
--max-budget-usd N Set spend limit
--max-turns N Limit agentic turns
--allowedTools "Bash" Restrict tool access
--chrome Enable browser automation
04

Extensibility

1 CLAUDE.md
Project memory & conventions. Create via /init.
2 Custom Commands
Markdown prompts in .claude/commands/. Use $ARGUMENTS for input.
---
argument-hint: "file"
allowed-tools: ["Bash"]
---
3 Skills
Auto-invoked knowledge packs. .claude/skills/*/SKILL.md
4 Sub-Agents
Specialized AI instances. Manage via /agents.
5 MCP Servers
External tool APIs. claude mcp add/list
+ Plugins
Community bundles. /plugin or --plugin-dir
05

Settings & Files

Settings Hierarchy

Enterprise /etc/claude-code/managed-settings.json
Project Local .claude/settings.local.json
Project Shared .claude/settings.json (committed to Git)
User Global ~/.claude/settings.json

Config CLI

claude config list
claude config get <key>
claude config set|add <k> <v>

Global Directory ~/.claude/

CLAUDE.md Cross-project memory
keybindings.json Custom shortcuts
commands/ User commands
skills/ Skill packs
06

Event Hooks

Configure in settings.json to automate tool & session lifecycle.

PreToolUse — Validate, block, or modify before execution
PostToolUse — Check results, auto-format, lint
UserPromptSubmit — Before message is processed
Stop — When Claude finishes a response
SessionStart SessionEnd PreCompact Notification
07

Skills — auto-invoked via /name

Design & Build

/frontend-design Production-grade UI from scratch
/dev-browser Browser automation & testing
/claude-developer-platform Build with Claude API / SDK
/keybindings-help Customize keyboard shortcuts

Polish & Refine

/audit Full a11y, perf & theme audit
/optimize Speed, rendering & bundle size
/polish Final alignment & spacing pass
/harden Error handling, i18n, edge cases
/simplify Strip unnecessary complexity
/normalize Match your design system
/adapt Responsive across devices
/extract Pull reusable components

Visual Tuning

/bolder Amplify visual impact
/quieter Tone down intensity
/colorize Add strategic color
/animate Purposeful micro-interactions
/delight Add personality & joy
/clarify Improve UX copy & labels

Workflows

/onboard First-time user & empty states
/goodnight Prep for autonomous coding

Skills live in .claude/skills/*/SKILL.md — auto-triggered by context or invoked directly.

08

Modes & Input Magic

Permission Modes

Normal — Asks permission before actions
Plan Mode — Read-only exploration & planning
Auto-Accept — Runs all tools automatically

Input Shortcuts

@ Mention files or folders for smart context
! Inline shell — ! git status
| Pipe input — cat log | claude -p "fix"

Pro Tips

Use /compact to reclaim context tokens
Parallel work via claude -w branch worktrees