pr-description-skill

Generate a Markdown PR body for microsoft/apm with TL;DR, WHY, WHAT, and HOW sections.

3.5k|319|Updated Sep 18, 2025
One-click install
npx skills add https://github.com/microsoft/apm --skill pr-description-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-description-skill
Source: https://github.com/microsoft/apm/tree/main/.apm/skills/pr-description-skill
Command: npx skills add https://github.com/microsoft/apm --skill pr-description-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

Automates the creation of polished PR bodies for microsoft/apm, ensuring a consistent, evidence-backed, and machine-friendly format that reviewers can skim quickly.

Core Features & Use Cases

  • Self-contained PR body: outputs a single Markdown document suitable for gh pr create --body-file, including TL;DR, Problem (WHY), Approach (WHAT), Implementation (HOW), optional diagrams, trade-offs, validation results, and a How-to-test section.
  • Anchored, evidence-backed claims: supports verbatim anchors linked to canonical sources to improve traceability and auditability.
  • Strict structure and constraints: enforces a fixed section order, line count targets, and mermaid diagram validation to keep PR bodies scannable.
  • Diagram support: references diagrams in assets/mermaid-conventions.md to illustrate non-trivial changes.

Quick Start

Ask the skill to generate a PR description for the current branch.

Frequently Asked Questions about pr-description-skill

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

FAQPage Schema
How do I generate a markdown PR body with TL;DR and validation for GitHub?

To generate a markdown PR body, this Skill composes TL;DR, WHY, WHAT, and HOW sections into a single document. It enforces strict structure, line count targets, and validation rules to produce an evidence-backed artifact suitable for gh pr create --body-file.

What is the best way to create an evidence-backed pull request description?

The best way to create an evidence-backed pull request description is using verbatim anchors linked to canonical sources. This Skill generates a deterministic PR body that improves traceability and auditability by grounding claims in trusted documentation and validation output.

Can I use this PR description generator with gh pr create --body-file?

Yes, you can use this PR description generator with gh pr create --body-file. The output is a self-contained Markdown document designed to be directly consumed by the GitHub CLI, including optional mermaid diagrams and a fixed How-to-test workflow section.

How does mermaid diagram validation work for PR bodies?

Mermaid diagram validation for PR bodies works by referencing conventions in assets/mermaid-conventions.md. The Skill enforces strict structural constraints and validates diagrams to ensure PR bodies remain scannable and correctly illustrate non-trivial changes.

What are the limitations of using a fixed validation rubric for PR descriptions?

A limitation of using a fixed validation rubric for PR descriptions is reduced flexibility. The Skill enforces a strict section order, line count targets, and encoding rules specifically optimized for microsoft/apm, which may not suit repositories requiring unconventional PR body formats.