用 Claude Code 搭建 AI 员工:九个模块与仓库结构
Claude Code New Features, Explained
用 Claude Code 的独立开发者/小团队可以直接照这套搭:仓库结构、三个 md 文件、权限边界,今天就能把 AI 从聊天工具变成 24/7 员工。
I think there's a lot of people using claude code wrong. And they're using claude code wrong because it is one of the most powerful pieces of technology that have ever existed. And there's a way to use cloud code that spin up actual AI employees. But the thing is, you have to set it up in a certain way. And today, I'm going to show you what that certain way is. I'm going to show you the nine different areas that you need to master in order to spin up these AI employees.
我认为有很多人使用 Claude Code 的方式是错误的。他们之所以用错,是因为它是有史以来最强大的技术之一。有一种使用 Claude Code 的方法,可以真正创建出 AI 员工。但关键在于,你必须以特定的方式来设置它。今天,我将向你展示这种特定的方式。我将向你展示九个不同的领域,你需要掌握它们才能创建这些 AI 员工。
And this episode might feel a little boring at times because I'm going through a setup. I'm teaching you how to actually do it. But I think that the people that actually stick to the end, the people that actually get their hands dirty, that copy what I do, and I'm going to give away all the prompts and all the sauce in this episode, are going to be able to outperform people, are going to be able to build products that work 24/7, are going to build AI native companies.
这一集有时可能会让人觉得有点枯燥,因为我在讲解设置过程,教你如何实际操作。但我认为,那些真正坚持到最后的人,那些真正亲自动手、模仿我做法的人——而且我会在这一集中分享所有的提示词和秘诀——他们将能够超越他人,能够构建全天候运行的产品,能够创建 AI 原生的公司。
AI native companies that just are able to crush. And I'm so excited to put this together for a free course for how to master cloud code like no one ever before with AI agents that run 24/7 that act like AI employees. Enjoy the episode. Shout out to Anthropic for supporting the channel and sponsoring today's episode. The way I think about an AI employee and setting it up is actually pretty simple. If you want to if you want cloud code to act more like an employee, you need to give it the same basic things you would give a person joining your company.
这些 AI 原生公司能够轻松碾压对手。我非常激动能把这些内容整理成一门免费课程,教你以前所未有的方式掌握 Claude Code,使用全天候运行、像 AI 员工一样的 AI 代理。祝您观看愉快。感谢 Anthropic 对频道的支持并赞助今天的节目。我对 AI 员工及其设置方式的思考其实非常简单。如果你想让 Claude Code 更像一名员工,你需要给它提供与加入你公司的新员工相同的基本要素。
It only makes sense, right? First, it needs a workspace. In this case, the workspace is called a repo. And that's where the product actually lives. That's where the files live. And that's where Claude can actually go and do the work. Second thing it needs is memory. Memory is basically the context that you put into the project. So Claude understands what you're building, who the customer is, what matters right now, what good work looks like, and we'll get into that later, and what you've already learned so it doesn't repeat mistakes.
这很合理,对吧?首先,它需要一个工作空间。在这种情况下,工作空间被称为 repo。产品实际上就存放在那里,文件也存放在那里,Claude 可以在那里实际开展工作。其次,它需要记忆。记忆基本上就是你放入项目中的上下文。这样 Claude 就能理解你在构建什么、客户是谁、当前最重要的是什么、好的工作是什么样的(我们稍后会深入讨论),以及你已经学到了什么,从而避免重复犯错。
Then it needs a brief before Claude is like changing things all around. you wanted to understand the assignment. So that's where this thing called plan mode is super super useful. You're basically saying, "Look around, read the context, think through the job, and tell me how you'd approach it before you touch anything." And for something like that, you might want to use like a fable over an opus. We'll talk more about that.
然后,在 Claude 开始到处修改之前,它需要一份简报。你需要它理解任务。所以,这就是所谓的计划模式非常非常有用的地方。你基本上是在说:‘先四处看看,阅读上下文,思考整个任务,在动手之前告诉我你打算怎么做。’对于这类事情,你可能更想使用 Fable 而不是 Opus。我们稍后会详细讨论。
Then it needs a clear ticket, basically an assignment. You know, a real employee does better with an assignment. Why wouldn't an AI employee? Claude is the exact same. The mistake a lot of people make is they'll say, "Make the app better. Make this pop." These very vague prompts uh that are assigned to it. The better way to do it is to be extremely specific. So, if you're, you know, want if you're creating a landing page and you want to create a weight list form, you'd say add a weightless form to the landing page with a success state and check it in desktop preview.
然后它需要一个明确的任务单,基本上就是一项任务。你知道,真正的员工有了明确任务会做得更好。AI 员工为什么不是这样?Claude 完全一样。很多人犯的错误是他们会说:“让应用更好。让它更出彩。”这些非常模糊的提示词就交给了它。更好的做法是极其具体。所以,如果你正在创建落地页,并且想创建一个候补名单表单,你应该说:向落地页添加一个带成功状态的候补名单表单,并在桌面预览中检查它。
That's going to work just a lot better. The next thing it needs is eyes, you know, and you can finally do this in cloud code, and it's so so exciting. So, uh, you can do it in the desktop app, which is what I I primarily use. You can just say, "Claude, open the app, look at the page, click through the flow, inspect what is confusing, and tell me like what a customer would actually experience by going through this." That's obviously very very different level of usefulness than only editing files.
这样效果会好得多。接下来它需要眼睛,你知道,而且你终于可以在 Claude Code 里做到这一点,这太令人兴奋了。所以,嗯,你可以在桌面应用中做到这一点,这也是我主要使用的。你只要说:“Claude,打开应用,查看页面,点击整个流程,检查哪里让人困惑,然后告诉我客户实际走一遍会有什么体验。”这显然比仅仅编辑文件要有用得多,完全是不同层次。
Then it needs review. So review is just going to look at the before and after changes. So Claude can help review the work too, but you want a system where changes get actually checked against your standards before anything important ships. Um then it needs a schedule. Um, so this is when a lot of people start having that aha moment where it's an actual 247 employee. You can basically give Claude recurring work like a morning brief, weekly issue review, poll request reviews.
然后它需要审查。审查就是查看改动前后的变化。Claude 也可以帮助审查工作,但你需要一个系统,让改动在重要内容发布之前真正按照你的标准得到检查。嗯,然后它需要一个日程安排。嗯,这时很多人开始有了那种顿悟时刻:它实际上是一个 24/7 的员工。你可以给 Claude 安排重复性工作,比如晨间简报、每周问题审查、拉取请求审查。
Um, Claude calls this routines and we'll get into that uh in in this episode. And the last thing it needs is permissions. So a good employee knows what it can do on its own or when it should ask you for permission. Cloud is the exact same way. Um, so it could read files, it could inspect the repo, it could run tests, uh, it can work on small branches, but before touching things like dependencies, before touching migrations, before touching payments, a thing, these like bigger things, you basically want to make sure that the human owns those trust decisions.
嗯,Claude 把这称为例行任务,我们会在本期节目中深入探讨。最后它需要的是权限。一个好的员工知道哪些事可以自己做,哪些事应该征求你的许可。Claude 完全一样。嗯,所以它可以读取文件、检查代码仓库、运行测试,嗯,它可以在小分支上工作,但在接触依赖项、数据库迁移、支付这类比较大的事情之前,你基本上要确保由人类来掌控这些信任决策。
And that's basically the map. So the map is basically workspace, memory, ticket, eyes, reviews, schedule, and permissions. And if you're able to do that, that's what I mean by an AI employee. It's basically this working system. Um, you give Claude a place to work, context to understand the business, you give it a clear way to plan, a way to execute, a way to check the product, a way to review things, a few recurring responsibilities that happen every single day. and then you give boundaries so it doesn't do something super risky.
基本上这就是那张地图。所以这张地图基本上就是:工作区、记忆、工单、观察、审查、日程和权限。如果你能做到这些,那就是我所说的 AI 员工。它基本上就是这套工作系统。嗯,你给 Claude 一个工作场所,给它理解业务的上下文,给它一个清晰的规划方式、一个执行方式、一个检查产品的方式、一个审查事项的方式,再加上一些每天都会发生的周期性职责,然后你给它设定边界,这样它就不会去做非常高风险的事情。
And once you set it up this way, cloud code starts to feel less of like a one-off chat thing and really more of like an operating layer for your company. So let's talk about how you can actually set up the first step, which is creating a workspace. So in cloud desktop, you're going to want to hit the cloud code section. Um I prefer using it in the desktop app. It's a lot less overwhelming than in the terminal. So, we're going to use use that today.
一旦你这样设置好,Claude Code 就不再像是一次性的聊天工具,而更像是你公司的运营层。那么我们来谈谈如何实际设置第一步:创建工作区。在 Claude Desktop 中,你需要点击 Claude Code 区域。嗯,我更喜欢在桌面应用里使用它,比在终端里用要轻松得多。所以今天我们就在桌面应用里操作。
Um, you're going to want to go and select your project folder um where Claude actually goes and runs. And just for the sake of this demo, we're going to talk about an idea that I found on ideabrows.com, which is basically a mislead responder for med spa med spas. So, basically, someone fills out a form, DMs the business, calls after hours, uh, ask about pricing, but the business responds too late. There's an opportunity to create a cash flowing uh, software business there.
嗯,你需要去选择你的项目文件夹,也就是 Claude 实际运行的地方。为了这个演示,我们要讨论一个我在 ideabrows.com 上发现的想法,它基本上是一个面向医美水疗中心的漏单响应器。也就是说,有人填写了表单、给商家发私信、在非工作时间打电话、询问价格,但商家回复太晚了。这里有机会创建一个能产生现金流的软件业务。
So, we're going to talk about how we'd actually set up this repo, what the structure would be, and what what I would want to do if I'm set if I'm creating an app, if I'm creating a software, I want basically slash app/context/c customers/spec/demo/ routines. I'm going to want 3MD files. And I'm going to talk about what all that means. So slash app is the product slashcontext is the business brain slashc customers is where the sales calls the support notes any objections customer language you put that there uh slashdemos is where you're going to want to put the demo flows loom scripts screenshots things like that routines is where you're going to want to put those recurring prompts like we talked about these like recurring tasks that are going to happen that'll be in the routines and then the the three root file files that you're going to want to have uh the that are MD files that are basically like this operating manual for you are going to be claw.md which tells you how claude to work.
那么,我们要讨论的是如何实际搭建这个仓库,结构应该是什么样,以及如果我要创建一个应用、创建一个软件,我会怎么做。我基本上想要 /app、/context、/customers、/spec、/demo、/routines 这些目录。我还想要 3 个 MD 文件。我会解释这些分别是什么意思。/app 是产品,/context 是业务大脑,/customers 是放销售通话记录、支持记录、任何反对意见、客户语言的地方,/demos 是放演示流程、Loom 脚本、截图之类内容的地方,routines 是放那些周期性提示词的地方,就像我们刚才说的那些会发生的周期性任务,它们会放在 routines 里。然后你还需要三个根文件,它们是 MD 文件,基本上就像你的操作手册,分别是 claw.md,它告诉 Claude 如何工作。
It you're going to want a roadmap.md file that's going to tell claude what matters right now and you're going to want a review.md file which is going to tell Claude how to judge the work before it chips. So the mo the the first the the takeaway I want you to have is claude gets just way more useful when the project explains itself. So how do you actually go and set this thing things up? What are what are what's like the the best way to do it?
如果你想要一个 roadmap.md 文件来告诉 Claude 当前什么最重要,你还会想要一个 review.md 文件,让 Claude 在动手之前知道如何评判工作。所以我想让你记住的第一点是:当项目能自我说明时,Claude 会变得有用得多。那么你实际上该怎么去设置这些东西呢?最好的做法是什么?
This this is what you should do. So here's the prompt. Help me set up this repo as an AI employee workspace. And then you just say create or update claw.md roadmap review/context/c customer/spec/demo routines. And then you say use this business context. So you can say product miss lead responsive for med spa. So you're just basically saying what it is. The buyer you want to explain who the buyer is. So in this case it's a med spa owner and operator.
你应该这样做。这是提示词:帮我把这个仓库设置成一个 AI 员工工作区。然后你只要说:创建或更新 claw.md、roadmap、review/context/customer/spec/demo 例程。然后你说:使用这个业务背景。所以你可以说:产品使命是负责医疗水疗中心。你基本上就是在说明它是什么。买家方面,你要解释买家是谁。所以在这个例子里,买家是医疗水疗中心的所有者兼经营者。
The pain that they go thr
他们所经历的痛苦
原文超出正文长度上限,此处截断——上游还有内容,完整版见上方「原文 ↗」。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力