visual-review
Skill16 starsChanged 7 months agoMITView on GitHub
Render a GitHub PR diff as a self-contained HTML page, each hunk annotated with a principle and a suggested simplification. Use when the user wants a visual/HTML diff report or PR feedback linked to principles. Don't use for text-only feedback (/code-review), screenshots (/visual-validate), or multi-reviewer orchestration (/review).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- naingthet/agent-skillstheir own version, first seen Aug 21, 2026
- Naoray/skillstheir own version, first seen May 22, 2026
- dsifry/metaswarmtheir own version, first seen May 16, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- dsifry/metaswarm★ 419same name
- naingthet/agent-skills★ 1same name
- Naoray/skills★ 1same 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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- architecture-auditSkill
- buildSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- create-adrSkill
- create-pull-requestSkill
- create-skillSkill
- deps-auditSkill
- diagnoseSkill
- domain-modelingSkill
- e2eSkill
- explain-codeSkill
- fortifySkill
- frontend-ui-engineeringSkill
- grill-meSkill
- handoffSkill
- hardenSkill
- i18nSkill
- perf-auditSkill
- planSkill
- prose-fixSkill
- prototypeSkill
- researchSkill
- reviewSkill
- reviseSkill
- safe-repoSkill
- shipSkill
- source-drivenSkill
- specSkill
- tddSkill
- teachSkill
- testSkill
- triage-reviewSkill
- validate-codeSkill
- visual-validateSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
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 20
If a PR URL or number was passed as the argument, use it.
- Very specific: line 43
Write to visual-review-pr-<number>.html at the repo root.
- Distinctive: line 54
Read-only on the PR. The page is your review surface.
- Distinctive: line 61
No PR for the current branch and no argument passed → ask for a PR URL or number.
“Common” is measured: kept by at least 6 in 10 of the 3 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
Visual Review
Turn a PR diff into an annotated HTML page you scan in a browser. Each finding sits next to its code and explains the why — the principle it touches and how to simplify — so you decide what to comment on the PR yourself. Read-only: this never posts to the PR or touches the branch.
Sibling of code-review (text feedback) and visual-validate (browser UI). Its edge is the visual artifact and the teaching: findings link to references/principles.md.
The lens covers design and simplification — readability and simplification, SOLID and design principles, testability, reusability, and maintainability: how to make each changed block clearer, more reusable, and easier to test. Bugs, security, and scope/claim mismatches (does the diff do what the PR description says?) stay out of scope — run code-review for those.
Workflow
Phase 1 — Resolve the PR
- If a PR URL or number was passed as the argument, use it. Otherwise detect the PR for the current branch:
Completion: PR number, title, author, and URL are known. No PR and no argument → stop and ask for a URL or number.gh pr view --json number,title,author,url,baseRefName,headRefName
Phase 2 — Fetch the diff
- Pull the unified diff and the file list, then read each changed file at head for full context — a hunk alone hides the surrounding code the finding depends on:
Completion: every changed file read for context (skip deleted files, note them as removed).gh pr diff <number> gh pr view <number> --json files
Phase 3 — Annotate each hunk
- Assess each meaningful hunk against the lens in
references/principles.md. Raise a finding only where there's a real observation — a must-fix, a worth-considering, or a praise. Capture per finding:file:line, severity, principle tag, the why (the reasoning is the point, not the verdict), and a concretebefore → afterrewrite when the fix is actionable. Completion: every changed hunk considered; each finding carries a principle tag and a why.
Phase 4 — Render the HTML
- Clone
assets/report-template.html. Fill the header (title, number, author, PR link), the summary counts, and one finding card per finding — grouped by file, ordered by severity within each file. Keep it self-contained: inline CSS/JS, no CDN, so it opens offline viafile://. Write tovisual-review-pr-<number>.htmlat the repo root. Completion: file written with every finding rendered. - Open it and report the path:
Completion: path printed; browser opened.open visual-review-pr-<number>.html # macOS; xdg-open on Linux
Rules
- Read-only on the PR. The page is your review surface; you comment on GitHub afterward.
- Annotate the why, not just the verdict — the explanation is what makes it worth more than an inline comment.
- Self-contained HTML only. No external fonts/scripts/styles, so the file works offline.
Error Handling
gh pr viewfails → rungh auth statusto check auth; ask for a PR number if not on a PR branch.- No PR for the current branch and no argument passed → ask for a PR URL or number.
- File deleted in the PR → skip reading it; note it as removed in the report.
- Diff too large → prioritize highest-risk files (auth, payments, data mutation, shared modules); note in the summary which files were truncated.
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.

