Command Palette

Search for a command to run...

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

pr-description-skill

БесплатноЗапускает вложенные скриптыНе проверен

Use this skill to write the PR description (PR body) for any pull request opened against microsoft/apm. Produces one self-sufficient GitHub-Flavored Markdown…

microsoftот microsoft★ 4 492 звезды на GitHub

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

PR Description Skill -- Anchored, Concise, Validated PR Bodies

When to use

Trigger this skill on any of the following intents:

  • "write a PR description"
  • "draft a PR body"
  • "open a PR" / "open this PR" / "let's open the PR"
  • "fill in the PR template"
  • "summarize this branch as a PR"
  • "create the PR write-up"

Reusable for any PR against microsoft/apm. The output is one markdown file that the orchestrator pastes into gh pr create --body-file or surfaces to the maintainer.

Output charset rule (read this first)

The repo-wide encoding rule at .github/instructions/encoding.instructions.md constrains source files and CLI output to printable ASCII because Windows cp1252 terminals raise UnicodeEncodeError on anything else. PR comments are NOT source code and NOT CLI output -- they are rendered by GitHub's Primer engine, which expects UTF-8 GitHub-Flavored Markdown.

Two distinct rules therefore apply:

  1. Source files in this bundle (SKILL.md, assets/*) MUST stay ASCII. They live in the repo and are subject to .github/instructions/encoding.instructions.md.
  2. The PR body output the skill produces MUST be UTF-8 GitHub-Flavored Markdown. Use em dashes, smart punctuation, alerts, collapsibles, task lists, and Unicode where it improves readability. Mermaid diagram labels MAY use Unicode -- there is no constraint here. The output is consumed by GitHub's renderer, not by a Windows terminal.

A previous version of this skill incorrectly required ASCII in the PR body. That made the output unreadable: no alerts, no collapsibles for long evidence, no em dashes, no smart quotes. Reviewers had to scroll through hundreds of flat lines instead of scanning a body shaped by GFM features.

Concision targets (hard ceilings)

The skill aims for 150-220 lines for a typical PR body. 300+ lines is a smell, not a virtue. If your draft exceeds 250 lines, run a tightening pass: every sentence that does not change the reviewer's understanding must be cut.

Per-section ceilings (enforced by assets/section-rubric.md):

Section Ceiling
TL;DR 2-4 sentences
Problem (WHY) max 6 bullets, max 3 quoted anchors total
Approach (WHAT) a table OR 3-7 bullets; may be skipped if PR is purely additive (say "additive: see Implementation")
Implementation (HOW) one short paragraph per file, OR a table; no prose walls
Diagrams Required (1-3 validated mermaid blocks) when structure or control flow is non-trivial; optional for simple, docs-only, and mechanical PRs
Trade-offs 3-5 bullets; mechanical PRs may be 1-2
Benefits 3-5 numbered items, each measurable
Validation copy-paste real command output; do not narrate
How to test max 5 numbered steps

Long verbatim quote blocks, full file listings, and full validation transcripts SHOULD live inside <details> so the body stays scannable.

Core principles (with quoted anchors)

Each rule the skill enforces is backed by a verbatim quote from one of the two reference docs. If a rule below cannot be backed by a quote, it is downgraded to a "should" with the reason given.

  1. Self-sufficient body. A reviewer must be able to read the PR body and form an opinion without opening any other doc, issue, or chat. Every WHY-claim cites the source doc inline; every named file is qualified with what changed in it; every diagram has a one-sentence legend.

    Anchor: Agent Skills, "agents pattern-match well against concrete structures".

  2. Anchored: every WHY-claim cites its source. Every claim of the form "this violates X" or "this satisfies Y" is followed by a verbatim quoted phrase wrapped in a hyperlink to the source page. Reproduce quotes character-for-character; do not paraphrase inside link text.

    Anchor: PROSE, "Grounding outputs in deterministic tool execution transforms probabilistic generation into verifiable action.".

  3. Cite-or-omit. If a WHY-claim cannot be backed by a verbatim quote, drop it or soften to a tradeoff statement. Never invent justification.

    Anchor: Agent Skills, "Add what the agent lacks, omit what it knows".

  4. Visual aid where structure is non-trivial. Changes with non-trivial structure or control flow MUST include 1-3 validated mermaid diagrams. Simple, docs-only, and mechanical PRs may omit the section. Add a second only when the relationships are non-trivial. Never add a third unless it earns its place. Each diagram MUST be preceded by a one-sentence legend.

    Anchor: Agent Skills, "agents pattern-match well against concrete structures".

  5. Trade-offs explicit. Address every non-obvious decision (option chosen vs option rejected)

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

Вложенные файлы

apm.ymlassets/mermaid-conventions.mdassets/pr-body-template.mdassets/scenario-evidence-rubric.mdassets/section-rubric.mdevals/.gitignoreevals/README.mdevals/content/auth-refactor.jsonevals/content/dep-bump.jsonevals/content/docs-only.jsonevals/evals.jsonevals/results/.gitkeepevals/triggers.jsonscripts/run_evals.py

FAQ

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

Use this skill to write the PR description (PR body) for any pull request opened against microsoft/apm. Produces one self-sufficient GitHub-Flavored Markdown artifact: TL;DR, Problem (WHY), Approach (WHAT), Implementation (HOW), validated mermaid diagrams when structure is non-trivial, explicit trade-offs, validation evidence, and a How-to-test section -- with every WHY-claim backed by a verbatim quote from PROSE or Agent Skills. Activate when the user asks to "write a PR description", "draft a PR body", "open a PR", "fill in the PR template", or any equivalent.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить pr-description-skill с