Quick Reference

⚡ Claude Code Cheat Sheet

Commands, shortcuts, CLAUDE.md syntax, hook events, MCP setup — everything on one page.

CLI Commands
Command / ItemWhat it does
claudeStart Claude Code in the current directory
claude "your prompt"One-shot task — no interactive mode
claude --resumeResume your last conversation session
claude --model claude-opus-4-6Use a specific model
claude mcp add --transport http [name] [url]Add an MCP server
claude mcp listList all configured MCP servers
claude configOpen configuration settings
Keyboard Shortcuts (Interactive Mode)
Command / ItemWhat it does
EnterSubmit your message
Shift+EnterNew line without submitting
Ctrl+CCancel current operation
Ctrl+LClear the screen
↑ / ↓Navigate message history
TabAutocomplete file paths and skill names
Slash Commands
Command / ItemWhat it does
/helpShow all available commands
/clearStart fresh (keeps CLAUDE.md context)
/compactCompress conversation history to save tokens
/hooksInteractive hook configuration wizard
/permissionsView and manage what Claude can access
/skillsList all available custom skills
/[skill-name]Invoke a custom skill (defined in .claude/skills/)
CLAUDE.md File Sections
Command / ItemWhat it does
# Project OverviewWhat this project is, who it's for, what it produces
## My RoleYour job title and responsibilities in this context
## Client / Company InfoName, industry, services, audience, tone
## Writing StyleVoice, tone, words to use/avoid, length preferences
## File OrganizationWhere things live, naming conventions
## Key CommandsScripts or commands Claude should know about
## RulesNon-negotiable constraints (security, format, process)
## Current FocusWhat you're working on right now
Hook Events (.claude/settings.json)
Command / ItemWhat it does
PreToolUseBefore Claude uses any tool (file read, edit, bash...)
PostToolUseAfter Claude uses a tool — great for auto-format or logging
NotificationWhen Claude sends a notification or needs your attention
StopWhen Claude finishes a task — great for done alerts
Skill File Structure (.claude/skills/[name]/SKILL.md)
Command / ItemWhat it does
name:The slash command name (e.g. weekly-report)
description:What Claude shows when you run /skills
user-invocable: falseClaude-only skill (hidden from slash commands)
$ARGUMENTSPlaceholder for text typed after the slash command
Location.claude/skills/[skill-name]/SKILL.md in your project
Popular MCP Servers
Command / ItemWhat it does
claude mcp add --transport http notion https://mcp.notion.com/mcpConnect Notion
claude mcp add --transport http github https://api.githubcopilot.com/mcpConnect GitHub
claude mcp add slack npx @modelcontextprotocol/server-slackConnect Slack
claude mcp add gdrive npx @modelcontextprotocol/server-gdriveConnect Google Drive

HivePowered AI — AI Like a Pro Training  |  Quick Reference