ddkbs/sketchy

A layout engine for AI diagrams: the model says what to draw, Sketchy figures out where. Hand-drawn, interactive, in Claude, Cursor and VS Code.

What it solves

When you ask an AI assistant a question, you often get a wall of text. Sketchy fixes that by letting the AI draw clean, hand-drawn-looking diagrams right next to its answer. It handles the layout and rendering so the AI only decides what to show, not where to put it. This makes explanations of systems, concepts, code, circuits, molecules, and maps much easier to follow.

How it works

The AI describes a scene in a compact text format—what nodes, parts, labels, and steps to include. Sketchy then takes over: a layout engine (elkjs) positions everything and routes connections, while a renderer (rough.js) gives it the hand-drawn look. You can hover over elements for details, step through walkthroughs, drag sliders on moving pictures, and even draw on the sketch with a red pen. All exports (SVG, PNG, Excalidraw) are generated from the same scene.

Sketchy runs in two ways: as a skill inside Claude chat (works on web, desktop, and mobile) or as an MCP server for coding tools like Claude Code, Codex, Cursor, and VS Code. In the chat skill, the browser bundle is loaded from a CDN; in the MCP server, layout runs locally. The AI only writes the content, so drawings stay precise and consistent every time.

Who it’s for

Anyone who uses AI assistants and prefers pictures over paragraphs. It’s especially handy for developers using Claude or other MCP clients while coding, for educators explaining concepts, and for anyone on Claude mobile who wants to see diagrams on the go. You don’t need to install anything for the chat skill—just upload a zip to your Claude account.

Highlights

  • Interactive walkthroughs: step through processes with buttons or arrow keys, with the current step highlighted in red.
  • Hover any box, pin, or wire for details; click code nodes to open files in your editor.
  • Draw on the sketch with a red pen, highlighter, and notes, then send it back to the AI with a question.
  • Export as SVG, PNG, or an editable Excalidraw file, with fonts included.
  • Draw molecules from SMILES strings, maps from Natural Earth data, and circuits from Arduino/ESP32 code using real part images.
  • Label photos with a local vision model (Florence-2) that runs on your computer; attribution is always shown.
  • Works on Claude mobile via the skill, and in desktop coding tools via MCP.
  • Cost-efficient: a compact scene format makes drawings cheaper than plain-text answers over a session.

Related

  • Project
  • Project
  • Project
  • Project