Command Palette

Search for a command to run...

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

pr-descriptions

БесплатноБез исполняемых скриптовНе проверен

How to write pull request descriptions for the Portable Text Editor monorepo. Use whenever opening or editing a PR here. Covers the prose shape (no fixed…

portabletextот portabletext★ 290 звёзд на GitHub

Об этом скилле

Writing PTE PR descriptions

Process

  • Before 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.
  • Browser tests: complement AGENTS.md's per-package baseline. A contained change may run just its own file (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.
  • Always open as draft (gh pr create --draft); a maintainer marks it ready and merges. Never gh pr merge.
  • Title = the main commit subject (conventional format).
  • Use --body-file, never a heredoc with backticks inside $( ): backticks in the body survive intact.
  • The repo has no PULL_REQUEST_TEMPLATE.md, so the body is prose, not a form to fill in.
  • The description stands on its own: no internal context, ever. No issue-tracker ticket IDs, no customer or partner names, no support threads, no Slack discussions, no "a user reported" or "requested by". Describe the observable failure or need itself ("the floating comment button intermittently fails to appear on the first selection"), never who reported or requested it. Related work is referenced by PR number or by naming the mechanism ("tracked separately as a follow-up"); the linked issue links to the PR, never the reverse. Ticket and support context lives wherever the work is tracked and in support channels, not in the PR.

Shape

  • Prose, no fixed sections. The body is a few plain paragraphs: what the user or caller saw, why it happened in code terms, what the change does, and any behavioral change or caveat. No headings, no template. A small fix is often two or three short paragraphs; a feature earns more paragraphs, not sections.
  • Open with the observable pain, before the mechanism: the failure a user or caller hits, or for internal-only PRs the problem that makes the change necessary. The description stands on its own; explain the problem in terms of the code, not the PR graph, and reference another PR only when the reader cannot follow the description without it.
  • Don't paste the changeset. The changeset is the consumer sentence for the changelog; the body says the same thing in its own words, with the example and mechanism a changeset leaves out. Sentences about the changeset ("a changeset rides along") are banned.
  • Code examples when they carry the point: a new or changed API, a patch or value shape, a before and after a reviewer would otherwise have to reconstruct from the tests.
  • Prose over bullets. Each design decision gets a paragraph carrying its own reasoning; bullets flatten the why out. A short bullet list is acceptable only for genuinely parallel items (e.g. "things I was careful about").
  • No ## 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...").
  • Justify each non-obvious decision inline, paired with the test that pins it.
  • Stacked or extracted PRs state why they are separate and what depends on them, referencing the other PR only when the reader needs it (#2777: "Extracted from #2772 because it changes behavior for all existing editor.on events ... #2772 stacks on this").
  • No generated-by footers, no emoji banners.

Honesty

  • Volunteer behavioral changes: one nobody would catch in review gets its own sentence, even a narrow one.
  • Say what is not covered: an untested path, a case deliberately left out of scope.
  • Perf numbers carry before/after and methodology (environment, run count, what was measured), never a bare percentage.
  • No boilerplate self-assessment. "Type-only change", "no changeset needed" restate the diff; state something non-obvious about blast radius instead, or say nothing.

Length: the budget

  • The body scales with the diff's blast radius, not the investigation's length. Default for a fix PR: two or three short paragraphs: the concrete example, the mechanism, one honest caveat. More paragraphs are earned only by PRs with a genuinely large blast radius; they are not the template.
  • A trivial diff earns two sentences: a verdict, and a rider naming anything else the diff also does. Zero citations, zero mechanics.
  • Everything cut must already live somewhere: mechanism in the commit bodies, diagnosis narrative and decisions on the linked issue, specifics
Полный SKILL.md на GitHub

Установить pr-descriptions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pr-descriptions?

How to write pull request descriptions for the Portable Text Editor monorepo. Use whenever opening or editing a PR here. Covers the prose shape (no fixed sections, code examples when they carry the point), honesty about behavioral changes, and length that scales with the diff's blast radius, with real merged exemplars.

Как установить скилл pr-descriptions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-descriptions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить pr-descriptions с