prisma-next-debug

Analyze Prisma Next error envelopes and route users to recovery workflows.

47.5k|2.5k|Updated Jun 20, 2019
One-click install
npx skills add https://github.com/prisma/prisma --skill prisma-next-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-next-debug
Source: https://github.com/prisma/prisma/tree/main/skills/prisma-next-debug
Command: npx skills add https://github.com/prisma/prisma --skill prisma-next-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured framework for interpreting Prisma Next error envelopes, allowing you to quickly identify the root cause of CLI failures, runtime exceptions, and migration conflicts.

Core Features & Use Cases

  • Envelope Routing: Automatically maps structured error codes (PN-CLI, PN-MIG, PN-RUN, etc.) to specific recovery workflows.
  • Diagnostic Guidance: Provides clear instructions for handling database drift, hash mismatches, and contract validation errors.
  • Use Case: When a migration fails with a hash mismatch or a runtime query hits a budget limit, this skill guides you through the exact steps to reconcile the state or tune the query parameters.

Quick Start

Paste the full JSON error envelope from your Prisma Next CLI output or runtime log to receive a guided recovery path.

Frequently Asked Questions about prisma-next-debug

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

FAQPage Schema
How do I debug Prisma Next migration errors like hash mismatches?

Debug Prisma Next migration errors by providing the structured JSON error envelope to map specific PN-MIG codes to guided recovery workflows for reconciling database drift and hash mismatches.

What is the best way to resolve database connectivity and contract validation errors in Prisma Next?

Resolving database connectivity and contract validation errors in Prisma Next involves analyzing structured runtime error envelopes to route PN-RUN codes to specific diagnostic guidance for schema verification failures and contract mismatches.

Why does my Prisma Next CLI command fail and how can I troubleshoot it?

Your Prisma Next CLI command fails due to specific error conditions mapped by PN-CLI codes. Troubleshoot by pasting the structured error envelope to receive an actionable recovery path for the identified failure domain.

Can I use this debugging workflow for both runtime exceptions and CLI failures in TypeScript?

Yes, you can use this debugging workflow for both runtime exceptions and CLI failures in TypeScript. It analyzes structured error envelopes across CLI, runtime, and migration domains to route you to the correct recovery workflow.

What should I do when a Prisma Next runtime query hits a budget limit?

When a Prisma Next runtime query hits a budget limit, use the skill to interpret the PN-RUN error envelope and follow the guided steps to tune query parameters and resolve the exception.