pr-describe

pr-describe is a skill for Claude Code from MuhammadUsmanGM/claude-code-best-practices. It costs 44 tokens per session (470 once invoked), scanned A, original, MIT.

A guide for drafting a pull-request title and description from the current Git branch's commits and changes. A pull request is a proposed code change submitted for review; this guide prepares its text but does not submit it.

In plain words
What is it for?
Use it to identify the base branch, summarize changes and reasons, follow an existing repository template, and list concrete testing steps.
Why use it?
It turns the branch history and file changes into a clear review summary without requiring you to write the pull-request text from scratch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to identify the base branch, summarize changes and reasons, follow an existing repository template, and list concrete testing steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/muhammadusmangm/claude-code-best-practices/pr-describe
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MuhammadUsmanGM/claude-code-best-practices --skill pr-describe
Clone the repo
git clone --depth 1 https://github.com/MuhammadUsmanGM/claude-code-best-practices

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-describe

README.md
[![agentmods](https://agentmods.dev/badge/skills/muhammadusmangm/claude-code-best-practices/pr-describe/github.svg)](https://agentmods.dev/skills/muhammadusmangm/claude-code-best-practices/pr-describe)
Your own site
<a href="https://agentmods.dev/skills/muhammadusmangm/claude-code-best-practices/pr-describe"><img src="https://agentmods.dev/badge/skills/muhammadusmangm/claude-code-best-practices/pr-describe/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-describe

Your own site · 80×15
<a href="https://agentmods.dev/skills/muhammadusmangm/claude-code-best-practices/pr-describe"><img src="https://agentmods.dev/badge/skills/muhammadusmangm/claude-code-best-practices/pr-describe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00470
Opus 5 $0.00022 $0.00235
Sonnet 5 $0.00009 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 9d ago against content hash bff5d4ce4ac5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pr-describe scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/pr-describe/SKILL.md · 52 lines

What it actually says

PR Describe

Draft a pull-request title and body. Do not open the PR — hand the text to the user.

Steps

  1. Detect the base branch: check git remote show origin | grep 'HEAD branch', fall back to main.
  2. git log <base>..HEAD --no-merges --reverse --format='%h %s%n%b' — read every commit, not just the latest.
  3. git diff <base>...HEAD --stat for scope, then targeted git diff <base>...HEAD -- <path> for files that look important.
  4. If a PR template exists at .github/pull_request_template.md or .github/PULL_REQUEST_TEMPLATE.md, follow its structure.

Title

  • ≤ 70 characters, imperative mood, no trailing period.
  • Prefix with a Conventional Commits type only if the repo's existing PR titles do.

Body

Default structure (unless a template overrides):

## Summary
<2-4 bullets: what changed and why — not a commit list>

## Changes
<grouped, human-readable bullets; collapse noisy refactors>

## Test plan
- [ ] <explicit verification step>
- [ ] <explicit verification step>

## Notes
<risks, migrations, follow-ups — omit the section if empty>

Rules

  • Focus on why, not what. The diff already shows what.
  • Never invent issue numbers or Jira tickets. Only include Closes #N if a commit message references it.
  • If the branch is empty relative to base, stop and tell the user.
  • Do not run gh pr create or push. Output the title and body as a single markdown block the user can paste.

Output

Exactly two fenced blocks: title and body. Nothing else.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 52 lines · 44 tokens per session scan A bff5d4ce4ac5

Subscribe to this mod's changes

pr-describe is a skill published in the GitHub repository MuhammadUsmanGM/claude-code-best-practices (79 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 470 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.