whatisgithub

What is drawio-diagram-builder-skill?

will-hxw/drawio-diagram-builder-skill — explained in plain English

Analysis updated 2026-05-18

183PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

An installable AI agent skill that generates editable draw.io diagrams from papers, prompts, or codebases, using a screenshot review loop to catch and fix layout mistakes.

Mindmap

mindmap
  root((drawio-diagram-builder-skill))
    What it does
      AI agent skill
      Editable draw.io diagrams
      Screenshot review loop
    Tech stack
      Python
      draw.io
      Browser automation
    Use cases
      Paper figure recreation
      Codebase architecture diagrams
      ML pipeline diagrams
    Audience
      Developers
      Researchers
    Requirements
      Python 3
      Internet access
      Browser automation tool

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Recreate a figure from a research paper as an editable draw.io diagram instead of a flat image.

USE CASE 2

Generate an architecture or data-flow diagram automatically from an existing codebase.

USE CASE 3

Build a machine learning pipeline diagram showing stages, models, and datasets.

USE CASE 4

Combine written requirements and multiple reference images into one polished diagram, refined through automated screenshot review.

What is it built with?

Pythondraw.ioPlaywrightMCP

How does it compare?

will-hxw/drawio-diagram-builder-skillretro-diffusion/pixel-art-fixermocasus/auto-freecf
Stars183183186
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Full functionality needs a browser automation tool like Playwright for the screenshot feedback loop.

Permissive open-source license, use freely including for commercial purposes, with attribution.

So what is it?

This project is a skill that can be installed into AI coding agents like Claude Code or Codex, teaching them how to produce editable diagram.net or draw.io diagrams from research papers, written prompts, codebases, or reference images. The goal is publication-quality figures that a person can still open and edit afterward, rather than a flat picture. The core problem it solves is that when an AI is simply asked to write draw.io diagram code, the first attempt is usually flawed: text spills out of boxes, arrows point the wrong way, icons are missing, or reference images get pasted in as flat pictures instead of being redrawn as editable shapes. This skill gives the agent a repeatable process instead: turn the user's text and images into a diagram plan, generate the diagram file, preview it through a local web page, take a screenshot, review that screenshot for visible and logical mistakes, fix them, and repeat until it looks right. It can recreate figures from academic papers, draw architecture or data flow diagrams from an existing codebase, build machine learning pipeline diagrams showing stages and datasets, and combine several reference images with written requirements into one coherent diagram. It ships with a set of MIT-licensed icon graphics useful for common research-diagram symbols like documents, storage, and models. Using it well requires a working Python 3 installation, an internet connection since the preview loads from diagrams.net's embed service, and some form of browser automation tool such as Playwright, so the agent can actually see the screenshots it is reviewing. Without that browser piece, the agent can still generate the raw diagram file but cannot check its own visual work, which the project describes as its main value. It is not affiliated with the official diagrams.net or JGraph products, and it does not promise a perfect result on the first try.

Copy-paste prompts

Prompt 1
Use the drawio-diagram-builder skill to read this paper section and create an editable draw.io method overview diagram.
Prompt 2
Use the drawio-diagram-builder skill to draw a system architecture diagram from this codebase.
Prompt 3
Install the drawio-diagram-builder skill and run its smoke test to confirm it works in my coding agent.
Prompt 4
Use the drawio-diagram-builder skill to reproduce this reference figure as editable draw.io XML, previewing and iterating until it matches.

Frequently asked questions

What is drawio-diagram-builder-skill?

An installable AI agent skill that generates editable draw.io diagrams from papers, prompts, or codebases, using a screenshot review loop to catch and fix layout mistakes.

What language is drawio-diagram-builder-skill written in?

Mainly Python. The stack also includes Python, draw.io, Playwright.

What license does drawio-diagram-builder-skill use?

Permissive open-source license, use freely including for commercial purposes, with attribution.

How hard is drawio-diagram-builder-skill to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is drawio-diagram-builder-skill for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.