caelum0x 2704587868 feat: five task skills (create project, auth, storage, RLS, branch-per-PR), v0.2.0, LICENSE
Mirrors agents/plugin from caelum0x/scribase: five new one-task skills
covering the most common agent requests, a bumped plugin version, a
license and privacy policy URL for directory submission, and a sync of the
general scribase skill with the X-launch-post addition it was missing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 14:21:52 +03:00

3.2 KiB

name, description
name description
scribase-create-project Create a brand-new Scribase backend (Postgres, Auth, Storage, Realtime, Functions) for an app, in one call, and wire the project into the current codebase. Use when the user asks to create a project, set up a database or backend, start a new app with Scribase, bootstrap a Postgres project, or says "I need a backend" / "set this app up with a database" and there is no `.scribase/project.json` or `SCRIBASE_API_URL`/`SCRIBASE_ACCESS_TOKEN` in this folder yet.

Scribase: create a new project

One call creates a live backend; no console visit, no manual region/engine choice unless the user wants to pick one.

1. Check this isn't already a Scribase folder

.scribase/project.json or SCRIBASE_API_URL in the environment means a project already exists here — use the general scribase skill's task table instead of creating a second one.

2. Create it

MCP (preferred inside a chat session): call projects.create with no arguments (name, region and database engine are all picked for you), or pass name for something more memorable than the generated one. It waits until the project is live and returns the project URL and publishable key, ready for createClient(). If the project would add to this month's bill, the call answers 402 confirm_billable with the exact amount — show it to the user and only call again with confirm_billable_cents if they approve. Never create a second project for the same request because the first call seemed slow; projects.create already waits for "live".

CLI / terminal, from the app's own folder (this is also what a human runner would type, and what npx scribase init already automates end-to-end: detects the framework, writes the env file, installs @supabase/supabase-js, and prints a temporary-project claim link when the user isn't signed in):

npx scribase init --yes --json

Not signed in and the user wants a throwaway/demo backend instead of an account: npx scribase init --temp --yes --json — a 72-hour project with its own token and a claim link (same URL and keys if they claim it later).

3. Wire the agent's own MCP connection, once

If this chat is not already talking to Scribase over MCP (no tools named projects.*, database.*, branches.* are available), the fastest fix is having the user's editor connect directly instead of you shelling out to curl for every request:

npx scribase connect          # writes the right config for every AI tool detected on this machine
npx scribase connect cursor   # or name one: claude-code, cursor, vscode, codex, windsurf, zed

It is idempotent (safe to run again) and never writes a token or secret — the editor's own OAuth flow runs on first connection instead.

4. First table and next steps

Immediately after creation, make the project useful with one real table instead of leaving it empty — see the scribase-write-rls-policy skill for the only acceptable shape (RLS enabled in the same migration), or the general scribase skill's references/database.md for the full walkthrough.

Report back: the project id, the env file written (never the key values), and whether it is a permanent project or a 72-hour temporary one with its claim link.