Elvis Kahoro's Reflex Starter Template
Agents write code fast but guess at your conventions. This template writes the conventions down, enforces them, and gives the agent a way to check its own work, so its first attempt is one you can merge.
Why it works with agents
Agents fail when a repo is ambiguous. Each choice here removes one kind of ambiguity.
Prompts that stay on the rails
Vague asks produce off-pattern code. These name the files, the constraint, and the check, for the three jobs agents get most.
Done means verified
An agent that stops without running these is guessing. Exact commands leave nothing to improvise.
uv sync --group devInstall locked dependenciesuv run reflex runStart frontend and backenduv run pytest -qSmoke tests (network tests skipped)uv run tach checkModule boundariesuv run tach check-externalDeclared vs imported depstrunk check --allLint gate (merge-blocking)rwx run .rwx/pyrefly.yml --waitType check (pyrefly)rwx run .rwx/pyright.yml --waitType check (pyright)Why the conventions are what they are
Each rule exists to keep an agent from making a choice you'd have to undo.
Why one UI kit?
Ad-hoc markup makes every page look different and every review longer. All UI comes from web/components/ui (the UI kit linked below), so new pages match by construction. Add missing pieces from native.buridan.dev instead of hand-rolling them.
Why CSS variables for styling?
Hard-coded colors scatter across files and can't be changed safely. Components read tokens from assets/globals.css, so light/dark and any retheme work everywhere at once.
Why declare every module?
Undeclared modules are how architecture erodes unnoticed. Declaring each one in tach.toml makes `uv run tach check` fail the moment an agent crosses a boundary.