Backend Init
Initialize backend development environment by creating the constraints file.
Language Configuration
Before generating any content, check aico.json in project root for language field to determine the output language. If not set, default to English.
Process
- •Check existing: Look for
docs/reference/backend/constraints.md - •If exists: Ask user if they want to overwrite or skip
- •Create directory structure:
code
docs/reference/backend/ ├── constraints.md └── tasks/
- •Generate constraints file:
- •Read template from
references/constraints.template.md - •Guide user through key decisions
- •Read template from
- •Save output: Write to
docs/reference/backend/constraints.md
Document Header Format
All generated documents MUST use this unified header format:
markdown
# [Document Title] > Project: [project-name] > Created: YYYY-MM-DD > Last Updated: YYYY-MM-DD
Guided Questions
| Category | Questions |
|---|---|
| Language/Runtime | Node.js, Python, Go, Rust? |
| Framework | Express, Fastify, FastAPI, Gin? |
| Database | PostgreSQL, MySQL, MongoDB? |
| ORM/Query | Prisma, Drizzle, SQLAlchemy, GORM? |
| Testing | Vitest, Jest, Pytest, Go test? |
| API Style | REST, GraphQL, gRPC? |
Template
See references/constraints.template.md for the full constraints template.
Output
code
✓ Created docs/reference/backend/constraints.md ✓ Created docs/reference/backend/tasks/ ✓ Backend environment initialized
Key Rules
- •ALWAYS use the unified header format
- •MUST guide user through tech stack questions
- •ALWAYS create tasks/ directory
- •ALWAYS save to
docs/reference/backend/constraints.md