kramme-cc-workflow/skills/kramme:visual:plan-review/SKILL.md
Generate a visual HTML plan review comparing current codebase state vs. a proposed implementation plan, with architecture diagrams, blast radius analysis, and risk assessment
npx skillsauth add abildtoft/kramme-cc-workflow kramme:visual:plan-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 plan review as a single-file HTML page, comparing the current codebase against a proposed implementation plan. Diagrams render Mermaid/Chart.js from CDN, so viewing them requires network access.
Use this before implementation, against a plan, spec, or RFC document. To review changes that already exist on a branch or PR, use kramme:visual:diff-review instead.
Arguments: "$ARGUMENTS"
The local references/ and assets/ files supply the visual patterns for this skill. Load each one just in time as Workflow step 2 directs — read only the references and templates a given section actually needs, not all of them up front.
Use a blueprint/editorial aesthetic with current-state vs. planned-state panels, but vary fonts and palette from previous diagrams.
Think. Decide who is reviewing the plan, which current-vs-planned comparisons need the strongest emphasis, and which diagram types will clarify blast radius and risk.
Structure. Use the local templates and references to choose the rendering approach:
assets/architecture.html for text-heavy subsystem snapshotsassets/mermaid-flowchart.html for current/planned architecture, dependency graphs, and flowsassets/data-table.html for impact dashboards, ripple analysis, and review tablesreferences/css-patterns.md for layout patterns, zoom controls, depth tiers, and collapsible sectionsreferences/responsive-nav.md when the 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 separate current state, planned state, and risk. Avoid default app styling. Use CSS custom properties, atmospheric backgrounds, and motion only where it helps comprehension.
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, plan references, function/type names, Mermaid labels, current/planned behavior statements, and risk labels. If polish introduced a new claim, add source evidence or remove the claim.
Deliver. Open the fact-checked artifact in the browser as described in Output below.
$1 (path to a markdown plan, spec, or RFC document)$2 if provided, otherwise the current working directoryResolve the plan file before gathering any data:
$1 provided → stop and ask the user for the plan file path.$1 does not resolve to a readable file → stop and report the exact path tried and what is needed.If $2 is provided but is not a readable directory, stop and report the path; otherwise use the current working directory as the codebase root.
Read the plan file in full. Extract: problem statement, each proposed change (files to modify/create/delete), rejected alternatives, scope boundaries or non-goals.
Read every file the plan references. Also read files that import or depend on those files — the plan may not mention all ripple effects.
Map the blast radius. From the codebase, identify: what imports the files being changed, what tests exist for affected files, config files/types/schemas that might need updates, public API surface callers depend on.
Cross-reference plan vs. code. For each change the plan proposes, verify: does the referenced file/function/type exist? Does the plan's description of current behavior match the actual code? Are there implicit assumptions that don't hold?
Before generating HTML, produce a structured fact sheet of every claim you will present:
Plan summary — lead with the intuition: what problem does this plan solve, and what's the core insight behind the approach? Then scope: files touched, estimated scale, new modules planned. Hero depth: larger type 20-24px, accent-tinted background.
Impact dashboard — files to modify/create/delete, estimated lines added/removed, new test files, dependencies affected. Include completeness indicator: tests (green/red), docs updates (green/yellow/red), migration/rollback (green/grey).
Current architecture — Mermaid diagram of how the affected subsystem works today. Focus only on parts the plan touches. Wrap in .mermaid-wrap with zoom controls. Use matching layout direction and node names as section 4.
Planned architecture — Mermaid diagram of how the subsystem will work after implementation. Same node names and layout direction as current architecture. Highlight new nodes with accent border, removed nodes with reduced opacity, changed edges with different stroke color.
Change-by-change breakdown — for each change in the plan, a side-by-side panel:
Dependency & ripple analysis — what other code depends on files being changed. Table or Mermaid graph showing callers, importers, downstream effects. Color-code: covered by plan (green), not mentioned but likely affected (amber), definitely missed (red). Use <details> collapsed by default.
Risk assessment — styled cards for:
Plan review — structured Good/Bad/Ugly analysis:
Understanding gaps — closing dashboard rolling up decision-rationale gaps and cognitive complexity flags:
Visual hierarchy: Sections 1-4 dominate the viewport (hero depth for summary, elevated for architecture). Sections 6+ are reference material (flat/recessed, compact, collapsible).
Visual language: Blue/neutral for current state, green/purple for planned additions, amber for concerns, red for gaps/risks.
Write a user-requested HTML deliverable to ~/.kramme-cc-workflow/diagrams/plan-review-{descriptive-name}.html. Create the directory if needed, and choose a descriptive name for the current plan review scope. Open in browser:
open ~/.kramme-cc-workflow/diagrams/{filename}.htmlxdg-open ~/.kramme-cc-workflow/diagrams/{filename}.htmlstart "" "%USERPROFILE%\.kramme-cc-workflow\diagrams\{filename}.html"Report the file path to the user. Include responsive section navigation.
Ultrathink.
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.