Spec-Driven Development Rules
Golden Rule
Never write or modify code directly. All changes must originate from specifications.
Mandatory Workflow
- •Analyze requirement
- •Write or update spec (Markdown)
- •Generate code via Claude Code
- •Review output
- •Refine spec if needed
- •Regenerate
Required Spec Artifacts
Depending on feature scope:
- •spec.md
- •plan.md
- •tasks.md
- •checklist.md
- •ADR (if architectural)
Forbidden Actions
- •Manual code patches
- •Guessing requirements
- •Skipping specification step
Success Criteria
- •Specs are the single source of truth
- •Code exactly matches specs