record-upgrade-instructions
Installation
SKILL.md
Record upgrade instructions
This skill fires on PRs inside this repo that make a breaking change to Prisma Next. It walks you through adding a per-transition upgrade-instructions entry in the right published skill package(s) — so downstream users and extension authors can run the matching agent flow to migrate their code automatically.
The published skills you will be authoring entries into:
skills/upgrade/prisma-next-upgrade/— distributed viapnpm dlx skills add prisma/prisma-next/skills/upgrade --all. Audience: users of Prisma Next (consumers of the public package API:@prisma-next/postgres,@prisma-next/mongo, the contract files inprisma/, on-disk migration shape).skills/extension-author/prisma-next-extension-upgrade/— distributed viapnpm dlx skills add prisma/prisma-next/skills/extension-author --all. Audience: authors of Prisma Next extensions (consumers of the framework SPI:@prisma-next/contract,@prisma-next/framework-components,@prisma-next/migration-tools, etc.).
The two skill clusters are independent (no shared content). Cross-audience breaking changes — where the same on-disk transformation applies to both substrates — are recorded separately in each cluster, including duplicated colocated scripts.
When to use
Fire this skill on any PR where:
- You refactored framework code, then
- the test suite went red in
examples/and/orpackages/3-extensions/, and - you fixed those red tests by editing the substrate (not by reverting the framework change).