Synaptic AI Consulting
Estimated time: ~45 minutes
Outcome: Execute the Build phase using the Development Crew to transform PRD into working code
By the end of this module, you will be able to:
recruitment-assistant project with AAMAD initializedThe Build phase transforms your PRD into working software through coordinated multi-agent execution. As an Agentic Architect, you’ll wear your Technical Hat to orchestrate the Development Crew, ensuring:
Development Crew Personas (in order):
@system-architect) - Creates SAD@frontend-engineer) - Builds UI@backend-engineer) - Implements logic@integration-engineer) - Wires components@qa-engineer) - Tests everythingBefore starting development, configure the required environment variables.
.env FileIn your project root, create a .env file:
cd ~/projects/recruitment-assistant
touch .env
Add the following environment variables:
# OpenAI API Configuration
OPENAI_API_KEY=your_openai_api_key_here
# Optional: Use a different model
OPENAI_MODEL=gpt-4
# Application Configuration
APP_NAME=Recruitment Assistant
APP_ENV=development
# CrewAI Configuration (if needed)
CREWAI_TELEMETRY_OPT_OUT=true
Important: Add .env to .gitignore to avoid committing secrets:
echo ".env" >> .gitignore
Create a .env.example file as a template (commit this, not .env):
cp .env .env.example
# Edit .env.example to remove actual API keys, replace with placeholders
Test that your environment variables are accessible:
# In Python
python -c "import os; from dotenv import load_dotenv; load_dotenv(); print('API Key set:', bool(os.getenv('OPENAI_API_KEY')))"
Note: You may need to install python-dotenv:
pip install python-dotenv
The System Architect designs the technical architecture based on your PRD.
git checkout -b feature/architecture
Start a NEW chat session (this is important for context isolation):
Reference the System Architect persona:
@system-architect
I need you to create a Solution Architecture Document (SAD) for the
recruitment assistant application. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Create a comprehensive SAD using the template: .cursor/templates/sad-template.md
3. Design the architecture for:
- Application Crew (Researcher, Evaluator, Recommender agents using CrewAI)
- Frontend interface (simple web UI or CLI)
- Backend API (FastAPI or Flask)
- Integration points
4. Save the SAD as: project-context/2.build/sad.md
5. Also create a plan document: project-context/2.build/architecture-plan.md
that outlines the implementation approach and status
Wearing your Technical Hat, review the SAD:
If adjustments are needed:
@system-architectOnce the SAD is complete and reviewed:
git add project-context/2.build/sad.md project-context/2.build/architecture-plan.md
git commit -m "feat: Add Solution Architecture Document (SAD)
- System Architect created comprehensive SAD
- Architecture plan documented
- Architecture reviewed and approved"
git checkout main
git merge feature/architecture
git branch -d feature/architecture
The Frontend Engineer creates the user interface for the recruitment assistant.
git checkout -b feature/frontend
Start a NEW chat session:
@frontend-engineer
I need you to build the frontend for the recruitment assistant. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Review the SAD: project-context/2.build/sad.md
3. Create a plan document: project-context/2.build/frontend-plan.md
that outlines:
- UI components to build
- User interaction flows
- API integration points
- Implementation approach
- Status tracking
4. Implement the frontend based on the plan
5. Create a simple web interface (HTML/CSS/JS or React) or CLI interface
6. Update frontend-plan.md with progress as you work
Review the frontend-plan.md before implementation:
Iterate with Frontend Engineer if needed.
The Frontend Engineer will:
src/frontend/ or similarfrontend-plan.md with status as work progressesMonitor progress by checking frontend-plan.md regularly.
Wearing your Technical Hat, review the code:
git add project-context/2.build/frontend-plan.md src/frontend/
git commit -m "feat: Add frontend implementation
- Frontend Engineer created UI components
- UI matches PRD requirements
- Frontend plan documented and updated"
git checkout main
git merge feature/frontend
git branch -d feature/frontend
The Backend Engineer implements the Application Crew and backend services.
git checkout -b feature/backend
Start a NEW chat session:
@backend-engineer
I need you to implement the backend for the recruitment assistant. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Review the SAD: project-context/2.build/sad.md
3. Create a plan document: project-context/2.build/backend-plan.md
that outlines:
- Application Crew implementation (CrewAI agents)
- API endpoints to implement
- Business logic components
- Implementation approach
- Status tracking
4. Implement the Application Crew using CrewAI:
- Researcher Agent
- Evaluator Agent
- Recommender Agent
5. Implement API endpoints (FastAPI or Flask)
6. Update backend-plan.md with progress as you work
Review the backend-plan.md:
Iterate with Backend Engineer if needed.
The Backend Engineer will:
src/backend/ or src/backend-plan.md with statusKey Implementation Notes:
Wearing your Technical Hat, review:
git add project-context/2.build/backend-plan.md src/backend/ src/
git commit -m "feat: Add backend implementation
- Backend Engineer implemented Application Crew (CrewAI)
- API endpoints created
- Backend plan documented and updated"
git checkout main
git merge feature/backend
git branch -d feature/backend
The Integration Engineer connects frontend, backend, and external services.
git checkout -b feature/integration
Start a NEW chat session:
@integration-engineer
I need you to integrate all components of the recruitment assistant. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Review the SAD: project-context/2.build/sad.md
3. Review frontend plan: project-context/2.build/frontend-plan.md
4. Review backend plan: project-context/2.build/backend-plan.md
5. Create a plan document: project-context/2.build/integration-plan.md
that outlines:
- Frontend-Backend integration
- API connection setup
- External service integrations (if any)
- Configuration needed
- Testing approach
- Status tracking
6. Wire up all components
7. Ensure end-to-end data flow works
8. Update integration-plan.md with progress
Review the integration-plan.md:
Iterate with Integration Engineer if needed.
The Integration Engineer will:
integration-plan.md with statusWearing your Technical Hat, verify:
git add project-context/2.build/integration-plan.md
git commit -m "feat: Integrate frontend and backend components
- Integration Engineer wired up all components
- End-to-end data flow verified
- Integration plan documented"
git checkout main
git merge feature/integration
git branch -d feature/integration
The QA Engineer ensures everything works correctly.
git checkout -b feature/qa
Start a NEW chat session:
@qa-engineer
I need you to test the recruitment assistant application. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Review the SAD: project-context/2.build/sad.md
3. Review all implementation plans:
- project-context/2.build/frontend-plan.md
- project-context/2.build/backend-plan.md
- project-context/2.build/integration-plan.md
4. Create a test plan document: project-context/2.build/qa-plan.md
that outlines:
- Test cases to execute
- Test scenarios
- Expected vs actual results
- Issues found
- Status tracking
5. Execute end-to-end tests
6. Test each Application Crew agent
7. Test API endpoints
8. Test frontend functionality
9. Document all test results
10. Update qa-plan.md with findings
Review the qa-plan.md:
Iterate with QA Engineer if needed.
The QA Engineer will:
qa-plan.md with findingsIf issues are found:
git checkout -b fix/issue-descriptionWearing your Technical Hat, review:
git add project-context/2.build/qa-plan.md
git commit -m "feat: Add QA test results
- QA Engineer executed comprehensive tests
- Test results documented
- Application validated against PRD"
git checkout main
git merge feature/qa
git branch -d feature/qa
As an Agentic Architect, review all Build phase artifacts:
project-context/2.build/sad.md - Architecture is soundproject-context/2.build/architecture-plan.md - Status updatedproject-context/2.build/frontend-plan.md - Frontend completeproject-context/2.build/backend-plan.md - Backend completeproject-context/2.build/integration-plan.md - Integration completeproject-context/2.build/qa-plan.md - Tests passedUpdate your project README with:
git add README.md
git commit -m "docs: Update README with Build phase completion
- All Build phase artifacts complete
- Application ready for Deliver phase"
Complete the Build phase by:
.env file)Key Practices Applied:
By the end of this module, you should have:
.env file configured (not committed).env.example template (committed)project-context/2.build/sad.md - Solution Architecture Documentproject-context/2.build/architecture-plan.md - Architecture implementation planproject-context/2.build/frontend-plan.md - Frontend implementation planproject-context/2.build/backend-plan.md - Backend implementation planproject-context/2.build/integration-plan.md - Integration planproject-context/2.build/qa-plan.md - QA test resultsIssue: Environment variables not loading
.env file is in project rootpython-dotenv: pip install python-dotenv.env is in .gitignoreIssue: Agent persona not following instructions
Issue: Git merge conflicts
git status to see conflicted filesIssue: Application Crew agents not working
pip install crewaiIssue: Frontend can’t connect to backend
Throughout this module, you’ve applied key software development best practices:
Once the Build phase is complete:
Continue to Module 07: Hands-On Mini-Project - Deliver Phase