
prisma / cursor-plugin
✓ Official★ 8A skill package that teaches your agent 40 capabilities — every one documented and browsable below, no GitHub required · by prisma.
Each skill below is one capability this package teaches your agent. Install the whole package, or open a skill to install just that one.
prisma db execute. Reference when using this Prisma feature.
2 files — installable on its own
prisma-cli-db-pull — an installable skill for AI agents, published by prisma/cursor-plugin.
2 files — installable on its own
prisma db push. Reference when using this Prisma feature.
2 files — installable on its own
prisma db seed. Reference when using this Prisma feature.
2 files — installable on its own
prisma debug. Reference when using this Prisma feature.
2 files — installable on its own
prisma dev. Reference when using this Prisma feature.
2 files — installable on its own
prisma format. Reference when using this Prisma feature.
2 files — installable on its own
prisma generate. Reference when using this Prisma feature.
2 files — installable on its own
prisma-cli-init — an installable skill for AI agents, published by prisma/cursor-plugin.
2 files — installable on its own
prisma migrate deploy
2 files — installable on its own
prisma migrate dev. Reference when using this Prisma feature.
2 files — installable on its own
prisma migrate diff. Reference when using this Prisma feature.
2 files — installable on its own
prisma migrate reset
2 files — installable on its own
prisma migrate resolve
2 files — installable on its own
prisma migrate status
2 files — installable on its own
prisma studio. Reference when using this Prisma feature.
2 files — installable on its own
prisma validate. Reference when using this Prisma feature.
2 files — installable on its own
Client Methods. Reference when using this Prisma feature.
2 files — installable on its own
PrismaClient Constructor
2 files — installable on its own
Filter Conditions and Operators
2 files — installable on its own
Model Queries. Reference when using this Prisma feature.
2 files — installable on its own
Query Options. Reference when using this Prisma feature.
2 files — installable on its own
Raw Queries. Reference when using this Prisma feature.
2 files — installable on its own
Relation Queries. Reference when using this Prisma feature.
2 files — installable on its own
Transactions. Reference when using this Prisma feature.
2 files — installable on its own
CockroachDB Setup. Reference when using this Prisma feature.
2 files — installable on its own
MongoDB Setup. Reference when using this Prisma feature.
2 files — installable on its own
MySQL Setup. Reference when using this Prisma feature.
2 files — installable on its own
PostgreSQL Setup. Reference when using this Prisma feature.
2 files — installable on its own
Prisma Client Setup. Reference when using this Prisma feature.
2 files — installable on its own
Prisma Postgres Setup
2 files — installable on its own
SQLite Setup. Reference when using this Prisma feature.
2 files — installable on its own
SQL Server Setup. Reference when using this Prisma feature.
2 files — installable on its own
Prisma Accelerate Users
2 files — installable on its own
Driver Adapters. Reference when using this Prisma feature.
2 files — installable on its own
Environment Variables
2 files — installable on its own
ESM Support. Reference when using this Prisma feature.
2 files — installable on its own
Prisma Config. Reference when using this Prisma feature.
2 files — installable on its own
Removed Features. Reference when using this Prisma feature.
2 files — installable on its own
Schema Changes. Reference when using this Prisma feature.
2 files — installable on its own
Prisma Cursor Plugin
A comprehensive Cursor plugin for Prisma development, providing MCP server integration, AI rules, specialized skills, custom agents, and automation hooks.
Features
🔌 MCP Server Integration
- Direct integration with Prisma MCP server
- Database introspection and querying
- Schema management through AI
📋 Rules
- Schema Conventions: Enforces Prisma naming conventions and best practices
- Migration Best Practices: Guidelines for safe database migrations
🎯 Skills
- Schema Designer: Design and modify Prisma schemas following best practices
- Migration Manager: Safely create, deploy, and manage database migrations
🤖 Custom Agents
- Prisma Expert: Comprehensive Prisma development expertise
- Schema Reviewer: Specialized schema review and optimization
⚡ Automation Hooks
- Pre-commit: Validates Prisma schema before commits
- Post-save: Auto-formats Prisma schema files on save
- On-schema-change: Regenerates TypeScript types after schema changes
Installation
From Cursor Marketplace
# Install via Cursor CLI
cursor plugin install prisma-cursor-pluginManual Installation
- Clone this repository
- Copy to your Cursor plugins directory
- Run setup script:
npm run setupConfiguration
Database Connection
Create a .env file in your project root:
DATABASE_URL="postgresql://user:password@localhost:5432/mydb"MCP Server
The Prisma MCP server is automatically configured. Ensure your DATABASE_URL environment variable is set.
Usage
Using Rules
Rules are automatically applied to your Prisma schema files:
- Schema conventions enforce naming standards
- Migration best practices guide safe database changes
Using Skills
Invoke skills via Cursor AI:
/schema-designer- Design new schemas or modify existing ones/migration-manager- Create and manage migrations
Using Agents
Switch to custom agents in Cursor:
- Prisma Expert: For general Prisma development tasks
- Schema Reviewer: For schema reviews and optimization
Automation Hooks
Hooks run automatically on configured events:
- Schema validation before commits
- Auto-formatting on save
- Type generation after schema changes
Project Structure
prisma-cursor-plugin/
├── .cursor/
│ └── plugin.json # Plugin manifest
├── rules/
│ ├── schema-conventions.mdc
│ └── migration-best-practices.mdc
├── skills/
│ ├── schema-designer/
│ │ └── SKILL.md
│ └── migration-manager/
│ └── SKILL.md
├── agents/
│ ├── prisma-expert.md
│ └── schema-reviewer.md
├── scripts/
│ ├── setup.sh
│ ├── pre-commit.sh
│ ├── format-schema.js
│ └── generate-types.ts
├── hooks.json # Hook definitions
├── mcp.json # MCP server configuration
├── package.json
└── README.mdDevelopment
Scripts
# Setup the plugin
npm run setup
# Build MCP server (when implemented)
npm run build
# Development mode (when implemented)
npm run dev
# Run code generation scripts
npm run generateRequirements
- Node.js >= 18
- Prisma CLI (installed automatically by setup)
- Database connection (PostgreSQL, MySQL, SQLite, etc.)
Examples
Creating a Schema
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
posts Post[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([email])
}
model Post {
id Int @id @default(autoincrement())
title String
content String?
published Boolean @default(false)
authorId Int
author User @relation(fields: [authorId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([authorId])
@@index([published])
}Creating a Migration
# Create and apply migration
npx prisma migrate dev --name add_user_posts
# Deploy to production
npx prisma migrate deployContributing
Contributions are welcome! Please follow Prisma's contribution guidelines.
License
MIT
Support
Install the whole package (40 skills):
npx skills add https://github.com/prisma/cursor-pluginOr install a single skill:
npx skills add https://github.com/prisma/cursor-plugin --skill <name>Pick the skill name from the Skills tab — each entry there installs independently.