Build a feature with a spec, not a vibe prompt
何时使用: You're about to ask Claude to "add OAuth" and dread the 500-line diff that will land in one go.
前置条件
- Project path known — MCP is launched with /path/to/project as arg
步骤
-
RequirementsUse spec-workflow. Create a spec named
oauth-login. Start with requirements — what are we adding, who is it for, what are the non-goals?✓ 已复制→ Requirements doc drafted, link to dashboard for approval -
Approve + DesignI approved in the dashboard. Now write the design: components, data model, sequence diagram, error cases.✓ 已复制→ Design doc with concrete architecture
-
Tasks + ExecuteI approved. Break into tasks. Then execute task 1.1 — just that one, stop after.✓ 已复制→ Task list created; only task 1.1 implemented with log entry
结果: A feature shipped with reviewable intermediate artifacts — not a mystery diff.
注意事项
- Claude tries to skip straight to code — The MCP blocks it — but be explicit in prompts anyway: "do not implement yet"