write-a-pr-description

Writes PR descriptions with file-tree diffs, critical paths, and data flow notes.

1|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/zhiyuan-zhang0206/Ava --skill write-a-pr-description-zhiyuan-zhang0206
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: write-a-pr-description
Source: https://github.com/zhiyuan-zhang0206/Ava/tree/main/.agents/skills/write-a-pr-description
Command: npx skills add https://github.com/zhiyuan-zhang0206/Ava --skill write-a-pr-description-zhiyuan-zhang0206

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? PR descriptions often jump straight from a vague summary to a raw commit diff, forcing reviewers to read every changed line to understand the design. This Skill structures the PR body as an intermediate state so reviewers can catch design errors without reading the full diff. ## Core Features & Use Cases - File-tree diff: Renders the codebase structure with each file marked (A/M/D/R) plus a note, and flags critical paths (new entry points, removed entry points, cross-boundary calls) with a star marker. - Prose data flow supplement: Walks through critical control flow, prod-vs-PR behavior tables for runtime boundary crossings, and explicit lists of untested or uncovered boundaries. - Rendering invariants: Prevents broken GitHub markdown by enforcing quoted HEREDOC delimiters and banning backslash-escaped backticks, with a verification command using the gh CLI. - Use Case: After implementing a change that splits a daemon into two jobs and retires a legacy channel, use this Skill to produce a PR body where reviewers instantly see the new entry point, the runtime behavior change, and what is not tested. ## Quick Start Write a PR description for my current branch changes following the file-tree diff and data flow format.

Frequently Asked Questions about write-a-pr-description

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a good PR description for code review?▼

Structure the PR body as a file-tree diff marking each changed file with (A/M/D/R) plus a note, then add prose explaining runtime data flow only when the tree alone is insufficient. Explicitly list what is not tested so reviewers can assess risk without reading the full diff.

What should a pull request description include?▼

Include a file-tree diff showing what changed, star markers on critical paths like new entry points or removed ones, a prose walkthrough of control flow when behavior changes, and an explicit section on untested or uncovered boundaries.

Why does my PR body code fence break on GitHub?▼

Broken code fences usually come from backslash-escaped backticks introduced by an unquoted HEREDOC in gh pr create. Use cat <<'EOF' with a quoted delimiter so backticks pass through raw, then verify with gh api and grep that no escaped backticks remain.

When can I skip the prose data flow section in a PR?▼

Skip the prose section when the file tree alone answers what runtime behavior changed, such as a typo fix or small rename. Add it whenever the change crosses a runtime boundary like a new container, CI step, or lambda, or alters critical control flow.

What are common PR description anti-patterns?▼

Common anti-patterns include flat bullet lists of changed files with no hierarchy, artificially compressed notes that hide context, treating a happy-path test as full coverage, and abstract verbs like integrated or optimized that conceal internal control flow.