最小可行性产品
The MVP
Summary
Shows how to leverage the constitution and completed feature specs to implement the remaining roadmap as an MVP in one large step. Demonstrates that good specs enable the agent to work autonomously on a larger scope.
Key Takeaways
- Good specs enable large-scale implementation: confidence in your constitution and feature specs allows implementing remaining roadmap at once
- MVP as extreme test of specs: if the result differs from expectations, it reveals gaps in planning
- Let the agent validate: use the agent to check specs against the implemented MVP, sharing findings with stakeholders
视频信息:The MVP
English Script
We made a lot of progress. Two features implemented with our spec workflow. But management just asked, of course, for an MVP. Have we made enough progress to do an experiment? Let’s do a variation of our standard feature spec prompt. This time we’ll tell it to implement the rest of the roadmap and give some guidance about existing feature specs. In general, you should only implement such a large chunk if you feel confident in the quality of your constitution and spec. The better the context you provide your agent, the more confident you can be in getting a result aligned with your intentions. And you should be sure that you can handle review and validation. But since we’ve taken this risk now, let’s view the MVP as an extreme test of our constitution and completed feature specs. If we now get something different from what we wanted, it means we need to very responsibly carry out another replanning phase to eliminate whatever led the agent astray.
The agent asked me some questions. Again, these are good questions and recommendations. A lot of spec files start as a back and forth conversation with an agent. Finished with the interview and we selected Submit Answers. Let’s write the MVP specs to disk. It’s always good to review the specs. You’ll often notice incorrect assumptions the agent made to fill the gaps. Let’s give a quick look at the plan. the requirements and the validation. As always, we like to work in small steps with frequent commits. Let’s save the planning stages feature spec. We are finished with planning. It’s time for the agent to go do a big implementation step.
The agent now does a lot of work. Once it’s finished, it’s showtime. Let’s see the MVP. We’ll go to our scripts to run the application. As you can see, each section now has much more driven by sample data queried from the database. At this point, usually we would validate the code results, but this is an MVP. Let’s ask the agent to validate the specs. As it turns out, this was useful. The agent showed places where the MVP found holes in our planning. We can share this evaluation with the stakeholders for their MVP review, then merge or archive the branch. Our spec-driven workflow succeeded. After a constitution and two features, the MVP produced a useful demo, thanks to our guidance. Of course, not all software projects involve building an MVP. Many projects are so-called brownfield. They start from an existing code base. Next, let’s see how to introduce this workflow to legacy projects.
最小可行性产品
摘要
展示如何利用项目章程和已完成的功能规格说明,一次性实现剩余路线图作为 MVP。演示了优秀的规格说明能够让智能体在更大范围内自主工作。
关键要点
- 优秀的规格说明支持大规模实现:对章程和功能规格说明的信心允许一次性实现剩余路线图
- MVP 是规格说明的极限测试:如果结果与预期不同,说明计划中存在漏洞
- 让智能体验证:使用智能体检查规格说明与已实现 MVP 的一致性,与干系人分享发现
视频信息:最小可行性产品
视频脚本(中文翻译)
我们取得了很大的进展。用我们的规格说明工作流实现了两个功能。但管理层,果然不出所料,现在要求一个 MVP(最小可行性产品)。我们目前的进展足以进行一次实验了吗?让我们对标准的”功能规格说明提示词”做一个变体。这次我们告诉它去实现路线图中剩余的全部内容,并给出现有功能规格的一些指导。一般来说,只有当你对你的项目章程和规格说明的质量有信心时,你才应该一次性实现这么大的一块代码。你提供给智能体的上下文越好,你就越有信心得到与你意图一致的结果。而且你还必须确信你能处理好后续的代码审查和验证。但既然我们现在承担了这个风险,我们就把这次 MVP 视为对我们的章程和已完成的功能规格说明的一次”极限测试(extreme test)“。如果我们现在得到的东西与我们想要的截然不同,那就意味着我们需要非常负责地再进行一次”重新规划”阶段,以消除任何将智能体引入歧途的因素。
智能体问了我一些问题。再说一遍,这些都是好问题和好建议。许多规格说明文件最初就是通过与智能体来回对话产生的。访谈完成,我们选择了”提交答案”。让我们将 MVP 的规格说明写入磁盘。审查一下规格说明总是好的。你经常会注意到智能体为了填补空白而做出的错误假设。让我们快速看一眼计划、需求和验证部分。一如既往,我们喜欢小步快跑、频繁提交。让我们保存处于计划阶段的功能规格说明。我们完成了计划。现在是让智能体去执行一个庞大代码实现步骤的时候了。
智能体现在做了大量的工作。一旦它完成了,好戏就要开场了。让我们来看看 MVP。我们将运行脚本来启动应用程序。如你所见,现在每个部分都有了丰富得多的内容,这些内容是由从数据库查询出的样本数据驱动的。在这一点上,通常我们会去验证代码结果,但这只是一个 MVP。让我们让智能体来验证规格说明。事实证明,这非常有用。智能体指出了 MVP 暴露出的我们在计划中的漏洞。我们可以将这份评估报告分享给干系人进行 MVP 评审,然后合并或归档该分支。我们的规格驱动工作流成功了。经过一个章程和两个功能的开发,MVP 在我们的指导下产出了一个有用的演示。当然,并非所有软件项目都涉及从头构建 MVP。许多项目是所谓的传统老项目(brownfield)。它们是从一个现有的代码库开始的。接下来,让我们看看如何将这套工作流引入到传统遗留项目中。