03Topic 3 of 16
Claude Code commands
Hooks, subagents, slash commands, CLAUDE.md, permissions, context, and costs.
- 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
- 03.02 Create a Custom Slash Command in Claude Code Drop a Markdown file in .claude/commands/ and the filename becomes the command. $0 is the first positional argument, and skills are now preferred. 3 min
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 03.10 Claude Code usage limits and how to track them What session, weekly, and per-model limits mean on Pro and Max, how /usage shows your plan usage, and what to do when you hit a limit. 3 min
- 03.11 Pick the right Claude model in Claude Code Switch between Opus, Sonnet, and Haiku with /model, set a default, and match the model to the job without guessing at prices or benchmarks. 3 min
- 03.12 Claude Code memory: the CLAUDE.md hierarchy and /memory Claude Code concatenates CLAUDE.md from managed policy, your home dir, the project, then CLAUDE.local.md. Inspect it with /memory and @path imports. 3 min
- 03.13 Change how Claude Code responds with output styles List, switch, and build output styles in Claude Code with /output-style, and see how a style differs from CLAUDE.md and the system prompt. 3 min
- 03.14 Fix Claude Code usage/rate limit reached Hit a usage or rate limit in Claude Code? What the session, weekly, and per-model limits mean, and the fastest ways to get working again. 3 min
Keep going