Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.

  2. Choose a descriptive pending name. Add upgrade-instructions/pending/<descriptive-name>/<audience>/instructions.md for 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.

  3. Write the instructions. Retain the existing YAML frontmatter changes[] and Markdown prose format. Each change has a kebab-case id unique within the guide, a one-line summary, optional detection (glob and content predicate), and an optional script path relative to instructions.md. Prose-only transformations omit script; the consumer's agent follows the body.

    Write detection patterns for whole-file matching. The upgrade flows test each matches pattern as new 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 the m flag 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 fns token.

    Name only published packages in prose. Follow the rule in upgrade-instructions/README.md: prose names @prisma/orm-* entries, never @internal/* packages; detection patterns 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 declares changes: [], 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.

  4. Author optional colocated scripts/assets. TypeScript that Node runs directly (node <script>.ts, so only syntax Node's type stripping accepts; a project made by orm init has no tsx), shell, or codemods are appropriate. Require no network, environment varia

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить record-upgrade-instructions с