Synaptic AI Consulting
Estimated time: ~45 minutes
Outcome: Execute a Tier-0 Build phase using the Development Crew to transform PRD into working code
Framework version: AAMAD v0.7.5 (simplified path — see CHECKLIST.md for the full workflow)
By the end of this module, you will be able to:
@system.arch to create a Solution Architecture Document (SAD)@backend.eng to implement the CrewAI Application Crew@frontend.eng and @integration.eng to wire a minimal UI@qa.eng to smoke-test end-to-end functionalityAAMAD_TARGET_RUNTIME=crewai and use canonical Build artifactsrecruitment-assistant project with AAMAD initialized (Framework version: 0.7.5 in AGENTS.md)The 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:
Tier-0 Development Crew order (simplified):
@system.arch — Creates project-context/1.define/sad.md@backend.eng — Implements Application Crew → backend.md (core of this mini-project)@frontend.eng — Builds minimal UI → frontend.md@integration.eng — Wires components → integration.md@qa.eng — Smoke tests → qa.mdNote: Full AAMAD projects also use
@project.mgr→setup.mdand recommended@security.eng→security.md. This Tier-0 path folds env/scaffold into Step 1 below. Optionally runaamad validate --phase buildafter QA.
Before 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 your preferred model
OPENAI_MODEL=gpt-4o
# AAMAD runtime target (default for this course)
AAMAD_TARGET_RUNTIME=crewai
# 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'))); print('Runtime:', os.getenv('AAMAD_TARGET_RUNTIME'))"
Note: You may need to install python-dotenv:
pip install python-dotenv
Full projects: Invoke
@project.mgrwith*setup-projectto scaffold directories, install dependencies, and document everything inproject-context/2.build/setup.md. For Tier 0, the manual.envsetup above is enough.
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.arch
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
(or run *create-sad / *create-sad --mvp)
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. Set / confirm AAMAD_TARGET_RUNTIME=crewai and record it in the SAD Audit section
5. Save the SAD as: project-context/1.define/sad.md
Wearing your Technical Hat, review the SAD:
AAMAD_TARGET_RUNTIME=crewai is recorded in AuditIf adjustments are needed:
@system.archOnce the SAD is complete and reviewed:
git add project-context/1.define/sad.md
git commit -m "feat: Add Solution Architecture Document (SAD)
- System Architect created comprehensive SAD
- Runtime target crewai recorded in Audit
- Architecture reviewed and approved"
git checkout main
git merge feature/architecture
git branch -d feature/architecture
The Backend Engineer implements the Application Crew and backend services. For this mini-project, do backend first—the Application Crew is the product’s intelligence.
git checkout -b feature/backend
Start a NEW chat session:
@backend.eng
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/1.define/sad.md
3. Follow adapter-crewai conventions (AAMAD_TARGET_RUNTIME=crewai)
4. Implement the Application Crew using CrewAI:
- Researcher Agent
- Evaluator Agent
- Recommender Agent
5. Implement API endpoints (FastAPI or Flask)
6. Document all work in: project-context/2.build/backend.md
(use *develop-be if available)
Review project-context/2.build/backend.md:
Iterate with @backend.eng if needed.
The Backend Engineer will:
src/backend/ or src/backend.md with statusKey Implementation Notes:
Wearing your Technical Hat, review:
git add project-context/2.build/backend.md src/backend/ src/
git commit -m "feat: Add backend implementation
- Backend Engineer implemented Application Crew (CrewAI)
- API endpoints created
- backend.md documented"
git checkout main
git merge feature/backend
git branch -d feature/backend
The Frontend Engineer creates a minimal user interface for the recruitment assistant.
git checkout -b feature/frontend
Start a NEW chat session:
@frontend.eng
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/1.define/sad.md
3. Implement a simple web interface (HTML/CSS/JS or React) or CLI interface
4. Document decisions and status in: project-context/2.build/frontend.md
(use *develop-fe if available)
Review frontend.md and the code:
git add project-context/2.build/frontend.md src/frontend/
git commit -m "feat: Add frontend implementation
- Frontend Engineer created UI components
- UI matches PRD requirements
- frontend.md documented"
git checkout main
git merge feature/frontend
git branch -d feature/frontend
The Integration Engineer connects frontend, backend, and external services.
git checkout -b feature/integration
Start a NEW chat session:
@integration.eng
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/1.define/sad.md
3. Review: project-context/2.build/frontend.md
4. Review: project-context/2.build/backend.md
5. Wire frontend to backend API and verify a basic round-trip
6. Document integration and known issues in: project-context/2.build/integration.md
(use *integrate-api if available)
Wearing your Technical Hat, verify:
git add project-context/2.build/integration.md
git commit -m "feat: Integrate frontend and backend components
- Integration Engineer wired up all components
- End-to-end data flow verified
- integration.md documented"
git checkout main
git merge feature/integration
git branch -d feature/integration
The QA Engineer ensures the MVP works for the core flow.
git checkout -b feature/qa
Start a NEW chat session:
@qa.eng
I need you to smoke-test the recruitment assistant application. Please:
1. Review the PRD: project-context/1.define/prd.md
2. Review the SAD: project-context/1.define/sad.md
3. Review: project-context/2.build/frontend.md, backend.md, integration.md
4. Run smoke / acceptance checks on the main chat/recruitment flow
5. Log issues, known gaps, and future work in: project-context/2.build/qa.md
(use *qa / *verify-flow if available)
Go deeper (optional): Full AAMAD QA includes
*test-unitand*test-integrationwith AC-* traceability. For Tier 0, a documented smoke pass is enough.
If issues are found:
git checkout -b fix/issue-description@qa.enggit add project-context/2.build/qa.md
git commit -m "feat: Add QA smoke test results
- QA Engineer executed smoke tests
- Test results documented in qa.md
- Application validated against PRD MVP scope"
git checkout main
git merge feature/qa
git branch -d feature/qa
Optional quality gate:
aamad validate --phase build
As an Agentic Architect, review all Build phase artifacts:
project-context/1.define/sad.md — Architecture is soundproject-context/2.build/backend.md — Backend / Application Crew completeproject-context/2.build/frontend.md — Frontend completeproject-context/2.build/integration.md — Integration completeproject-context/2.build/qa.md — Smoke tests passed (or scoped gaps noted)Update your project README with:
AAMAD_TARGET_RUNTIME=crewai)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 with AAMAD_TARGET_RUNTIME=crewai)@system.arch: Create SAD in 1.define/sad.md@backend.eng: Implement Application Crew and backend.md@frontend.eng: Build UI and frontend.md@integration.eng: Wire components and integration.md@qa.eng: Smoke test and qa.mdKey Practices Applied:
*-plan.md files)By the end of this module, you should have:
.env file configured (not committed) with AAMAD_TARGET_RUNTIME=crewai.env.example template (committed)project-context/1.define/sad.md — Solution Architecture Documentproject-context/2.build/backend.md — Backend / Application Crew notesproject-context/2.build/frontend.md — Frontend notesproject-context/2.build/integration.md — Integration notesproject-context/2.build/qa.md — QA smoke resultsbackend.md, qa.md) instead of chat memory?
AAMAD_TARGET_RUNTIME=crewai control?
Issue: Environment variables not loading
.env file is in project rootpython-dotenv: pip install python-dotenv.env is in .gitignoreIssue: Agent persona not following instructions
@backend.eng)AGENTS.md for the correct invocation namesIssue: Git merge conflicts
git status to see conflicted filesIssue: Application Crew agents not working
pip install crewaiAAMAD_TARGET_RUNTIME=crewai are setIssue: Frontend can’t connect to backend
Throughout this module, you’ve applied key software development best practices:
project-context/Once the Build phase is complete:
@devops.eng → deploy.md)Continue to Module 07: Hands-On Mini-Project - Deliver Phase