Help a reviewer understand a pull request before they review it. Reads the PR description, linked tickets, the full diff and the surrounding code at the PR's head commit, forms its own model of the change, then publishes an interactive explainer page as an Artifact (what changed and why, where it hooks into the existing flow, flag or mode behaviour, a playground for any pure heuristic, a short animation (an SVG scene on a GSAP timeline, Three.js or a Remotion video) when a concept is clearer in motion, a suggested review order, the places worth a careful read and questions for the author) and gives a short guide in chat. Use this whenever the user shares a PR link or number and asks to understand it, get walked through it, get a guide or explainer for it, know how or in which order to review it, or what to focus on, even if they don't say "explainer". It explains rather than reviews: use pr-review when the user wants review comments or a verdict.
Ships in pr-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turns "help me understand this PR" into an interactive page a reviewer reads before opening the diff, plus a short guide in chat. The goal is understanding: what the change does, why, where it plugs in, and where its subtleties are. It is not a review. It gives no approve or reject verdict and writes no review comments. Points of concern are framed as "confirm this is intended".
Get the metadata and description:
gh pr view <n> --repo <owner/repo> --json title,body,author,state,baseRefName,headRefName,headRefOid,additions,deletions,changedFiles,files,commits,labels,reviews,comments
Read the description and every linked ticket. Ticket bots often paste the ticket text into a PR comment. Otherwise fetch it through the ticket tracker's MCP server or CLI when one is available, and ask the user for the text when none is. The parent ticket usually holds the "why", the product decisions and what is out of scope.
Save the diff to the scratchpad (gh pr diff <n> --repo <owner/repo> > diff.patch). Read the
non-test files first, then list the test names, which show the intended behaviour:
awk '/^diff --git/{p = ($0 !~ /__tests__|\.spec\.|\.test\.|int-spec|_test\./)} p' diff.patch
grep -nE "^\+\s*(it|describe|test)(\.each)?\(" diff.patch
Adjust both patterns to the repo's language and test layout (for example def test_ in
Python or func Test in Go).
The diff alone hides what the change relies on. Read the touched functions in full, their callers and the helpers they call, at the PR's head commit:
git fetch -q origin +pull/<n>/head:refs/remotes/origin/pr-<n>
git rev-parse --short origin/pr-<n> # must equal headRefOid
git show origin/pr-<n>:<path>
Always fetch with the leading + into refs/remotes/.... A plain git fetch origin pull/<n>/head:pr-<n> silently keeps an older local branch when the PR was force-pushed, and you
end up explaining code that no longer exists. Check the short SHA against headRefOid before
reading. Run these from a local clone of the PR's repository. If you can't find one, ask the user
where it is, or read the files through gh api repos/<owner/repo>/contents/<path>?ref=<headRefOid>.
For a large PR, an Explore subagent can map callers and helpers. Read the core logic yourself.
Before writing anything, settle on these points in your own words. Each one becomes a section of the page:
off really keeps today's behaviour.Do not invent problems to fill the list. If something is fine, leave it out.
Call Artifact with action: "quickstart", intent: "other" and design_systems: false, and
follow its page guidance for a plain page. Write the HTML in the scratchpad. Sections, in this
order, each skipped when it has nothing real to show:
+add / −del, files), risk labels, the flag key, author, and a link to the PR's files tab.<short sha>, surrounding code) and what is out
of scope.Keep the copy plain and specific: name functions, files, flags and real values. Build the interactive parts with a small inline script and no libraries, except GSAP or Three.js for an animation.
An animation is one explaining tool among several. Use it when it shows something the diagram, table or playground can't, and skip it otherwise. Most PRs need none. It fits:
It does not fit renames, refactors, config changes, or anything a table already makes clear.
Pick the tool:
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js, which defines gsap),
before the inline script that uses it. Build one gsap.timeline({ paused: true }) and give each
step a label (tl.addLabel('cleaned')). The labels become chapter buttons (tl.play(label)).
An <input type="range"> bound to tl.progress() gives a scrub bar, and an onUpdate
callback changes the caption as the timeline passes each label. Animate transform,
opacity and attr values, and keep the scene's numbers and text in data, not hard-coded in
the tweens, so a case from the playground can rebuild the timeline.https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js, which defines THREE),
before the inline script that uses it. It needs no build and can react to the page's controls.
Labels are harder in a WebGL canvas, so put them in HTML overlays or CSS2D-style elements
positioned over it.npx create-video@latest, or
add remotion and @remotion/cli to an empty project), write one composition of about 10 to
30 seconds, and render it with npx remotion render <entry> <CompositionId> out.mp4. Publish
the MP4 with the page through the Artifact files map (15MB limit per binary file) and embed
it with <video controls muted playsinline>. If the Artifact tool lists a Motion type, you
can use it to make a standalone animated explainer and link to it from the page.Rules for any animation:
prefers-reduced-motion:
show the still frame and a step button instead of autoplay. With a GSAP timeline, the step
button can jump from label to label with tl.seek(label).max-width: 100%.Syntax-check the script before publishing:
sed -n '/<script>/,/<\/script>/p' page.html | sed '1d;$d' > page.js && node --check page.js
That extraction takes inline scripts only, because a <script src=…> line does not match
<script>. For a Remotion video, play the rendered MP4 once, or extract a frame
(npx remotion still) and look at it, before publishing.
Previewing a scratchpad file:// page in the browser pane shows a static snapshot without
running scripts, so it can't check the interactive parts. Don't spend turns on it.
Publish with Artifact (icon: "code", a one-sentence description). Title the page after
the change, such as <TICKET-ID> <short change name>, not "PR explainer".
For later fixes, use Edit on the file and republish the same path in the same message. Avoid
regex rewrites through scripts: when the pattern misses, half an edit lands and the page breaks.
Give the link first and say the page is private until shared. Then write a short guide that can be read without the page:
What SKILL.md sets; muted values are Claude Code's defaults
/pr-workflow:pr-explainerfrom pr-workflow
npx claudepluginhub driangle/ai-powers --plugin pr-workflow14 skills in this plugin
/change-recapRecap what changed in an area of the code over a timeframe — new features, improvements, fixes and under-the-hood work — from the pull requests merged on GitHub in that window, grouped by initiative and project where the issue tracker records them, enriched with the ticket updates and Slack threads from the same window (confirmations, rollouts, problems after merge, follow-ups), and credited to who built and reviewed each change, written so developers and managers can both read it, as an HTML page that can be published as a Claude Artifact. Typically run on Fridays for the week's recap. Use whenever someone asks what changed, shipped, got merged or happened in a repo, service, folder, product area or team this week, last week, this sprint or since a date, asks for a weekly or Friday recap, a "what's new" or a changelog-style summary of recent work, even if they don't say "recap"./commitCommit all uncommitted changes with an auto-generated conventional commit message. Use when the user asks to commit, save changes, or invokes /commit./commit-msgGenerate a one-line conventional commit message from staged changes. Use when the user asks for a commit message or invokes /commit-msg.