Reference

Project structure

For your agentCopy this and give it to the AI you're building with.
Run `cubek skill`, read all of it and follow it exactly (no CLI: download https://cubek.dev/SKILL.md verbatim with curl; don't summarize it); when you add files or folders, follow its "Project structure" section.
Run `cubek check` after every edit until it is clean.
cubek.json        { "name", "entry": "src/app.tsx", "schema": "schema.ts" }
schema.ts         tables; `db` is typed from it
src/app.tsx       routes (the entry: keep this name)
src/routes/*.tsx  more routes (top-level `app.get`), `import "./routes/auth"` in app.tsx
src/pages/*.tsx   TSX templates (JSX only in .tsx)
src/lib/*.ts      logic; *.test.ts beside it (not deployed)
src/mounts.ts     mount points for browser code
client/           browser code (TS, npm), bundled by bun
public/           static files at /<path>
.cubek/sdk        SDK types (`cubek types` rewrites them)

Local imports have no extension (./lib/notes); named exports only.