gpsaggese/helpers / .claude/skills/graphviz.convert_image
graphviz.convert_image
VerifiedConvert an image of a graph into a Graphviz Dot in an accurate way
Goal
- Given an input image of a graph, convert it into a Graphviz DOT file that matches it exactly
Workflow
Create the Graphviz File
- Create a DOT file that matches the figure exactly
- Save the result in
graph.dot - Say in the DOT file how it was generated, with this comment at the top:
// Generated by `.claude/skills/graphviz.convert_image/SKILL.md`
Render to Image
- Generate an image from the graph description:
> dot -Tpng graph.dot -o graph.png > open graph.png
Compare and Refine
- If
graph.pngdiffers from the input image:- Find the differences in layout, e.g.,
- Node positions
- Node colors
- Apply changes to
graph.dotto approximate the input image, e.g.,- Use rank to keep the nodes in the same relative position
- Change node colors to match the input image
- Find the differences in layout, e.g.,
Verification
- Confirm
graph.dotrenders without errors - Confirm
graph.pngmatches the input image in node positions and colors - The DOT file says that it was generated by
.claude/skills/graphviz.convert_image/SKILL.md
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |