prisma-cli

A reference for Prisma ORM, a tool that lets applications work with databases using code instead of writing every database query by hand.

In plain words
What is it for?
It is for commands such as prisma init, prisma generate, prisma migrate, prisma db, prisma studio, validation, formatting, and debugging.
Why use it?
It helps developers choose and use the right Prisma command for setup, client generation, migrations, database changes, development, and debugging.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lootlog/monorepo/prisma-cli
Any agent
npx skills add lootlog/monorepo --skill prisma-cli
Clone the repo
git clone --depth 1 https://github.com/lootlog/monorepo

Made for: Claude Code, Codex.

Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00087 $0.01716
Opus 5 $0.00044 $0.00858
Sonnet 5 $0.00017 $0.00343
Haiku 4.5 $0.00009 $0.00172

Measured 2d ago against content hash 947f1767a903, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prisma-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to prisma-cli — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/prisma-cli/SKILL.md · 266 lines

How it starts

The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prisma CLI Reference

Reference for Prisma ORM CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma ORM releases.

Boundary: Platform and Compute

Do not confuse the stable ORM command (prisma) with the public-beta Platform package (@prisma/cli, binary prisma-cli). Use prisma-compute for Compute apps and workspace auth, and prisma-postgres for Platform projects and databases.

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)
  • Generating shell completions (prisma complete)

Rule Categories by Priority

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 complete, studio, validate, format, debug, mcp

Command Categories

Category Commands Purpose
Setup init Initialize a 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 complete, studio, mcp, version, debug Shell, development, and AI tooling

Quick Reference

Project Setup

# 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

Read the full file on GitHub · 266 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 266 lines · 87 tokens per session scan A 947f1767a903

Subscribe to this mod's changes

prisma-cli is a skill published in the GitHub repository lootlog/monorepo (10 stars, last pushed 2d ago), licensed MIT. It adds 87 tokens to every session and 1,716 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to prisma-cli, differing in 0 lines, and is treated as a copy.