Prisma 8 Contract-First ORM
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.
Prisma CLI commands reference covering all available commands, options, and usage patterns.
$ npx skills add curvenote/curvenote --skill prisma-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install curvenote/curvenote prisma-cli --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-cli .claude/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .claude/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cliType 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-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install curvenote/curvenote prisma-cli --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-cli .agents/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .agents/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install curvenote/curvenote prisma-cli --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-cli .cursor/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .cursor/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cli--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-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install curvenote/curvenote prisma-cli --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-cli .gemini/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .gemini/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cliInstalls 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-cli -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-cli .github/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .github/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cli -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-cli --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-cli .opencode/skills/prisma-cli && 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-cli" agent skill from https://github.com/curvenote/curvenote/tree/main/.agents/skills/prisma-cli into .opencode/skills/prisma-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "prisma-cli", 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-cliPrisma CLI commands reference covering all available commands, options, and usage patterns.
Prisma CLI is an agent skill from curvenote/curvenote. Prisma CLI commands reference covering all available commands, options, and usage patterns. Use when running Prisma CLI commands, setting up projects, generating client, running migrations, managing databases, or starting Prisma's MCP server. Triggers on "prisma init", "prisma generate", "prisma migrate", "prisma db", "prisma studio", "prisma mcp".
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including reference files (for example `references/db-execute.md`, `references/db-pull.md` and `references/db-push.md`).
It sits in Databases, covering ORMs and data access and Database migrations. It works with Prisma and Model Context Protocol. The repository describes itself as: Create, edit, share, and publish scientific and technical documents. The licence is MIT.
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:
bunxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Prisma CLI loads about 1.6k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 90 tokens; SKILL.md has 313 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 found no risky patterns in SKILL.md.
Automated 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). 313 words, ~1,552 tokens.
.claude/skills/prisma-cli/SKILL.md (or your agent's skills folder). This skill also uses 18 other files; get the full folder from GitHub.Complete reference for all Prisma CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma releases.
Reference this skill when:
prisma init)prisma generate)prisma migrate)prisma db push/pull)prisma dev)prisma debug)| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Setup | HIGH | init |
| 2 | Generation | HIGH | generate |
| 3 | Development | HIGH | dev |
| 4 | Database | HIGH | db- |
| 5 | Migrations | CRITICAL | migrate- |
| 6 | Utility | MEDIUM | studio, validate, format, debug, mcp |
| Category | Commands | Purpose |
|---|---|---|
| Setup | init | Bootstrap new Prisma project |
| Generation | generate | Generate Prisma Client |
| Validation | validate, format | Schema validation and formatting |
| Development | dev | Local Prisma Postgres for development |
| Database | db pull, db push, db seed, db execute | Direct database operations |
| Migrations | migrate dev, migrate deploy, migrate reset, migrate status, migrate diff, migrate resolve | Schema migrations |
| Utility | studio, mcp, version, debug | Development and AI tooling |
# Initialize new project (creates prisma/ folder and prisma.config.ts)
prisma init
# Initialize with specific database
prisma init --datasource-provider postgresql
prisma init --datasource-provider mysql
prisma init --datasource-provider sqlite
# Initialize with Prisma Postgres (cloud)
prisma init --db
# Initialize with an example model
prisma init --with-model# Generate Prisma Client
prisma generate
# Watch mode for development
prisma generate --watch
# Generate specific generator only
prisma generate --generator clientWhen using Bun, always add the --bun flag so Prisma runs with the Bun runtime (otherwise it falls back to Node.js because of the CLI shebang):
bunx --bun prisma init
bunx --bun prisma generate# Start local Prisma Postgres
prisma dev
# Start with specific name
prisma dev --name myproject
# Start in background (detached)
prisma dev --detach
# List all local instances
prisma dev ls
# Stop instance
prisma dev stop myproject
# Remove instance data
prisma dev rm myproject# Pull schema from existing database
prisma db pull
# Push schema to database (no migrations)
prisma db push
# Seed database
prisma db seed
# Execute raw SQL
prisma db execute --file ./script.sql# Create and apply migration
prisma migrate dev
# Create migration with name
prisma migrate dev --name add_users_table
# Create migration without applying
prisma migrate dev --create-only
# Reset database and apply all migrations
prisma migrate reset# Apply pending migrations (CI/CD)
prisma migrate deploy
# Check migration status
prisma migrate status
# Compare schemas and generate diff
prisma migrate diff --from-config-datasource --to-schema schema.prisma --script# Open Prisma Studio (database GUI)
prisma studio
# Start Prisma's MCP server for AI tools
prisma mcp
# Show version info
prisma version
prisma -v
# Debug information
prisma debug
# Validate schema
prisma validate
# Format schema
prisma formatUse prisma.config.ts for CLI configuration:
import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
seed: 'tsx prisma/seed.ts',
},
datasource: {
url: env('DATABASE_URL'),
},
})prisma generate explicitly after migrate dev, db push, or other schema syncs when you need fresh client outputprisma db seed explicitly after migrate dev or migrate reset when you need seed dataprisma db execute --file ... for raw SQL scriptsLoad environment variables explicitly in prisma.config.ts, commonly with dotenv:
// prisma.config.ts
import 'dotenv/config'See individual rule files for detailed command documentation:
references/init.md - Project initialization
references/generate.md - Client generation
references/dev.md - Local development database
references/db-pull.md - Database introspection
references/db-push.md - Schema push
references/db-seed.md - Database seeding
references/db-execute.md - Raw SQL execution
references/migrate-dev.md - Development migrations
references/migrate-deploy.md - Production migrations
references/migrate-reset.md - Database reset
references/migrate-status.md - Migration status
references/migrate-resolve.md - Migration resolution
references/migrate-diff.md - Schema diffing
references/studio.md - Database GUI
references/mcp.md - Prisma MCP server
references/validate.md - Schema validation
references/format.md - Schema formatting
references/debug.md - Debug infoUse the command categories above for navigation, then open the specific command reference file you need.
© 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 18 other files (references) in .agents/skills/prisma-cli of curvenote/curvenote.
Open the folder on GitHubat commit 91febfe
Prisma CLI 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 CLI this skillcurvenote/curvenote | 169 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Prisma 8 Contract-First ORMprisma/orm | 48k | — | ~3.8k | Automated safety check: Notes | Apache-2.0 | |
| Database Migrationsaffaan-m/ECC | 275k | 4 repos | ~3k | Automated safety check: Pass | MIT | |
| Database Migrationdavila7/claude-code-templates | 32k | 11 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Database Migration Patterns with RLSbybren-llc/safe-agentic-workflow | 421 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Database Migrationsaffaan-m/ECC | 275k | 3 repos | ~1.9k | Automated safety check: Pass | MIT |
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.
affaan-m/ECC
Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…
davila7/claude-code-templates
Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.
bybren-llc/safe-agentic-workflow
Database migration creation with mandatory RLS policies and ARCHitect approval workflow. Use when creating migrations, adding tables with RLS, updating ORM…
affaan-m/ECC
数据库迁移最佳实践,涵盖模式变更、数据迁移、回滚以及零停机部署,适用于PostgreSQL、MySQL及常用ORM(Prisma、Drizzle、Django、TypeORM、golang-migrate)。
affaan-m/ECC
Şema değişiklikleri, veri migration'ları, rollback'ler ve PostgreSQL, MySQL ve yaygın ORM'ler (Prisma, Drizzle, Django, TypeORM, golang-migrate) arasında sıfır kesinti deployment'ları için…
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
Set up a new Prisma Postgres database and connect it to a local project using the Management API.
Works with
Categories
Prisma CLI commands reference covering all available commands, options, and usage patterns. Prisma CLI is an agent skill from curvenote/curvenote. Prisma CLI commands reference covering all available commands, options, and usage patterns.
Prisma CLI fits situations like: running Prisma CLI commands; setting up projects; generating client; running migrations.
Run `npx skills add curvenote/curvenote --skill prisma-cli -a claude-code`. Or copy the skill folder (.agents/skills/prisma-cli in curvenote/curvenote) into .claude/skills/prisma-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add curvenote/curvenote --skill prisma-cli -a codex`. Or copy the skill folder (.agents/skills/prisma-cli in curvenote/curvenote) into .agents/skills/prisma-cli 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-cli -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-cli, .gemini/skills/prisma-cli, .github/skills/prisma-cli and .opencode/skills/prisma-cli in your project.
Going by SKILL.md and its folder, Prisma CLI needs the command-line tools its instructions call (bunx). Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Prisma CLI is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.2k 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 10k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Prisma CLI: Prisma 8 Contract-First ORM (prisma/orm, 48k stars), Database Migrations (affaan-m/ECC, 275k stars), Database Migration (davila7/claude-code-templates, 32k stars) and Database Migration Patterns with RLS (bybren-llc/safe-agentic-workflow, 421 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.