visual-explainer

The Claude Code plugin component of Visual Explainer that generates self-contained HTML visual explanations following nine design rules prioritizing diagrams over prose.

Last verified: write-up checked

visual-explainer preview image

What it is

The Visual Explainer Plugin is the Claude Code plugin component of the Visual Explainer project. It enforces nine core design rules for generating visual explanations: one claim per figure with single-sentence captions, figures lead with text providing labels only, the first viewport displays the main answer, mechanism drawings replace labeled boxes, visual differences are highlighted in comparisons, state is encoded through shape/position/pattern rather than color alone, all numbers get accompanying visuals, multiple cases appear as small diagram variations, and every fact is placed within figures before becoming prose. The plugin supports generating standalone HTML diagrams, animated scenes, comparison tables, diff/plan reviews, project recaps, slide decks, PowerPoint presentations, and narrated MP4 videos through commands like /generate-web-diagram, /generate-slides, and /generate-video.

Who it's for

  • Claude Code users creating visual documentation
  • developers explaining architecture and code changes visually
  • teams producing slide decks and video explanations from agent output

Requirements

Requirements

  • Web browser
  • Optional: surf-cli for AI-powered images
  • Optional: playwright-core for quality checks

Setup

  1. Step 1

    bash
    Install via Claude Code plugin marketplace
  2. Step 2

    bash
    Or copy plugin directory to .claude/plugins/

مكون إضافة Claude Code من Visual Explainer الذي ينشئ شروحات بصرية HTML مستقلة تتبع تسع قواعد تصميم تعطي الأولوية للرسوم البيانية على النص.

Examples

Generate standalone HTML visual

Prompt
prompt
/generate-web-diagram

Expected output: Creates a self-contained HTML page with visual diagrams based on the current context.

Generate slide deck

Prompt
prompt
/generate-slides --slides

Expected output: Produces a presentation deck from the visual explanation.

Generate video

Prompt
prompt
/generate-video

Expected output: Creates a narrated MP4 video explanation.

Pros & cons

Pros

  • Pro:Nine enforced design rules ensure consistent visual quality
  • Pro:Supports multiple output types: HTML, slides, PPTX, and video
  • Pro:First viewport shows the main answer for instant comprehension
  • Pro:Figures lead content; text provides labels only

Cons

  • Con:Video and PPTX generation require additional optional dependencies
  • Con:Design rules are opinionated and may not suit all content types
  • Con:Plugin structure requires compatible Claude Code version