- Add DeepTo Claude Code Guide reference to Resources section - Document all DeepTo additions in CHANGELOG: • Image processing (direct terminal input) • Session continuation/resume (--continue, --resume) • XML-structured prompts (semantic tags) • ccusage CLI tool (cost analytics) • Unix piping workflows (automation patterns) - Update version to 2.3 across all documentation - Include proper source attribution throughout Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| examples | ||
| .gitignore | ||
| CHANGELOG.md | ||
| cheatsheet-en.md | ||
| claude-code-ultimate-guide_kimi.pdf | ||
| claude-code-ultimate-guide_notebooklm.pdf | ||
| claude-setup-audit-prompt.md | ||
| CONTRIBUTING.md | ||
| english-ultimate-claude-code-guide.md | ||
| IMPROVEMENT_RECOMMENDATIONS.md | ||
| LICENSE | ||
| llms.txt | ||
| README.md | ||
Claude Code Guide: Complete Tutorial & Best Practices
The comprehensive guide to Claude Code — Anthropic's AI coding assistant CLI. From installation to advanced MCP servers, agents, skills, hooks, and CI/CD integration.
Author: Florian BRUNIAUX | Founding Engineer @Méthode Aristote
Contact: LinkedIn
Written with: Claude (Anthropic)
If you find this guide useful, please consider giving it a star! It helps others discover this resource and motivates continued updates.
What's Inside
| File | Description | Reading Time |
|---|---|---|
english-ultimate-claude-code-guide.md |
Complete guide (8900+ lines, 33K+ words) | ~3 hours |
cheatsheet-en.md |
1-page printable daily reference | 5 minutes |
claude-setup-audit-prompt.md |
Self-audit prompt for your setup | ~10 minutes |
examples/ |
Production-ready commands, hooks, agents | Browse as needed |
claude-code-ultimate-guide_notebooklm.pdf |
NotebookLM slides export | ~20 minutes |
claude-code-ultimate-guide_kimi.pdf |
PDF version (Kimi export) | ~3 hours |
🔍 Explore Interactively
DeepWiki: Interactive Documentation
Transform this repository into an interactive AI-powered documentation explorer:
- Ask questions in natural language about the guide
- Navigate contextually through interconnected concepts
- Search semantically beyond keyword matching
- Get summaries of specific sections on demand
Perfect for quick lookups when you don't want to read the full 8900+ lines.
About This Guide
Our Pedagogical Approach
Unlike reference manuals that simply list features, this guide follows a learning journey designed to take you from beginner to power user. We focus on:
- Understanding why before diving into how
- Real-world patterns you can use immediately
- Progressive complexity — start simple, master advanced techniques at your pace
- Practical workflows over theoretical concepts
Think of this as your mentor for mastering Claude Code — not just documentation.
Origins & Philosophy
This guide is the result of several months of daily practice and research with Claude Code, Anthropic's AI coding assistant CLI. Whether you're exploring agentic development, LLM-powered coding workflows, or AI pair programming, this resource covers everything from basic setup to advanced MCP server orchestration.
I don't claim to be an "expert" — I'm simply sharing what I've learned along the way, humbly hoping to help my peers and evangelize good practices in AI-assisted development.
Key inspirations for this work:
- Claudelog.com — Excellent tips, patterns & tutorials (highly recommended)
- zebbern/claude-code-guide — Comprehensive reference & troubleshooting guide with cybersecurity focus
- ykdojo/claude-code-tips — Practical tips & productivity techniques from Y.K. Dojo
Important note: This guide was largely generated with the help of AI. As such, it likely contains errors, inaccuracies, or outdated information. I would be delighted to receive any feedback, corrections, or — even better — pull requests to improve it. Don't hesitate to open an issue or submit a PR!
⚠️ WINDOWS USERS - IMPORTANT DISCLAIMER
I work on macOS and have not personally tested Windows-specific commands (PowerShell, batch files, path syntax).
What this means for you:
- PowerShell scripts are AI-generated and may need adjustment
- Path separators (
\vs/) may be incorrect in some examples- Batch file hooks may require debugging
- Git Bash commands should work as-is (they use Unix syntax)
How you can help:
- Open an issue if you find Windows-specific problems
- Submit a PR with corrections (Windows testers highly appreciated!)
- Join our community discussions to share Windows-specific tips
Status: We are actively seeking Windows contributors to improve platform support.
Language: I wrote this guide in English by default to reach a wider audience, but French is my native language. I could easily translate it to French myself, or leverage AI and community contributions for other languages. Let me know if translations would be useful!
If you find value in this guide, have questions, or want to discuss Claude Code practices, feel free to reach out on LinkedIn.
Ready-to-Use Examples
The examples/ directory contains production-ready templates you can copy directly into your projects:
🎯 Commands (Slash Commands)
| Command | Purpose | Highlights |
|---|---|---|
| /pr | Create PRs with scope analysis | Complexity scoring, auto-detect scope issues, split suggestions |
| /release-notes | Generate release notes (3 formats) | CHANGELOG + PR body + Slack announcement, migration detection |
| /sonarqube | Analyze SonarCloud quality issues | Executive summary, top violators, action plan |
| /commit | Conventional commit messages | Follows team conventions, auto-formats |
| /review-pr | PR review workflow | Structured feedback, security checks |
| /git-worktree | Isolated git worktree setup | Safe parallel development |
🛡️ Hooks (Event Automation)
| Hook | Event | Purpose |
|---|---|---|
| dangerous-actions-blocker.sh | PreToolUse | Block rm -rf /, force push, secrets, dangerous edits |
| notification.sh | Notification | macOS sound alerts (success, error, warning) |
| security-check.sh | PreToolUse | Detect secrets in commands |
| auto-format.sh | PostToolUse | Auto-format with Prettier |
📖 See examples/README.md for complete catalog including agents, skills, and config templates
Table of Contents
Jump directly to any section in the full guide:
| # | Section | Description |
|---|---|---|
| 1 | Quick Start | Installation, first workflow, essential commands |
| 2 | Core Concepts | Context management, Plan Mode, Rewind, Mental Model |
| 3 | Memory & Settings | CLAUDE.md files, .claude/ folder, precedence rules |
| 4 | Agents | Custom AI personas, Tool SEO, orchestration patterns |
| 5 | Skills | Reusable knowledge modules (Security, TDD...) |
| 6 | Commands | Custom slash commands, variable interpolation |
| 7 | Hooks | Event-driven automation (security, formatting, logging) |
| 8 | MCP Servers | Serena, Context7, Sequential, Playwright, Postgres |
| 9 | Advanced Patterns | Trinity, CI/CD, feedback loops, vibe coding |
| 10 | Reference | Commands, shortcuts, troubleshooting, checklists |
| A | Appendix | Ready-to-use templates |
Quick Links by Topic
Getting Started
Critical Concepts
Customization
Advanced
Quick Start
# Install Claude Code (all platforms)
npm install -g @anthropic-ai/claude-code
# Or on macOS/Linux only:
curl -fsSL https://claude.ai/install.sh | sh
# Start in your project
cd your-project
claude
Windows Users: Use
%USERPROFILE%\.claude\instead of~/.claude/for all paths in this guide.
The 7 Commands You Need
| Command | Action |
|---|---|
/help |
Show all commands |
/status |
Check context usage |
/compact |
Compress context (>70%) |
/clear |
Fresh start |
/plan |
Safe read-only mode |
/rewind |
Undo changes |
Ctrl+C |
Cancel operation |
Context Management (Critical!)
| Context % | Action |
|---|---|
| 0-50% | Work freely |
| 50-70% | Be selective |
| 70-90% | /compact now |
| 90%+ | /clear required |
The Golden Rules
- Always review diffs before accepting changes
- Use
/compactbefore context gets critical (>70%) - Be specific in requests (WHAT, WHERE, HOW, VERIFY)
- Start with Plan Mode for complex/risky tasks
- Create CLAUDE.md for every project
Who Is This For?
- Beginners: Start with Quick Start (15 min) → be productive immediately
- Intermediate: Deep dive into Configuration, Agents, Skills
- Power Users: Advanced Patterns, MCP orchestration, CI/CD integration
Learning Paths
Choose your path based on experience and goals:
Junior Developer (45 min to productivity)
- Quick Start - Installation & first workflow
- Essential Commands - The 7 commands you need
- Context Management - Critical concept
- Memory Files - Create your first CLAUDE.md
- Cheatsheet - Print and keep nearby
Senior Developer (40 min to mastery)
- Core Concepts - Mental model & context zones
- Plan Mode - Safe exploration
- Agents - Custom AI personas
- Hooks - Event-driven automation
- CI/CD Integration - Pipeline automation
Power User (2 hours for full mastery)
- Read the complete guide end-to-end
- MCP Servers - Extended capabilities
- The Trinity Pattern - Advanced workflows
- Audit your setup - Optimize your configuration
- Explore examples/ - Ready-to-use templates
Non-Technical / Product Manager (20 min overview)
- What's Inside - Understand the scope
- The Golden Rules - Key principles
- Core Concepts - High-level overview
- Context Management - Why it matters
Contributing
Found an error? Have a suggestion? See CONTRIBUTING.md for guidelines.
Audit Your Setup
Want to know if your Claude Code setup follows best practices?
File: claude-setup-audit-prompt.md
How it works:
- Copy the prompt from the file
- Run
claude --ultrathinkin your project - Paste the prompt and get a personalized audit report
What it checks:
- Memory files (CLAUDE.md) configuration
- Agents, skills, commands, and hooks setup
- MCP servers configuration
- Context management practices
- CI/CD integration patterns
Output: A prioritized report with health score, quick wins, and ready-to-use templates tailored to your tech stack.
Resources
Official
- Claude Code Documentation — Official Anthropic docs
Related Guides
- zebbern/claude-code-guide — Comprehensive reference & troubleshooting guide with cybersecurity focus (excellent for security practitioners)
- Claudelog.com — Tips, patterns & tutorials (highly recommended for all users)
- ykdojo/claude-code-tips — Practical tips & productivity techniques (voice workflows, context management, terminal efficiency)
- Additional topics worth exploring: voice transcription (superwhisper/MacWhisper), tmux autonomous testing, cc-safe tool, cascade method, container experimentation, half-clone technique
- DeepTo Claude Code Guide — Comprehensive best practices covering XML-structured prompts, session continuation, image processing, Unix piping workflows, and cost tracking (ccusage tool)
Community Curated Lists
- awesome-claude-code — Commands, workflows, IDE integrations
- awesome-claude-skills — Custom skills collection
- awesome-claude-code-subagents — Full-stack & DevOps subagents
- awesome-claude — General Claude resources (SDKs, tools)
- awesome-claude-prompts — Prompt templates
Frameworks & Tools
- SuperClaude — Advanced configuration framework with 30+ commands
Further Reading
- Nick Tune: Coding Agent Development Workflows — Advanced autonomous workflow patterns
License
This work is licensed under CC BY-SA 4.0.
You are free to share and adapt this material, provided you give appropriate credit and distribute your contributions under the same license.
Last updated: January 2026 | Version 2.3