A proof-of-concept for spec-driven development: feature specs and tests are written by hand AI, and an AI agent generates the application code from them.
This repository goes hand-in-hand with this blogpost.
- Specs (
specs/) define the API — entities, endpoints, validation rules, and business rules - Tests (
tests/) encode the expected behavior - Schema (
schema/) defines the database structure - An AI agent reads these artifacts and generates all code in
src/
The generated code is disposable — never committed, always regenerated from scratch.
- PHP 8.4, Symfony 8.0
- Doctrine ORM
- PHPUnit
- Docker Compose for local development
specs/ Feature specs (source of truth for behavior)
tests/ PHPUnit tests (source of truth for correctness)
schema/ SQL schema (source of truth for data structure)
src/ Generated application code (not committed)