Agent skill

Changesets

by portabletext in portabletext/editor

How to write changesets in the Portable Text Editor monorepo.

MITAuto-check passedDevelopment

Install Changesets

skills CLI
$ npx skills add portabletext/editor --skill changesets -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install portabletext/editor changesets --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/changesets .claude/skills/changesets && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
changesets
GitHub stars
280
Token cost
~2.1k tokens
SKILL.md length
873 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

How to write changesets in the Portable Text Editor monorepo.

  • Adding a .changeset/.md file
  • SKILL.md covers When and what bump, Shape, Exemplars (real, from the repo… and Multi-PR release trains (stacks), plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Deciding whether a change needs one

What it does

Changesets is an agent skill from portabletext/editor. How to write changesets in the Portable Text Editor monorepo. Use whenever adding a .changeset/.md file or deciding whether a change needs one. Covers bump selection (patch/minor/none), the subject-mirrors-commit rule, consumer-facing prose style, and API changesets, with real exemplars from the repo history.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Monorepo tooling. The repository describes itself as: The Standalone Portable Text Editor. The licence is MIT.

When your agent uses it

  • Adding a .changeset/.md file
  • Deciding whether a change needs one

Example prompts

  • “/changesets”

What it can do on your machine

Read from SKILL.md and the folder at commit 60a494b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Changesets loads about 2.1k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 873 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from portabletext/editor at commit 60a494b, republished under its MIT licence (© portabletext). 873 words, ~2,139 tokens.

Download SKILL.mdSave it as .claude/skills/changesets/SKILL.md (or your agent's skills folder).
name
changesets
description
How to write changesets in the Portable Text Editor monorepo. Use whenever adding a .changeset/*.md file or deciding whether a change needs one. Covers bump selection (patch/minor/none), the subject-mirrors-commit rule, consumer-facing prose style, and API changesets, with real exemplars from the repo history.

Writing PTE changesets

When and what bump

  • One changeset per user-facing change. Filename is slug-style, describing the change (get-sibling-map-fallback.md, catalog-cross-kind.md), not the ticket/PR.
  • fix: / user-visible refactor → patch. New API → minor.
  • No changeset for: internal-only refactors, tests, CI/tooling, dependency regrouping with no resolved-version change.
  • New packages get no changeset: v1.0.0 is hand-published from the branch before the PR merges (plugin-typeahead-picker precedent); changesets manage it from 1.0.0 on.
  • Corollary: a commit that ships a changeset is fix:/feat: (see the commits skill).

Shape

---
'@portabletext/editor': patch
---

<commit subject, verbatim, prefix and backticks included>

<blank line>

<1–2 paragraphs for the CONSUMER: present tense, observable behavior>
  • First line repeats the commit subject verbatim. Since the frontmatter names the package, the commit subject (and thus this line) uses bare fix:/feat:, no scope.
  • The prose is written for the consumer reading a changelog: what they observe, in present tense ("Backspacing through empty blocks ... no longer slows down"). Not the diagnosis, not test references, not PR numbers, not internal function archaeology, that lives in the commit body and PR description.
  • API changesets enumerate the exact exported names and show a fenced usage example. Include a resolution-order list when the API has ordering semantics (see the defineX render-prop-types and '*' catch-all entries in editor/CHANGELOG.md).
  • Call out the upgrade action explicitly when the change shifts something consumers iterate, switch over, or type against: "Code that iterates the map will see the new serialized-path keys", "exhaustive switches over event.type gain a case".
  • Perf fixes state the numbers.
  • Fix changesets show the case they fix, so a consumer recognizes their own code in it. When the bug depends on something the consumer writes (a schema, a document), a runnable fenced block right after the sentence stating the fix shows a minimal version of it and the public call that failed, with the old outcome in a comment (// Previously threw: TypeError: ...). Input alone is not enough: the reader must see which call to look for in their own code. Run the snippet against the old and new code before committing it. When the bug depends on an action (a keystroke, a paste), the changeset names the exact steps and content.
  • Secondary behavioral changes shipping in the same release are named explicitly, in a plain sentence that belongs to the paragraph ("Removing a decorator from part of a selection made left to right also no longer marks the selection as backward."). Never behind a label such as "One additional change:" or "Also changed:": a label tacked onto every changeset reads as boilerplate.
  • Banned vocabulary in changeset prose (and any artifact prose): "delta" (write "change") and "rides along"/"ride along" (name the change in a plain sentence instead).
  • Small self-explanatory changes can be subject-only.

Exemplars (real, from the repo history)

patch: perf fix with numbers + a named secondary behavioral change
md
---
'@portabletext/editor': patch
---

fix(perf): resolve the `unset` selection fallback's nearest spans without a document scan

Backspacing through empty blocks, and any other edit that removes the node the selection sits in, no longer slows down with document size. Previously each such removal scanned the document from the start to find the nearest span; in large documents this made deleting empty lines feel sluggish (~267ms per backspace at 8,000 blocks, now ~20ms).

One narrow behavioral fix rides along: when the removed node was addressed by a numeric path, the fallback previously moved the selection to the document's first span; it now moves it to the actual nearest span.

Why it's good: observable symptom first ("backspacing ... no longer slows down"), numbers with context, and the secondary behavioral change named explicitly, last. One phrase in it is retired: this exemplar predates the ban on "rides along" and on labels, so imitate its structure (the secondary change named, last), not its wording. Today the last paragraph reads: "Removing a node addressed by a numeric path also moves the selection to the actual nearest span instead of the document's first span."

Show full SKILL.md (352 more words)Show less
minor: new API with enumerated name + example
md
---
'@portabletext/editor': minor
---

feat: add `editor.dom.getPointAtCoordinates`

Pass viewport coordinates (for example a pointer event's `clientX`/`clientY`) and get back where a click at those coordinates would place the caret, as an editor selection point, or `null` when the coordinates don't hit the editor's content:

```ts
const point = editor.dom.getPointAtCoordinates({
  x: event.clientX,
  y: event.clientY,
})
// {path: [{_key: 'b1'}, 'children', {_key: 's1'}], offset: 3}
```

It's the counterpart of editor.dom.getSelectionRect: that one turns a selection into pixels, this one turns pixels back into a point. Behavior guards and actions get it on their dom argument.


Why it's good: the export is named, the example shows input AND output shape, and the
"counterpart of" framing places the API in the consumer's existing mental model.

### patch: behavior fix, consumer-observable framing

```md
---
'@portabletext/editor': patch
---

fix: resolve `getSibling` when `blockIndexMap` misses or disagrees with the tree

`getSibling` previously returned `undefined` for siblings the tree
plainly has when the anchor's path was absent from the block-index
map, and could return the wrong sibling when the map was stale. It now
verifies the mapped position against the tree and falls back to a
linear scan, matching `getNode` and `getChildren`. Paths addressing
the anchor by numeric index now resolve instead of returning
`undefined`.

Why it's good: states the wrong observable outputs (undefined where a sibling exists, wrong sibling), then the new contract, and anchors it to sibling APIs the consumer already trusts ("matching getNode and getChildren").

Multi-PR release trains (stacks)

When a major lands as a stack of PRs feeding one Version Packages release, three extra rules apply; each was learned from a real incident during the v8 stack:

  • A changeset must be true of the release, not just its PR. Before pushing, audit claims about untouched surface ("X stays", "remains exported but is deprecated", "Y keeps composing") against the other pending changesets: a sibling PR in the same train may remove exactly that surface, and the changelog would assert both. (The remove-render-list-item changeset promised data-list-item/data-level stay; the unified-DOM changeset removes them.)
  • Changesets are keyed to consumer-observable changes, not PRs. A PR that completes a story an earlier pending changeset began amends that changeset instead of adding a sibling; pending changesets are ordinary files on main until released. (The props-shape-types PR added no changeset: remove-render-style absorbed BlockStyleRenderProps, since prop and types leaving together is one change to the consumer.)
  • Migration advice must name a reader you can point at. If no consumer demonstrably uses the pattern the sentence addresses, delete the sentence; speculative hand-holding is noise wearing a helpful face. (An invented Pick<BlockStyleRenderProps, ...> consumer got a personalized migration note; nobody Picks from a callback-payload type.)

Anti-patterns

  • First line paraphrasing instead of mirroring the commit subject.
  • Diagnosis prose ("the bug was in updateBlock's reconcile...") — consumers don't care where it was, only what changed for them.
  • Referencing tests, PR numbers, or issue-tracker tickets.
  • A changeset for an internal refactor "just in case" — no observable change, no changeset.
  • Bumping minor for a fix because it "feels big"; size ≠ semver.

The canon

Past changesets are consumed on release; packages/*/CHANGELOG.md is where they accumulate. The 7.x entries in editor/CHANGELOG.md are the reference set.

© portabletext, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/changesets of portabletext/editor.

Open the folder on GitHubat commit 60a494b

Compare with similar skills

Changesets next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Changesets compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Changesets this skillportabletext/editor280—~2.1kAutomated safety check: PassMIT
Nx Importnrwl/nx29k6 repos~3.5kAutomated safety check: PassMIT
Nx Workspacenomcopter/react-mosaic4.8k8 repos~1.9kAutomated safety check: PassCustom licence
Electron Multi-Process ArchitectureiOfficeAI/AionUi33k1 repos~1.8kAutomated safety check: PassApache-2.0
Nx Run Tasksnomcopter/react-mosaic4.8k8 repos~613Automated safety check: PassCustom licence
Astro Developerwithastro/astro63k1 repos~1.5kAutomated safety check: PassCustom licence

Similar skills

  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Nx Workspace

    nomcopter/react-mosaic

    Explore and understand Nx workspaces. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Tells the agent where new code belongs in an Electron multi-process project and which APIs each process may use, with rules for new bridges, services, agents and workers.

    33k GitHub starsUsed in 1 repo~1.8k tokens
    DevelopmentAuto-check passed
  • Nx Run Tasks

    nomcopter/react-mosaic

    Helps with running tasks in an Nx workspace. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~613 tokens
    DevelopmentAuto-check passed
  • Astro Developer

    withastro/astro

    Official

    Comprehensive guide for developing in the Astro monorepo. An agent skill from withastro/astro.

    63k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    55k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed

More from portabletext/editor

All 10 skills in this repo
  • Product Copy Assistant

    portabletext/editor

    Write clear, concise, accessible product copy for interfaces, docs, and system messages.

    280 GitHub stars~635 tokensUpdated 2 days ago
    Auto-check passed
  • Commits

    portabletext/editor

    How to write commit messages in the Portable Text Editor monorepo.

    280 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Next Branch

    portabletext/editor

    How the next prerelease branch for the upcoming editor major works in the Portable Text Editor monorepo.

    280 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Backporting

    portabletext/editor

    How to backport a fix from main to a maintenance branch (editor-v6.x, editor-v7.x) in the Portable Text Editor monorepo.

    280 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Code Comments

    portabletext/editor

    How to write and review code comments in the Portable Text Editor monorepo.

    280 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Portable Text

    portabletext/editor

    Work with Portable Text, a JSON-based specification for structured block content.

    280 GitHub stars~656 tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Changesets

What does Changesets do?

How to write changesets in the Portable Text Editor monorepo. Changesets is an agent skill from portabletext/editor. How to write changesets in the Portable Text Editor monorepo.

When should I use Changesets?

Changesets fits situations like: adding a .changeset/.md file; deciding whether a change needs one.

How do I install Changesets in Claude Code?

Run `npx skills add portabletext/editor --skill changesets -a claude-code`. Or copy the skill folder (.agents/skills/changesets in portabletext/editor) into .claude/skills/changesets in your project. Claude Code loads it when a task matches its description.

How do I install Changesets in Codex?

Run `npx skills add portabletext/editor --skill changesets -a codex`. Or copy the skill folder (.agents/skills/changesets in portabletext/editor) into .agents/skills/changesets in your project. Codex loads it when a task matches its description.

Can I use Changesets in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add portabletext/editor --skill changesets -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/changesets, .gemini/skills/changesets, .github/skills/changesets and .opencode/skills/changesets in your project.

What does Changesets need to run?

SKILL.md names no scripts, command-line tools or credentials: Changesets is instructions for the agent only.

Does Changesets access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Changesets safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Changesets use?

Changesets is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Changesets use?

About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Changesets?

Skills that share tags, products or a category with Changesets: Nx Import (nrwl/nx, 29k stars), Nx Workspace (nomcopter/react-mosaic, 4.8k stars), Electron Multi-Process Architecture (iOfficeAI/AionUi, 33k stars) and Nx Run Tasks (nomcopter/react-mosaic, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Changesets?

portabletext (a GitHub organization) maintains it in portabletext/editor, which has 280 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 6, 2026.

Source: portabletext/editor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.