Documentation Index
Fetch the complete documentation index at: https://docs.cubby.pro/llms.txt
Use this file to discover all available pages before exploring further.
Using Cubby with Cursor
Cursor works with Cubby through the CLI and the.cursor/rules/cubby.mdc rule file
that cubby init generates in your project. Cursor applies that rule to every request,
so it follows Cubby’s conventions automatically — no MCP server required.
The fastest start is the agent-neutral Expert from paste
prompt — it works in Cursor verbatim. This page is the Cursor-specific detail.
How Cursor gets Cubby context
cubby init writes .cursor/rules/cubby.mdc with alwaysApply: true, so Cursor treats
the Cubby contract as a standing rule on every prompt — same canonical order and
data-scoping doctrine as AGENTS.md / CLAUDE.md, generated per template. You do not
need to @-mention it; it applies automatically. The richer CUBBY.md is in the project
root for deep-dives.
Recommended flow
Paste the bootstrap prompt
Drop the Expert from paste prompt into Cursor’s chat
with your email filled in.
Scaffold with an explicit template
cubby init <name> --template <choice>. Default is SQLite, not Postgres — pass
--template so the choice is deliberate. (Run it in Cursor’s integrated terminal.)Confirm the rule is active
After
cubby init, .cursor/rules/cubby.mdc exists and applies automatically. If
Cursor ignores Cubby conventions, open the rule and confirm alwaysApply: true.Decide scope, then build
Default to a shared dataset. Only key by
x-cubby-user-id for an explicitly
per-user app — the header is an access gate, not a partition key.Local dev — Cursor should ask you
SQLite / no-DB →
npm run dev (no Docker). Neon → cubby dev (Docker).Common pitfalls (and the current truth)
- Default scaffold is SQLite, not Postgres. Choose
nextjs-neononly when you need real Postgres features. - No local Docker rabbit hole on SQLite apps.
npm run devneeds no DB; Cubby runsprisma db pushon deploy. For a live local DB, create thedata/dir first (mkdir -p data) beforenpx prisma db push(which creates the SQLite file) or you hitP1003. - Secrets need
--env prod. The default env islocal. - Run the CLI in Cursor’s integrated terminal, in the project root, so it picks up
cubby.yamland the generated files.
Related
- Expert from paste — the paste prompt
- Using Cubby with Codex
- Using Cubby with Claude — adds an optional MCP path
- CUBBY.md file