以规格优先的纪律交付功能
何时使用: PM 提了一个模糊的功能需求;你想把它做对,而不只是做快。
步骤
-
计划Use pilot-shell. Plan the feature 'export usage CSV per workspace per month'. List unknowns + risks.✓ 已复制→ 含明确未知项的计划;你在下一步之前填补空白
-
写规格From the plan, write a spec with acceptance criteria + non-goals + edge cases.✓ 已复制→ 规格已保存到 /specs/<feature>.md
-
实现Implement against the spec. Tests first, then code. Stop at any unmet criterion.✓ 已复制→ 测试 + 实现;未通过的测试可见,直到实现满足条件
-
运行质量门Run all gates: lint, type, tests, docs. Block PR if any red.✓ 已复制→ 质量门报告;全绿才是 PR 候选
结果: 功能按规格完整交付,附带测试和文档。
注意事项
- 规格阶段拖成规划马拉松 — 将规格阶段限时 30 分钟;强制就未知项做出决策,而非追求完美规格
搭配使用: filesystem