explain-pr

explain-pr is a skill for Claude Code from kimgoetzke/coding-agent-configs. It costs 62 tokens per session (6,362 once invoked), scanned A, original, MIT.

A guided tour of a GitHub pull request, a proposed set of code changes, using explanations and visual summaries of its diff, the exact lines that changed.

In plain words
What is it for?
Use it to learn what a pull request does, explore its files and changes, and follow the diff step by step.
Why use it?
It helps someone understand unfamiliar changes without turning the walkthrough into a formal code review.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to learn what a pull request does, explore its files and changes, and follow the diff step by step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kimgoetzke/coding-agent-configs/explain-pr
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 kimgoetzke/coding-agent-configs --skill explain-pr
Clone the repo
git clone --depth 1 https://github.com/kimgoetzke/coding-agent-configs

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 explain-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/explain-pr/github.svg)](https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/explain-pr)
Your own site
<a href="https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/explain-pr"><img src="https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/explain-pr/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 explain-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/explain-pr"><img src="https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/explain-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,362 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.00062 $0.06362
Opus 5.5 $0.00025 $0.02545
Sonnet 5.5 $0.00012 $0.01272
Haiku 4.5 $0.00006 $0.00636

Measured 2d ago against content hash cf721dd0d9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explain-pr 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 2d 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.

skills/explain-pr/SKILL.md · 427 lines

How it starts

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

Explain PR

You are tasked with helping the user understand a GitHub pull request, not review it. The goal is comprehension through visualisation and a structured, interactive tour of the diffs. You do not produce a review document. You do not score dimensions. You guide the user.

Step 1: Resolve the PR and detect mode

Verify gh is available with gh --version. If missing, tell the user this skill needs GitHub CLI and stop.

Detect the mode:

  • If any argument equals html (case-insensitive), set mode = html. The remaining arguments (if any) identify the PR.
  • Otherwise, set mode = interactive.

Resolve the PR identifier from the remaining arguments:

  • If a PR number or URL was provided:
    • If the URL points to a different repository, tell the user to switch to that repo and rerun, then stop.
    • Otherwise, extract the PR number.
  • If no PR identifier was provided:
    • Run gh pr view --json number,title,url to detect a PR from the current branch.
    • If none, stop and ask the user for a PR number or URL.

Fetch metadata and diff:

gh pr view {number} --json number,title,url,body,author,headRefName,baseRefName,headRefOid,state,additions,deletions,changedFiles,files
gh pr diff {number}

Build the permalink prefix for later use:

  • Parse {owner}/{repo} from the PR URL (https://github.com/{owner}/{repo}/pull/{number}).

  • Read {head_sha} from headRefOid.

  • Permalink for any file in this PR is:

    https://github.com/{owner}/{repo}/blob/{head_sha}/{file path}
    

Use these permalinks everywhere a file path is mentioned to the user — scope listings, walkthrough plan stops, stop headings, HTML output — so the user can click straight to the pinned source.

Recommend a conversation name. The walk is long, so get this out of the way now: open your first message to the user with a one-line naming recommendation, then carry straight on with Step 2 — do not wait for a reply. The name is explain-pr-{number}-{pr-title-abbreviated}, where {pr-title-abbreviated} is the same abbreviation used for the explanation name in Step 7 (the PR title in kebab-case, truncated to a max of 50 characters at a word boundary) — e.g. explain-pr-422-improve-explain-pr-and-review-pr-skills.

Read the full file on GitHub · 427 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed · +5 lines cf721dd0d9c7
  2. 1mo ago Changed · +5 lines 9bed2d283879
  3. 1mo ago First seen · 417 lines · 62 tokens per session scan A 08d9e0b48f4e

Subscribe to this mod's changes

explain-pr is a skill published in the GitHub repository kimgoetzke/coding-agent-configs (2 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 6,362 once invoked, about $0.0002 per session on Opus 5.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.