Are you the author? Sign in to claim
Hands-on crash course for Claude Code with branch-based projects on MCP, subagents, hooks, and automation.

Welcome to the Claude Code Crash Course! This repository is designed to teach you the fundamentals and advanced concepts of Claude Code, Anthropic's official CLI for AI-powered software development, in a hands-on way.
Claude Code is an interactive command-line interface that brings Claude's AI capabilities directly to your development workflow. It helps with code analysis, bug fixing, feature development, refactoring, and workflow automation - all from your terminal.
This repository uses a unique branch-based structure for learning:
project/* branch covers a specific Claude Code feature or concept.Simply check out the branch for the topic you want to learn and walk through the commits!
Here are the topics currently available:
| Branch | Topic | Description |
|---|---|---|
project/custom-commands | 🔧 Custom Commands | Learn to extend Claude Code with custom functionality like dad joke generators and automated commits |
project/mcp | 🔗 MCP Integration | Master Model Context Protocol integration with Context7 MCP server |
project/context-engineering-mcp | ⚡ Fine-Grained MCP Configuration | Optimize context tokens with task-specific MCP configurations using --mcp-config flag |
project/subagents | 🤖 Subagents | Build specialized AI agents within Claude Code like Code Comedy Carl |
project/hooks-notifications | 🎣 Hooks & Notifications | Automate your workflow with sound notifications and event triggers |
project/hookhub | 🏢 Hook Hub | Advanced hook management and organization systems |
More topics might be added, so keep an eye out!
Before you start, make sure you have the following installed:
git clone https://github.com/emarco177/claude-code-crash-course.git
cd claude-code-crash-course
# Example for the custom commands topic
git checkout project/custom-commands
git log --oneline --reverse to see the chronological list of commits for the branch. Then, use git checkout <commit_hash> or your Git client to step through the history and learn.Contributions are welcome! If you'd like to add a new topic or improve an existing one:
project/your-claude-code-feature-name.main branch.This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Happy learning! 🎉
Hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI). Up to 95% ba
Claude Code hook that writes a forward-only why-block (decisions, trade-offs, assumptions, limitations) into your PR des
Blocks dangerous git and shell commands from being executed by AI coding agents
One command to install 6 essential safety hooks in 10 seconds — zero dependencies