Changeset

From udecode/plate · View interactive version

Changeset is an AI agent skill from the GitHub repository udecode/plate. Write and verify package release changesets, registry changelog entries, and the PR’s managed auto-release choice. Use before deciding whether a package edit needs a changeset, including skipping one.

How to use this skill

Skill file

Changeset

Release notes document user-visible changes: package changesets for published packages, and registry changelog entries for copied registry code under apps/www/src/registry/**. Concise bullets, imperative voice, user impact only.

Core principle: one action verb + one impact statement = one bullet.

Package changesets on `next`

While Plate v2 is in beta, a change on next that a package user can observe gets one changeset, written by the rules below. Its release baseline is the last published beta. Use patch: the four packages next publishes move together in one fixed group, so the bump type changes no version. Before each beta, the release job condenses the pending changesets into one line per user-visible change. On each push to next with no changeset pending, the release workflow adds one entry that links every commit since the last published beta, so the beta Version Packages PR always has a beta to publish. The v2 stable release gets one hand-written entry. Registry changelog entries still follow rule 4.

Critical Rules

1. Core packages: no `minor`

Forbidden: minor changesets for:

Use patch instead. minor on those explodes version bumps across dependents.

# Wrong
---
"platejs": minor
---

# Correct
---
"platejs": patch
---

Only real breaking changes get major.

On main, minor and patch changesets fix the stable line, and a breaking

change belongs on next, where every changeset is patch.

2. One package per file

Never combine packages in one changeset.

# Wrong
---
"platejs": patch
"@platejs/cli": patch
---

# Correct
.changeset/plate-fix-types.md
.changeset/cli-add-command.md

3. Always relative to the release baseline, never last commit

NEVER write a changeset relative to the last commit, staged diff, current

working tree, branch-local plan, or the change you just made. Those are agent

breadcrumbs, not release truth.

The release baseline is what users already have. For a package released from

main, it is main / origin/main. For a package that does not exist on

main yet, such as one in prerelease on next, it is that package's last

published version, and .changeset/pre.json lists the changesets that already

shipped in it.

Before creating or editing a changeset, answer one question:

What will a user upgrading from the release baseline observe?

If a symbol, option, behavior, file, or bug never existed in the release

baseline, do not write a removal, migration, or breaking changeset for it.

Instead, describe only the final user-visible delta from the baseline, or write

no changeset if there is no published package delta. Amend an unreleased

changeset that already describes the change instead of adding a duplicate.

Write changesets for the user-visible delta from the release baseline. That means:

before writing removal or migration prose

Do not write:

branch

If a package changed internally on this branch but has no user-visible delta from

the baseline, do not write a changeset for that package.

4. Registry work gets a registry changelog entry

If changes are only under apps/www/src/registry/, do not write a package

changeset; add a registry changelog entry per the

registry reference. Mixed package and registry work

may need both.

sync-plate-ui is for downstream user apps consuming the generated JSON. Do not use it to produce upstream Plate changelog entries.

5. Style

Use imperative voice:

Do not use:

Keep simple changes to one line:

- Fix `asChild` TypeScript error
- Add `disabled` prop to Button

Use code examples only when needed:

// Before
import { LegacyPlugin } from 'platejs';

// After
import { ExamplePlugin } from 'platejs';

Focus on user impact only. No implementation diary.

Copy API calls from the accepted, shipped source. Changesets report an API

decision; they never make one. Route unresolved shape to best-api.

Prefer this shape:

If a sentence would sound stupid in release notes, cut it.

Breaking change:

---
"platejs": major
---

Remove `LegacyPlugin`; use `ExamplePlugin`

**Migration:** Replace `LegacyPlugin` in your plugin list:

const plugins = [ExamplePlugin];

Managed auto-release choice

For PR-body edits, preserve the existing auto-release marker block and its

checked state. tooling/scripts/auto-release-pr.mjs owns normalization;

.github/workflows/changeset-auto-release.yml supplies the default for a new

block and excludes Version Packages PRs. Do not copy that policy into another rule or

hand-toggle a release choice during prose cleanup. Creating or changing the

release choice still requires the active request's authority. Read these owners

when the task actually changes auto-release behavior.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.