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"