pr-writing

GitHub

用于撰写或修订 Pull Request 描述,聚焦合并基线与目标分支的最终净变更。适用于 Squash Merge 场景,指导如何清晰阐述系统变更、架构决策及验证情况,为审查者提供完整上下文。

developer-skills/pr-writing/SKILL.md telepath-computer/television

Trigger Scenarios

需要编写 PR 描述时 需要修订现有 PR 描述以符合最终变更视图时

Install

npx skills add telepath-computer/television --skill pr-writing -g -y
More Options

Non-standard path

npx skills add https://github.com/telepath-computer/television/tree/main/developer-skills/pr-writing -g -y

Use without installing

npx skills use telepath-computer/television@pr-writing

指定 Agent (Claude Code)

npx skills add telepath-computer/television --skill pr-writing -a claude-code -g -y

安装 repo 全部 skill

npx skills add telepath-computer/television --all -g -y

预览 repo 内 skill

npx skills add telepath-computer/television --list

SKILL.md

Frontmatter
{
    "name": "pr-writing",
    "description": "Write or revise pull request descriptions for squash-merge review, explaining the final net change against the merge base with the actual target branch rather than development history."
}

PR writing

Write for a capable reviewer who sees the final squash diff and the PR's base branch. Describe the complete net change against the merge base with that actual target. For stacked PRs, the target is the predecessor branch: explain only this PR's own diff.

Explain the system change, not merely the changed files or "implements feature X." Scale detail to the change, giving enough context to understand what it is, how it works, its important moving parts, and why significant decisions make sense. Cover relevant architecture, runtime behavior, primary mechanisms and tools, technologies or dependencies, data flow, module design, and integration boundaries. Include cross-file invariants or relationships the diff does not make obvious. When relevant, discuss how policies and conflicts between the branch and its target were reconciled.

Organize around the final behavior, architecture, validation, and important decisions. Neither the latest incremental edits nor the sequence of branch work describes the full result the reviewer must assess.

Draft and ready PRs serve the same reader: someone assessing the change without the working conversation. Keep routine coordination in task records or conversation: approvals, review assignments, workflow transitions and pending process steps do not belong in the description. Leave out session details and agent names; when identifying an agent matters, say "an agent".

Write for the visible diff

Apply cold-reader and plain-English, including the cold-reader self-audit search before publishing.

Comparisons with the base are useful when both sides appear in the review: "removed flag --foo" works if the flag exists in the base and its deletion is visible. Intermediate commits, reverted renames, design conversations, and abandoned implementations are unavailable to the squash reviewer. Do not describe replacing code absent from the squashed diff or compare with an unshipped alternative.

Explain rationale positively: "Library X provides Y." Include it when a reviewer would plausibly wonder about the choice. Rationale that depends on discussing an alternative absent from the final diff belongs in design records or the relevant incremental commit, not the PR body.

State what was actually validated and any material limits, explaining what the evidence establishes about the changed behavior. Include detail when it helps the reader assess confidence or investigate a relevant uncertainty, and retain any check record a spec explicitly requires. Never imply an unperformed check passed.

Publish exact text

Treat the body as publication content. Draft long-form PR text in a plain temporary Markdown file exactly as reviewers should read it, with actual newlines and no diff markers, patch prefixes, or shell interpolation. Send that file through a file-based GitHub API path, then verify the stored body. Never compose PR prose inline in shell commands or reuse patch-formatted text as the body.

Version History

  • a8e73fb Current 2026-10-18 15:27

Same Skill Collection

developer-skills/cold-reader/SKILL.md
developer-skills/deploy-tv-admin-guide/SKILL.md
developer-skills/deploy-tv-update-channel/SKILL.md
developer-skills/logical-merging/SKILL.md
developer-skills/plain-english-full/SKILL.md
developer-skills/plain-english/SKILL.md
developer-skills/tvdev-contribute/SKILL.md
developer-skills/tvdev-review/SKILL.md
developer-skills/tvdev-setup/SKILL.md
packages/skills/skills/tv-calendar/SKILL.md
packages/skills/skills/tv-sidebar-view/SKILL.md
packages/skills/skills/tv-table/SKILL.md
packages/skills/skills/tv-tasks/SKILL.md
developer-skills/complexity-inoculation/SKILL.md

Metadata

Files
0
Version
a8e73fb
Hash
a9f83fad
Indexed
2026-10-18 15:27

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 22:50
浙ICP备14020137号-1