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.
Generate and fact-check. After composing the artifact, compare the rendered claims back to the fact sheet and source evidence before reporting it. Verify counts, file references, function/type names, Mermaid labels, before/after statements, and review notes. If polish introduced a new claim, add source evidence or remove the claim.
Deliver. Open the fact-checked artifact 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 a user-requested HTML deliverable to ~/.kramme-cc-workflow/diagrams/diff-review-{descriptive-name}.html. Create the directory if needed, and choose a descriptive name for the current review scope.
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.
tools
Requires Linear MCP. Implements one Linear issue end to end, selects applicable code-review, convention, and PR-refactor gates, runs them to bounded convergence, verifies, and optionally opens the PR and iterates on CI and review feedback until green. Use when the user wants a single Linear issue taken from implementation through a clean Pull Request. Not for implementation-only work, SIW-tracked issues, stacked PRs, existing PR updates, or post-merge rollout.
development
Reviews PR and local changes for convention drift and overcaution against documented rules and mined peer-file practice. Use for new patterns, dependencies, abstractions, or defensive complexity that departs from established practice; every finding cites evidence. Supports --inline. Not for general code quality (use kramme:pr:code-review) or spec review (use kramme:siw:spec-audit --team).
testing
Charts huge or foggy initiatives into a local `.context` decision map and resolves one typed frontier ticket per session until the work is ready for SIW or another execution workflow. Use when the route to a destination cannot fit in one agent session or parallel workspaces need coordinated planning state. Not for clear specs, ordinary issue decomposition, implementation, or Linear-native tracking.
development
Investigates a question against primary sources and saves one cited Markdown artifact. Use for reading legwork: official docs/API facts, source-code or spec checks, standards, and first-party service behavior before planning or implementation. Not for making product or architecture decisions, implementing code, broad web search, secondary blog summaries, or uncited answers.