mcpField
E
explain-diagram

explain-diagram

github.com/ashryaagrDesign & UI5357 installsUpdated 6w ago
Repository

About explain-diagram

A skill that guides agents in explaining ideas with editable Excalidraw diagrams. It provides a workflow for choosing a diagram, checking its readability, and returning it with a brief explanation.

Key features

  1. 01Choose a diagram structure for the question
  2. 02Create diagrams with Excalidraw
  3. 03Check and correct rendered diagrams
  4. 04Return an editable diagram with context

Use cases

  1. 01Explain a process as a flow
  2. 02Show relationships among concepts
  3. 03Compare options visually

MCP support

The skill uses a bundled Excalidraw MCP server when available, calling `read_me` and `create_view`; without MCP, it can create native `.excalidraw` JSON for import.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ashryaagr/karpathy-output-style --skill explain-diagram

After installing, type/explain-diagramin Claude Code to confirm it loaded.

Bundled filesreferences/excalidraw.md

Details

From the project README

Explain with a diagram

Karpathy's premise: a diagram can be easier to understand than prose.

  1. Identify the question the reader needs to answer. Choose a flow, relationship, comparison, or sequence that makes the answer visible.
  2. Use Excalidraw. With the bundled MCP server, call read_me once, then create_view with a JSON array string of elements. Follow its current schema.
  3. Give each shape one idea. Use short, concrete labels and explicit arrow directions. Label decisions and feedback loops. Use color only when it has meaning.
  4. Read the diagram as a newcomer. Check text size, overlap, arrow endpoints, and whether the main path is obvious. Correct the rendered result.
  5. Return the editable diagram and a brief explanation of how to read it. Save an .excalidraw file when the host supports export; do not claim a file or share link exists until you have it.

If MCP is unavailable, create native .excalidraw JSON for import at excalidraw.com. See the tool reference.

Use the fewest shapes that preserve the important relationships. Keep uncertainty visible. Create the requested artifact without turning the explanation into a report.

Comments

Markdown supported