Agent skill

Prisma CLI

by curvenote in curvenote/curvenote

Prisma CLI commands reference covering all available commands, options, and usage patterns.

MITAuto-check passedDatabases

Install Prisma CLI

skills CLI
$ npx skills add curvenote/curvenote --skill prisma-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install curvenote/curvenote prisma-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
prisma-cli
GitHub stars
169
Token cost
~1.6k tokens
SKILL.md length
313 words
Files
19 (incl. references)
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Prisma CLI commands reference covering all available commands, options, and usage patterns.

  • Running Prisma CLI commands
  • SKILL.md covers When to Apply, Rule Categories by Priority, Command Categories and Quick Reference, plus 3 more sections
  • Calls bunx
  • Setting up projects

What it does

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.

When your agent uses it

  • Running Prisma CLI commands
  • Setting up projects
  • Generating client
  • Running migrations

Example prompts

  • “s MCP server. Triggers on”
  • “prisma generate”
  • “prisma migrate”
  • “/prisma-cli”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 91febfe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~90
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from curvenote/curvenote at commit 91febfe, republished under its MIT licence (© curvenote). 313 words, ~1,552 tokens.

Download SKILL.mdSave it as .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.
name
prisma-cli
description
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".
license
MIT
metadata.author
prisma
metadata.version
7.6.0

Prisma CLI Reference

Complete reference for all Prisma CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma releases.

When to Apply

Reference this skill when:

  • Setting up a new Prisma project (prisma init)
  • Generating Prisma Client (prisma generate)
  • Running database migrations (prisma migrate)
  • Managing database state (prisma db push/pull)
  • Using local development database (prisma dev)
  • Debugging Prisma issues (prisma debug)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1SetupHIGHinit
2GenerationHIGHgenerate
3DevelopmentHIGHdev
4DatabaseHIGHdb-
5MigrationsCRITICALmigrate-
6UtilityMEDIUMstudio, validate, format, debug, mcp

Command Categories

CategoryCommandsPurpose
SetupinitBootstrap new Prisma project
GenerationgenerateGenerate Prisma Client
Validationvalidate, formatSchema validation and formatting
DevelopmentdevLocal Prisma Postgres for development
Databasedb pull, db push, db seed, db executeDirect database operations
Migrationsmigrate dev, migrate deploy, migrate reset, migrate status, migrate diff, migrate resolveSchema migrations
Utilitystudio, mcp, version, debugDevelopment and AI tooling

Quick Reference

Project Setup
bash
# 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
Client Generation
bash
# Generate Prisma Client
prisma generate

# Watch mode for development
prisma generate --watch

# Generate specific generator only
prisma generate --generator client
Bun Runtime

When 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):

bash
bunx --bun prisma init
bunx --bun prisma generate
Local Development Database
bash
# 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
Database Operations
bash
# 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
Migrations (Development)
bash
# 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
Migrations (Production)
bash
# 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
Utility Commands
bash
# 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 format

Current Prisma CLI Setup

New Configuration File

Use prisma.config.ts for CLI configuration:

typescript
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'),
  },
})
Current Command Behavior
  • Run prisma generate explicitly after migrate dev, db push, or other schema syncs when you need fresh client output
  • Run prisma db seed explicitly after migrate dev or migrate reset when you need seed data
  • Use prisma db execute --file ... for raw SQL scripts
Environment Variables

Load environment variables explicitly in prisma.config.ts, commonly with dotenv:

typescript
// prisma.config.ts
import 'dotenv/config'

Rule Files

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 info

How to Use

Use 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

Files

SKILL.md and 18 other files (references) in .agents/skills/prisma-cli of curvenote/curvenote.

  • SKILL.md
  • references/db-execute.md
  • references/db-pull.md
  • references/db-push.md
  • references/db-seed.md
  • references/debug.md
  • references/dev.md
  • references/format.md
  • references/generate.md
  • references/init.md
  • references/mcp.md
  • references/migrate-deploy.md
  • references/migrate-dev.md
  • references/migrate-diff.md
  • references/migrate-reset.md
  • references/migrate-resolve.md
  • references/migrate-status.md
  • references/studio.md
  • references/validate.md

Open the folder on GitHubat commit 91febfe

Compare with similar skills

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.

Prisma CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prisma CLI this skillcurvenote/curvenote169—~1.6kAutomated safety check: PassMIT
Prisma 8 Contract-First ORMprisma/orm48k—~3.8kAutomated safety check: NotesApache-2.0
Database Migrationsaffaan-m/ECC275k4 repos~3kAutomated safety check: PassMIT
Database Migrationdavila7/claude-code-templates32k11 repos~2.8kAutomated safety check: PassMIT
Database Migration Patterns with RLSbybren-llc/safe-agentic-workflow421—~1.3kAutomated safety check: PassMIT
Database Migrationsaffaan-m/ECC275k3 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Official

    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.

    48k GitHub stars~3.8k tokensUpdated today
    DatabasesAuto-check: notes
  • Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…

    275k GitHub starsUsed in 4 repos~3k tokens
    DatabasesAuto-check passed
  • Database Migration

    davila7/claude-code-templates

    Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollback strategies and zero-downtime deployments.

    32k GitHub starsUsed in 11 repos~2.8k tokens
    DatabasesAuto-check passed
  • Database Migration Patterns with RLS

    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…

    421 GitHub stars~1.3k tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • 数据库迁移最佳实践,涵盖模式变更、数据迁移、回滚以及零停机部署,适用于PostgreSQL、MySQL及常用ORM(Prisma、Drizzle、Django、TypeORM、golang-migrate)。

    275k GitHub starsUsed in 3 repos~1.9k tokens
    DatabasesAuto-check passed
  • Ş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…

    275k GitHub starsUsed in 1 repo~2.4k tokens
    DatabasesAuto-check passed

More from curvenote/curvenote

All 10 skills in this repo
  • Supabase

    curvenote/curvenote

    A skill your agent uses when doing ANY task involving Supabase.

    169 GitHub starsUsed in 5 repos~2.2k tokens
    Auto-check passed
  • React Router Framework Mode

    curvenote/curvenote

    Build full-stack React applications using React Router's framework mode.

    169 GitHub starsUsed in 4 repos~1.1k tokens
    Auto-check passed
  • Prisma Database Setup

    curvenote/curvenote

    Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).

    169 GitHub starsUsed in 3 repos~1.4k tokens
    Auto-check passed
  • Prisma Client API

    curvenote/curvenote

    Prisma Client API reference covering model queries, filters, operators, and client methods.

    169 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Prisma Postgres

    curvenote/curvenote

    Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.

    169 GitHub starsUsed in 1 repo~937 tokens
    Auto-check: notes
  • Prisma Postgres Setup

    curvenote/curvenote

    Set up a new Prisma Postgres database and connect it to a local project using the Management API.

    169 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Categories

Questions about Prisma CLI

What does Prisma CLI do?

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.

When should I use Prisma CLI?

Prisma CLI fits situations like: running Prisma CLI commands; setting up projects; generating client; running migrations.

How do I install Prisma CLI in Claude Code?

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.

How do I install Prisma CLI in Codex?

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.

Can I use Prisma CLI in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Prisma CLI need to run?

Going by SKILL.md and its folder, Prisma CLI needs the command-line tools its instructions call (bunx). Our summary lists: Node.js.

Does Prisma CLI access the network?

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.

Is Prisma CLI safe to install?

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.

What licence does Prisma CLI use?

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.

How many tokens does Prisma CLI use?

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.

What are the alternatives to Prisma CLI?

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.

Who maintains Prisma CLI?

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.