AI-Driven Development (AIDD) Template for React 19 + TypeScript + Vite + TailwindCSS.
This repository is not just a starter project. It is a reference implementation of an AIDD-ready frontend codebase, designed to work seamlessly with AI agents (Cursor / Trae / Kilo) while enforcing high engineering standards.
This template exists to:
- Serve as a baseline AIDD project for modern React applications
- Enforce deterministic, low-risk changes by AI agents
- Encode engineering rules as contracts, not suggestions
- Reduce token usage while increasing output correctness
- Align humans and AI around the same standards
This repo assumes that AI will actively modify the codebase.
Unlike typical Vite or React templates, this project includes:
-
A document hierarchy optimized for AI reasoning
-
Explicit authority and escalation rules for decisions
-
Strict separation between:
- technical constraints
- rendering rules
- execution discipline
- contribution standards
-
A mechanical rendering contract compatible with React 19 concurrency
The repository is governed by the following documents:
-
AI_RULES.mdHard, non-negotiable technical constraints -
RENDERING_RULES_V3.mdDefault rendering & performance contract (low-token, mechanical) -
CODING_STANDARDS.mdEngineering quality and refactoring discipline -
ENGINEERING_PRINCIPLES.mdArchitecture, boundaries, ownership rules
AGENT_EXECUTION_RULES.md— iteration loop, failure limits, execution disciplineAGENT_PROTOCOL.md— response structure and output disciplinedocs/prompts/frontend_agent_prompt_*.md— agent role definition
PERFORMANCE_GUIDE.mdCONTRIBUTING_AI.mdDESIGN_PATTERNS.mdREPO_CONTEXT.md
See
INDEX.mdfor the authoritative navigation order.
- React 19 (hooks + functional components only)
- TypeScript (strict)
- Vite
- TailwindCSS (utility-first, no CSS-in-JS)
- lucide-react for all icons
No additional UI frameworks or state libraries are included by default.
This repository is designed to be used with AI assistants:
- Cursor
- Trae
- Kilo
- Chat-based agents
The agent must:
- Follow
INDEX.mdfor document loading - Obey
AI_RULES.mdandRENDERING_RULES_V3.md - Apply minimal diffs only
- Stop after 3 failed iterations
Any response that violates these rules is considered non-compliant.
All contributions (human or AI-assisted) must follow:
CONTRIBUTING_AI.mdCODING_STANDARDS.mdAGENT_EXECUTION_RULES.md
This ensures:
- Predictable reviews
- Low-risk refactors
- Stable long-term evolution
- Bootstrap an AIDD-ready frontend project
- Use as a golden reference for AI-assisted refactors
- Teaching or experimenting with AI-governed codebases
- Internal templates for teams adopting AI coding workflows
This template does not:
- Provide a full UI kit or design system
- Optimize for rapid prototyping over correctness
- Hide complexity behind generators or magic
Correctness and discipline are preferred over speed.
This repository represents:
AIDD_BASELINE v1.0
It is safe to clone, extend, and evolve under AI-driven workflows.
If you remove the documents, this becomes a normal React template.
If you keep them, this becomes an AI-governed engineering system.
Choose intentionally.