>- Upgrade Prisma Next in your extension. Bumps every `@internal/*` dependency to the requested target (or npm `latest`), runs the per-transition upgrade instructions for the extension SPI (middleware lifecycle, codec / migration-tools / framework-components churn, seed-migration on-disk shape), verifies the pins are correctly exact via `prisma-8-check-pins`, runs the extension's own typecheck and tests, and commits each minor step on its own. Use when the user asks to "upgrade Prisma Next" in an extension package, or to update an extension's `@internal/*` deps to a new minor.
npx skills add https://github.com/prisma/prisma --skill prisma-8-extension-upgrade
This skill upgrades a project that is a Prisma Next extension — a package that consumes the framework SPI (@internal/contract, @internal/framework-components, @internal/migration-tools, etc.) and exposes contract / middleware / codec / migration surfaces that downstream apps install via prisma-next.config.ts.
If the project you are upgrading is a consumer app (it imports @internal/postgres or @internal/mongo from its application code), use the prisma-next-upgrade skill instead — or both, if the repo contains both a consumer app and an extension package, in which case run the user flow first then the extension flow in the same session.
Before doing anything else, ensure this skill is installed at @latest and reload it. Bug fixes to *old* per-transition upgrade instructions ship in the latest skill release as part of its cumulative set; running against a stale skill can apply a known-broken translation.
Concretely: if the agent runtime supports an in-session refresh, perform it now. Otherwise, exit and ask the user to re-install:
pnpm dlx skills add prisma/prisma/skills/extension-author --all
The extension-author skill subpath is intentionally unpinned (always main) — the cumulative instruction set is the source of truth and the latest release fixes apply to every prior transition.
Then re-invoke this skill before proceeding.
This skill applies when the project is a Prisma Next extension. Heuristics:
package.json declares @internal/contract (or another SPI package) under dependencies or peerDependencies, andname matches ^@.*/extension- (the in-tree convention used by @internal/extension-pgvector, etc.), orextensions entry from a sibling app's prisma-next.config.ts in the same monorepo.If the project additionally consumes Prisma Next from its own app code, install the prisma-next-upgrade skill (pnpm dlx skills add prisma/prisma/skills/upgrade --all) and run the user flow first, then this flow in the same session.
If detection is ambiguous, ask the user which role to operate under.
pnpm-lock.yaml (or package-lock.json / yarn.lock) by inspecting the resolved version of any @internal/* entry. If the lockfile shows multiple @internal/* packages at different minors, the lowest minor is the from-version.npm view @internal/contract dist-tags.latest.Report both back to the user before continuing.
If the from-to delta spans multiple minor versions (e.g. 0.6 → 0.8), build the chain of one-minor steps:
0.6 → 0.7 → 0.8
Apply each step in order, fully: bump, install, run instructions, check pins, validate, commit — before moving to the next. Halt the chain on the first failed step.
This flow assumes you are an external extension author — your extension lives in its own repo and consumes @internal/* from npm. (Extensions inside the prisma/prisma monorepo itself are bumped via pnpm bump-minor / scripts/set-version.ts, which rewrites every workspace:<X.Y.Z> spec in lockstep with the root version; they do not run this skill.)
For each (from, to) step in the chain:
@internal/* deps. Rewrite every @internal/* entry in the extension's package.json to the exact <to> version (e.g. "0.8.0" — no caret, no tilde, no range, no workspace: specifier; the exact-pin rule below details why). All entries advance to the same version. Cover whichever dep field(s) the extension uses today — dependencies and/or peerDependencies — and any optionalDependencies. The extension-upgrade skill itself ships via pnpm dlx skills add (see Step 0); there is no @internal/extension-upgrade-skill npm entry to bump. The companion CLI tool is @internal/extension-author-tools — leave its pin at the version the extension's CI is currently using; bumping it is independent of the framework upgrade and is normally a no-op.pnpm install (or the project's lockfile-managing command). The extension's source is now broken against the new SPI — the upgrade instructions for <from> → <to> exist to fix it.pnpm exec prisma-8-check-pins (shipped by @internal/extension-author-tools). This sanity check asserts that every @internal/* entry across dependencies, peerDependencies, and optionalDependencies is a single exact-version string and that all entries share the same version. If the check fails, the bump step did not rewrite every spec — fix the offending entries and re-run before proceeding.upgrades/<from>-to-<to>/instructions.md from this skill package. Parse the YAML frontmatter and pay particular attention to its changes[] array.changes[]:detection block (a glob + content predicate), run it. If no files match, skip this change.detection, apply unconditionally.script: (a relative path next to instructions.md), invoke it from the project root:*.ts → pnpm exec tsx <skill>/upgrades/<from>-to-<to>/<script>*.sh → bash <skill>/upgrades/<from>-to-<to>/<script>instructions.md prose.script, follow the prose body in instructions.md directly.If changes[] is empty (the placeholder shape for transitions with no extension-side breaking changes), this sub-step is a no-op — proceed to validation.
pnpm build && pnpm test (or the project's equivalent — the scripts field of the extension's package.json is the discovery surface). If anything is red, halt the chain. Do not auto-roll-back; surface the failure to the user with the failing change's id (from the frontmatter), the file paths the change operated on, and the inferred remediation.package.json bump, the lockfile churn from pnpm install, and any source-file rewrites from the applied changes. Use the message: chore: upgrade @internal/* to <to-version>
(Or the extension's own commit-message convention, if it has one.) One commit per step — never squash steps.
Move on to the next step. Repeat.
Prisma Next extensions pin every @internal/* dependency to a single exact version (no ^, no ~, no range, no wildcard, no workspace: specifier in the published package.json). All @internal/* entries share the same version. The pin advances only after a successful upgrade run against the new minor.
prisma-8-check-pins (shipped by @internal/extension-author-tools — install with pnpm add -D @internal/extension-author-tools) enforces the rule. Run it locally with:
pnpm exec prisma-8-check-pins
Wire it into the extension's CI alongside the build/test step so an accidental range pin fails the PR before it lands.
Report back to the user: the number of steps applied, the SHAs of the commits you made, and any open follow-ups.
When a step fails:
PN-UPGRADE-NNNN, the failing change's id, the file paths the change touched (or the lockfile, or the pin check, or the validation command), and the inferred remediation.Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Take prisma/prisma-8-extension-upgrade from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm, pnpm.
Without those the skill loads but fails at the first command.