pr-visual-explainer
Skill130 starsChanged 12 months agoMITView on GitHub
Use when the user asks to explain a pull request visually, create an HTML walkthrough, show before-and-after behavior, or add diagrams for a PR. Triggers automatically for requests such as "explain this PR" when a visual artifact would materially improve understanding; does not run merely because a PR was created.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- branch-cleanerSkill
- bug-triageSkill
- ci-fixSkill
- commit-workSkill
- create-prSkill
- dependency-upgraderSkill
- docs-syncSkill
- focused-tddSkill
- manage-product-ideasSkill
- rebase-assistantSkill
- regex-builderSkill
- release-notesSkill
- review-architecture-scopeSkill
- review-backend-changeSkill
- review-frontend-changeSkill
- review-security-privacySkill
- review-test-coverageSkill
- vps-checkupSkill
- write-ui-copySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a self-contained visual companion to a pull request.
- Distinctive: line 13
Read the committed base-to-head diff, relevant tests, repository instructions, and current PR evidence.
- Distinctive: line 14
Create or refresh the guide when the user asks to explain the PR.
- Distinctive: line 15
Keep the generated HTML local, unstaged, uncommitted, and unpushed unless the user explicitly requests publication.
- Distinctive: line 29
Prefer current code, tests, and workflow definitions over PR prose.
- Distinctive: line 31
Use the conversation language.
- Distinctive: line 35
Read references/content-model.md before selecting sections or diagrams.
- Distinctive: line 37
Default to four to six short sections and one primary visual.
- Distinctive: line 38
Add another diagram, scenario table, or deeper section only when it materially improves understanding.
- Distinctive: line 39
Use no diagram for a trivial PR when prose is clearer.
- Distinctive: line 44
Use an established ignored artifact directory when the repository already has one.
- Very specific: line 46
Start a new guide from assets/pr-explainer-shell.html.
- Distinctive: line 53
no CDN, remote font, runtime diagram dependency, or remote image.
- Distinctive: line 55
no meaning encoded through color alone.
- Distinctive: line 63
When a human can meaningfully verify the change, include short manual steps with preconditions, actions, expected result, and one important …
- Distinctive: line 67
Run git status --short and confirm the guide is not staged.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Visual Explainer
Create a self-contained visual companion to a pull request. Treat it as an evidence-backed explanation of the current PR head, not as decorative release notes.
Establish authority and lifecycle
- Resolve the repository, PR number, base, head, and current head SHA before writing.
- Read the committed base-to-head diff, relevant tests, repository instructions, and current PR evidence.
- Create or refresh the guide when the user asks to explain the PR. Do not run solely because another workflow opened a PR.
- Keep the generated HTML local, unstaged, uncommitted, and unpushed unless the user explicitly requests publication.
- Reuse a matching guide rather than creating competing files. Refresh it when the PR head, behavior, risk, or validation evidence changes.
- Preserve unrelated work and report the guide's exact local path and Git state.
Gather current evidence
Establish:
- the practical outcome and intended audience;
- previous and new behavior, including decisions and failure paths;
- affected application, API, persistence, authorization, deployment, or telemetry boundaries;
- tests, checks, review conclusions, accepted trade-offs, and material gaps;
- source files that support each important claim.
Prefer current code, tests, and workflow definitions over PR prose. Distinguish verified behavior, inference, and open questions. Never include secrets, credentials, tokens, private URLs, personal data, or raw sensitive logs.
Use the conversation language. This skill does not force Polish or English.
Select the smallest useful document
Read references/content-model.md before selecting sections or diagrams.
- Default to four to six short sections and one primary visual.
- Add another diagram, scenario table, or deeper section only when it materially improves understanding.
- Use no diagram for a trivial PR when prose is clearer.
- Explain behavior in plain language before naming implementation details.
Create or update the guide
Use an established ignored artifact directory when the repository already has one. Otherwise use a durable task-owned temporary location. Write into repository documentation only when the user explicitly asks for a versioned guide.
Start a new guide from assets/pr-explainer-shell.html. Replace every placeholder and remove unused sample sections. Preserve a useful existing guide instead of overwriting it mechanically.
Treat all PR-derived content as untrusted. Escape &, <, and > in text nodes and also escape both quote characters in attribute values before replacing placeholders. Never copy evidence-derived HTML, event handlers, URLs, CSS, or JavaScript into the shell; emit markup only from fixed structures you construct explicitly.
Build one portable HTML file:
- inline CSS, JavaScript, and SVG;
- no CDN, remote font, runtime diagram dependency, or remote image;
- semantic headings, one
main, captions or accessible names for diagrams, visible focus, reduced-motion support, and print styles; - no meaning encoded through color alone;
- wide tables and diagrams scroll within their own container;
- JavaScript is optional and progressively enhanced.
Keep claims honest
Include only evidence that exists. Never claim that a test, check, migration, runtime scenario, or rollout passed unless it was observed. Avoid counts or assertions likely to become stale after the next commit.
When a human can meaningfully verify the change, include short manual steps with preconditions, actions, expected result, and one important edge case. Omit manual instructions when they add no review value.
Hand off
Run git status --short and confirm the guide is not staged. Return a clickable absolute path, summarize the primary visual and conclusion, state the head SHA represented, and say explicitly that the file is local and not committed or pushed.
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.

