Copilot agent skill: write the PR description from the diff
A free SKILL.md for GitHub Copilot that writes a pull request title and description from the actual diff: fills your PR template, links issues correctly, and never claims tests passed unless they ran.
- Install
.github/skills/pr-description/SKILL.md- Last tested
- GitHub Copilot agent skills docs · 2026-11-19
Agent skills are folders with a SKILL.md file that Copilot loads only when a task matches the skill's description, so a detailed workflow doesn't sit in every request the way custom instructions do. GitHub's docs, checked on November 19, 2026, say skills work with Copilot cloud agent, Copilot code review, Copilot CLI, the GitHub Copilot app and agent mode in VS Code, and that project skills can live in .github/skills, .claude/skills or .agents/skills.
The frontmatter has the two required fields: name (lowercase with hyphens, matching the folder) and description, which says when to use it. This skill needs no scripts and no allowed-tools entry, so Copilot still asks before running any shell command; GitHub's docs warn against pre-approving shell for skills you haven't reviewed. It writes the title and description from the real diff, keeps your .github/pull_request_template.md headings if you have one, and uses Fixes #123 only when the change fully resolves the issue.
Change [main] to your base branch and the title rule to match your commit style. VS Code's docs now steer new reusable workflows to skills, because prompt files only run in the deprecated Local harness, which is due to be removed in February 2027. Pair it with our free Copilot code review instructions so the reviewer and the PR author follow the same rules.
SKILL.md---
name: pr-description
description: Writes a pull request title and description from the actual diff on the current branch, using this repository's PR template if there is one. Use when asked to write, draft or update a PR description, or before opening a pull request.
---
# Writing a pull request description
Write the title and description from what the diff actually changes, not from the branch name or the request you were given.
## Steps
1. Find the base branch (usually `[main]`). Read the full diff against it and the commit messages on this branch.
2. If `.github/pull_request_template.md` (or a file in `.github/PULL_REQUEST_TEMPLATE/`) exists, fill in that template and keep its headings. Otherwise use the format below.
3. Look for a linked issue in the branch name, commits or the request. Reference it as `Fixes #123` only if this change fully resolves it; otherwise use `Refs #123`.
## Title
- Under 72 characters, imperative mood: "Add retry to webhook sender", not "Added retries" or "Webhook changes".
- Follow `[Conventional Commits, e.g. feat(api): ...]` if the repository's recent commit history does.
## Description format
```
## What
One or two sentences on what changes for users or callers.
## Why
The problem or request this solves. Link the issue.
## How
The approach in a few bullets. Mention anything non-obvious a reviewer should look at first.
## Testing
What was run and the result (commands, test names, manual steps). If nothing was run, say so.
## Risk and rollout
Migrations, config or environment variable changes, breaking changes, feature flags, and how to roll back.
```
## Rules
- Only describe changes that are in the diff. Don't claim tests pass unless you ran them in this session or the CI result is visible.
- Call out breaking changes, new dependencies, database migrations and new environment variables in their own bullet, even if they are small.
- Leave out sections that don't apply instead of writing "N/A" everywhere, except Testing, which is always required.
- Keep it short. A reviewer should understand the change from the What and How sections alone.