compare-render
Skill by hbmartin
Verifies graphviz2drawio conversion output by rendering a Graphviz source and its draw.io conversion as PNGs for visual comparison. Built for developers working on that repository's conversion or rendering code.
Install compare-render
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hbmartin/graphviz2drawio /tmp/graphviz2drawio && mkdir -p ~/.claude/skills && cp -r /tmp/graphviz2drawio/.codex/skills/compare-render ~/.claude/skills/compare-renderRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/hbmartin/graphviz2drawio /tmp/graphviz2drawio && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/graphviz2drawio/.codex/skills/compare-render ~/.gemini/antigravity-cli/skills/compare-renderAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
compare-render is a skill for checking that graphviz2drawio conversion output matches Graphviz's own rendering. It renders a Graphviz source file twice: once as a native Graphviz PNG using dot, and once as converted draw.io XML exported to PNG. The assistant then inspects both images for layout, node geometry, edges, labels and clusters.
The skill is written for one specific repository and relies on its scripts under scripts/. It also covers spec updates, where before, new and reference renders are compared. It is aimed at developers changing graphviz2drawio conversion or rendering code.
Written from the project's SKILL.md and checked against it.
What it can do
- Side-by-side renderRenders a Graphviz input as a dot PNG and a converted draw.io PNG using compare_render.sh.
- Visual comparisonChecks layout, node geometry, edges, labels and clusters in both PNGs before giving a verdict.
- Spec render triosRenders before, new and reference PNGs for changed specs using render_specs.sh.
- Textual spec checkRuns test_specs.sh to show spec diffs, which are treated as evidence to inspect.
- Input selection guideLists test/ Graphviz inputs grouped by feature area, such as clusters, edges, ports and gradients.
- Failure handlingReports missing dot, draw.io CLI or uv, and advises inspecting XML when the draw.io PNG is blank.
What you need
- Graphviz dot
- draw.io CLI
- uv
- Image viewing tool to open the PNG files
Try asking
- Check test/directed/cluster.gv.txt and report what differs visually from Graphviz.
- Investigate whether arrowheads look wrong in test/directed/fsm.gv.txt.
- Verify edge routing for test/undirected/polylines.gv.txt against Graphviz.
Good to know
- Written for the graphviz2drawio repository and a fixed local path.
- Depends on repo scripts under scripts/, which are not bundled with the skill.
- Cannot give a visual verdict if dot, the draw.io CLI or uv is missing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .codex/skills/compare-render/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
agents/openai.yaml277 B
Alternatives to compare-render
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
compare-render: common questions
What does compare-render compare?
It compares a native Graphviz PNG with a PNG of the converted draw.io XML for the same input. The assistant inspects both images visually.
Does it replace unit tests or XML diffs?
No. The source says XML diffs and unit checks can miss visible regressions, so visual checks are used alongside them.
When should I use this skill?
The source recommends it when modifying conversion or rendering code, updating specs, or fixing layout, style, text, edge or cluster bugs.
How do I install compare-render?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is compare-render free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is compare-render safe to use?
It scores 71 of 100. Grades: maintenance B, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to compare-render?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
