๐ NEVER generate content without user input
๐ CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
๐ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
โ ALWAYS treat this as collaborative discovery between architectural peers
๐ YOU ARE A FACILITATOR, not a content generator
๐ฌ FOCUS on defining complete project structure and clear boundaries
๐บ๏ธ MAP requirements/epics to architectural components
โ ๏ธ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
โ
YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config {communication_language}
stepsCompleted: [1, 2, 3, 4, 5, 6] before loading next stepThis step will generate content and present choices:
Define the complete project structure and architectural boundaries based on all decisions made, creating a concrete implementation guide for AI agents.
Map project requirements to architectural components:
From Epics (if available): "Epic: {{epic_name}} โ Lives in {{module/directory/service}}"
From FR Categories (if no epics): "FR Category: {{fr_category_name}} โ Lives in {{module/directory/service}}"
Based on technology stack and patterns, create the complete project structure:
Root Configuration Files:
Source Code Organization:
Test Organization:
Build and Distribution:
Map how components communicate and where boundaries exist:
API Boundaries:
Component Boundaries:
Data Boundaries:
Generate a comprehensive directory structure showing all files and directories:
Technology-Specific Structure Examples:
Next.js Full-Stack:
project-name/
โโโ README.md
โโโ package.json
โโโ next.config.js
โโโ tailwind.config.js
โโโ tsconfig.json
โโโ .env.local
โโโ .env.example
โโโ .gitignore
โโโ .github/
โ โโโ workflows/
โ โโโ ci.yml
โโโ src/
โ โโโ app/
โ โ โโโ globals.css
โ โ โโโ layout.tsx
โ โ โโโ page.tsx
โ โโโ components/
โ โ โโโ ui/
โ โ โโโ forms/
โ โ โโโ features/
โ โโโ lib/
โ โ โโโ db.ts
โ โ โโโ auth.ts
โ โ โโโ utils.ts
โ โโโ types/
โ โโโ middleware.ts
โโโ prisma/
โ โโโ schema.prisma
โ โโโ migrations/
โโโ tests/
โ โโโ __mocks__/
โ โโโ components/
โ โโโ e2e/
โโโ public/
โโโ assets/
API Backend (NestJS):
project-name/
โโโ package.json
โโโ nest-cli.json
โโโ tsconfig.json
โโโ .env
โโโ .env.example
โโโ .gitignore
โโโ README.md
โโโ src/
โ โโโ main.ts
โ โโโ app.module.ts
โ โโโ config/
โ โโโ modules/
โ โ โโโ auth/
โ โ โโโ users/
โ โ โโโ common/
โ โโโ services/
โ โโโ repositories/
โ โโโ decorators/
โ โโโ pipes/
โ โโโ guards/
โ โโโ interceptors/
โโโ test/
โ โโโ unit/
โ โโโ integration/
โ โโโ e2e/
โโโ prisma/
โ โโโ schema.prisma
โ โโโ migrations/
โโโ docker-compose.yml
Create explicit mapping from project requirements to specific files/directories:
Epic/Feature Mapping: "Epic: User Management
Cross-Cutting Concerns: "Authentication System
Prepare the content to append to the document:
## Project Structure & Boundaries
### Complete Project Directory Structure
{{complete_project_tree_with_all_files_and_directories}}
### Architectural Boundaries
**API Boundaries:**
{{api_boundary_definitions_and_endpoints}}
**Component Boundaries:**
{{component_communication_patterns_and_boundaries}}
**Service Boundaries:**
{{service_integration_patterns_and_boundaries}}
**Data Boundaries:**
{{data_access_patterns_and_boundaries}}
### Requirements to Structure Mapping
**Feature/Epic Mapping:**
{{mapping_of_epics_or_features_to_specific_directories}}
**Cross-Cutting Concerns:**
{{mapping_of_shared_functionality_to_locations}}
### Integration Points
**Internal Communication:**
{{how_components_within_the_project_communicate}}
**External Integrations:**
{{third_party_service_integration_points}}
**Data Flow:**
{{how_data_flows_through_the_architecture}}
### File Organization Patterns
**Configuration Files:**
{{where_and_how_config_files_are_organized}}
**Source Organization:**
{{how_source_code_is_structured_and_organized}}
**Test Organization:**
{{how_tests_are_structured_and_organized}}
**Asset Organization:**
{{how_static_and_dynamic_assets_are_organized}}
### Development Workflow Integration
**Development Server Structure:**
{{how_the_project_is organized_for_development}}
**Build Process Structure:**
{{how_the_build_process_uses_the_project_structure}}
**Deployment Structure:**
{{how_the_project_structure_supports_deployment}}
Show the generated project structure content and present choices:
"I've created a complete project structure based on all our architectural decisions.
Here's what I'll add to the document:
[Show the complete markdown content from step 6]
What would you like to do? [A] Advanced Elicitation - Explore innovative project organization approaches [P] Party Mode - Review structure from different development perspectives [C] Continue - Save this structure and move to architecture validation"
{planning_artifacts}/architecture.mdstepsCompleted: [1, 2, 3, 4, 5, 6]./step-07-validation.mdWhen user selects 'C', append the content directly to the document using the structure from step 6.
โ Complete project tree defined with all files and directories โ All architectural boundaries clearly documented โ Requirements/epics mapped to specific locations โ Integration points and communication patterns defined โ Project structure aligned with chosen technology stack โ A/P/C menu presented and handled correctly โ Content properly appended to document when C selected
โ Creating generic placeholder structure instead of specific, complete tree โ Not mapping requirements to specific files and directories โ Missing important integration boundaries โ Not considering the chosen technology stack in structure design โ Not defining how components communicate across boundaries โ Not presenting A/P/C menu after content generation
โ CRITICAL: Reading only partial step file - leads to incomplete understanding and poor decisions โ CRITICAL: Proceeding with 'C' without fully reading and understanding the next step file โ CRITICAL: Making decisions without complete understanding of step requirements and protocols
After user selects 'C' and content is saved to document, load ./step-07-validation.md to validate architectural coherence and completeness.
Remember: Do NOT proceed to step-07 until user explicitly selects 'C' from the A/P/C menu and content is saved!