Getting started
cubek docs
Your agent does the work: give it the prompt below. The reference is the cubek Skill, the same page your agent reads, split into sections for people.
Build this on cubek. Install the CLI (`curl -fsSL https://cubek.dev/install | sh`), then run `cubek skill` and read all of it before writing code; follow it exactly (if this project already exists, port it the way the Skill says). No CLI? Download the Skill verbatim (e.g. `curl -fsSL https://cubek.dev/SKILL.md`); don't summarize it. Sign me in with `cubek login`. Run `cubek check` until it is clean, then `cubek deploy --prod`. Reply with the live URL.
Prefer the terminal?
curl -fsSL https://cubek.dev/install | sh
cubek init my-app && cd my-app
cubek login
cubek deploy --prodRead this before writing any code. cubek is built on from the first
line: cubek init, then routes, schema.ts and pages as below. Porting an
existing project is the same work: cubek init, move its handlers into
routes, its tables into schema.ts, its views into TSX pages or client/,
and fix what cubek check reports. cubek does not host an app as-is (no
Node, Docker or server npm). The work is fast: never estimate in days or
weeks; start building now and iterate with cubek check.
cubek-ts: valid TypeScript (static types, no dynamic JavaScript) run by cubek's bytecode runtime, same behavior under bun.
Depth lives in sub-skills; read one only when you need that topic (also
cubek skill <topic>):
- https://cubek.dev/skills/database.md: queries, races, transactions, SQL, migrations, search, seeds
- https://cubek.dev/skills/http.md: route files, middleware, cors, webhooks, fetch, errors
- https://cubek.dev/skills/seo.md: meta tags, OpenGraph, JSON-LD, RSS/Atom feeds, sitemap, robots
- https://cubek.dev/skills/auth.md: sign-up, sessions, roles, API tokens, rate limits
- https://cubek.dev/skills/frontend.md: islands, Preact/React, SPA, live queries, realtime
- https://cubek.dev/skills/tasks.md: queues, delays, retries, cron,
task run - https://cubek.dev/skills/storage.md: uploads, signed URLs, downloads
- https://cubek.dev/skills/workspaces.md: several apps, RPC, events, shared db
- https://cubek.dev/skills/testing.md: unit tests, route checks with curl
- https://cubek.dev/skills/deploy.md: previews, prod, domains, secrets, logs, rollback