Recipe — Build a feature end to end
Move from schema to UI using Simulacrum conventions for adapters, actions, and RBAC.
Outline
- Model — Add tables or models via your ORM adapter; generate migrations.
- Data layer — Expose repository functions in
libwith typed inputs. - Authorization — Gate mutations with RBAC helpers consistent with your template.
- Server Actions — Validate with Zod, call repositories, return structured errors.
- UI — Build components with TanStack Query hooks for reads.
- Tests — Add Playwright coverage for the critical path (E2E).
Sketch the happy path on paper before coding; fewer refactors when adapter boundaries stay clean.