Better Drizzle
almeidazs/better-drizzle
Write, review, and debug code that uses better-drizzle, the typed repository layer over Drizzle ORM 1.x (better(db), client.users.findMany, paginate, cursor, upsertMany, relation include/connect…
Set up a new Prisma Postgres database and connect it to a local project using the Management API.
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install curvenote/curvenote prisma-postgres-setup --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .claude/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .claude/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setupType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install curvenote/curvenote prisma-postgres-setup --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .agents/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .agents/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install curvenote/curvenote prisma-postgres-setup --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .cursor/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .cursor/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/curvenote/curvenote.git --path .agents/skills/prisma-postgres-setup--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install curvenote/curvenote prisma-postgres-setup --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .gemini/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .gemini/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install curvenote/curvenote prisma-postgres-setupInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .github/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .github/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add curvenote/curvenote --skill prisma-postgres-setup -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install curvenote/curvenote prisma-postgres-setup --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/curvenote/curvenote.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/prisma-postgres-setup .opencode/skills/prisma-postgres-setup && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "prisma-postgres-setup" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-postgres-setup into .opencode/skills/prisma-postgres-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-postgres-setup", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
prisma-postgres-setupSet up a new Prisma Postgres database and connect it to a local project using the Management API.
Prisma Postgres Setup is an agent skill from curvenote/curvenote. Set up a new Prisma Postgres database and connect it to a local project using the Management API. Use when asked to "set up a database", "create a Prisma Postgres project", "get a connection string", "connect my app to Prisma Postgres", or "provision a database".
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/api-basics.md`, `references/auth.md` and `references/endpoints.md`).
It sits in Databases, covering ORMs and data access. It works with PostgreSQL and Prisma. The repository describes itself as: Create, edit, share, and publish scientific and technical documents. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 91febfe. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxcurlnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.prisma.ioconsole.prisma.ioFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
PRISMA_SERVICE_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Prisma Postgres Setup loads about 2.7k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 1,173 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
MA_SERVICE_TOKEN` in the environment or `.env` file.- `dotenv` — loads `.env` variables for `prisma.config.ts`. Write the direct connection string to `.env`. **Append** to the file if it already exists — do not overwrite existing3. Verify `.gitignore` includes `.env`. Create `.gitignore` if it does not exist. Warn the user if `.env` is not gitignoimported in `prisma.config.ts` to load `.env` variablesAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from curvenote/curvenote at commit 91febfe, republished under its MIT licence (© curvenote). 1,173 words, ~2,691 tokens.
.claude/skills/prisma-postgres-setup/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Procedural skill that guides you through provisioning a new Prisma Postgres database via the Management API and connecting it to a local project.
Use this skill when:
Do not use this skill when:
prisma-postgres-cicdprisma-postgres-integratorreferences/auth.md)When presenting choices to the user (region selection, project deletion, etc.), use your platform's interactive selection mechanism (e.g., ask tool in Claude Code, structured prompts in other agents). Do not print static tables and ask the user to type a value — present selectable options so the user can pick with minimal effort.
Follow these steps in order. Each step includes the API call to make and how to handle the response.
You need a service token. Try these methods in order:
1a. Token in the user's prompt
Check if the user included a service token in their initial message (e.g., "Set up Prisma Postgres with token eyJ..."). If so, use it exactly as provided — do not truncate, re-encode, or round-trip it through a file. Store it in a shell variable for subsequent calls.
1b. Token in the environment
Check for PRISMA_SERVICE_TOKEN in the environment or .env file.
1c. Ask the user to create one
If no token is available, instruct the user:
Create a service token in Prisma Console → Workspace Settings → Service Tokens. Copy the token and paste it here.
Read references/auth.md for details on service token creation.
Once you have a token, store it in a shell variable (PRISMA_SERVICE_TOKEN) and use it for all subsequent API calls.
Fetch the list of available Prisma Postgres regions to let the user choose where to deploy.
curl -s -H "Authorization: Bearer $PRISMA_SERVICE_TOKEN" \
https://api.prisma.io/v1/regions/postgresThe response contains an array of regions with id, name, and status. Only present regions where status is available.
Present the regions as an interactive menu — let the user pick from options rather than typing a region ID manually.
Read references/endpoints.md for the full response shape.
curl -s -X POST https://api.prisma.io/v1/projects \
-H "Authorization: Bearer $PRISMA_SERVICE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "<project-name>",
"region": "<region-id>",
"createDatabase": true
}'Use the current directory name as the project name by default.
The response is wrapped in { "data": { ... } }. Extract:
data.id — the project ID (prefixed with proj_)data.database.id — the database ID (prefixed with db_)data.database.connections[0].endpoints.direct.connectionString — the direct PostgreSQL connection stringUse the direct connection string (endpoints.direct.connectionString). Do not use the pooled or accelerate endpoints — those are for legacy Accelerate setups and not needed for new projects.
If the response status is provisioning, wait a few seconds and poll GET /v1/databases/<database-id> until status is ready.
If creation fails due to a database limit, list the user's existing projects and present them as an interactive menu for deletion. After the user picks one, delete it and retry.
Read references/endpoints.md for the full request/response shapes.
If you need a dedicated connection (e.g., per-developer or per-environment), create one:
curl -s -X POST https://api.prisma.io/v1/databases/<database-id>/connections \
-H "Authorization: Bearer $PRISMA_SERVICE_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "dev" }'Extract the direct connection string from data.endpoints.direct.connectionString.
npm install prisma @prisma/client @prisma/adapter-pg pg dotenvAll five packages are required:
prisma — CLI for migrations, schema push, client generation@prisma/client — the generated query client@prisma/adapter-pg — Prisma 7 driver adapter for direct PostgreSQL connectionspg — Node.js PostgreSQL driver (used by the adapter)dotenv — loads .env variables for prisma.config.ts.env. Append to the file if it already exists — do not overwrite existing entries:DATABASE_URL="<direct-connection-string>"Verify .gitignore includes .env. Create .gitignore if it does not exist. Warn the user if .env is not gitignored.
Ensure package.json has "type": "module" set (Prisma 7 generates ESM output).
If prisma/schema.prisma does not exist, run npx prisma init to scaffold the project. This creates both prisma/schema.prisma and prisma.config.ts.
Ensure schema.prisma has the postgresql provider and no url or directUrl in the datasource block (Prisma 7 manages connection URLs in prisma.config.ts, not in the schema):
datasource db {
provider = "postgresql"
}prisma.config.ts loads the connection URL from the environment:import path from 'node:path'
import { defineConfig } from 'prisma/config'
import 'dotenv/config'
export default defineConfig({
earlyAccess: true,
schema: path.join(import.meta.dirname, 'prisma', 'schema.prisma'),
datasource: {
url: process.env.DATABASE_URL!,
},
})Important Prisma 7 notes:
prisma.config.ts, never in schema.prismaschema.prisma must be "postgresql" (not "prismaPostgres")dotenv/config must be imported in prisma.config.ts to load .env variablesIf the schema already has models, skip to pushing. Otherwise, present these options as an interactive menu:
prisma/schema.prisma and come back when ready. Wait for them before proceeding.prisma/schema.prisma. Show the user what was added and ask if they want to adjust it before pushing.Once the schema has models and the user is ready, create a migration and generate the client:
npx prisma migrate dev --name initThis creates migration files in prisma/migrations/ and generates the client in one step. Migration history is essential for CI/CD workflows (prisma migrate deploy) and production deployments.
Only use npx prisma db push if the user explicitly asks for prototyping-only mode (no migration history). In that case, follow it with npx prisma generate.
After generating the client, create and run a quick verification script to confirm everything works end-to-end. This is critical — do not skip this step.
Create a file named test-connection.ts:
import 'dotenv/config'
import pg from 'pg'
import { PrismaPg } from '@prisma/adapter-pg'
import { PrismaClient } from './generated/prisma/client.js'
const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL })
const adapter = new PrismaPg(pool)
const prisma = new PrismaClient({ adapter })
const result = await prisma.$queryRawUnsafe('SELECT 1 as connected')
console.log('Connected to Prisma Postgres:', result)
await prisma.$disconnect()
await pool.end()Run it:
npx tsx test-connection.tsPrisma 7 client instantiation rules:
./generated/prisma/client.js (not ./generated/prisma)pg.Pool with the DATABASE_URL connection stringPrismaPg adapter{ adapter } to the PrismaClient constructordatasourceUrl — that option does not exist in Prisma 7new PrismaClient() with no arguments — it will throwAfter verification succeeds, delete test-connection.ts.
Then share links for the user to explore their database:
npx prisma studio — opens a visual data browser locallyhttps://console.prisma.io/<workspaceId>/<projectId>/<databaseId>/dashboard — strip the prefixes (wksp_, proj_, db_) from the IDs returned in Step 3 to build this URLRead references/prisma7-client.md for the full client instantiation reference.
Read references/api-basics.md for the full error reference. Key self-correction patterns:
| HTTP Status | Error Code | Action |
|---|---|---|
| 401 | authentication-failed | Service token is invalid or expired. Ask the user to create a new one in Console → Workspace Settings → Service Tokens. |
| 404 | resource-not-found | Check that the resource ID includes the correct prefix (proj_, db_, con_). |
| 422 | validation-error | Check request body against the endpoint schema. Common: missing name, invalid region. |
| 429 | rate-limit-exceeded | Back off and retry after a few seconds. |
Detailed API and usage information is in:
references/auth.md — Service token creation and usage
references/api-basics.md — Base URL, envelope, IDs, errors, pagination
references/endpoints.md — Endpoint details for projects, databases, connections, regions
references/prisma7-client.md — Prisma 7 client instantiation and usage patterns© curvenote, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in .agents/skills/prisma-postgres-setup of curvenote/curvenote.
Open the folder on GitHubat commit 91febfe
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in curvenote/curvenote, which our catalogue first saw on October 7, 2026.
Prisma Postgres Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Prisma Postgres Setup this skillcurvenote/curvenote | 169 | 1 repos | ~2.7k | Automated safety check: Notes | MIT | |
| Better Drizzlealmeidazs/better-drizzle | 347 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Add Backendahpxex/open-dashboard | 146 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Database FundamentalsDanielPodolsky/ownyourcode | 290 | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Database Expertcin12211/orca-q | 223 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Prisma 8 Contract-First ORMprisma/orm | 48k | — | ~3.7k | Automated safety check: Notes | Apache-2.0 |
almeidazs/better-drizzle
Write, review, and debug code that uses better-drizzle, the typed repository layer over Drizzle ORM 1.x (better(db), client.users.findMany, paginate, cursor, upsertMany, relation include/connect…
ahpxex/open-dashboard
Everything about the data layer — pick one of six ready-to-run backend templates (TanStack Start + Drizzle + better-auth, Hono + Drizzle + better-auth, Hono + Prisma + better-auth, Hono + Drizzle +…
DanielPodolsky/ownyourcode
Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.
cin12211/orca-q
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
prisma/orm
Routes Prisma 8 tasks such as contracts, migrations, queries and upgrades to the right reference files for projects on the contract-first @prisma/orm packages.
EliasOulkadi/shokunin
Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and…
curvenote/curvenote
A skill your agent uses when doing ANY task involving Supabase.
curvenote/curvenote
Build full-stack React applications using React Router's framework mode.
curvenote/curvenote
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).
curvenote/curvenote
Prisma Client API reference covering model queries, filters, operators, and client methods.
curvenote/curvenote
Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.
curvenote/curvenote
Prisma CLI commands reference covering all available commands, options, and usage patterns.
Works with
Categories
Set up a new Prisma Postgres database and connect it to a local project using the Management API. Prisma Postgres Setup is an agent skill from curvenote/curvenote. Set up a new Prisma Postgres database and connect it to a local project using the Management API.
Prisma Postgres Setup fits situations like: asked to set up a database; create a Prisma Postgres project; get a connection string; connect my app to Prisma Postgres.
Run `npx skills add curvenote/curvenote --skill prisma-postgres-setup -a claude-code`. Or copy the skill folder (.agents/skills/prisma-postgres-setup in curvenote/curvenote) into .claude/skills/prisma-postgres-setup in your project. Claude Code loads it when a task matches its description.
Run `npx skills add curvenote/curvenote --skill prisma-postgres-setup -a codex`. Or copy the skill folder (.agents/skills/prisma-postgres-setup in curvenote/curvenote) into .agents/skills/prisma-postgres-setup in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add curvenote/curvenote --skill prisma-postgres-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prisma-postgres-setup, .gemini/skills/prisma-postgres-setup, .github/skills/prisma-postgres-setup and .opencode/skills/prisma-postgres-setup in your project.
Going by SKILL.md and its folder, Prisma Postgres Setup needs the command-line tools its instructions call (npx, curl and npm) and credentials named PRISMA_SERVICE_TOKEN. Our summary lists: Node.js; A credential in PRISMA_SERVICE_TOKEN.
SKILL.md names 2 domains. In commands or code: api.prisma.io and console.prisma.io; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Prisma Postgres Setup is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Prisma Postgres Setup: Better Drizzle (almeidazs/better-drizzle, 347 stars), Add Backend (ahpxex/open-dashboard, 146 stars), Database Fundamentals (DanielPodolsky/ownyourcode, 290 stars) and Database Expert (cin12211/orca-q, 223 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
curvenote (a GitHub organization) maintains it in curvenote/curvenote, which has 169 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 28, 2026.
Source: curvenote/curvenote on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.