Changesets Pull Request to Main
breaking-brake/cc-wf-studio
Opens a pull request to main in a pnpm and Changesets monorepo, after working out which packages changed and making sure a changeset file exists.
How to write pull request descriptions for the Portable Text Editor monorepo.
$ npx skills add portabletext/editor --skill pr-descriptions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install portabletext/editor pr-descriptions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pr-descriptions .claude/skills/pr-descriptions && rm -rf skills-srcUse ~/.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/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .claude/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add portabletext/editor --skill pr-descriptions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install portabletext/editor pr-descriptions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/pr-descriptions .agents/skills/pr-descriptions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .agents/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add portabletext/editor --skill pr-descriptions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install portabletext/editor pr-descriptions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/pr-descriptions .cursor/skills/pr-descriptions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .cursor/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/portabletext/editor.git --path .agents/skills/pr-descriptions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add portabletext/editor --skill pr-descriptions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install portabletext/editor pr-descriptions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/pr-descriptions .gemini/skills/pr-descriptions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .gemini/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install portabletext/editor pr-descriptionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add portabletext/editor --skill pr-descriptions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/pr-descriptions .github/skills/pr-descriptions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .github/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add portabletext/editor --skill pr-descriptions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install portabletext/editor pr-descriptions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/portabletext/editor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/pr-descriptions .opencode/skills/pr-descriptions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pr-descriptions" agent skill from https://github.com/portabletext/editor/tree/main/.agents/skills/pr-descriptions into .opencode/skills/pr-descriptions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-descriptions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pr-descriptionsHow to write pull request descriptions for the Portable Text Editor monorepo.
PR Descriptions is an agent skill from portabletext/editor. How to write pull request descriptions for the Portable Text Editor monorepo. Use whenever opening or editing a PR here. Covers the changeset-led body (the changeset's prose opens the description), the narrative shape for what follows, honesty about behavioral changes, and length that scales with the diff's blast radius, with real merged exemplars.
Its SKILL.md is about 2.8k 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 Pull requests and Monorepo tooling. It works with pnpm. The repository describes itself as: The Standalone Portable Text Editor. The licence is MIT.
Read from SKILL.md and the folder at commit 60a494b. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pnpmghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
PR Descriptions loads about 2.8k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 1,572 words of instructions outside code blocks.
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.
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.
The full file from portabletext/editor at commit 60a494b, republished under its MIT licence (© portabletext). 1,572 words, ~2,763 tokens.
.claude/skills/pr-descriptions/SKILL.md (or your agent's skills folder).gh pr create, run the static checks CI runs, from the worktree
being pushed: pnpm check:format, pnpm check:lint, pnpm check:types,
pnpm check:knip (repo root), plus the affected package's test:unit.
These are cheap; run them all, every time.
A green test run is not a green PR: lint enforces the house assertion
style (see the writing-tests skill), and test:unit and check:types
typecheck test files where stale API shapes surface.vitest run --project "browser (chromium)" tests/<file>.test.tsx); a change with general blast
radius (engine, selection, input pipeline) runs the package's full
test:browser:chromium.gh pr create --draft); a maintainer marks it
ready and merges. Never gh pr merge.--body-file, never a heredoc with backticks inside $( ): backticks
in the body survive intact.PULL_REQUEST_TEMPLATE.md, so the body is prose, not a
form to fill in.changesets
skill), and it is what the reviewer actually reads; a body that buries it
under paragraphs gets skipped whole. After it, the body adds only what
changesets ban: a concrete example of the failure, one sentence naming
the fix mechanism, any behavioral change or honest caveat. When the
changeset alone carries the change, it is the whole body. This mirrors
the changeset's prose; body sentences about the changeset ("a
changeset rides along") remain banned.## What / ## Design notes.## Tests section. A test inventory is listy and disconnected from
the reasoning. Tests appear in the narrative next to the decision or claim
they pin, "pinned" meaning a test that fails without the change ("pinned
by a test expressing...").editor.on
events ... #2772 stacks on this").This is the earned-length exception (a factorial blow-up in a public conversion path), not the default fix-PR shape; the default is the changeset-led body above.
fix(sanity-bridge): avoid combinatorial blow-up converting mutually-embedding types
While upgrading our studio from v4 to v5 we hit a complete freeze: opening any document with a portable text field would pin the main thread until the tab crashed. No errors, nothing in the console. We eventually traced it to
sanitySchemaToPortableTextSchema.The walk added in #2630 tracks ancestors per branch, so it only stops when a type repeats within its own chain. Our schema has ~30 block object types, and about a dozen of them embed the shared
blockContentarray again (accordions, quotes, cards and so on). With that shape the walk ends up visiting every possible path through the type graph, which grows factorially with the number of block objects. For us that was ~2.1s per conversion — and sincePortableTextInputconverts on render, the studio just locked up. A slightly more connected schema never finishes at all.The fix relies on the fact that
Schema.compileproduces one canonical instance per named type [...] I added a small memo (scoped to one conversion call) keyed by the compiled type instance [...] which makes the walk linear in the size of the compiled schema.A few things I was careful about:
- The memo key is the instance, not the name. Same-named inline declarations with different fields compile to distinct instances [...] the cases in
same-name-objects.test.tsare unaffected.- Cycle detection via ancestor names is unchanged, and only completed expansions are memoized [...]
- All 15 existing tests pass without modification. [...] output is byte-identical.
Numbers: the new regression test (12 block objects sharing a named array type) runs in ~5ms with the fix. Without it, vitest times out [...] Against our production schema the conversion goes from 2,122ms to 1ms with identical output.
One semantic note worth flagging: a memoized expansion is computed under the ancestor chain of wherever it was first reached. [...] No existing test pins a case where the difference is observable.
The merged PR body ends with a generated-by footer; that's the one part not to copy — the anti-patterns below ban it.
Why it's canonical: opens with the lived symptom, diagnoses with the actual
growth mechanism, states the fix as an insight about the platform
(Schema.compile canonical instances), the careful-abouts each pair a
decision with the test guarding it, numbers have before/after + methodology,
and it volunteers a behavioral change nobody would have caught in review.
Structure to copy (see https://github.com/portabletext/editor/pull/2772 for the full text):
## What opens with the concrete driver (Studio's render-pipeline work
needs listIndex), generalizes to the class of consumers (derived state),
then shows the API with a fenced example and the exact test pinning the
motivating use case end-to-end.## Design notes gives each contested decision a paragraph with its
reasoning and its pinning test: why the stream is ungated (with the test
pinning the contrast), delivery order under normalization (both real
orders, which test pins which), error isolation, wildcard listeners.## Tests / ## Changes inventory sections.© portabletext, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/pr-descriptions of portabletext/editor.
Open the folder on GitHubat commit 60a494b
PR Descriptions 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| PR Descriptions this skillportabletext/editor | 280 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Changesets Pull Request to Mainbreaking-brake/cc-wf-studio | 5.4k | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| Code Reviewvictorgarciaesgi/regle | 506 | — | ~470 | Automated safety check: Pass | MIT | |
| Link Workspace Packagesnomcopter/react-mosaic | 4.8k | 6 repos | ~760 | Automated safety check: Pass | Custom licence | |
| Pull Requestspnpm/pnpm | 37k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Nullable New Paramsremotion-dev/remotion | 62k | — | ~1k | Automated safety check: Pass | Custom licence |
breaking-brake/cc-wf-studio
Opens a pull request to main in a pnpm and Changesets monorepo, after working out which packages changed and making sure a changeset file exists.
victorgarciaesgi/regle
Mandatory pre-commit validation for every Copilot code review on pull requests in the regle monorepo.
nomcopter/react-mosaic
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
pnpm/pnpm
Take a change through a pull request in the pnpm repository — opening it, then staying with it after every push until CI is green and the review round is quiet.
remotion-dev/remotion
Fix newly added optional parameters, optional React props, and optional type/interface members in Remotion monorepo diffs by converting internal APIs to required nullable values and updating call…
verdaccio/verdaccio
Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.
portabletext/editor
Write clear, concise, accessible product copy for interfaces, docs, and system messages.
portabletext/editor
How to write changesets in the Portable Text Editor monorepo.
portabletext/editor
How to write commit messages in the Portable Text Editor monorepo.
portabletext/editor
How the next prerelease branch for the upcoming editor major works in the Portable Text Editor monorepo.
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.
portabletext/editor
How to write and review code comments in the Portable Text Editor monorepo.
Works with
Categories
How to write pull request descriptions for the Portable Text Editor monorepo. PR Descriptions is an agent skill from portabletext/editor. How to write pull request descriptions for the Portable Text Editor monorepo.
PR Descriptions fits situations like: editing a PR here; tasks that involve Pull requests; tasks that involve Monorepo tooling.
Run `npx skills add portabletext/editor --skill pr-descriptions -a claude-code`. Or copy the skill folder (.agents/skills/pr-descriptions in portabletext/editor) into .claude/skills/pr-descriptions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add portabletext/editor --skill pr-descriptions -a codex`. Or copy the skill folder (.agents/skills/pr-descriptions in portabletext/editor) into .agents/skills/pr-descriptions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add portabletext/editor --skill pr-descriptions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-descriptions, .gemini/skills/pr-descriptions, .github/skills/pr-descriptions and .opencode/skills/pr-descriptions in your project.
Going by SKILL.md and its folder, PR Descriptions needs the command-line tools its instructions call (pnpm and gh).
SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
PR Descriptions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with PR Descriptions: Changesets Pull Request to Main (breaking-brake/cc-wf-studio, 5.4k stars), Code Review (victorgarciaesgi/regle, 506 stars), Link Workspace Packages (nomcopter/react-mosaic, 4.8k stars) and Pull Requests (pnpm/pnpm, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.