prisma-cli

Organize Prisma CLI workflows for setup, migrations, and database operations.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/rauell1/safaricharge --skill prisma-cli-rauell1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/rauell1/safaricharge/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/rauell1/safaricharge --skill prisma-cli-rauell1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It removes guesswork from Prisma CLI workflows by consolidating the commands, options, and follow-up steps needed to initialize projects, generate clients, manage schemas, and debug database issues.

Core Features & Use Cases

  • Project setup: Initialize Prisma, configure datasource providers, and create the expected config and schema files.
  • Development workflows: Run client generation, db pull, db push, seeding, and local database management with the correct sequence.
  • Migrations and production safety: Handle migrate dev, migrate deploy, status checks, resets, diffs, and recovery commands with clear guidance.
  • Tooling and troubleshooting: Use Studio, MCP, validate, format, and debug to inspect data and diagnose environment problems.
  • Use case: A developer changing a schema can follow the right migration path, regenerate the client, and verify the database state without hunting through docs.

Quick Start

Ask for the Prisma command you need, and I will give you the exact workflow, options, and follow-up steps for that task.

Frequently Asked Questions about prisma-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Prisma migrations safely in production?

Prisma migrations in production require using migrate deploy to apply pending migration files without resetting data, followed by a status check to verify the database state and ensure schema synchronization.

What is the correct sequence for Prisma client generation after schema changes?

Prisma client generation requires running prisma generate after modifying the schema file, ensuring the client reflects the new types and database operations are updated without manual type definitions.

How do I initialize a Prisma project and configure the datasource provider?

Prisma project initialization involves running prisma init to create the expected config and schema files, then configuring the datasource provider in the schema to connect to your specific database environment.

Can I use Prisma Studio to inspect and debug database issues locally?

Prisma Studio provides a visual interface to inspect data, run local database management operations, and debug environment problems by viewing records directly during development and staging workflows.

What is the difference between Prisma db push and migrate dev for development?

Prisma db push applies schema changes directly without creating migration history, suitable for prototyping, while migrate dev generates migration files for version control and team collaboration during development.

Why does my Prisma seeding execution fail after running migrations?

Prisma seeding execution requires a correctly configured seed script in the config file and the client to be regenerated, ensuring the database state is synchronized before inserting the initial data.