Context engineering and planning for AI-powered software development
product-brief.md → PRD.md → architecture.md → Stories
story file → dev → code-review
tech-spec.md → quick-dev
brainstorm
Opt
Brainstorm project ideas
research
Opt
Validate assumptions
create-product-brief
Capture strategic vision
create-prd
Define requirements (FRs/NFRs)
create-ux-design
If Yes
Design user experience
create-architecture
Make technical decisions explicit
create-epics-and-stories
Break into implementable work
check-implementation-readiness
Gate check before implementation
sprint-planning
Initialize tracking
create-story
Prepare story for implementation
dev-story
Implement the story
code-review
Validate implementation
correct-course
Ad-Hoc
Handle mid-sprint changes
retrospective
Per Epic
Review lessons learned
For small, well-understood changes — skip phases 1-3
quick-spec
quick-dev
Each document becomes context for the next phase. PRD → Architecture, Architecture → Dev, Story → Implementation. Without this structure, agents make inconsistent decisions.
document-project to create project-context.md before Phase 4.
(Mary / Paige)
Context loaded per workflow:
create-story epics, PRD, arch, UXdev-story story filecode-review arch, storyquick-dev tech-spec