Agent skill

Compare Render

by hbmartin in hbmartin/graphviz2drawio

Visually verify graphviz2drawio conversion fidelity by rendering a Graphviz source as both native Graphviz PNG and converted draw.io PNG, then inspecting the images.

GPL-3.0Auto-check passedDevelopment

Install Compare Render

skills CLI
$ npx skills add hbmartin/graphviz2drawio --skill compare-render -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hbmartin/graphviz2drawio compare-render --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hbmartin/graphviz2drawio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/compare-render .claude/skills/compare-render && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compare-render
GitHub stars
275
Token cost
~1.2k tokens
SKILL.md length
413 words
Files
2
Skills in repo
3
Repo updated
First seen
Licence
GPL-3.0

At a glance

Visually verify graphviz2drawio conversion fidelity by rendering a Graphviz source as both native Graphviz PNG and converted draw.io PNG, then inspecting the images.

  • Works in 6 steps: Work from the repo root → Pick 1-3 relevant Graphviz inputs under… → Render the comparison → …
  • Modifying graphviz2drawio conversion
  • SKILL.md covers Purpose, Core Workflow, Choosing Inputs and Broader Regression Checks, plus 2 more sections
  • Calls uv

What it does

Compare Render is an agent skill from hbmartin/graphviz2drawio. Visually verify graphviz2drawio conversion fidelity by rendering a Graphviz source as both native Graphviz PNG and converted draw.io PNG, then inspecting the images. Use when modifying graphviz2drawio conversion or rendering code, updating specs, fixing layout, style, text, edge, or cluster bugs, or answering whether converted output looks right, improved, or regressed. Always perform a visual check before declaring conversion changes done.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development. It works with draw.io. The repository describes itself as: Convert graphviz (dot) files to draw.io / lucid (mxGraph) format. Beautiful and editable graphs in your favorite editor. The licence is GPL-3.0.

When your agent uses it

  • Modifying graphviz2drawio conversion
  • Answering whether converted output looks right

Example prompts

  • “/compare-render”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Work from the repo root
  2. Pick 1-3 relevant Graphviz inputs under test/. Prefer one small focused case and, when risk is broader, one stress or integration case.
  3. Render the comparison
  4. Inspect both PNGs with Codex image tooling. Prefer view_image and pass absolute paths, for example
  5. Compare deliberately
  6. Report concrete observations and a clear fidelity verdict. Name specific visible matches or differences; do not summarize as only "looks…

What it can do on your machine

Read from SKILL.md and the folder at commit 96c691c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Compare Render loads about 1.2k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 413 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hbmartin/graphviz2drawio at commit 96c691c, republished under its GPL-3.0 licence (© hbmartin). 413 words, ~1,243 tokens.

Download SKILL.mdSave it as .claude/skills/compare-render/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
compare-render
description
Visually verify graphviz2drawio conversion fidelity by rendering a Graphviz source as both native Graphviz PNG and converted draw.io PNG, then inspecting the images. Use when modifying graphviz2drawio conversion or rendering code, updating specs, fixing layout, style, text, edge, or cluster bugs, or answering whether converted output looks right, improved, or regressed. Always perform a visual check before declaring conversion changes done.

Compare Render

Purpose

Use this repo-specific workflow for /Users/haroldmartin/Downloads/graphviz2drawio. Correctness is visual: the draw.io render should match Graphviz's own render, and XML diffs or unit checks can miss visible regressions.

Do not create bundled helper scripts for this skill. Use the repository scripts already present under scripts/.

Core Workflow

  1. Work from the repo root:

    bash
    cd /Users/haroldmartin/Downloads/graphviz2drawio
  2. Pick 1-3 relevant Graphviz inputs under test/. Prefer one small focused case and, when risk is broader, one stress or integration case.

  3. Render the comparison:

    bash
    ./scripts/compare_render.sh test/directed/hello.gv.txt tmp_render/hello

    This writes:

    • <base>_graphviz.png: Graphviz reference rendered by dot
    • <base>_drawio.png: converted draw.io XML exported as PNG
    • <base>.xml: intermediate draw.io XML
  4. Inspect both PNGs with Codex image tooling. Prefer view_image and pass absolute paths, for example:

    text
    /Users/haroldmartin/Downloads/graphviz2drawio/tmp_render/hello/hello_graphviz.png
    /Users/haroldmartin/Downloads/graphviz2drawio/tmp_render/hello/hello_drawio.png
  5. Compare deliberately:

    • Overall layout: node positions and relative arrangement
    • Node geometry: shapes, sizes, fills, borders, and colors
    • Edges: routing, curvature, attachment points, arrowheads, and direction
    • Labels: text content, placement, font size, and edge-label placement
    • Clusters/subgraphs: bounding boxes and whether they enclose the right nodes
  6. Report concrete observations and a clear fidelity verdict. Name specific visible matches or differences; do not summarize as only "looks good".

Choosing Inputs

Feature areaGood inputs
Minimal smoke testtest/directed/hello.gv.txt
Node shapes and polygonstest/directed/fsm.gv.txt, test/directed/switch.gv.txt
Clusters and subgraphstest/directed/cluster.gv.txt, test/directed/compound.gv.txt, test/directed/subgraph_multiple.gv.txt
Colorstest/directed/Twelve_colors.gv.txt
Gradientstest/gradient/colors.gv.txt, test/gradient/radial_angle.gv.txt
Edge routing and curvestest/undirected/polylines.gv.txt, test/undirected/polylines_curved.gv.txt
Portstest/directed/port.gv.txt
Labels and multi-labelstest/directed/multilabel.gv.txt, test/directed/tooltip.gv.txt
Records and HTML tablestest/directed/datastruct.gv.txt, test/directed/UML_Class_diagram.gv.txt, test/directed/subgraph_with_tables.gv.txt
Radial layoutstest/twopi/twopi2.gv.txt, test/undirected/networkmap_twopi.gv.txt
Large or stress graphstest/directed/Linux_kernel_diagram.gv.txt, test/directed/world.gv.txt
Show full SKILL.md (172 more words)Show less

Broader Regression Checks

When specs changed or the implementation touches shared layout, style, labels, edges, or XML generation, run the textual spec check:

bash
uv run ./scripts/test_specs.sh test tmp_out

Treat diffs as evidence to inspect, not automatic failure. If the new output is intentionally better, update specs through the repo's normal process.

For changed specs, render before/new/reference trios:

bash
./scripts/render_specs.sh test specs tmp_render

Inspect generated _new.png, _old.png, and _reference.png files with view_image before claiming the new render improves fidelity.

Failure Handling

  • If compare_render.sh reports missing dot, draw.io CLI, or uv, report the exact missing dependency and stop the visual verdict.
  • If the draw.io PNG is blank or missing, inspect the generated XML before assuming the renderer is wrong.
  • Keep generated output in tmp_render/ or tmp_out/; those paths are gitignored and should not be committed.

Forward-Test Prompts

Use these realistic prompts when validating changes to this skill:

  • Use $compare-render at /Users/haroldmartin/Downloads/graphviz2drawio/.codex/skills/compare-render to check test/directed/cluster.gv.txt and report what differs visually.
  • Use $compare-render at /Users/haroldmartin/Downloads/graphviz2drawio/.codex/skills/compare-render to investigate whether arrowheads look wrong in test/directed/fsm.gv.txt.
  • Use $compare-render at /Users/haroldmartin/Downloads/graphviz2drawio/.codex/skills/compare-render to verify edge routing fidelity for test/undirected/polylines.gv.txt and test/undirected/polylines_curved.gv.txt.

© hbmartin, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .codex/skills/compare-render of hbmartin/graphviz2drawio.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 96c691c

Compare with similar skills

Compare Render next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Compare Render compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Compare Render this skillhbmartin/graphviz2drawio275—~1.2kAutomated safety check: PassGPL-3.0
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Draw.io Diagram ReconstructionHKUSTDial/Supervisor-Skills8.5k—~5.4kAutomated safety check: PassMIT
Scibox Diagramjihe520/sci-box2481 repos~983Automated safety check: NotesNone
Drawio Diagram BuilderWill-hxw/drawio-diagram-builder412—~5.9kAutomated safety check: PassMIT

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Draw.io Diagram Reconstruction

    HKUSTDial/Supervisor-Skills

    Rebuilds a reference diagram image as an editable, high-fidelity Draw.io file, mixing native elements, SVG icons and cropped PNGs, with a batch workflow for a folder of images.

    8.5k GitHub stars~5.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Scibox Diagram

    jihe520/sci-box

    制作与修改可编辑的 draw.io / diagrams.net 示意图(.drawio XML),产出 .drawio + PNG/PDF。三条路径:套用内置模板(五带技术路线图、三栏研究框架图、三栏阶段流程图、横版任务流水线图)、从零手写…

    248 GitHub starsUsed in 1 repo~983 tokens
    DevelopmentAuto-check: notes
  • Drawio Diagram Builder

    Will-hxw/drawio-diagram-builder

    Create, edit, replicate, and iteratively refine editable research and technical diagrams in diagrams.net/draw.io (.drawio XML) from prompts, papers, repositories, screenshots, or existing diagrams.

    412 GitHub stars~5.9k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Drawio Azure

    sparklabx/drawio-ai-kit

    A skill your agent uses when the user asks for an Azure architecture diagram — VNet/networking, App Service, AKS, landing zone, multi-region, or any diagram built with Azure service icons.

    652 GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed

More from hbmartin/graphviz2drawio

  • Sonarqube Analysis

    hbmartin/graphviz2drawio

    Inspect SonarQube Cloud/SonarCloud findings for this repository using local .env credentials.

    275 GitHub stars~508 tokensUpdated 2 mo ago
    Auto-check: notes
  • Compare Render

    hbmartin/graphviz2drawio

    Visually verify graphviz2drawio conversion fidelity by rendering a graphviz source side-by-side as a native graphviz PNG and a converted draw.io PNG, then reading both images to compare.

    275 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Compare Render

What does Compare Render do?

Visually verify graphviz2drawio conversion fidelity by rendering a Graphviz source as both native Graphviz PNG and converted draw.io PNG, then inspecting the images. Compare Render is an agent skill from hbmartin/graphviz2drawio.io PNG, then inspecting the images.

When should I use Compare Render?

Compare Render fits situations like: modifying graphviz2drawio conversion; answering whether converted output looks right.

How do I install Compare Render in Claude Code?

Run `npx skills add hbmartin/graphviz2drawio --skill compare-render -a claude-code`. Or copy the skill folder (.codex/skills/compare-render in hbmartin/graphviz2drawio) into .claude/skills/compare-render in your project. Claude Code loads it when a task matches its description.

How do I install Compare Render in Codex?

Run `npx skills add hbmartin/graphviz2drawio --skill compare-render -a codex`. Or copy the skill folder (.codex/skills/compare-render in hbmartin/graphviz2drawio) into .agents/skills/compare-render in your project. Codex loads it when a task matches its description.

Can I use Compare Render in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hbmartin/graphviz2drawio --skill compare-render -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compare-render, .gemini/skills/compare-render, .github/skills/compare-render and .opencode/skills/compare-render in your project.

What does Compare Render need to run?

Going by SKILL.md and its folder, Compare Render needs the command-line tools its instructions call (uv).

Does Compare Render access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Compare Render safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Compare Render use?

Compare Render is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Compare Render use?

About 1.2k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Compare Render?

Skills that share tags, products or a category with Compare Render: Diagram Design (cathrynlavery/diagram-design, 45k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars), Draw.io Diagram Reconstruction (HKUSTDial/Supervisor-Skills, 8.5k stars) and Scibox Diagram (jihe520/sci-box, 248 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compare Render?

hbmartin (a GitHub user) maintains it in hbmartin/graphviz2drawio, which has 275 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on August 7, 2026.

Source: hbmartin/graphviz2drawio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.