prisma-next-upgrade

Automate incremental Prisma Next upgrades with pnpm typecheck and test validation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tsx, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the complex, multi-step process of upgrading Prisma Next across minor versions, ensuring that breaking changes are handled, dependencies are correctly pinned, and the project remains in a valid, testable state.

Core Features & Use Cases

  • Incremental Upgrades: Automatically builds a transition chain to move from your current version to the target version one minor step at a time.
  • Automated Code Translation: Applies per-transition upgrade instructions, including codemods and manifest updates, to fix breaking changes automatically.
  • Safety Guardrails: Performs pre-flight checks for extension compatibility and validates each step with your project's own typecheck and test suite before committing.

Quick Start

Ask the agent to upgrade Prisma Next to the latest version in your project.

Frequently Asked Questions about prisma-next-upgrade

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

FAQPage Schema
How do I upgrade Prisma Next across multiple minor versions safely?

Upgrading Prisma Next safely is handled by building an incremental transition chain that moves your project one minor version at a time. The Skill applies automated codemods for breaking changes and validates each step using your project's typecheck and test scripts before committing.

What is the best way to automate breaking change remediation during a Prisma Next migration?

Automating breaking change remediation during a Prisma Next migration is done by applying per-transition upgrade instructions and codemods automatically. The Skill updates dependencies and fixes associated codebases, ensuring synchronized updates across required packages.

Do I need pnpm to automate Prisma Next dependency upgrades?

Yes, you need pnpm to automate Prisma Next dependency upgrades. The Skill requires pnpm for dependency management and execution, relying on it to synchronize package updates and install pinned versions correctly throughout the incremental migration process.

How does the automated Prisma Next upgrade validate that my codebase still works?

The automated Prisma Next upgrade validates your codebase by executing your project-specific typecheck and test scripts after applying each transition step. It also performs pre-flight checks for extension compatibility before beginning the migration process.

Can I use this automated migration for a TypeScript project consuming Prisma Next via public package APIs?

Yes, you can use this automated migration for a TypeScript project consuming Prisma Next via public package APIs. The Skill is designed to apply synchronized dependency updates and breaking-change remediation specifically for application projects using these public interfaces.

Why does my Prisma Next upgrade fail when skipping multiple minor versions?

Skipping multiple minor versions during a Prisma Next upgrade often fails due to accumulated breaking changes. This Skill resolves that by building a transition chain to upgrade incrementally, applying targeted codemods and manifest updates at each minor step.