pr-review-html
Installation
SKILL.md
PR Review HTML
Overview
Produce a browser-readable review artifact that combines real diff excerpts, inline margin annotations, severity-coded findings, and a focused concept explanation for the code paths the user is least comfortable reviewing.
The HTML artifact is the human-facing deliverable. Keep source evidence, commands, and uncertainty visible so the artifact is reviewable rather than decorative.
Workflow
- Identify the PR source: GitHub PR, local branch, patch file, or provided diff. If the target is ambiguous, ask for the PR number, branch, or diff.
- Collect the actual diff with the best available source, for example
gh pr diff <id>,git diff <base>...<head>, or the provided patch. Do not recreate the diff from memory. - Inspect the surrounding code needed to understand the changed behavior. Follow imports, call sites, tests, and ownership boundaries before writing findings.
- If the user names a focus area, make it the review lens. For streaming, backpressure, cancellation, retries, async iteration, or queueing, load
references/review-lenses.md. - Run only relevant validation commands that fit the repo and review scope. If validation is skipped, state why in the artifact.
- Build a single
.htmlfile fromassets/pr-review-artifact-template.htmlor an equivalent self-contained structure. - Open or sanity-check the artifact when feasible. For complex layouts, use browser automation or a screenshot check if available.