# Explain PR

Explain a PR: the background problem and the proposed solution

- Repository: https://github.com/dyoshikawa/rulesync (1577 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add dyoshikawa/rulesync --skill explain-pr -g -a claude-code -y`
Codex: `npx skills add dyoshikawa/rulesync --skill explain-pr -g -a codex -y`
Cursor: `npx skills add dyoshikawa/rulesync --skill explain-pr -g -a cursor -y`
Gemini CLI: `npx skills add dyoshikawa/rulesync --skill explain-pr -g -a gemini-cli -y`

## Description

Explain a PR: the background problem and the proposed solution

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

target_pr = the user's request

If target_pr is not provided, use the PR of the current branch.

## Step 1: Gather PR Information

Run the following in parallel:

- Get the PR description and metadata: `gh pr view <pr_number>`
- Get the PR diff: `gh pr diff <pr_number>`

## Step 2: Analyze and Explain

Based on the PR content, explain the following two aspects:

1. **Background (Problem/Motivation):** What issue or limitation existed before this PR? Why was this change needed?
2. **Solution:** What approach does this PR take to address the problem? Summarize the key changes and design decisions.

Keep the explanation concise and focused. Use the language of the current conversation (follow the user's language).

