看完这个项目,你才算真的理解了 Claude Code。
learn-claude-code,一个从零手搓 Claude Code-like Agent 的开源教程,用 12 个递进式课程,带你一步步把一个最简单的 while 循环,搭建成支持多 Agent 协作、任务隔离的完整自治系统。
想真正理解 AI Agent 怎么工作的朋友,值得收藏学习一下。
仓库地址:https://t.co/IrmeNheViW
Most people treat CLAUDE.md like a prompt file.
That’s the mistake.
If you want Claude Code to feel like a senior engineer living inside your repo, your project needs structure.
Claude needs 4 things at all times:
• the why → what the system does
• the map → where things live
• the rules → what’s allowed / not allowed
• the workflows → how work gets done
I call this:
The Anatomy of a Claude Code Project 👇
━━━━━━━━━━━━━━━
1️⃣ CLAUDE.md = Repo Memory (keep it short)
This is the north star file.
Not a knowledge dump. Just:
• Purpose (WHY)
• Repo map (WHAT)
• Rules + commands (HOW)
If it gets too long, the model starts missing important context.
━━━━━━━━━━━━━━━
2️⃣ .claude/skills/ = Reusable Expert Modes
Stop rewriting instructions.
Turn common workflows into skills:
• code review checklist
• refactor playbook
• release procedure
• debugging flow
Result:
Consistency across sessions and teammates.
━━━━━━━━━━━━━━━
3️⃣ .claude/hooks/ = Guardrails
Models forget.
Hooks don’t.
Use them for things that must be deterministic:
• run formatter after edits
• run tests on core changes
• block unsafe directories (auth, billing, migrations)
━━━━━━━━━━━━━━━
4️⃣ docs/ = Progressive Context
Don’t bloat prompts.
Claude just needs to know where truth lives:
• architecture overview
• ADRs (engineering decisions)
• operational runbooks
━━━━━━━━━━━━━━━
5️⃣ Local CLAUDE.md for risky modules
Put small files near sharp edges:
src/auth/CLAUDE.md
src/persistence/CLAUDE.md
infra/CLAUDE.md
Now Claude sees the gotchas exactly when it works there.
━━━━━━━━━━━━━━━
Prompting is temporary.
Structure is permanent.
When your repo is organized this way, Claude stops behaving like a chatbot…
…and starts acting like a project-native engineer.
兄弟们,今年是CLI 工具爆发之年!!
Google 发布了他们的官方的命令行工具(CLI),可以直接在终端里操作 Drive、Gmail、日历、Sheets、Docs 等等。
- 用 Rust 写的
- 一条命令直接安装安装
- 可以作为 Claude Code 的 Skill 直接接入使用
现在你可以让 AI 帮你直接操作 Google 全家桶...
能接到 Claude Code里,你可以让Claude "帮我查下明天的日程"、"把这个文件传到 Google Drive",它能帮你搞定了。
Claude Code 的亲爹 Boris Cherny 透露了团队内部的AI工作流,有人把这套硬核工作流提炼成一份 https://t.co/J0gxEjB6Ar 文件——丢进项目根目录,AI 助手直接脱胎换骨。
这份文件干了一件很多人没想到的事:它让 AI 从”被动应答”进化成了有记忆、会规划、能自我迭代的数字队友。最狠的设计是”自我优化循环”——AI 会主动从错误中学习,你不用再无休止地纠正同一个问题,它会自己进化。
同样的需求,别人用 AI 改三遍,你一次过。
这就是配置和不配置的差距。
体验10倍工程师的效率,文件已附,直接抄作业。