← The Vault

Claude Code Cheat Sheet: Keybindings, Hooks, and Syntax Not in the Docs

Everything I've learned using Claude Code 8 hours a day that isn't in the official documentation. Keyboard shortcuts, hook patterns, and undocumented features.

I've been using Claude Code as my primary development tool for four months. The official docs cover maybe 40% of what you need to know. Here's the rest.

Type `/` in the prompt to see the full list. There are 55+ built-in commands plus any custom skills you've added. Here are the ones I use daily:

- **/compact** - Summarize the conversation and free up context. Takes an optional argument for what to retain: `/compact keep the auth refactor context`. Use this when context exceeds 80%. - **/clear** - Wipe the conversation and start fresh. Use when switching tasks entirely. - **/cost** - Check how much you've spent this session. I check this every hour. - **/model** - Switch models mid-conversation. Great for dropping to Haiku for simple tasks. - **/init** - Auto-generates a CLAUDE.md by scanning your codebase. The output needs editing, but it's a 10-minute head start on a 2-hour task. - **/memory** - View and edit your project's memory files directly. - **/plan** - Enter plan mode. Claude analyzes and suggests but doesn't modify anything. Perfect for reviewing before a big refactor. - **/vim** - Enable vim keybindings in the prompt input. Supports mode switching, hjkl navigation, w/b/e word motions, d/c/y operators, and text objects. If you're a vim person, this changes everything. - **/keybindings** - Open the keybindings editor. Changes take effect immediately.

Continue reading in The Vault

This article is available to Inner Circle members.

Unlock access →

Already a member? Sign in