Generate a visual HTML diff review — before/after architecture comparison with code review analysis
From visual-explainernpx claudepluginhub emerging-tech-visma/visual-explainer --plugin visual-explainer/diff-reviewGenerates self-contained HTML visual diff review of Git changes (branches, commits, PRs, uncommitted) with before/after architecture comparison and code analysis.
/diff-reviewPerforms security-focused differential review of code changes from PR URL, commit SHA, or diff path, optionally against a baseline reference.
/diff-reviewMulti-perspective parallel code review — analyze git diff from 5 viewpoints simultaneously.
/diff-reviewGenerate a visual HTML diff review — before/after architecture comparison with code review analysis
/diff-reviewPerforms security-focused differential review of code changes from PR URL, commit SHA, or diff path, optionally against a baseline reference.
/diff-reviewPerforms security-focused differential review of code changes from PR URL, commit SHA, or diff path, optionally against a baseline reference.
Load the visual-explainer skill, then generate a comprehensive visual diff review as a self-contained HTML page.
Follow the visual-explainer skill workflow. Read the reference template, CSS patterns, and mermaid theming references before generating. Use a GitHub-diff-inspired aesthetic with red/green before/after panels, but vary fonts and palette from previous diagrams.
Scope detection — determine what to diff based on $1:
main, develop): working tree vs that branchgit show <hash>)HEAD: uncommitted changes only (git diff and git diff --staged)#42): gh pr diff 42abc123..def456): diff between two commitsmainData gathering phase — run these first to understand the full scope:
git diff --stat <ref> for file-level overviewgit diff --name-status <ref> -- for new/modified/deleted files (separate src from tests)<ref> and working tree (git show <ref>:file | wc -l vs wc -l)export/function/class/interface for TS/JS, def/class for Python, func/type for Go, etc.)CHANGELOG.md has an entry for these changesREADME.md or docs/*.md need updates given any new or changed features~/.agent/memory/{project}/progress.md, ~/.pi/agent/memory/{project}/progress.md) or plan files that may contain reasoning. For committed changes, read commit messages and PR descriptions.Verification checkpoint — before generating HTML, produce a structured fact sheet of every claim you will present in the review:
Diagram structure — the page should include:
.mermaid-wrap with zoom controls (+/−/reset/expand buttons), Ctrl/Cmd+scroll zoom, click-and-drag panning, and click-to-expand (opens diagram full-size in new tab). See css-patterns.md "Mermaid Zoom Controls" for the full pattern including the openMermaidInNewTab() function.min-width: 0 on all grid/flex children and overflow-wrap: break-word on panels. Never use display: flex on <li> for marker characters — use absolute positioning instead (see css-patterns.md Overflow Protection).<details> collapsed by default for pages with many sections.<details> collapsed by default for pages with many sections.Visual hierarchy: Sections 1-3 should dominate the viewport on load (hero depth, larger type, more padding). Sections 6+ are reference material and should feel lighter (flat or recessed depth, compact layout, collapsible where appropriate).
Optional illustrations — if image generation is available (check surf-cli, then $GEMINI_API_KEY -- see SKILL.md), consider generating a hero banner or conceptual illustration when it would enhance the page. Embed as base64 data URI. See css-patterns.md "Generated Images" for container styles. Skip if neither is available or the diff is purely structural.
Include responsive section navigation. Use diff-style visual language throughout: red for removed/before, green for added/after, yellow for modified, blue for neutral context. Write to ~/.agent/diagrams/ and open in browser.
Ultrathink.
$@