claude-code-ultimate-guide README

项目的 README,来自 github.com/FlorianBruniaux/claude-code-ultimate-guide。合并为一个 markdown 文件:README.md。

Claude Code Ultimate Guide

Florian Bruniaux Florian BRUNIAUX · Hands-on Fractional Chief AI Officer (CAIO)
Around 15 years in software, including 8 to 10 in technical leadership · Blog ↗ · Projects ↗
Official Claude Community Ambassador · Paris ↗

Open the interactive guide

Guide version 3.46.0 Updated Nov 23, 2026, guide version 3.46.0 Guide license: CC BY-SA 4.0 MCP server available through npx Ask DeepWiki

Learn Claude Code, build reliable agents, and scale their use safely. The website is the primary reading and discovery interface. This repository contains the canonical Markdown sources, reusable files, machine-readable indexes, and contribution history.

Start here: complete a first task online · browse the guide portal · open the complete sitemap · read the Markdown source

Choose your next step

The table below is generated from machine-readable/navigation.json. The same contract feeds the public sitemap, so the repository and website expose the same intent model.

Intent Browse online
Start Guide portal · Quick Start · Learning Paths · Quick Reference · AI Roles
Build Agent Harness Engineering · Loop & Graph Engineering · AI Design Patterns · Context Engineering · Memory Systems · Workflows · Methodologies · MCP or CLI? · Examples
Scale Security · Enterprise Governance · Observability · Team Metrics · Team Adoption · AI FinOps · LLM Market Snapshot · Subscription Strategy · AI Unit Economics · Team Knowledge · API Gateway
Resources Resource Hub · Downloads · Cheat Sheets · Ebooks · Diagrams · Ecosystem · Compare · Glossary · FAQ · Guide MCP Server · Related Projects
Updates Guide Changelog · Claude Code Releases · RSS Feed

Why this guide exists

Claude Code documentation explains the product. This guide connects product behavior to engineering decisions: what belongs in context, when to use an agent instead of a skill, how to verify generated work, and which controls matter when usage moves beyond one developer.

Need Start with
Understand Claude Code internals Architecture and Tools Reference
Design agent systems Agent Harness Engineering, Loop & Graph Engineering and AI Design Patterns
Structure AI-assisted delivery Methodologies and Workflow Guides
Establish a security boundary Security Hardening and Sandbox Isolation
Validate understanding Knowledge Quiz and Recap Cards

The guide favors explicit trade-offs and verifiable procedures. Where evidence is incomplete, the relevant page should preserve that limit instead of presenting one workflow as universal.

Start

Install Claude Code

Anthropic recommends the native installer, which updates itself:

# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

Alternatives that do not auto-update: brew install --cask claude-code, winget install Anthropic.ClaudeCode, or npm install -g @anthropic-ai/claude-code (Node.js 22+). See the official setup page.

Verify the installation and authenticate:

claude --version
claude doctor
claude auth login

The Quick Start chapter documents installation alternatives, authentication, updates, permission modes, and common first-day failures.

Complete a first task

Open a small repository with a clean or understood Git state, then start Claude Code:

cd your-project
claude

Give Claude a bounded request that includes the expected result and verification:

Explain how this project runs its tests. Do not modify files.
Name the relevant commands and cite the files that define them.

Before asking Claude to edit code, add a project-level CLAUDE.md that records the commands and constraints Claude must follow:

# Project instructions

## Commands
- Test: `npm test`
- Lint: `npm run lint`

## Boundaries
- Do not edit generated files.
- Do not change dependencies without approval.
- Run the relevant tests before claiming completion.

Continue with the first workflow or use the starter CLAUDE.md templates.

Choose a learning path

Situation Suggested route
New to Claude Code Seven-module learning path
Already using the CLI Core Concepts, then Context Engineering
Senior developer or tech lead Methodologies, Agent Harness Engineering, then Production Safety
Engineering manager or CTO Adoption Approaches, Team Metrics, then Subscription Strategy
Security or platform role Security Hardening, Enterprise Governance, then Observability
Product manager or designer Product Manager Guide or Design-to-Code Workflow
Non-developer knowledge worker Claude Cowork Guide

For a personalized route, use the repository onboarding prompt:

claude "Fetch and follow the onboarding instructions from: https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/tools/onboarding-prompt.md"

Build

Agent engineering

An agent is one component of a larger system. The surrounding harness controls context, tools, permissions, state, stopping conditions, recovery, and evaluation.

Resource Decision it supports
Agent Harness Engineering Identify the controls required around an agent loop
The minimal harness Replay three versions of a sign-up service to find a false positive. Fillable PDF by email.
Loop & Graph Engineering Choose bounded feedback loops or explicit workflow graphs
AI Design Patterns Explain an agent design with the GoF, integration, and resilience patterns developers know
Agent Harness Map Distinguish runtimes, orchestrators, frameworks, control planes, and support tools
Agentic Tools Compare selected coding agents and orchestration products
Agent Evaluation Test behavior, regressions, and task-level outcomes
Harness Glossary Align terminology across design and review
AI Concept Boundaries Resolve seven common confusions with repository examples and comprehension checks

Context and memory

Context quality affects every tool call and decision. Start with project instructions, add specialized context only when a recurring task needs it, and test whether the extra material changes behavior.

Resource Focus
Context Engineering Context budget, modular instructions, assembly, and measurement
Memory Systems Native memory, cross-session systems, team sharing, and retention risks
Context Engineering Tools Output compression, retrieval, gateways, and context inspection
Context Audit Measure a project's context architecture
Team AI Instructions Maintain shared instructions across a development team

Workflows

Goal Workflow
Implement with tests first TDD with Claude
Define behavior before implementation Spec-First Development
Separate planning from execution Plan-Driven Development
Compare independent candidates Best-of-N
Coordinate several agents Agent Teams
Build bounded autonomous loops Agentic Software Factories
Review code systematically Code Review
Make agent-written changes reviewable Reviewable Agent Changes
Prepare a contribution another team can review AI-Assisted Open Source Contributions
Diagnose unfamiliar repositories Exploration Workflow

Browse every workflow for task management, GitHub Actions, production reliability, event-driven agents, design-to-code, PDF generation, search, and team instructions.

Choose the smallest interface

Claude Code can call local commands, skills, agents, hooks, plugins, and MCP servers. More infrastructure adds setup, permissions, failure modes, and maintenance.

If the task needs Prefer
A deterministic local command CLI or script
Reusable instructions and supporting files Skill
A separate context and role Agent
A response to a lifecycle event Hook
A packaged collection of capabilities Plugin
A typed interface to a remote service MCP server

Use the MCP or CLI decision guide and the trade-off framework before introducing another integration.

Scale

Reliability and security

Concern Primary resource Operational companion
Permissions and prompt injection Security Hardening Permissions Audit
Isolation of untrusted execution Sandbox Isolation Native Sandbox
Production changes and rollback Production Safety Production Reliability
Sensitive data and retention Data Privacy Enterprise Governance
Active testing of authorized applications Agentic Pentesting DarkMoon and Strix Evaluation
MCP and extension supply chain MCP Ecosystem Threat Database
Delegation readiness Specification Completeness Audit Agent Evaluation

Security claims and threat counts change as sources are added or corrected. Use the linked database and guides as the current source instead of copying their counts into project documentation.

Evaluation and operations

Need Resource
Trace agent behavior and failures Observability
Attribute AI-assisted changes AI Traceability
Evaluate team outcomes Team Metrics
Calculate task-level cost AI Unit Economics
Operate infrastructure workflows DevOps & SRE
Route governed API traffic API Gateways

A green structural check proves only what it inspected. Runtime behavior, task acceptance, security boundaries, and business outcomes require separate evidence.

Organization and economics

Decision Resource
Roll out Claude Code across a team Adoption Approaches
Define usage tiers and approvals Enterprise Governance
Preserve team knowledge Team Knowledge Base
Compare subscriptions, APIs, and gateways Subscription Strategy
Compare hosted and local inference Local vs Cloud Inference
Map changing AI roles AI Roles

The economics pages separate observed costs from estimates and scenarios. Recalculate them with your workload, acceptance criteria, review effort, and risk constraints.

Use the format that fits the task

Format Use it for Read online Source or download
Complete reference Deep explanations and linked sections Ultimate Guide Markdown
Daily reference Commands, shortcuts, and checks Quick Reference Markdown
Guided course Progressive exercises with retained evidence Learning Paths Course sources
Runnable material Agents, skills, hooks, workflows, and scripts Examples Files
Visual explanation Architecture, context, security, and workflow maps Diagrams Diagram sources
Knowledge check Questions with documentation links Quiz Question sources
Printable reference One concept per page in French and English Cheat Sheets Card sources
Long-form edition Offline PDF and EPUB Ebooks Downloads
Machine-readable index Search and retrieval by an AI assistant Guide MCP llms.txt and reference.yaml

MCP Server: Use the guide from any coding client

Install the guide as a stdio MCP server and query it from Claude Code, Codex, Cursor, VS Code, or another MCP client.

claude mcp add --scope user claude-code-guide -- npx -y [email protected]
codex mcp add claude-code-guide -- npx -y [email protected]

Project-scoped Claude Code configuration belongs in .mcp.json:

{
  "mcpServers": {
    "claude-code-guide": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "[email protected]"]
    }
  }
}
Capability Count Names
Tools 17 compare_versions, diff_official_docs, get_changelog, get_cheatsheet, get_digest, get_example, get_release, get_threat, init_official_docs, list_examples, list_threats, list_topics, read_section, refresh_official_docs, search_examples, search_guide, search_official_docs
Resources 7 claude-code-guide://agent-harnesses, claude-code-guide://ai-design-patterns, claude-code-guide://distribution-channels, claude-code-guide://llms, claude-code-guide://reference, claude-code-guide://releases, claude-code-guide://translations
Prompts 1 claude-code-expert
Companion commands 5 /ccguide:daily, /ccguide:diff-docs, /ccguide:init-docs, /ccguide:refresh-docs, /ccguide:search-docs

The list operations and search index use bundled content. Section, example, cheatsheet, changelog, digest (get_digest), and threat tools can fetch GitHub content and write a 24-hour local cache. The official-doc initialization and refresh tools fetch Anthropic documentation and write separate local snapshots.

Canonical technical guide, installation, privacy, limitations, and dated statistics

Package README and diagnostics

Companion commands rendered from the repository: /ccguide:daily, /ccguide:diff-docs, /ccguide:init-docs, /ccguide:refresh-docs, /ccguide:search-docs.

Load the guide into another assistant

Use the small index for discovery:

curl -sL https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/machine-readable/llms.txt

Use reference.yaml when the assistant needs structured topic routes and links into the full guide. Maintenance instructions belong in the machine-readable documentation, not in this README.

Complementary ecosystem

No single repository needs to cover learning, installation, curation, reference material, and every specialized interface. Choose the resource that matches the current task.

Need Resource What it provides
Verify Claude Code behavior Official Claude Code documentation Primary product documentation
Learn architecture, trade-offs, security, and workflows Claude Code Guide Explanations, decision guides, operational checks, and examples
Discover community projects awesome-claude-code Curated links across the ecosystem
Install a collection of configurations everything-claude-code Packaged agents, skills, hooks, and configurations
Browse installable templates claude-code-templates Template catalog and CLI distribution
Start from official skill examples anthropics/skills Anthropic-maintained skill examples
Browse the skills marketplace skills.sh Search and installation routes for published skills
Curate Claude Code hooks awesome-claude-code-hooks Curated list of Claude Code hooks
Work outside software development Claude Cowork Guide Workflows for knowledge workers
Compare coding-agent capabilities AI Coding Agents Matrix Cross-agent feature comparison

This short list was reviewed on 2026-08-31. Project activity, installation methods, and scope can change. Browse the public Ecosystem and Compare pages first. The AI Ecosystem source, Third-Party Tools source, and Resource Evaluations retain the deeper evidence.

For desktop workspaces over existing agent CLIs, see the October 2026 workspace comparison, including Conductor's local/cloud workflow and Vibe Kanban's maintenance note.

Updates

Guide changes and Claude Code product releases answer different questions:

Feed Tracks Source
Guide Changelog New pages, corrections, and major repository revisions CHANGELOG.md
Claude Code Releases Claude Code product versions and operational impact Release source
RSS Feed Published guide and product updates in a feed reader Generated by the website

Recent guide additions include:

Use the changelog for the complete history. The README should expose only a small current selection.

Languages and translations

English is the canonical edition. French is maintained in this repository. Simplified Chinese, Ukrainian, and Latin American Spanish are independent community editions with separate update schedules.

Language Edition
English Canonical guide
Français French guide maintained in this repository
简体中文 Community edition by JAYcodr
Українська Community edition by gerasimsergey
Español latinoamericano Community edition by Richardls

The translation status page records maintainers, source commits, coverage, measured lag, and review status.

Repository map

guide/
├── ultimate-guide.md       Complete reference
├── learning-path/          Guided course
├── core/                   Architecture, tools, context, methods
├── security/               Hardening, isolation, privacy, governance
├── ecosystem/              Agents, MCP, tools, inference, knowledge
├── roles/                  Adoption, learning, evaluation, careers
├── ops/                    Observability, metrics, economics, gateways
├── workflows/              Task-oriented delivery guides
└── diagrams/               Mermaid diagrams with text fallbacks

examples/                   Reusable agents, skills, hooks, and workflows
machine-readable/           Structured indexes and release data
mcp-server/                 Packaged guide access for MCP clients
quiz/                       Local knowledge validation
docs/resource-evaluations/  Reviewed external resources
whitepapers/                French and English long-form sources

The detailed guide index, examples catalog, and tool index are the canonical navigation pages for those directories.

Contributing

Corrections, missing evidence, broken links, examples, quiz questions, and documentation improvements are welcome. Read CONTRIBUTING.md before opening a pull request.

Useful contribution routes:

Maintainer

Florian Bruniaux maintains this guide.

GitHub · LinkedIn · Portfolio

Explore the ecosystem

These projects extend the workflow without duplicating this tool:

Browse the complete open-source galaxy

License

The guide uses CC BY-SA 4.0. Reusable templates use CC0 1.0. Check the repository license files before redistributing mixed content.

Watch GitHub Releases or subscribe to the RSS feed for updates.


Version 3.46.0 | Updated daily · Nov 25, 2026

claude-code-ultimate-guide (FlorianBruniaux/claude-code-ultimate-guide)

正在搜索数据库…

这是什么?这是一份深入的 Claude Code 指南,超过 43 万行,涵盖智能体工作流、Hook、Skill、MCP 服务器、安全和生产实践,并配有可运行的模板和测验供你学习。
这是用来阅读的指南,还是用来运行的工具?它主要是一份基于 Markdown 的学习指南,配有配套网站、测验、速查表和电子书;同时它也附带了一个可运行的 MCP 服务器,任何兼容 MCP 的客户端都能直接查询指南内容。
我该如何开始使用这份指南?先安装 Claude Code,完成一个范围明确的小任务来学习基础知识,然后根据你的角色(如新用户、资深开发者、安全相关岗位、工程管理者等),从指南门户选择一条学习路径。
在这份指南变得有用之前,我是否需要先安装 Claude Code 本身?需要。本指南假定你正在安装并使用 Claude Code(或其他 MCP 客户端,如 Codex、Cursor 或 VS Code);快速入门章节会讲解安装、身份验证和第一个范围明确的任务。
指南中的安全和威胁数据有多可靠?作者明确提醒,随着来源被添加或更正,安全结论和威胁数量会发生变化,因此应从链接的数据库获取最新数字,而不要直接复制到你自己的文档中。
我能否在完全离线的情况下使用该指南的 MCP 服务器?大多数列表和搜索操作使用内置内容;但用于获取章节、示例、速查表、变更日志或威胁数据的工具,会从 GitHub 拉取实时内容,并在本地缓存 24 小时。官方文档工具则会另外获取 Anthropic 的文档。
除了网站之外,这份指南还有哪些形式?它还提供快速参考手册、一套七个模块的课程(学习路径)、可运行的示例、架构图、知识测验、法语和英语速查表,以及可离线阅读的 PDF/EPUB 电子书。
这份指南内置的 MCP 服务器提供了哪些功能?它提供 17 个工具(如 searchguide、getcheatsheet、getthreat)、6 个资源、1 个提示词,以及 5 个配套斜杠命令(如 /ccguide:daily),让智能体能够按需搜索并获取指南内容、速查表、变更日志和威胁数据。
面对一项任务,我该如何在 Skill、Agent、Hook 或 MCP 服务器之间做选择?指南建议让接口与任务相匹配:确定性命令用 CLI 或脚本,可复用的指令用 Skill,需要独立上下文或角色时用 Agent,生命周期事件用 Hook,打包好的能力用 Plugin,只有在需要通向远程服务的类型化接口时才用 MCP 服务器。
指南的每个部分分别面向哪些人?“Start”和“Build”部分面向正在学习 Claude Code、设计智能体系统的开发者;“Scale”部分则面向负责治理、可观测性和推广应用的安全、平台及工程管理岗位。
大小
48 MB
星标
6.5K
时长
10个月
提交 · 90 天