claude-code-handbook

mcp
Security Audit
Fail
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 10 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s01_agent_loop.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s02_tool_use.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s03_todo_write.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s04_subagent.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s05_skill_loading.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s06_context_compact.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s07_task_system.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s08_background_tasks.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s09_agent_teams.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s10_team_protocols.py
  • rm -rf — Recursive force deletion command in docs/recipes/agents/s11_autonomous_agents.py
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

实战知识库 + Agent Runtime 工坊:从用好 Claude Code 到造出自己的 Coding Agent

README.md

claude-code-handbook

Docs Python License


一句话定位

把 Claude Code 从"会用"推到"造得出"的实战知识库。

不是官方文档的复读,也不是学术论文的堆砌。这里有三样东西:

  1. 使用手册 — 让你把 Claude Code 用得更稳、更快、更省心
  2. 实践配方 — 直接可用的 Skill、Agent 示例和配置模板
  3. Agent Runtime 工坊 — 手把手从零实现一个 Claude Code 风格的 Coding Agent

适合谁

  • 👨‍💻 个人开发者:想建立一套稳定的 AI 辅助开发工作流
  • 🏗️ AI 全栈工程师:需要把 Claude Code 接入复杂项目和企业流程
  • 🚀 团队负责人:想参考小米等组织的 AI Coding 工程化实践
  • 🔧 Agent builders:计划深入 Agent Runtime,从使用者走向建造者

四大板块

📘 使用手册

8 部分 24 章,从安装配置到高级技巧。

  • 核心工作流(刘小排 / Matt Pocock / 徐文浩)
  • 小米 AI Coding 工程化实践
  • 记忆、上下文、Skills、Hooks、MCP
  • 权限、隔离、失败模式

进入手册


🧰 实践配方

可直接用的代码、配置和模板。

  • Agent 示例代码
  • SKILL.md 模板(agent-builder / code-review / mcp-builder / pdf)
  • Claude Code 中英学习文档
  • 主流 Agent Harness 对照参考

查看配方


🛠️ Agent Runtime 工坊

10 章教程 + Python 参考实现。

  • 从 LLM 客户端到 Agent 主循环
  • 工具系统、权限、上下文、记忆
  • Skill、SubAgent、Agent Teams

开始工坊


🏗️ Harness 笔记

Agent Harness 架构学习与整理。

  • OpenCode / Codex / DeerFlow 对照
  • Claude Code Runtime 机制拆解
  • Harness 设计模式总结

查看笔记


📚 内容地图

使用手册

部分 内容
part-01-overview 它到底是什么三种使用形态
part-02-basics 安装与初始化会话管理项目级配置
part-03-workflow 需求驱动工作流安全开发闭环开发节奏小米实践
part-04-context 记忆系统上下文窗口上下文质量
part-05-extension SkillsHooksMCP插件
part-06-parallel 多任务Worktree流水线
part-07-security 权限与审批隔离与防护
part-08-advanced 输出风格自动化失败模式

实践配方

配方 说明
agents Agent loop、tool use、subagent、skill loading、context compact、task system、background tasks、agent teams 等示例代码
skills 可直接复用的 SKILL.md 模板:agent-builder、code-review、mcp-builder、pdf
docs Claude Code 中英学习文档(en / zh)
source-analysis 主流 Agent Harness(OpenCode / Codex / DeerFlow)设计对照参考

Agent Runtime 工坊

章节 内容 理论学习 Python 实现 实战演练
ch-01 初识 Coding Agent theory python hands-on
ch-02 让 AI 开口说话 theory python hands-on
ch-03 工具系统 theory python hands-on
ch-04 Agent 主循环 theory python hands-on
ch-06 权限系统 theory python hands-on
ch-08 上下文管理 theory python hands-on
ch-09 记忆系统 theory python hands-on
ch-11 Skill 系统 theory python hands-on
ch-13 SubAgent theory python hands-on
ch-15 Agent Teams theory python hands-on

参考实现:mewcode/


🚀 快速开始

完全新手

手册第1章(认识它)
  → 第4章(会话管理)
  → 第5章(项目级配置)
  → 第6章(核心工作流)

想亲手造一个 Agent

工坊 ch-01 → ch-02 → ch-03 → ch-04
        ↓
  ch-06 → ch-08 → ch-09
        ↓
  ch-11 → ch-13 → ch-15

想提升稳定性

手册第7章(五层安全开发闭环)
  → 第10章(记忆系统)
  → 第11章(上下文窗口管理)
  → 第24章(常见失败模式与修复)

团队落地

手册第9章(小米 AI Coding 工程化实践)
  → 第17-19章(多任务 / Worktree / 流水线)
  → 第20-21章(权限与隔离)

📁 仓库结构

.
├── docs/
│   ├── assets/          # 横幅、插图、小米实践配图
│   ├── manual/          # 8 部分使用手册
│   ├── recipes/         # 可复用配方:agents / skills / docs / source-analysis
│   └── workshop/        # Agent Runtime 工坊教程
│       └── chapters/
├── harness/             # Agent Harness 学习笔记
├── mewcode/             # Python 版 Agent Runtime 参考实现
├── AGENTS.md            # 仓库维护规范
├── LICENSE              # MIT
└── README.md            # 本文件

📝 命名规范

  • 目录kebab-casepart-01-overviewquery-loop-deep-dive
  • Markdown 文件kebab-case
  • Python 模块snake_case
  • 避免:中文文件名、空格

⚠️ 声明

本仓库内容为学习、实践与经验沉淀,所有引用素材均已标注来源。本仓库不包含任何受版权保护的原始商业源码。


⭐ Star History

Star History Chart

Reviews (0)

No results found