@prisma-next/extension-upgrade-skill
v0.7.0
Published
Agent skill that upgrades a Prisma Next extension package from one minor version to the next. Carries the bump-install-instructions-check-pins-validate-commit flow plus the cumulative set of per-transition upgrade instructions. Ships `prisma-next-check-pi
Keywords
Readme
@prisma-next/extension-upgrade-skill
An agent skill that upgrades a Prisma Next extension package from one minor version to the next. The skill carries the per-step bump-install-instructions-check-pins-validate-commit flow plus the cumulative set of per-transition upgrade instructions (one directory per (from-minor, to-minor) pair).
This package additionally ships a prisma-next-check-pins CLI as a bin for use in extension authors' CI.
Audience
This skill is for authors of Prisma Next extensions — packages that consume the framework SPI and expose contract / middleware / codec / migration surfaces to downstream apps.
If you are a user of Prisma Next (your project imports @prisma-next/postgres, @prisma-next/mongo, etc. from your application code), install @prisma-next/upgrade-skill instead. If your repo contains both an app and an extension, install both.
Installation
npx skills add @prisma-next/extension-upgrade-skill@latest --all--all skips the per-agent selection prompt and installs to every agent runtime the skills CLI detects. For a single-agent install, swap --all for -a <agent> (e.g. -a claude-code).
Always install at @latest. Bug fixes to older per-transition upgrade instructions ship as part of the latest skill release; pinning to an older skill version can apply a known-broken translation.
For the CLI, add the package as a devDependency (the npx skills add step above already does this if you accept its defaults):
pnpm add -D @prisma-next/extension-upgrade-skill@latestThen wire pnpm exec prisma-next-check-pins into your CI.
Usage
Upgrade
Once installed, an agent in your extension repo picks up the skill from a prompt like:
Please upgrade Prisma Next to the latest version.The agent reads SKILL.md, detects the current and target versions, applies one transition at a time, and commits each transition step separately.
prisma-next-check-pins CLI
The CLI enforces the exact-pin rule for Prisma Next extensions: every @prisma-next/* entry across dependencies, peerDependencies, and optionalDependencies must be a single exact-version string (no ^, no ~, no range, no wildcard, no workspace: specifier), and every entry must resolve to the same version.
pnpm exec prisma-next-check-pinsExits with status 0 and no output on success; on any failure, prints a structured error naming every offending entry and exits non-zero.
Wire into your CI alongside your build/test step:
- run: pnpm exec prisma-next-check-pinsVersioning
This package is version-locked to the rest of Prisma Next: every Prisma Next release publishes the same version of this skill. The version is publication discipline (one release per Prisma Next release), not a compatibility selector — install at @latest.
What the skill does
See SKILL.md for the full flow. In short:
- Ensure the skill itself is at
@latest. - Detect from-version (from the lockfile) and to-version (user-supplied or npm
latest). - Build the transition chain (one minor at a time).
- For each step: bump deps to the exact next minor,
pnpm install, runprisma-next-check-pins, apply the per-transition upgrade instructions, run build + tests, commit. - Halt at the first failed step with a structured error.
