explain-pr
Skill11 starsChanged 4 months agoMITView on GitHub
Use before shipping, when the user wants to understand their own branch — "explain what we did", "walk me through this branch", "what am I about to ship", "why did we change that", or any ask to account for the current diff before running tgc-skills:ship. Explains the change back to the user and flags anything it cannot justify. Read-only; not a PR description writer, not a code review.
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Done: every change in the diff is either explained with evidence or listed as unjustified, and the user has decided what to do about the …
- Very specific: line 24
Gather the why, before forming a view: Commit messages, the branch name, any plan or requirements doc the branch touches, the linked …
- Very specific: line 37
Report in the chat: Never write the explanation to a file, and never offer to.
- Very specific: line 43
Hand off: When tgc-skills:ship invoked this skill, return the report to it.
- Very specific: line 50
Read-only: never edits code, commits, pushes, or comments on GitHub.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Explain PR — account for the diff before you ship
Walk the user through their own branch: what changed, why, and what neither of you can justify. Agent-written code ships without ever being understood; this is the checkpoint that catches it.
Done: every change in the diff is either explained with evidence or listed as unjustified, and the user has decided what to do about the unjustified ones.
Never: invent a plausible "why". An unexplained change is the finding. Say ???.
Steps
- Resolve the diff. The base is the PR's
baseRefNamewhen a PR exists, else the GitHub default branch. Diff fromgit merge-base --fork-point origin/<base> HEAD(falling back togit merge-base origin/<base> HEAD), plus uncommitted and untracked work. Not on a feature branch, or the diff is empty — say so and stop. Say what range you used. - Gather the why, before forming a view. Commit messages, the branch name, any plan
or requirements doc the branch touches, the linked issue/PR (
gh), and this conversation. Read the code itself last — it tells you what, rarely why. - Group into changes, not files. One entry per intent, however many files it spans. A 400-line diff is usually 3-5 real changes.
- Explain each one: what it does, why it exists, and the
file:lineevidence for both. Mark the "why" source: commit / plan doc / issue / conversation / inferred-from-code.inferred-from-codeis a weak source — say so. - Flag what has no why. A change with no evidence trail gets
Why: ???. Name the likely cause: leftover debugging, a speculative abstraction, an agent's belt-and-suspenders guard, an unrelated drive-by, or a rename that touched more than it meant to. Also flag changes that contradict a plan doc in the repo, and anything in the diff the user did not ask for. - Report in the chat. Never write the explanation to a file, and never offer to.
Open with
X explained, Y unjustified, then a numbered list with two or three lines per change: what it does,Why: <reason> (<source>)orWhy: ???, andfile:line. Under 400 words for a normal branch. Only an unjustified change earns extra lines: name the concrete next move (keep it and say why here, cut it, or split it to its own branch). Suggest nothing else — no refactors, no improvements, no review notes. - Hand off. When
tgc-skills:shipinvoked this skill, return the report to it. Otherwise, when the user is satisfied, offer/tgc-skills:ship; never run it yourself, and never present the branch as ready while unjustified changes are unresolved.
Boundaries
Read-only: never edits code, commits, pushes, or comments on GitHub. Bugs and style
belong to tgc-skills:polish and tgc-skills:review; the PR body belongs to
tgc-skills:ship.
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- luainkernel/lunatik★ 610same name
- Aryansharma28/skills-aryan★ 8same name
- mryll/skills★ 8same name
- kimgoetzke/coding-agent-configs★ 2same name
- timothyjoh/skills★ 1same name
- kameyama/claude_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- checkpointSkill
- cmux-orchestrateSkill
- herdr-orchestrateSkill
- mergedSkill
- orchestrate-listSkill
- orchestrate-planSkill
- orchestrateSkill
- polishSkill
- review-fixSkill
- review-loopSkill
- reviewSkill
- shipSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

