nicobailon/visual-explainer
Agent skill and local MCP server for turning code reviews and diagrams into HTML
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Visual Explainer pairs an agent authoring skill with an optional local Node.js MCP server. Under plugins/visual-explainer/, SKILL.md, command prompts, and reference files guide authoring; kit/ holds shared CSS and scripts, the renderer, page checks, and vendored Pele for Mermaid. The agent writes filename.src.html against the kit, and the renderer produces a self-contained HTML page. Keeping the source makes small revisions possible without rebuilding the explanation from scratch.
The package exposes visual-explainer-mcp, visual-explainer-pptx, and visual-explainer-video as separate executables. The MCP executable uses local stdio and provides prepare, render, prompt templates, and read-only skill resources. Pi also exposes prepare and render through its native visual_explainer tool in extension.ts. The manifest lists @modelcontextprotocol/server, zod, node-html-parser, pptxgenjs, @earendil-works/pi-coding-agent, and playwright-core; the basic skill workflow does not require running the MCP server.
Key Capabilities & Differentiators
The skill produces browser-based architecture diagrams, diff reviews, comparisons of requirements against plans, project recaps, data tables, and slide decks. A visual plan can put decisions and suggested defaults next to the diagram, giving reviewers a response they can paste back into the agent. State-machine exploration can start from a reducer or transition function, surface reachable states that were not diagrammed, flag events that never fire and dead ends, and replay rule violations step by step.
With Chrome and playwright-core available, the page checker looks for issues such as overlapping text, lines crossing labels, and undersized text on mobile, then gives the agent a full-page screenshot for inspection. For delivery outside the browser, the PPTX utility handles simple HTML decks as a static export. The video renderer records video decks frame by frame to 1080p MP4, with narration when a speech API key is configured and captions otherwise.
Trade-offs & Limitations
Compared with writing Mermaid directly in Markdown, Visual Explainer is better suited to a review that needs diagrams, tables, and narrative to work together, especially when readers need a step-by-step replay. Direct Mermaid is simpler when the diagram definition itself is the deliverable and should be reviewed as a small text change. For a presentation that colleagues must edit in PowerPoint, authoring natively avoids a conversion boundary: the exported PPTX is static and best-effort, while HTML remains the source of truth for visual fidelity.
Self-contained HTML makes browser handoff straightforward, but automatic opening depends on host permissions, browser access, and sandbox rules. Results also vary with the authoring model. Browser checks can catch visual defects, not establish that a diagram or diff summary is correct. Review generated content against the underlying code or plan before relying on it. MIT licensing permits commercial use and redistribution subject to its notice requirements.
Hardware & Deployment Guide
Start with the skill if you only need browser-ready pages: normal use has no build step and needs a compatible agent and browser. Claude Code has a marketplace plugin, Pi has a native package integration, and Codex, OpenCode, and Cursor can load the skill from their respective directories. For MCP, configure the host to launch the installed visual-explainer-mcp executable over stdio, or run plugins/visual-explainer/mcp/server.mjs from a checkout after installing Node dependencies. The default output directory is ~/.agents/diagrams/; native Pi supports visualExplainer.outputDir, and both Pi and MCP accept a nonblank VISUAL_EXPLAINER_OUTPUT_DIR.
Provision Chrome and playwright-core for browser checks, and add ffmpeg for local MP4 export. Narration is the optional speech API path; base rendering does not require it. The release sequence shows where the tooling has matured: v0.14.0 added browser-based layout checks, v0.15.0 added state-machine exploration from code, and v0.16.0 added automatic figure numbering and desktop sidebar navigation for sections and subsections.
prepare and render alongside prompt templates and read-only skill resources..src.html file alongside the self-contained HTML deliverable.playwright-core support visual checks for overlaps, obstructed labels, and undersized mobile text.Engineering teams that want coding agents to turn substantial diffs, design decisions, or state-machine behavior into browser-ready artifacts for review.
You only need a small diagram maintained in Markdown, must deliver a fully editable PowerPoint deck, or require review findings to be verified automatically against source code.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/nicobailon/visual-explainer/main/install-pi.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| visual-explainer ★ | 11.4k | +112 | JavaScript | MIT | Agent skill and local MCP server for turning code reviews and diagrams into HTML |
| taste-skill | 125.3k | +2.9k | JavaScript | MIT | An agent skill for directing company website design and checking builds in a bro |
| agent-skills | 122.5k | +1.7k | JavaScript | MIT | A modular skill pack for consistent coding-agent workflows, from spec to release |
| archify | 103.1k | +2k | JavaScript | Apache-2.0 | Agent skill and Node CLI for source-backed, interactive architecture diagrams. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/nicobailon/visual-explainer.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about visual-explainer
Do I need MCP to use Visual Explainer?
visual-explainer-mcp locally over stdio. The server exposes prepare and render, plus prompt templates and read-only skill resources; it does not start an HTTP listener.Does it need a GPU, and what determines local resource use?
playwright-core are needed for browser checks, and video export also needs ffmpeg. If you automate exports, size the machine against representative decks and concurrent browser jobs.Can a company use and distribute it internally?
When is standalone Mermaid a better fit?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy