kramme-cc-workflow/skills/kramme:visual:diff-review/SKILL.md
Use when you want a shareable visual walkthrough of an existing branch, PR, commit, or range diff. Generates a self-contained HTML artifact with before/after architecture comparison, KPI dashboard, Mermaid dependency graphs, explanatory review notes, and decision log. Not an actionable PR/code review workflow; use kramme:pr:code-review for inline code findings or kramme:pr:ux-review for live UX/product review.
npx skillsauth add abildtoft/kramme-cc-workflow kramme:visual:diff-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a comprehensive visual diff review as a self-contained HTML page.
This produces a visual before/after artifact. It is not an actionable code review workflow: use kramme:pr:code-review for fix-oriented code findings and kramme:pr:ux-review for live UX, product, visual, and accessibility review.
Arguments: "$ARGUMENTS"
Confirm the environment before gathering data:
gh must be installed and authenticated. If it is missing, report the exact tool needed and stop, or ask for a branch or range instead.Read the local references/ and assets/ files just-in-time, as step 2 below directs — each entry there names the file that covers each need. Use a GitHub-diff-inspired aesthetic with red/green before/after panels, but vary fonts and palette from previous diagrams.
Think (ultrathink). Decide what changed, who needs the explanation, and which comparisons deserve the most visual weight. Choose diagram types that make before/after changes legible, not just pretty.
Structure. Use the local templates and references to choose the rendering approach:
assets/architecture.html for text-heavy architecture comparisonsassets/mermaid-flowchart.html for dependency graphs, pipelines, state changes, and behavioral flowsassets/data-table.html for KPI dashboards, file maps, and review tablesreferences/css-patterns.md for layout patterns, zoom controls, depth tiers, and collapsible sectionsreferences/responsive-nav.md when the diff review spans 4+ sections and needs responsive navigationreferences/libraries.md for Mermaid theming, Chart.js, anime.js, and CDN usageStyle. Use typography, palette, and depth to clearly distinguish before, after, neutral context, and risks. Avoid generic default styling. Respect prefers-reduced-motion.
Deliver. Write a single self-contained HTML file to ~/.kramme-cc-workflow/diagrams/, open it in the browser, and report the file path to the user.
Determine what to diff based on the argument:
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 commitsorigin/HEAD; fallback to main, then masterRun 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 treeCHANGELOG.md has an entry for these changesBefore generating HTML, produce a structured fact sheet of every claim you will present:
.mermaid-wrap with zoom controls.<details> collapsed by default.kramme:pr:code-review; for live UX/product review, use kramme:pr:ux-review.
<details> collapsed by default.
Visual hierarchy: Sections 1-3 dominate the viewport (hero depth). Sections 6+ are reference material (flat/recessed, compact, collapsible).
Visual language: Red for removed/before, green for added/after, yellow for modified, blue for neutral context.
Write to ~/.kramme-cc-workflow/diagrams/diff-review-{descriptive-name}.html. Create the directory if needed. Re-running with the same scope reuses the same descriptive name and overwrites the previous file by design — vary the name only when you want to keep an earlier review.
Open in browser:
open ~/.kramme-cc-workflow/diagrams/{filename}.htmlxdg-open ~/.kramme-cc-workflow/diagrams/{filename}.htmlReport the file path to the user. Include responsive section navigation.
development
Runs kramme:pr:code-review as a closeout review loop for local or PR branch changes before commit, ship, or final response. Use when the user asks for autoreview, second-model review, or a final code-review pass after non-trivial edits. Not for UX, visual, accessibility, or product review.
development
Guides topic-level understanding verification for a PR, branch, feature, document, spec, design decision, bug fix, or other concrete subject. Use when the user asks to confirm, quiz, drill, teach-and-check, or verify that they understand a topic. Maintains a topic-specific checklist artifact and requires demonstrated understanding before marking the topic complete. Not for ordinary explanations without verification, end-of-session summaries, or code/test correctness checks.
testing
Design a CI/CD pipeline with quality gates, a <10-minute budget, feature-flag lifecycle, and an exit checklist. Use when adding a new CI pipeline, changing gate configuration, or planning a rollout for a new service. Complementary to kramme:pr:fix-ci (which fixes failures in an existing pipeline). Covers gate ordering, secrets storage, branch protection, rollback mechanism, and staged-rollout guardrails — not a rollout-execution runbook.
tools
--- name: kramme:visual:demo-reel description: Capture local demo evidence for observable product behavior: screenshots, before/after image sets, browser reels, terminal recordings, and short GIF/video proof. Use when shipping UI changes, CLI features, or any change where PR reviewers would benefit from visual or behavioral evidence. argument-hint: "[what to capture] [--url <url>|auto] [--tier static|before-after|browser-reel|terminal-recording]" disable-model-invocation: true user-invocable: tr