Prerequisites
Before you begin, ensure you have Claude Code installed and authenticated:If you don’t have Claude Code yet, visit code.claude.com for installation instructions.
What you’ll accomplish
By the end of this quickstart, you’ll:- Understand the
.claude/directory structure - Run a complete Command → Agent → Skill orchestration workflow
- Create your first custom command
- Know where to go next for advanced patterns
Clone the repository
Start by cloning the Claude Code best practices repository:This repository serves as a reference implementation demonstrating:
- Commands, agents, and skills working together
- Cross-platform hooks for voice feedback
- MCP server integrations
- Real-world configuration patterns
Explore the .claude/ directory
The
.claude/ directory contains all Claude Code customizations. Let’s explore its structure:View key configuration files
View key configuration files
settings.json - Project-level settings for permissions, hooks, and output style:CLAUDE.md - Project memory that Claude reads on every session:
Run the weather orchestration example
Now let’s run the weather orchestration workflow, which demonstrates the Command → Agent → Skill pattern:Here’s what happens behind the scenes:The workflow produces:
orchestration-workflow/weather.svg- An SVG weather cardorchestration-workflow/output.md- Temperature summary
Create your first custom command
Let’s create a simple command to automate commit message generation:Now test your new command:
Advanced: Add argument support
Advanced: Add argument support
You can make commands accept arguments using
$ARGUMENTS or $N:Next steps
Congratulations! You’ve successfully:
- Explored the
.claude/directory structure - Run a complete orchestration workflow
- Created your first custom command
Core concepts
Deep dive into commands, agents, and skills
Commands
Learn about frontmatter fields and invocation patterns
Subagents
Build specialized subagents with tools and permissions
Skills
Create reusable workflows and domain knowledge
Recommended reading order
- Commands - Entry-point prompts for workflows
- Subagents - Custom agents with specialized capabilities
- Skills - Reusable knowledge and procedures
- Orchestration workflow - Command → Agent → Skill patterns
- Hooks - Event-driven automation
Additional resources
- Claude Code Documentation - Official documentation
- Best Practices Repository - Reference implementation
- Changelog - Latest features and updates
Key takeaways
Commands are entry points that orchestrate workflows. Agents fetch data and execute specialized tasks using their preloaded skills. Skills are reusable knowledge blocks that can be invoked independently or preloaded into agents.
- Agent skill (
weather-fetcher): Preloaded into the agent as domain knowledge - Skill (
weather-svg-creator): Invoked independently via the Skill tool
- Cleaner code organization
- Progressive disclosure of context
- Reusable components across workflows
Common pitfalls to avoid
- Don’t let
CLAUDE.mdexceed 150 lines - it impacts adherence - Always use the
Tasktool for subagent orchestration, never bash commands - Perform manual
/compactat ~50% context usage - Start with plan mode (
/plan) for complex tasks - Commit often - as soon as a task is completed
