Skip to content

Claude CodeBest Practices

Comprehensive guide to Claude Code configuration, workflows, and best practices

Claude Code

At a Glance

52
Doc Pages
60+
Settings
65
Commands
170+
Env Vars
69
Tips
6
Video Talks

Concepts

ConceptDescription
SubagentsSpawn specialized agents with custom tools, models, and permissions
CommandsCustom slash commands (.claude/commands/) with YAML frontmatter
SkillsReusable capabilities (.claude/skills/) with context files
WorkflowsMulti-step orchestration: Command → Agent → Skill
HooksEvent-driven handlers triggered by Claude Code lifecycle events
MCP ServersModel Context Protocol integrations (Playwright, Context7, DeepWiki)
Settings5-level configuration hierarchy from managed to global
MemoryPersistent context via CLAUDE.md with monorepo loading strategies
CLI Flags40+ startup flags and environment variables
Power-UpsInteractive lessons teaching Claude Code features

Orchestration Pattern

The Command → Agent → Skill pattern is the recommended architecture:

ComponentRoleExample
CommandEntry point, handles user interaction/weather-orchestrator
AgentFetches data with preloaded skillsweather-agent + weather-fetcher
SkillCreates output independentlyweather-svg-creator

Learn more about the orchestration pattern →