pr-describe

pr-describe is a command for Claude Code from SyloRei/claude-godmode. It costs 37 tokens per session (595 once invoked), scanned A, original, MIT.

A command that drafts the text for a pull request, the explanation developers attach when proposing code changes for merging. It uses the branch's commits and differences from its base branch.

In plain words
What is it for?
Use it to create a pull-request summary, change list, and test plan. It does not open or publish the pull request.
Why use it?
It removes the need to manually reconstruct what changed, why it changed, and how it was tested.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-godmode plugin — 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers shipped together

Good fit Use it to create a pull-request summary, change list, and test plan. It does not open or publish the pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sylorei/claude-godmode/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.

Clone the repo
git clone --depth 1 https://github.com/SyloRei/claude-godmode

Made for: Claude Code.

Or install claude-godmode, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers.

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/commands/sylorei/claude-godmode/pr-describe/github.svg)](https://agentmods.dev/commands/sylorei/claude-godmode/pr-describe)
Your own site
<a href="https://agentmods.dev/commands/sylorei/claude-godmode/pr-describe"><img src="https://agentmods.dev/badge/commands/sylorei/claude-godmode/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/commands/sylorei/claude-godmode/pr-describe"><img src="https://agentmods.dev/badge/commands/sylorei/claude-godmode/pr-describe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 595 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.00037 $0.00595
Opus 5 $0.00018 $0.00298
Sonnet 5 $0.00007 $0.00119
Haiku 4.5 $0.00004 $0.00060

Measured 9d ago against content hash 2ce5208f2461, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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.

commands/pr-describe.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pr-describe — draft a pull-request description

Compose a clear PR description from the branch's commits and diff against its base branch. A reactive helper — it does not spawn agents and is not part of the spine. (Pushing and opening the PR is /ship's job; this only drafts the body.)


The Job

  1. Resolve the base branch and the commit range.
  2. Read the commits and the diff.
  3. Draft summary / what changed / test plan.

1. Resolve base and range

Determine the base branch (the branch this one will merge into) and the range of commits unique to the current branch:

BASE=$(git symbolic-ref --quiet refs/remotes/origin/HEAD 2>/dev/null | sed 's@.*/@@')
BASE=${BASE:-main}
git log --oneline "$BASE"..HEAD     # commits on this branch
git diff --stat "$BASE"...HEAD      # files changed vs base

If the base cannot be resolved, ask the user which branch this PR targets.

2. Draft the description

Build the body from the commit subjects/bodies and the diff — the commits tell you why, the diff tells you what:

## Summary

One or two sentences: what this PR does and why it exists.

## What changed

- Bullet per logical change, grounded in the commits and diff.

## Test plan

- How the change was verified (gates run, tests added, manual steps).

Keep it terse and factual. Do not invent test steps that were not run — if you cannot tell how it was tested, say so and ask. Print the description for the user to paste when opening the PR.


Output

Close the run with a short status block:

  • Status — PR description drafted from the branch's commits and diff against the base.
  • Produced — the Summary / What changed / Test plan body above, grounded in the commits and diff.
  • Next — paste it into the PR when you open it; /ship owns the actual push and PR creation.

  • /ship — owns pushing the branch and opening the PR; this command only drafts the body for it to carry.
  • /changelog — draft a Keep a Changelog entry from the same commit range to accompany the PR.

Read the full file on GitHub · 80 lines

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 · 80 lines · 37 tokens per session scan A 2ce5208f2461

Subscribe to this mod's changes

pr-describe is a command published in the GitHub repository SyloRei/claude-godmode (3 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 595 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-31.