Skip to content
Skill

Explain PR

Quizzes you on an agent-written PR before you mark it ready for review

Explain PR is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About Explain PR

Explain PR is a comprehension check for code an AI agent produced. Given a PR number, URL, branch, or the current branch, it reads the diff, the related spec if one exists, and the tests the change adds or edits. It then writes a short explanation covering what changed and why, the riskiest part of the change, and what the tests do and do not cover, with file and line references for each claim.

After the explanation, the skill asks three to five questions one at a time, aimed at what a reviewer might challenge on the riskiest path, callers affected by a behaviour change, and what a given test would miss. Where the host tool supports a question prompt, it uses multiple choice; otherwise it asks in chat, switching to open-ended questions when options would reveal the answer. It scores the answers, explains any misses with the relevant lines, and finishes by suggesting the user mark the PR ready themselves. It is designed to never mark a PR ready, merge, or comment on it.

It expects a git repository with the GitHub CLI for PR lookups, and it relies on an ai-work command for the current-branch diff and spec directory. It is invoked manually with a slash command.

When your agent uses it

Explains a branch or draft PR the agent produced (what changed and why, the riskiest part, what the tests prove and what they miss), then quizzes the user with three to five questions they would need to answer to defend it in review, and scores the answers. A comprehension gate before the user marks a PR ready. Started by the user with /explain-pr, optionally followed by a PR number, URL or branch.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the ai-essentials plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentials

Or copy only this skill to ~/.claude/skills/explain-pr:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/explain-pr &&
cp -R "$tmp/skills/explain-pr" ~/.claude/skills/explain-pr &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/explain-pr inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/explain-pr to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/explain-pr &&
cp -R "$tmp/skills/explain-pr" ~/.agents/skills/explain-pr &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/explain-pr inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/explain-pr to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/explain-pr &&
cp -R "$tmp/skills/explain-pr" ~/.cursor/skills/explain-pr &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/explain-pr inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/tonyghiani/ai-essentials.git --path skills/explain-pr

Or copy the folder to ~/.gemini/skills/explain-pr yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/explain-pr:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/explain-pr &&
cp -R "$tmp/skills/explain-pr" ~/.copilot/skills/explain-pr &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/explain-pr inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git

Then copy ai-essentials/skills/explain-pr into your agent's skills folder as explain-pr. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Change explanation
Summarises what changed, why, and the riskiest part, with file and line references.
Test coverage review
Describes what each test would catch and which risky paths have no test.
Sequential comprehension quiz
Asks three to five reviewer-style questions one at a time and waits for each answer.
Scored feedback
Grades each answer and explains misses with the lines to re-read.
Spec cross-check
Compares the stated reason for a change against the code and flags disagreements.

Good for

  • Check that I understand a draft PR my agent wrote before I request review
  • Explain what a branch changes and which part is riskiest
  • Quiz me on the edge cases of an agent-generated patch
  • Review what the existing tests do and do not cover for this change

Explain PR FAQ

How is the skill started?

The user runs it manually with /explain-pr, optionally followed by a PR number, URL or branch. It is not triggered automatically.

Does Explain PR mark the PR ready or merge it?

No. It explicitly never runs gh pr ready, never merges and never comments on the PR. It suggests the user runs gh pr ready when they feel comfortable.

What tools does Explain PR need?

It uses the GitHub CLI (gh) to read PRs and diffs, git for branch diffs, and an ai-work command for the current branch and spec directory.

Can Explain PR publish the explanation as a web page?

Only if the host tool can publish HTML, and only after the user agrees to it.

How do I install Explain PR in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/explain-pr to use it in all your projects, or to .claude/skills/explain-pr in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.

Does Explain PR run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Explain PR?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Explain PR?

The closest alternatives to Explain PR are PR, PR review, Make PR easy to review, PR writer and Code review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from tonyghiani/ai-essentials

  1. Lets an agent read your GitHub queue at day's end and draft a morning triage report

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Finds untranslated UI strings and i18n patterns that break translation in code

    • Open source
    • 7 GitHub stars
    • Developer tools
  3. Writes pull request descriptions from a fixed summary, screenshots and testing template

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Guides an agent through resolving merge conflicts by intent, then verifying and pushing

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Triages PR review comments, then implements, replies to and resolves them

    • Open source
    • 7 GitHub stars
    • Developer tools
  6. Guides the agent through a test-first loop: failing test, then minimal implementation

    • Open source
    • 7 GitHub stars
    • Developer tools