record-upgrade-instructions
БесплатноБез исполняемых скриптовНе проверенRecord upgrade instructions alongside a Prisma Next breaking-change PR, so downstream consumers (users of `@prisma-next/*` and authors of Prisma Next…
от prisma★ 407 звёзд на GitHubОб этом скилле
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).
Those edits to examples/ or packages/3-extensions/ are the signal. The matching test suite would have been red for downstream consumers without an upgrade-instructions entry; the entry's effect on the substrate is the same code translation a downstream consumer will run via the published skill.
If both substrates are touched, both packages need entries (see Cross-audience entries).
Even consumer-invisible-looking diffs need an entry. A change to the format of contract.json / contract.d.ts (or any other emitted artefact) is itself an upgrade instruction — consumers will need to either run a codemod or re-emit. Where the substrate diff is genuinely no-op for consumers (incidental regeneration with no behavioural change), the entry can ship with changes: [] to record that explicitly. There is no carve-out for "generated paths"; any substrate diff requires a record.
Detection signals & routing
Two mechanical signals, each tied to one destination package:
| Substrate touched by the PR | Destination skill |
|---|---|
examples/ |
skills/upgrade/prisma-next-upgrade/ |
packages/3-extensions/ |
skills/extension-author/prisma-next-extension-upgrade/ |
| Both | Both — duplicated entries (see below) |
The substrate diff is the signal that an entry is required. The agent fixing the red tests in those substrates sees the signal directly; the reviewer sees the same diff. The release-pipeline check (pnpm check:upgrade-coverage) enforces the outcome — a substrate diff without the matching directory fails the PR.
Authoring workflow
For each PR that hits one or both signals, walk these steps in order.
Determine the in-flight transition. Read the
versionfield from the rootpackage.jsonon the PR branch. That value is the currently published version (the source-of-truthpnpm bump-minorreads when preparing the next release). Call its minorM. The in-flight transition is thereforeM → M+1, and the in-flight directory in each destination package isupgrades/<M>-to-<M+1>/— e.g."0.7.0"inpackage.jsonmeans you're authoring intoupgrades/0.7-to-0.8/. The branch'spackage.jsonis the source-of-truth — do not consultnpm view. If there is no substrate diff at all, no entry is needed — skip to step 7.Identify the touched substrate(s). Compute
git diff origin/main..HEADrestricted toexamples/and topackages/3-extensions/. Each non-empty substrate corresponds to one destination package per the routing table above. The "both" case is normal — the rare PR (e.g. a structural on-disk migration shape change) touches both.Find or create the directory in each destination. For each destination, the directory is
<destination>/upgrades/<M>-to-<M+1>/whereMis the currently-published minor from step 1 (so e.g.skills/upgrade/prisma-next-upgrade/upgrades/0.7-to-0.8/for the user-skill). If the directory already exists (an earlier PR on the same transition created it, or the placeholder shipped with the initial mechanism PR is still there), do not create a duplicate — append a new entry to the existinginstructions.md'schanges[]array.**Write the entry into `instructions.m
Установить record-upgrade-instructions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл record-upgrade-instructions?
Record upgrade instructions alongside a Prisma Next breaking-change PR, so downstream consumers (users of `@prisma-next/*` and authors of Prisma Next extensions) can apply the matching code translation automatically via the published upgrade skills. Use when you have refactored framework code and the test suite went red in `examples/` or `packages/3-extensions/`, when you fixed those red tests by editing the substrate, when you are told to "record upgrade instructions for this PR", or when you made a breaking change to Prisma Next that downstream consumers will need help migrating across.
Как установить скилл record-upgrade-instructions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл record-upgrade-instructions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic