Help us improve
Share bugs, ideas, or general feedback.
From html-skills
Generate HTML artifacts for code review, PR explanation, and codebase understanding — rendered diffs with inline annotations, severity-coded findings, refactor risk maps, before/after migration views, and subsystem walkthroughs. Use whenever the user wants to review, explain, or understand a PR, refactor, codebase area, or subsystem — especially before merging, when onboarding others to a change, or when the GitHub diff view doesn't show enough context. Default to attaching an HTML explainer to every non-trivial PR.
npx claudepluginhub f-labs-io/agent-html-skills --plugin html-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/html-skills:html-code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The default GitHub diff view is fine for tiny PRs and useless for anything that touches multiple files, has subtle ordering, or involves a refactor. HTML lets you render the actual diff with margin annotations, severity tags, flowcharts of what changed, and risk maps showing which areas to look at hardest.
Visualizes git diffs, branches, commits, PRs, and ranges as interactive HTML reports with architecture diagrams, KPI dashboards, code review cards, and side-by-side comparisons.
Launches revdiff TUI overlay for inline annotations on diffs, files, and changes in git, hg, jj repos. Answers questions on usage, config, themes, keybindings. Opens in tmux/zellij/kitty and captures history.
Analyzes pull requests for architectural impact, generating before/after diagrams, business effects, enabled features, and risks for decision makers.
Share bugs, ideas, or general feedback.
The default GitHub diff view is fine for tiny PRs and useless for anything that touches multiple files, has subtle ordering, or involves a refactor. HTML lets you render the actual diff with margin annotations, severity tags, flowcharts of what changed, and risk maps showing which areas to look at hardest.
Render diffs as real HTML so reviewers can copy lines. Use a monospace font for code and a readable serif or sans for prose. Reviewers will open this on a phone during a commute, so the responsive collapse from the foundation block is load-bearing here.
Include a header with: PR title, author, branch, and a one-sentence summary. End with a "what to look at hardest" section that ranks the diff by reviewer attention required.
These defaults apply to every artifact this skill produces, on top of the requirements above. If a rule above conflicts with this list, the rule above wins; otherwise these are non-negotiable.
.html file the user opens in a browser — never inline-render in chat. Every artifact this skill produces is a file on disk (<topic>-<kind>.html), not an HTML block embedded in the agent's chat surface (claude.ai artifact/canvas widgets, fenced html blocks, custom rendered iframes, etc.). Inline rendering strips features, themes unpredictably against the surrounding chat (often unreadable in dark mode), and lacks the stable origin and clipboard/network access the submit handler needs. Always write the file. The file itself must be self-contained: no build step, no external runtime, inline CSS and JS. Google Fonts via <link> is fine; otherwise nothing loaded from npm or a CDN unless this skill explicitly calls for it.localStorage / sessionStorage / IndexedDB. Claude.ai artifacts can't use browser storage. State lives in JS memory; the export / copy button is the persistence layer.<pre><code> (selectable, copyable). Tabular data goes in <table>. Diagrams are inline <svg> with real <g> and <path> elements, not embedded PNGs. The reader should be able to copy any value, line, or label out of the artifact.textContent for text and document.createElement + appendChild for structure. Never set innerHTML from a string that includes a variable, user input, computed value, or imported data — it's an XSS vector and many agent harnesses (including Claude Code) block it via security hooks. Static literal markup inline in your script is fine.:root so the whole artifact can be re-skinned in one place — and so design decisions are visible, not buried in 40 inline declarations.Cmd/Ctrl+P should produce something usable: backgrounds that carry meaning print, content doesn't get clipped, dark themes have a sane print fallback.<topic>-<kind>.html) so multiple artifacts on one project compose into a readable folder, not a pile of output.html collisions.Compact (~5 sections, ~1 screen of TL;DR + risk map at top). Diffs come second. Designed for a reviewer who has 10 minutes. Color findings by severity:
For larger refactors. The top of the page is a visual map of files/modules colored by how much they changed and how exposed they are. Click a hot zone to jump to the annotated diff for that area. Include a "if I had 30 minutes, look at…" prioritized list.
When the goal is teaching, not reviewing. Less diff-heavy, more explanation-heavy. Start with a flow diagram of how the subsystem works, then the 3–5 key files annotated, then a "gotchas" section at the bottom.
For migrations (DB schema, API version, framework upgrade). Side-by-side before/after at multiple zoom levels: high-level architecture at the top, then per-file diffs, then per-line for the critical bits.
Inline annotations sit in the right margin next to the diff line(s) they reference. Use a thin connecting line or color-matched dot to anchor them. Keep each annotation under ~40 words — link out for longer context.
Don't bury concerns in prose paragraphs that come after the diff. Put them next to the line.
Help me review this PR by creating an HTML artifact that describes it. I'm not very familiar with the streaming/backpressure logic, so focus on that. Render the diff with inline margin annotations, color-code findings by severity, and put a risk map at the top.
Output: HTML file with a top-of-page risk map (streaming layer marked red, everything else green), TL;DR, narrative, then full annotated diffs of the streaming files with severity-tagged margin notes, ending with a 5-item reviewer checklist.