The Agentic Workflow
Spec-Driven Development
Spec-driven development means writing a detailed specification before letting an agent write code, giving the agent explicit success criteria, constraints, edge cases, and architectural context instead of a vague natural language request. The gap between "build me a login page" and a structured spec that defines auth flow, error states, styling conventions, and API contracts is the gap between throwaway code and production-ready output. A spec also becomes a natural review artifact: comparing the implementation against the written spec makes code review faster and more focused than reading code with no declared intent.
connected to
resources
Claude Code Best Practicesanthropic.comAnthropic's guidance on spec-driven approaches for Claude Code (anthropic.com)Cursor Documentationdocs.cursor.comHow to provide specifications and project context to Cursor for better results (docs.cursor.com)Shape Up: Write the Pitchbasecamp.comBasecamp's approach to writing specifications that constrain without over-specifying (basecamp.com)ADR (Architecture Decision Records)adr.github.ioTemplate for documenting architectural decisions that agents can reference (adr.github.io)