Developer Onboarding Guide
Welcome to the AICR platform. This guide will get you up to speed on the ecosystem and prepare you to contribute.
Week 1: Environment Setup
Day 1-2: Local Development
-
Clone the monorepo
git clone https://github.com/AICodeRally/aicr.git ~/dev/aicr cd ~/dev/aicr pnpm install -
Set up environment variables
cp .env.example .env.local # Get credentials from Vercel or team lead -
Start the development server
pnpm dev -
Verify access to:
Day 3-4: Database Setup
-
Neon PostgreSQL
- Request access to Neon dashboard
- Create a development branch from
main - Update
DATABASE_URLin.env.local
-
Run migrations
cd apps/aicr pnpm prisma migrate dev pnpm prisma generate -
Seed sample data
pnpm prisma db seed
Day 5: AI Infrastructure
-
Install Ollama (optional but recommended)
# macOS brew install ollama ollama serve # Pull models ollama pull nomic-embed-text ollama pull llama3 -
Test AI connectivity
curl http://localhost:11434/api/tags -
Verify OpenAI key (get from team lead)
export OPENAI_API_KEY=sk-... curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $OPENAI_API_KEY"
Week 2: Codebase Exploration
Key Directories to Understand
| Directory | Purpose | Priority |
|---|---|---|
apps/aicr/ | Main application | High |
packages/ai-router/ | AI routing logic | High |
packages/contracts/ | Shared types | High |
services/agent-conductor/ | AI orchestration | Medium |
docs/ | Architecture docs | Medium |
Critical Files
CLAUDE.md- AI agent instructions for the repoapps/aicr/prisma/schema.prisma- Database schemapackages/ai-router/src/client.ts- AI client implementationpackages/contracts/src/context.ts- Context envelope types
Documentation to Read
- AI Gateway Overview - How AI routing works
- Ecosystem Overview - Project inventory
- Architecture Overview - Platform design
- Pack System - Capability delivery model
Week 3: Knowledge Base Work
Your initial assignment is documenting and building out the knowledge base.
Task 1: Audit Existing Documentation
-
Find all CLAUDE.md files
find ~/dev -name "CLAUDE.md" -type f 2>/dev/null -
For each file, document:
- Project name and purpose
- Key directories and files
- Dependencies on other projects
- Environment requirements
-
Create inventory spreadsheet with columns:
- Project Name
- Location
- Has CLAUDE.md (Y/N)
- Vercel Connected (Y/N)
- Database Type
- AI Integration (None/Ollama/OpenAI/Both)
Task 2: Knowledge Base Content
-
Review SPM knowledge cards
~/dev/intelligentspm/src/data/spm-kb-cards.json- 929 cards covering SPM domain knowledge
- Used by AskSPM RAG system
-
Document card structure:
- Pillars (categories)
- Keywords
- Content format
- Embedding approach
-
Identify gaps:
- Missing topics
- Outdated content
- Inconsistent formatting
Task 3: Documentation Site
-
Run docs locally
cd ~/dev/aicr/apps/docs pnpm dev -
Add missing pages:
- Project pages for each app
- API reference for each service
- Troubleshooting guides
-
Follow MDX conventions:
- Use frontmatter for metadata
- Include code examples
- Add navigation links
Common Tasks
Running Tests
# All tests
pnpm test
# Specific package
pnpm --filter @aicr/ai-router test
# Watch mode
pnpm test -- --watchCreating a Branch
git checkout -b feature/your-feature
# Make changes
git add .
git commit -m "feat: description"
git push -u origin feature/your-featureDeploying to Preview
- Push to branch (auto-deploys to Vercel preview)
- Check preview URL in PR comments
- Test functionality
- Request review
Getting Help
- Slack: #dev-help channel
- GitHub: Open issue or discussion
- AI Assistant: Use Claude Code with project CLAUDE.md
- Docs: Start here, then architecture docs
Checklist
- Local environment running
- Database connected
- AI providers working (Ollama or OpenAI)
- Can access all critical apps
- Read core documentation
- First commit submitted
- Knowledge base audit started