展示HN:Claude代码的规范驱动开发工作流程

2作者: sermakarevich大约 1 个月前原帖
规范驱动开发(Spec Driven Development)方法通过几个强有力的概念,使编码代理能够发挥更大的效能: - 在两个维度上进行分解。首先,您分多个步骤生成规范(需求、代码分析、设计),然后将任务拆分为多个子任务,并逐一实施。 - 在每个步骤之间清晰地划分上下文——在生成规范后和实施子任务后。这有助于保持成本低廉,并使上下文清晰且专注,从而提升性能。 - 将规范写入磁盘有助于信息的持久性。 - 分层交付规范有助于在代理出现误解时尽早发现问题。 规范驱动开发的Claude插件仓库: [https://github.com/sermakarevich/sddw](https://github.com/sermakarevich/sddw)
查看原文
Spec Driven Development approach allows to squeeze more from coding agents thanks to few strong concepts: - decomposition across two dimensions. first you generate specs in multiple steps (requirements, code analysis, design), than you split task into multiple subtasks and implement them one by one - you clear context between every step - after spec generation and after subtask implementation. this helps keep cost low and context clear and focused which boost performance - specs written to disk help with information persistency - delivering specs layer by layer help to catch early when agent got you wrong<p>Repo with claude plugin for spec driven development: <a href="https:&#x2F;&#x2F;github.com&#x2F;sermakarevich&#x2F;sddw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sermakarevich&#x2F;sddw</a>