Search across all documentation pages
11 pages in this section.
Distinguish reusable slash commands, lifecycle hooks, and isolated subagents as three separate extension points.
Learn to create custom slash commands and spawn subagents in Claude Code. This guide covers basic and intermediate examples for extending functionality.
Learn to create custom slash commands using Markdown frontmatter. Define reusable prompts with metadata and body text for consistent, efficient interactions.
Automate tasks after Claude Code edits files. Learn to configure PostToolUse hooks in settings.json to trigger shell commands for auto-formatting, linting, or logging.
Learn why subagents operate with isolated context windows and scoped tools, preventing context overflow and unrestricted access in your main session.
Spawn multiple subagents in parallel to research independent code sections concurrently. Learn to fan out research tasks for faster, cleaner results.
Follow these best practices for custom commands, hooks, and subagents to avoid common pitfalls. Learn naming conventions, how to scope hooks, and delegate tasks effectively.
A single-page roundup of every highlight bullet from the 10 pages in the Commands, Hooks & Subagents section, grouped by source page so you can scan all 43 takeaways without opening each article individually.