Spec-Driven Development Example¶
Example Only
Spec-driven development is now documented as an example pattern, not shipped as a built-in preset.
Overview¶
This example demonstrates a specification-first workflow, where requirements are formalized before implementation begins.
If you want a supported builtin today, start with builtin:code-assist for implementation work or builtin:pdd-to-code-assist for the longer idea-to-code flow.
If you specifically want an example-only automated design workflow, see Automated PDD Design and its example preset at docs/examples/presets/auto-pdd.yml.
Workflow¶
- Create specification/design artifacts in
.agents/scratchpad/implementation/{spec_name}/ - Review and approve spec
- Generate implementation tasks
- Execute with Ralph orchestration
Example Spec¶
# Feature: User Authentication
## Given
- User registration system exists
## When
- User provides valid credentials
## Then
- User receives authentication token
- Session is established
See Also¶
- TDD Workflow - Test-first approach
- Simple Task - Basic example
- Writing Prompts - Prompt best practices