record-upgrade-instructions
БесплатноБез исполняемых скриптовНе проверенRecord upgrade instructions alongside a Prisma 8 breaking-change PR, so downstream consumers (applications on the published `@prisma/orm-*` packages and…
от prisma★ 47 814 звёзд на GitHubОб этом скилле
Record upgrade instructions
Contribute an independent fragment on the PR that changes Prisma 8. Release preparation combines fragments into the published app and extension guides; feature PRs do not edit shared transition guides or choose a release number. Read the canonical upgrade instruction lifecycle for storage, release assembly, and checker modes.
Detection signals and routing
Use this skill when a framework change makes tests red in examples/, packages/3-extensions/ or a target facade (packages/3-targets/*/9-facade/ or packages/3-targets/*/*/9-facade/) and you fix them by updating the example or extension code rather than reverting the framework change. Those edits are the same translation downstream consumers need.
| Directory changed by the PR | Fragment audience | Consumers |
|---|---|---|
examples/ |
app |
Public package API, contract files, on-disk migrations |
packages/3-extensions/, packages/3-targets/*/9-facade/ and packages/3-targets/*/*/9-facade/ |
extension |
Framework SPI and extension authors |
| Both | Both, independently | Both audiences |
Changes in these directories require a declaration, subject to existing coverage-check exclusions. Generated artefacts are not generally exempt: contract format changes require a codemod or re-emission instructions. Genuinely consumer-invisible changes still get an explicit changes: [] declaration, with no prose.
Stacked PRs: compare against the branch the PR actually targets, not always main. Each PR adds its own declaration in its own commits; inherited fragments do not cover a new PR. Do not pool a stack's instructions in its bottom PR.
Throughout this skill, <target> is the target branch (main unless stacked), <base> is its pinned comparison commit, and <head> is the PR head commit.
Authoring workflow
Identify affected audiences. Inspect
git diff <base>..<head> -- examples/ packages/3-extensions/ 'packages/3-targets/*/9-facade/' 'packages/3-targets/*/*/9-facade/'. If none of these directories has relevant changes, the coverage check does not require a declaration.Choose a descriptive pending name. Add
upgrade-instructions/pending/<descriptive-name>/<audience>/instructions.mdfor each affected audience. Avoid collisions with pending work; no random suffix, global registry, historical-name reservation, or shared index is required. Never append to another PR's fragment. A release landing during your PR does not change this unversioned destination.Write the instructions. Retain the existing YAML frontmatter
changes[]and Markdown prose format. Each change has a kebab-caseidunique within the guide, a one-linesummary, optionaldetection(glob and content predicate), and an optionalscriptpath relative toinstructions.md. Prose-only transformations omitscript; the consumer's agent follows the body.Write detection patterns for whole-file matching. The upgrade flows test each
matchespattern asnew RegExp(pattern), with no flags, against the whole content of a file (upgrade-app.md, step 4). A pattern may span lines. To exclude a file by something elsewhere in it, anchor a lookahead at the start of the input with(?<![\s\S]), not^, which themflag turns into a line start.Make detection predicates token-precise. Test against both a true positive and the nearest false positive. A moved tag must not match an unchanged tag; excluding an unchanged spelling needs a token boundary:
matches: .raw` must not fire on: fns.raw` too broad: (?<!fns)\.raw` also suppresses myfns.raw` shipped: (?<!(?<![\w$])fns)\.raw`The inner lookbehind restricts the exclusion to the exact
fnstoken.Name only published packages in prose. Follow the rule in
upgrade-instructions/README.md: prose names@prisma/orm-*entries, never@internal/*packages;detectionpatterns and codemod scripts may name workspace names.Only describe consumer action. Omit narrative about internal renames, dev-only dependency bumps, and incidental generated churn. Changes to
@internal/*APIs that no published@prisma/*package re-exports are not consumer action either: a PR that only changes those declareschanges: [], even when extension tests had to be updated. If this PR's audience needs no action, use only:--- changes: [] ---No "consumers need not do anything" body prose. Both audiences declare independently, including real-change/no-op combinations.
Author optional colocated scripts/assets. TypeScript that Node runs directly (
node <script>.ts, so only syntax Node's type stripping accepts; a project made byorm inithas notsx), shell, or codemods are appropriate. Require no network, environment varia
Установить record-upgrade-instructions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл record-upgrade-instructions?
Record upgrade instructions alongside a Prisma 8 breaking-change PR, so downstream consumers (applications on the published `@prisma/orm-*` packages and authors of Prisma 8 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/`, `packages/3-extensions/` or a target facade, when you fixed those red tests by updating example or extension code, when you are told to "record upgrade instructions for this PR", or when you made a breaking change to Prisma 8 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