03Topic 3 of 15
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. Note $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
Keep going