Command Palette

Search for a command to run...

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

writing-pr

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

Use when writing or editing a pull request title or body, and after every push to a branch that has an open PR - a fix, a review change, a rebase that changes…

e2e-incот e2e-inc★ 14 545 звёзд на GitHub

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

Writing a PR title and body

The PR body is the source of truth for the change. A reviewer reads it before the diff and should finish it knowing what changed, why, how it works, and what proves it. The diff then confirms what the body already said.

Source of truth

  • The body describes the head commit, always. A push that changes behavior, API, scope, or a measured number updates the body in the same step (gh pr edit --body-file), before the reply on any review thread.
  • The body covers everything the diff does and claims nothing else. A reviewer reports a behavior change the body skips, or a claim the diff does not back, as a finding.
  • Evidence comes from the head. When a push could change a benchmark, a recording, or pasted output, capture it again or delete it.
  • Nothing a reviewer needs lives only in a review thread, a commit message, or a chat. Fold a decision made in review into the body.
  • Every edit to the body, the first draft and each later update, gets the unslop pass before it is posted ("Voice" below).

After every push to an open PR

This applies to every push, whichever skill or task produced it: a review fix, a follow-up the human asked for, a babysit round, a rebase that resolved a conflict by changing code.

  1. body=$(mktemp) && gh pr view --json body -q .body > "$body". No PR for the branch means nothing to do.
  2. Read the body against what the push changed (git diff <previous head>..HEAD), section by section:
    • ## What: still what a user or caller meets? New flag, renamed option, changed default, dropped scope.
    • ## Why: still the reason, if the approach changed.
    • ## How it works: a step for each new moving part, steps for removed code deleted, code refs still pointing at the right lines.
    • ## Verified: capture again, or remove, any output, benchmark table, or recording the push could have changed. Never leave evidence from an older head.
    • Title: still names the outcome, ! added if the push made it breaking.
  3. Run the unslop pass on every sentence you added or changed, and on the neighbors it no longer fits with.
  4. gh pr edit <pr> --body-file "$body", with --attach for new media, before replying on review threads.
  5. Nothing to change (a typo, a lint fix, a test-only tweak the body does not describe)? Leave it. Do not append a changelog or an "Updates" section. The body describes the change as it stands.

A change to how the PR works that is not in the body is a defect in the PR, the same as a failing check.

Title

  • Conventional Commits, matching git log: fix(playwright): provision the browser in a runner-side prepare hook. PRs squash-merge with the number appended, so the title is the commit.

  • Mark spec or API breaks with ! (feat(config)!: ...), same as the commit.

  • Name the outcome, not the activity. "install builds with the appPath option", not "agent-device changes".

  • e2e team members end the title with the Linear ticket the PR resolves: fix(web): wait for the frame before the click (ENG-123). Linear links the PR from the id and closes the ticket on merge. Finding the ticket:

    • With a Linear tool (plugin, MCP server, CLI), search for it yourself by the branch name, the issue the PR fixes, and the change's keywords. Use a ticket only when it clearly covers this change.
    • Without one, or when the search finds nothing or several candidates, ask the user for the ticket id. Never guess an id, and do not create a ticket unasked. If they say there is none, leave the title without one.

    Community PRs skip this.

Body

The sections of the PR template, in its order. Keep each one short.

## What

The change as a user or caller meets it, in one to three sentences or bullets. Concrete nouns: the flag, the function, the error code, the output line. For an API change, a code sample of the new usage goes here.

## Why

The problem that led here: the bug and who hits it, the request, the measurement. Then what this does about it, in one sentence. Link the issue under ## Issue instead of retelling it.

## How it works

Numbered steps a reviewer can follow through the diff, in the order the code runs (or, for a refactor, the order to read it in).

  • One step per moving part: what happens and where, with a code ref (packages/e2e/src/run/execute.ts:42 or a permalink) instead of a paraphrase of the code.
  • Say what each step replaces when the old behavior matters.
  • A mermaid diagram on top for anything with flow or state: runner phases, engine hooks, replay paths, before/after architecture.
  • Name the decision a reviewer would otherwise ask about: the alternative you dropped and why, in one line.
  • Spec changes: name the chapter, schema, and suiteVersion bump in one step so the reviewe
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Use when writing or editing a pull request title or body, and after every push to a branch that has an open PR - a fix, a review change, a rebase that changes behavior, a new benchmark - to bring the PR description back in line with the change.

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

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

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

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

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

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