03Topic 3 of 15

Claude Code commands

Hooks, subagents, slash commands, CLAUDE.md, permissions, context, and costs.

9 plates · 31 min to read them all


  1. 03.01 How to Set Up a CLAUDE.md That Actually Helps Run /init, keep CLAUDE.md under 200 lines, and confirm it loaded with /context. Plus .claude/rules for path-scoped instructions and @path imports. 4 min
  2. 03.02 Create a Custom Slash Command in Claude Code Drop a Markdown file in .claude/commands/ and the filename becomes the command. Note $0 is the first positional argument, and skills are now preferred. 3 min
  3. 03.03 How to Configure Hooks in Claude Code Hooks run a shell command on Claude Code events. Note $CLAUDE_FILE_PATHS no longer exists — read the file path from the JSON on stdin instead. 4 min
  4. 03.04 How to Use Subagents in Claude Code A subagent is a separate Claude with its own context window. Write one as a Markdown file in .claude/agents/ — note /agents is no longer a wizard. 3 min
  5. 03.05 Manage Context in Claude Code: /clear, /compact Use /clear between tasks, /compact within one, /context to see what fills the window, and claude -c to resume. Keeps long sessions fast and cheap. 3 min
  6. 03.06 How to Track and Cut Claude Code Token Usage Run /usage to see session tokens, cost and plan limits — /cost is now just an alias. Then cut waste with /clear, subagents and the right model. 3 min
  7. 03.07 Control What Claude Code Can Do: Permissions Claude Code now starts in auto mode on Pro, Max and Team plans. Shift+Tab to switch, and write allow/deny rules that actually match the command. 4 min
  8. 03.08 Claude Code settings.json: Which File, Which Key The four settings files Claude Code reads, which one wins when they disagree, and the handful of keys worth setting on day one. 3 min
  9. 03.09 Claude Code Skills and Plugins Skills are folders with a SKILL.md. Plugins bundle skills, agents and hooks for sharing. Install one from a marketplace, then write your own. 4 min

Keep going

Other topics

All 105 plates →
  1. 01 Install & set up 5
  2. 02 First steps 4
  3. 04 Workflows 6
  4. 05 MCP 8
  5. 06 Claude 2
  6. 07 ChatGPT 6
  7. 08 Cursor 3
  8. 09 Local LLMs 12
  9. 10 Prompting 8
  10. 11 Choosing tools 5
  11. 12 AI images 7
  12. 13 Everyday tasks 7
  13. 14 Other coding agents 5
  14. 15 Building with the API 18

↑↓ move↵ openalt+↵ copy first command

Keyboard

⌘/ctrl+K or /
Search all guides
alt+↵
In search: copy the guide's first command
j / k
Move through a list of guides
c
On a guide: copy its first command
t
Toggle light / dark
?
This list