Development Guide
This guide helps you set up a development environment and contribute to the project.
Test-Driven Development (TDD)β
The LLM Platform enforces strict TDD methodology across all projects:
- TDDAI Platform Overview - Complete TDD enforcement system
- Claude Code Integration - AI-powered development assistance
- TDD Quick Reference - Essential commands and workflows
Prerequisitesβ
- Node.js 20.0.0+
- npm 9.0.0+
- Git
- VS Code (recommended)
- TDDAI CLI tools
Setupβ
-
Clone the repository:
git clone <repository-url>
cd <project-name> -
Install dependencies:
npm install
-
Start development environment:
npm run dev
Development Workflowβ
TDD Workflow (Required)β
-
RED Phase: Write failing test first
# Create test file
touch src/feature.test.ts
# Write test that fails
npx tddai test src/feature.test.ts -
GREEN Phase: Write minimal code to pass
# Create implementation
touch src/feature.ts
# Make test pass
npx tddai test src/feature.test.ts -
REFACTOR Phase: Improve code quality
# Refactor with confidence
npx tddai test --watch
Standard Git Workflowβ
- Create a feature branch
- Follow TDD cycle for all changes
- Ensure 95%+ coverage:
npx tddai coverage
- Run full test suite:
npm test
- Submit a pull request
Code Qualityβ
- Follow coding standards
- Write comprehensive tests
- Update documentation
- Use meaningful commit messages
Testingβ
Run the test suite to ensure your changes don't break existing functionality:
npm test