# Explain PR

> Explain PR is an open-source agent skill for developer tools. Quizzes you on an agent-written PR before you mark it ready for review. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tonyghiani/ai-essentials/tree/main/skills/explain-pr
- **Repository:** https://github.com/tonyghiani/ai-essentials
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** explain-pr
- **Collection:** https://github.com/tonyghiani/ai-essentials
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/explain-pr)
- [License: MIT](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/explain-pr)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [PR](https://ai-powered.com/skills/pr): PR is an open-source agent skill for developer tools.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [PR writer](https://ai-powered.com/skills/pr-writer): PR writer is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Prepare implementation review comments on a pull request](https://ai-powered.com/skills/prepare-implementation-review-comments-on-a-pull-request): Prepare implementation review comments on a pull request is an open-source agent skill for developer tools.
- [PR classify](https://ai-powered.com/skills/pr-classify): PR classify is an open-source agent skill for developer tools.
- [PR address feedback](https://ai-powered.com/skills/pr-address-feedback): PR address feedback is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/explain-pr
