功能实现
Feature implementation
Summary
Shows the implementation step — clearing agent context with /clear, then prompting the agent to implement all task groups from the feature spec. Emphasizes the developer’s role as architect/supervisor, observing progress and reviewing changes.
Key Takeaways
- Clear context before implementation: use /clear to give the agent a fresh start focused on the spec
- Implement in task groups: you can implement all groups at once or one at a time for smaller, safer steps
- Developer = architect/supervisor: your role shifts from writing code to reviewing and providing clear contracts
English Script
We’re working on the plan for the first feature in the project roadmap. We finished the feature spec. Let’s do the full implementation of this feature. Just to refresh ourselves, we do a quick review of this feature specs plan. This was the first feature, hello Hono. The feature spec documents have what we need. To start your implementation, you’ll want to clear out your context with a /clear command. Let’s go back to the agent and enter a prompt to implement all the task groups. Sometimes you might choose to do task groups one at a time for even smaller steps and commits. This technique is especially helpful for areas where small mistakes can compound later, like in security or database management.
While Claude is running, you can observe the changes it displays in the console to see its progress in real time. Afterwards, we can watch for the final changes in the commit window and visit the changes. This gives us an early jump on reviewing the work. This is the key role of the developer in such a paradigm, to act as an architect or supervisor and ensure that the agent is provided with a clear contract. We can also see the summary of what was done. As you can see, the agent provides extra details on the work performed for each of the task groups. Now, let’s go to the package.json file. And in there, let’s run the app. The server starts in the console. The browser shows the result of this feature spec. Not much. We said nano, but it’s a good feeling to see pixels on the screen. We just implemented a feature. The agent did its validation. In the next lesson, we’ll do ours.
功能实现
摘要
展示实现步骤——使用 /clear 清理智能体上下文,然后提示智能体按功能规格说明实现所有任务组。强调开发者作为架构师/主管的角色,观察进度并审查变更。
关键要点
- 实现前清理上下文:使用 /clear 让智能体从头开始专注于规格说明
- 按任务组实现:可以一次性实现所有任务组,也可以逐个实现以获得更小、更安全的步骤
- 开发者 = 架构师/主管:你的角色从编写代码转向审查和提供清晰的契约
视频信息:功能实现
视频脚本(中文翻译)
我们正在按计划执行项目路线图中的第一个功能。我们完成了功能规格说明。现在让我们对这个功能进行完整的代码实现。为了唤起记忆,我们快速回顾一下这个功能规格说明的计划。这是第一个功能:Hello Hono。功能规格文件里有我们需要的内容。开始实现前,你应该使用 /clear 命令清理你的智能体上下文。让我们回到智能体,输入一个提示词,让它实现所有的”任务组(task groups)“。有时候你可能会选择一次只做一组任务,以便通过更小的步骤进行提交。这项技巧对于那些小错误会在以后复合放大的领域特别有用,比如在安全性或数据库管理方面。
当 Claude 正在运行时,你可以观察它在控制台中显示的变更,实时查看其进度。之后,我们可以在提交窗口中观察最终的变更,并直接查看代码变动。这让我们能提前开始代码审查。在这种开发范式下,开发者的核心角色就是担任架构师或主管,确保为智能体提供一份清晰的契约合同。我们也可以看到它所做工作的总结。正如你所看到的,智能体针对各个任务组所执行的工作提供了额外的细节。现在,我们去打开 package.json 文件。在那里,让我们运行这个应用。服务器在控制台中启动了。浏览器显示了这个功能规格的结果。东西不多,我们之前说了它是极简的(nano),但看到像素呈现在屏幕上感觉很好。我们刚刚实现了一个功能。智能体做了它的验证。在下一节课中,我们将进行我们的人工验证。