工作流概述
Workflow overview
Summary
Introduces the complete SDD workflow: starting with a project constitution (mission, tech stack, roadmap), then iterating through feature development loops (plan, implement, validate) with replanning phases between features. Emphasizes providing the right level of detail to the agent.
Key Takeaways
- The Constitution anchors the project: mission (why), tech stack (how), and roadmap (what’s next) formalize project-level decisions
- Feature loop is repeatable: plan the feature, implement it, validate the result — then replan before the next feature
- Right level of detail is key: treat the agent as a highly capable pair programmer — provide context on goals and constraints, let it figure out low-level decisions
视频信息:Workflow overview
English Script
Spec-driven development tells the agent how to build what you want. up front for the project, then for each feature, getting better as you go. With SDD, we help the agent with the best quality context. First with decisions about the project, then with details about each feature. This spec is very detailed. One key skill in SDD is knowing the right level of detail. If you treat your agent as a highly capable pair programmer, you’ll often hit the right level. Lots of context about the Goals, mission, target audience and constraints. and less about the low-level decisions the agent can figure out on its own.
What does this SDD workflow look like? First, we specify the Constitution. What is the mission, the Tech stack, the Roadmap? A Constitution is just one way to formalize these project level details. Many developers use a top-level agents.md file for this purpose. But a project Constitution is agent agnostic and more structured. The Constitution captures the agreement on key decisions between the human and the agent, but also the agreement between the humans. The mission explains the why. This project’s vision, audiences, scope, etc. Defining these parameters in advance is very common in software projects and helps guide ongoing decisions. The tech stack is for the engineering team, a common understanding of development and deployment technologies and constraints. The Roadmap is a living document with a sequence of phases, each implemented with their own feature spec process.
Once the Constitution has been drafted, we work on each feature with a repeatable process. First, plan the feature, implement it, and finally, validate the result. In between features, it’s time for the Replanning phase. Revise your Constitution, update the road map, even improve the process itself. As you heard a moment ago, one of the key skills of SDD is providing the right level of detail to create the highest quality context. In the feature phase and the replanning phases, you steer the agent. Look at it this way. Imagine that you are an architect and you give detailed drawings of a building to builders. Then it’s up to them. Your role is to design, supervise the construction, then review and accept the results, or ask for changes. You’ll want to avoid telling the builders how to do their jobs and focus on providing the context they don’t know.
Spec-Driven Development gets you from thinking at the start to delivering at the finish. Best of all, it keeps you improving from there. This is one SDD workflow that modern developers are starting to use. Soon we’ll look at the start, the project constitution. But first, let’s do a little setup preparation. To get set up with the project repo, follow instructions in the next reading item. The following video setup is optional. If you’re already comfortable with setting up a coding agent like Claude Code in an IDE such as WebStorm, feel free to skip this optional video. See you in the next video or the next one.
工作流概述
摘要
介绍完整的 SDD 工作流:从项目章程(任务愿景、技术栈、路线图)开始,然后通过功能开发循环(计划、实现、验证)进行迭代,并在功能之间安排重新规划阶段。强调为智能体提供恰当的细节颗粒度。
关键要点
- 章程锚定项目:任务愿景(为什么)、技术栈(怎么做)、路线图(下一步)将项目层面的决策正规化
- 功能循环可重复:计划功能、实现功能、验证结果——然后在下一个功能之前重新规划
- 恰当的细节颗粒度是关键:将智能体视为能力极强的结对程序员——提供目标和约束的上下文,让它自行决定底层细节
视频信息:工作流概述
视频脚本(中文翻译)
规格驱动开发告诉智能体如何构建你想要的东西。首先在项目层面进行前期说明,然后针对每个功能进行说明,并在此过程中不断优化。在 SDD 中,我们为智能体提供最优质的上下文背景。首先是关于项目的整体决策,其次是每个功能的详细信息。这份规格说明非常详细。SDD 的一项关键技能是掌握”恰当的细节颗粒度”。如果你把你的智能体看作是一个能力极强的结对程序员,你通常就能把握好这个度:提供大量关于目标、任务、目标受众和约束条件的上下文,而减少那些智能体可以自己搞定的底层低级决策。
这个 SDD 工作流是什么样的?首先,我们明确”项目章程(Constitution)“。包括:任务(Mission)是什么,技术栈(Tech stack)是什么,路线图(Roadmap)是什么?项目章程只是一种将这些项目层面的细节正规化的方式。许多开发者习惯在根目录下使用一个 agents.md 文件来达到此目的。但是,项目章程是与具体智能体解耦(agent agnostic)且更具结构化的。项目章程不仅记录了人与智能体之间在关键决策上的共识,也记录了人类团队成员之间的共识。“任务(Mission)“解释了”为什么”做——这个项目的愿景、受众、范围等等。提前定义这些参数在软件项目中非常普遍,有助于指导后续的决策。“技术栈(Tech Stack)“则是供工程团队使用的,它是对开发、部署技术及各种约束条件的共同认知。“路线图(Roadmap)“是一份不断更新的活文档,包含一系列阶段任务,每个阶段都会用独立的功能规格说明流程去实现。
一旦起草了项目章程,我们就将用一套可重复的流程来处理每一个功能。首先,计划(plan)该功能,接着实现(implement)它,最后验证(validate)结果。在开发两个不同的功能之间,是”重新规划(Replanning)“阶段的时间。你可以利用这个时间修改你的项目章程,更新路线图,甚至改进工作流程本身。正如你刚才听到的,SDD 的关键技能之一是提供合适的细节层级,从而打造高质量的上下文。在功能开发阶段和重新规划阶段,你要负责引导智能体。这么看吧:想象你是一名建筑师,你把建筑的详细图纸交给建筑工人。接下来就看他们的了。你的角色是设计、监督施工,然后审查并验收成果,或者提出修改要求。你要避免教工人们如何干活(写底层代码),而是要把重点放在提供他们不知道的上下文信息上。
规格驱动开发让你从最初的构思,一路走向最终的交付。最棒的是,它能让你在这个基础上不断进步。这就是现代开发者开始使用的一种 SDD 工作流。很快我们将了解一切的起点——项目章程。但首先,让我们做一点安装配置的准备工作。要设置好项目代码库,请遵循下一节阅读材料中的说明。随后的”安装与设置(Setup)“视频是可选的。如果你已经熟悉如何在 WebStorm 等 IDE 中配置像 Claude Code 这样的编程智能体,你可以跳过这个可选视频。我们下个视频,或者下下个视频见。