Claude Code hook
Claude Code Tutorial
Claude Code CLI 中文教程 - 从入门到精通,涵盖配置、Hooks、Skills、MCP集成及企业级最佳实践。
Install
npm install -g @anthropic-ai/claude-codeFound in the project README. Check it for setup steps after installing.
git clone https://github.com/hiliyongke/claude-code-tutorial.gitFrom the README
Claude Code 完全指南:从入门到精通 一本系统、深入、实用的 Claude Code 智能编程工具教程 内容以 Claude 3.5 / 4.5 及之后的最新模型能力为参考编写 关于本书 本书是一本全面介绍 Claude Code(Anthropic 官方智能编程工具)的技术教程,旨在帮助开发者从零开始掌握这一强大的 AI 编程助手工具。无论您是初次接触 AI 辅助编程的新手,还是希望深入挖掘 Claude Code 高级功能的资深开发者,本书都将为您提供系统性的知识体系和实践指导。 什么是 Claude Code? Claude Code 是 Anthropic 公司推出的 Agentic Coding Tool(智能编程工具),通过 npm 包 @anthropic-ai/claude-code 分发。它能够: - 在终端中直接运行,理解完整代码库 - 自主规划任务、执行命令、修改文件 - 支持长达 7 小时的连续自主工作(Claude Opus 4.5) - 通过 MCP 协议连接外部数据源和服务 - 与 GitHub Actions 深度集成 2025年重要更新(示例时间线) 本书特色 - 系统性:从基础概念到高级应用,循序渐进,构建完整知识体系 - 实用性:大量真实案例和最佳实践,学以致用 - 深度性:深入技术原理,知其然更知其所以然 - 前沿性:涵盖 2025 年最新功能特性,紧跟技术发展 目录结构 第一部分:入门篇(了解与起步) - 第1章:初识 Claude Code - 第2章:发展历程与技术演进 - 第3章:安装与环境配置 - 第4章:第一次对话 - 第5章:基础命令全解 第二部分:配置篇(个性化定制) - 第6章:CLAUDE.md 配置详解 - 第7章:权限与安全模型 - 第8章:多环境配置管理 第三部分:进阶篇(深入理解) - 第9章:会话与上下文管理 - 第10章:文件与代码操作 - 第11章:技术架构深度解析 - 第12章:提示词工程 - 第13章:Headless 模式与脚本集成 第四部分:高级篇(能力扩展) - 第14章:Hooks 自动化机制 - 第15章:Skills 能力扩展系统 - 第16章:Spec 规范驱动开发 - 第17章:MCP 协议与生态 第五部分:工作流篇(效率提升) - 第18章:常见工作流模式 - 第19章:与开发工具集成 - 第20章:多语言开发指南 第六部分:实战篇(项目实践) - 第21章:从零构建全栈项目 - 第22章:遗留代码重构实战 - 第23章:自动化测试体系搭建 - 第24章:CI/CD 流水线集成 第七部分:精通篇(企业与未来) - 第25章:企业级部署方案 - 第25.5章:企业级 Hooks+Skills+Spec+MCP 集成最佳实践 - 第25.6章:团队培训与推广指南 - 第25.7章:合规审计详细指南 - 第26章:成本控制与优化 - 第27章:性能调优指南 - 第28章:安全最佳实践 - 第29章:未来展望与持续学习 附录 - 附录A:命令速查表 - 附录B:功能决策树 - 附录C:版本对比表 - 附录D:常见问题排查 - 附录E:术语表 - 附录F:学习资源汇总 - 附录G:新名词与新技术术语表 快速开始 如果你所在的环境更适合通过 npm 安装,也可以使用: 适用读者 - 希望提升编程效率的软件开发者 - 对 AI 辅助编程感兴趣的技术人员 - 需要在团队中推广 AI 工具的技术负责人 - 希望深入了解 Claude Code 技术原理的研究者 阅读建议 1. 初学者:建议从第一部分开始,按顺序阅读,打好基础 2. 有经验的用户:可直接跳至感兴趣的章节,按需阅读 3. 技术负责人:重点关注第七部分的企业级内容 4. 想了解新概念:参阅附录G《新名词与新技术术语表》 版本说明 - 本书版本:以 Claude 3.5 / 4.5 及之后的最新模型系列为参考 - Claude Code 版本:以官方最新稳定版本为基准编写,具体以文档为准 - Claude 模型:示例主要基于 Claude 3.5、Sonnet 4.x、Opus 4.x 等模型能力 - MCP…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- hiliyongke/claude-code-tutorial
- Type
- Hooks
- Language
- Python
- Last updated
- 3 December 2025
FAQ
What is Claude Code Tutorial?
Claude Code CLI 中文教程 - 从入门到精通,涵盖配置、Hooks、Skills、MCP集成及企业级最佳实践。 It is a hook for Claude Code, from hiliyongke/claude-code-tutorial on GitHub.
How do I install Claude Code Tutorial?
Run npm install -g @anthropic-ai/claude-code, then follow the setup in the README.
Is Claude Code Tutorial popular?
hiliyongke/claude-code-tutorial has 76 GitHub stars and 25 forks. It was last updated on 3 December 2025.
More hooks
Facebook Skills
80sergebulaev/facebook-skills
Facebook Pages marketing skills for Claude Code and Codex: high-share posts, hooks, engagement replies, and a weekly plan. Publish via Publora. Open source, MIT. Content engineering by Creative Content Crafts.
Create Viral Content
78aaaronmiller/create-viral-content
Claude Code skill that optimizes content for social media engagement. Auto-generates hooks, headlines, and formatted posts for Reddit, Twitter/X, LinkedIn, and TikTok.
Ccgate
88tak848/ccgate
LLM-powered PermissionRequest hook for coding agents (e.g. Claude Code)
Post Compact Reminder
55Dicklesworthstone/post_compact_reminder
Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-compaction rule amnesia in long sessions
Anthropic Mythos Desktop Studio
115Abhi24384/Anthropic-Mythos-Desktop-Studio
Claude 3.5 Sonnet Desktop Client for Windows Mac Linux 2026
Claude Code Blueprint
73faizkhairi/claude-code-blueprint
A battle-tested, framework-agnostic reference architecture for Claude Code. Beginner-friendly with graduated adoption (minimal / standard / core / full presets). 12 agents, 19 skills, 15 hooks, 6 rules, with reasoning behind every decision.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.