# Claude Code Guide
> Complete guide to Claude Code with 60+ production-ready templates
---
## β‘ Quick Start
**Quickest path**: [Cheat Sheet](./guide/cheatsheet.md) β 1 printable page with daily essentials
**Interactive onboarding** (no clone needed):
```bash
claude "Fetch and follow the onboarding instructions from: https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/tools/onboarding-prompt.md"
```
**Browse directly**: [Full Guide](./guide/ultimate-guide.md) | [Examples](./examples/) | [Quiz](./quiz/)
Prerequisites & Minimal CLAUDE.md Template
**Prerequisites**: Node.js 18+ | [Anthropic API key](https://console.anthropic.com/)
```markdown
# Project: [NAME]
## Tech Stack
- Language: [e.g., TypeScript]
- Framework: [e.g., Next.js 14]
- Testing: [e.g., Vitest]
## Commands
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`
## Rules
- Run tests before marking tasks complete
- Follow existing code patterns
- Keep commits atomic and conventional
```
Save as `CLAUDE.md` in your project root. Claude reads it automatically.
---
## Why This Guide?
**The problem**: Awesome-lists give links, not learning paths. Official docs are dense. Tutorials get outdated in weeks.
**This guide**: Structured learning path with 82 copy-paste templates, from first install to advanced workflows.
**Reading time**: Quick Start ~15 min. Full guide ~3 hours (most read by section).
**By [Florian BRUNIAUX](https://github.com/FlorianBruniaux)** | Founding Engineer [@MΓ©thode Aristote](https://methode-aristote.fr)
---
## π₯ Not a Developer?
**Claude Cowork** is the companion guide for non-technical users (knowledge workers, assistants, managers).
Same agentic capabilities as Claude Code, but through a visual interface with no coding required.
β **[Claude Cowork Guide](https://github.com/FlorianBruniaux/claude-cowork-guide)** β File organization, document generation, automated workflows
---
## π§ Hitting Rate Limits or High Costs?
**cc-copilot-bridge** routes Claude Code through GitHub Copilot Pro+ for flat-rate access ($10/month instead of per-token billing).
```bash
# Install
git clone https://github.com/FlorianBruniaux/cc-copilot-bridge.git && cd cc-copilot-bridge && ./install.sh
# Use
ccc # Copilot mode (flat $10/month)
ccd # Direct Anthropic mode (per-token)
cco # Offline mode (Ollama, 100% local)
```
β **[cc-copilot-bridge](https://github.com/FlorianBruniaux/cc-copilot-bridge)** β Multi-provider switching, rate limit bypass, 99%+ cost savings
---
## π― Learning Paths
Junior Developer β Foundation path (7 steps)
1. [Quick Start](./guide/ultimate-guide.md#1-quick-start-day-1) β Install & first workflow
2. [Essential Commands](./guide/ultimate-guide.md#13-essential-commands) β The 7 commands
3. [Context Management](./guide/ultimate-guide.md#22-context-management) β Critical concept
4. [Memory Files](./guide/ultimate-guide.md#31-memory-files-claudemd) β Your first CLAUDE.md
5. [Learning with AI](./guide/learning-with-ai.md) β Use AI without becoming dependent β
6. [TDD Workflow](./guide/workflows/tdd-with-claude.md) β Test-first development
7. [Cheat Sheet](./guide/cheatsheet.md) β Print this
Senior Developer β Intermediate path (6 steps)
1. [Core Concepts](./guide/ultimate-guide.md#2-core-concepts) β Mental model
2. [Plan Mode](./guide/ultimate-guide.md#23-plan-mode) β Safe exploration
3. [Methodologies](./guide/methodologies.md) β TDD, SDD, BDD reference
4. [Agents](./guide/ultimate-guide.md#4-agents) β Custom AI personas
5. [Hooks](./guide/ultimate-guide.md#7-hooks) β Event automation
6. [CI/CD Integration](./guide/ultimate-guide.md#93-cicd-integration) β Pipelines
Power User β Comprehensive path (7 steps)
1. [Complete Guide](./guide/ultimate-guide.md) β End-to-end
2. [Architecture](./guide/architecture.md) β How Claude Code works
3. [Security Hardening](./guide/security-hardening.md) β MCP vetting, injection defense
4. [MCP Servers](./guide/ultimate-guide.md#8-mcp-servers) β Extended capabilities
5. [Trinity Pattern](./guide/ultimate-guide.md#91-the-trinity) β Advanced workflows
6. [Observability](./guide/observability.md) β Monitor costs & sessions
7. [Examples](./examples/) β Production templates
Product Manager β Overview path (5 steps)
1. [What's Inside](#-whats-inside) β Scope
2. [Golden Rules](#-golden-rules) β Key principles
3. [Data Privacy](./guide/data-privacy.md) β Retention & compliance
4. [Adoption Approaches](./guide/adoption-approaches.md) β Team strategies
5. [Context Management](./guide/ultimate-guide.md#22-context-management) β Why it matters
DevOps / SRE β Infrastructure path (5 steps)
1. [DevOps & SRE Guide](./guide/devops-sre.md) β FIRE framework for infrastructure diagnosis
2. [K8s Troubleshooting](./guide/devops-sre.md#kubernetes-troubleshooting) β Prompts by symptom
3. [Incident Response](./guide/devops-sre.md#pattern-incident-response) β Solo & multi-agent workflows
4. [IaC Patterns](./guide/devops-sre.md#pattern-infrastructure-as-code) β Terraform, Ansible, GitOps
5. [Guardrails](./guide/devops-sre.md#guardrails--adoption) β Security boundaries & team adoption
Product Designer β Design-to-code path (5 steps)
1. [Working with Images](./guide/ultimate-guide.md#24-working-with-images) β Image analysis basics
2. [Wireframing Tools](./guide/ultimate-guide.md#wireframing-tools) β ASCII/Excalidraw workflows
3. [Figma MCP](./guide/ultimate-guide.md#figma-mcp) β Design file access & tokens
4. [Design-to-Code Workflow](./guide/workflows/design-to-code.md) β Figma Make β Claude handoff β
5. [Cheat Sheet](./guide/cheatsheet.md) β Print this
---
## π What's Inside
### Core Documentation
| File | Purpose | Time |
|------|---------|------|
| **[Ultimate Guide](./guide/ultimate-guide.md)** | Complete reference, 10 sections | ~3 hours |
| **[Cheat Sheet](./guide/cheatsheet.md)** | 1-page printable reference | 5 min |
| **[Architecture](./guide/architecture.md)** | How Claude Code works internally | 25 min |
| **[Methodologies](./guide/methodologies.md)** | TDD, SDD, BDD reference | 20 min |
| **[Workflows](./guide/workflows/)** | Practical guides (TDD, Plan-Driven) | 30 min |
| **[Data Privacy](./guide/data-privacy.md)** | Retention & compliance | 10 min |
| **[Security Hardening](./guide/security-hardening.md)** | MCP vetting, injection defense | 25 min |
| **[Production Safety](./guide/production-safety.md)** | Port stability, DB safety, infrastructure lock | 20 min |
| **[DevOps & SRE](./guide/devops-sre.md)** | FIRE framework, K8s troubleshooting, incident response | 30 min |
| **[Claude Code Releases](./guide/claude-code-releases.md)** | Official release history | 10 min |
Repository Structure
```
claude-code-ultimate-guide/
βββ guide/ # π Core documentation
β βββ ultimate-guide.md # Complete reference (~13425 lines)
β βββ cheatsheet.md # 1-page printable reference
β βββ architecture.md # How Claude Code works internally
β βββ methodologies.md # 15 development methodologies
β βββ workflows/ # TDD, SDD, Plan-Driven guides
β
βββ examples/ # π¦ Production templates
β βββ agents/ # Custom AI personas
β βββ commands/ # Slash commands (/pr, /commit...)
β βββ hooks/ # Security & automation (bash + PS)
β βββ skills/ # Knowledge modules
β βββ scripts/ # Utility scripts
β
βββ tools/ # π§ Interactive utilities
β βββ audit-prompt.md # Setup audit
β βββ onboarding-prompt.md # Personalized guided tour
β
βββ machine-readable/ # π€ LLM/AI consumption
β βββ reference.yaml # Structured index (~2K tokens)
β βββ llms.txt # Standard LLM context file
β
βββ quiz/ # π§ Interactive quiz (227 questions)
```
Examples Library (82 templates)
**Agents** (6): [code-reviewer](./examples/agents/code-reviewer.md), [test-writer](./examples/agents/test-writer.md), [security-auditor](./examples/agents/security-auditor.md), [refactoring-specialist](./examples/agents/refactoring-specialist.md), [output-evaluator](./examples/agents/output-evaluator.md), [devops-sre](./examples/agents/devops-sre.md) β
**Slash Commands** (18): [/pr](./examples/commands/pr.md), [/commit](./examples/commands/commit.md), [/release-notes](./examples/commands/release-notes.md), [/diagnose](./examples/commands/diagnose.md), [/security](./examples/commands/security.md), [/refactor](./examples/commands/refactor.md), [/explain](./examples/commands/explain.md), [/optimize](./examples/commands/optimize.md), [/ship](./examples/commands/ship.md)...
**Security Hooks** (15): [dangerous-actions-blocker](./examples/hooks/bash/dangerous-actions-blocker.sh), [prompt-injection-detector](./examples/hooks/bash/prompt-injection-detector.sh), [unicode-injection-scanner](./examples/hooks/bash/unicode-injection-scanner.sh), [output-secrets-scanner](./examples/hooks/bash/output-secrets-scanner.sh)...
**Skills** (1): [Claudeception](https://github.com/blader/Claudeception) β Meta-skill that auto-generates skills from session discoveries β
**Utility Scripts**: [session-search.sh](./examples/scripts/session-search.sh), [audit-scan.sh](./examples/scripts/audit-scan.sh)
**GitHub Actions**: [claude-pr-auto-review.yml](./examples/github-actions/claude-pr-auto-review.yml), [claude-security-review.yml](./examples/github-actions/claude-security-review.yml), [claude-issue-triage.yml](./examples/github-actions/claude-issue-triage.yml)
**Integrations** (1): [Agent Vibes TTS](./examples/integrations/agent-vibes/) - Text-to-speech narration for Claude Code responses
**[Browse Complete Catalog](./examples/README.md)** | **[Interactive Catalog](./examples/index.html)**
Knowledge Quiz (227 questions)
Test your Claude Code knowledge with an interactive CLI quiz covering all guide sections.
```bash
cd quiz && npm install && npm start
```
**Features**: 4 profiles (Junior/Senior/Power User/PM), 10 topic categories, immediate feedback with doc links, score tracking with weak area identification.
**[Quiz Documentation](./quiz/README.md)** | **[Contribute Questions](./quiz/templates/question-template.yaml)**
Audit Tools
**Quick scan** (~2s):
```bash
curl -sL https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/examples/scripts/audit-scan.sh | bash
```
**Deep audit** with personalized recommendations: [tools/audit-prompt.md](./tools/audit-prompt.md)
For AI Assistants (LLM-optimized)
| Resource | Purpose | Tokens |
|----------|---------|--------|
| **[llms.txt](./machine-readable/llms.txt)** | Standard context file | ~1K |
| **[reference.yaml](./machine-readable/reference.yaml)** | Structured index with line numbers | ~2K |
**Quick load**: `curl -sL https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/machine-readable/reference.yaml`
Alternative Formats
- **[DeepWiki](https://deepwiki.com/FlorianBruniaux/claude-code-ultimate-guide/1-overview)** β AI-powered Q&A
- **[NotebookLM Slides](./exports/notebooklm.pdf)** β Visual overview
- **[Kimi PDF](./exports/kimi.pdf)** β Full text export
---
## π Golden Rules
1. **Always review diffs** before accepting changes β Claude suggests, you decide
2. **Use `/compact`** before context hits 70% β prevention beats recovery
3. **Be specific** in requests β Include WHAT, WHERE, HOW, VERIFY
4. **Start with Plan Mode** for risky/complex tasks β read-only exploration first
5. **Create CLAUDE.md** for every project β single source of truth
> Context management is critical. See the [Cheat Sheet](./guide/cheatsheet.md#context-management-critical) for thresholds and actions.
---
## π About
Origins & Philosophy
This guide is the result of several months of daily practice with Claude Code. I don't claim expertiseβI'm sharing what I've learned to help peers and evangelize AI-assisted development best practices.
**Philosophy**: Learning journey over reference manual. Understanding **why** before **how**. Progressive complexity β start simple, master advanced at your pace.
**Created with Claude Code**. Community-validated through contributions and feedback.
**Key Inspirations**:
- [Claudelog.com](https://claudelog.com/) β Excellent patterns & tutorials
- [zebbern/claude-code-guide](https://github.com/zebbern/claude-code-guide) β Comprehensive reference with security focus
- [ykdojo/claude-code-tips](https://github.com/ykdojo/claude-code-tips) β Practical productivity techniques
Privacy & Data
Claude Code sends your prompts, file contents, and MCP results to Anthropic servers.
- **Default**: 5 years retention (training enabled) | **Opt-out**: 30 days | **Enterprise**: 0
- **Action**: [Disable training](https://claude.ai/settings/data-privacy-controls) | [Full privacy guide](./guide/data-privacy.md)
Claude Cowork (for Non-Developers)
**Cowork** is Claude's agentic desktop feature for knowledge workers β same AI, files-only interface.
> **π¦ [Complete Documentation Now Has Its Own Repository!](https://github.com/FlorianBruniaux/claude-cowork-guide)**
>
> β **Star the repo**: [FlorianBruniaux/claude-cowork-guide](https://github.com/FlorianBruniaux/claude-cowork-guide)
**Quick Access** (34 files, v1.0.0):
| Resource | Description |
|----------|-------------|
| **[π Main Hub](https://github.com/FlorianBruniaux/claude-cowork-guide)** | Complete documentation repository |
| **[π Getting Started](https://github.com/FlorianBruniaux/claude-cowork-guide/blob/main/guide/01-getting-started.md)** | Setup, first workflow, CTOC framework |
| **[β‘ Cheatsheet](https://github.com/FlorianBruniaux/claude-cowork-guide/blob/main/reference/cheatsheet.md)** | 1-page printable reference |
| **[β FAQ](https://github.com/FlorianBruniaux/claude-cowork-guide/blob/main/reference/faq.md)** | 20+ frequently asked questions |
**Content**:
- π **6 Core Guides**: Overview, capabilities, security, troubleshooting
- π **60+ Prompts**: File ops, document creation, data extraction, research
- π§ **5 Workflows**: File organization, expense tracking, report synthesis, meeting prep, team handoff
- π **Interactive Onboarding**: Personalized learning path
- π οΈ **3 Scripts**: Version sync, stats update, validation
**Status**: Research preview (Pro $20/mo or Max $100-200/mo, macOS only, **VPN incompatible**)
**Archive**: Historical versions available in git history (pre-v3.11.5)
Ecosystem & Related Resources
**This Guide's Ecosystem** (4 interconnected repositories):
| Repository | Purpose | Audience |
|------------|---------|----------|
| **[Claude Code Guide](https://github.com/FlorianBruniaux/claude-code-ultimate-guide)** *(this repo)* | Comprehensive documentation (13K lines, 82 templates) | Developers |
| **[Claude Cowork Guide](https://github.com/FlorianBruniaux/claude-cowork-guide)** | Non-technical usage (67 prompts, 5 workflows) | Knowledge workers |
| **Code Landing** *(to be deployed)* | Marketing site for Claude Code guide | Discovery |
| **Cowork Landing** *(to be deployed)* | Marketing site for Cowork guide | Discovery |
π‘ **Architecture**: Separate repos for clear audience separation (devs vs non-devs), bidirectional cross-links for easy navigation.
**Complementary resources**:
| Project | Focus | Best For |
|---------|-------|----------|
| [claude-code-templates](https://github.com/davila7/claude-code-templates) | **Distribution** - Install & use | Getting 200+ templates via CLI (17kβ) |
| [skills.sh](https://skills.sh/) | **Skills marketplace** - Discover & install | One-command skill installation (`npx add-skill`) from Vercel Labs |
| [awesome-claude-code](https://github.com/hesreallyhim/awesome-claude-code) | **Curation** - Discover & link | Exploring community resources |
| [Claude-Code-Everything](https://github.com/wesammustafa/Claude-Code-Everything) | **Visual walkthrough** | Learning through screenshots |
| [AI Coding Agents Matrix](https://coding-agents-matrix.dev) | **Technical comparison** | Comparing Claude Code vs 22+ alternatives |
**AI Coding Agents Matrix** (by [Packmind](https://packmind.com)):
- Interactive comparison: **23 AI coding agents** across **11 technical criteria**
- Criteria: CLI, MCP Support, Skills, Commands, Subagents, Plan Mode, AGENTS.md, and more
- Sortable/filterable matrix for precision discovery
- Open source ([Apache-2.0](https://github.com/PackmindHub/coding-agents-matrix)), community-driven
- **Use case**: Discovery (Matrix: "Which agent has X feature?") β Mastery (This Guide: "How to use Claude Code?")
**Positioning**: Use Matrix to **discover and compare** β Choose Claude Code β Use this guide to **master it**.
**Community**: π«π· [Dev With AI](https://www.devw.ai/) β 1500+ devs on Slack, meetups in Paris, Bordeaux, Lyon
**Official docs**: [docs.anthropic.com/claude-code](https://docs.anthropic.com/en/docs/claude-code)
Windows & Translation
**Windows Users**: Most commands work with Git Bash. Use `%USERPROFILE%\.claude\` for paths. [Report issues](../../issues)
**Language**: Written in English for wider reach. French is my native language. Request translations via [issues](../../issues).
---
## π€ Contributing
Found an error? Have a suggestion? See [CONTRIBUTING.md](./CONTRIBUTING.md).
**Ways to Help**: Star the repo β’ Report issues β’ Submit PRs β’ Share workflows in [Discussions](../../discussions)
---
## π License & Support
Licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Free to share and adapt with attribution.
**Stay Updated**: [Watch releases](../../releases) | [Discussions](../../discussions) | [Connect on LinkedIn](https://www.linkedin.com/in/florian-bruniaux-43408b83/)
---
*Version 3.11.5 | January 2026 | Crafted with Claude*