AGENT SKILL
graphviz.convert_image
Convert an image of a graph into a Graphviz Dot in an accurate way
使用场景图像与多媒体
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- model
- haiku
- description
- Convert an image of a graph into a Graphviz Dot in an accurate way
03 SKILL.md 正文
Goal
- Given the input image of a graph, convert it into a Graphviz DOT file that matches it exactly
Workflow
Create the Graphviz File
- Create a Graphviz DOT file to match exactly the figure
- Save the result in
graph.dot
Render to Image
- After the graph description is generated, generate an image with:
> dot -Tpng graph.dot -o graph.png > open graph.png
Compare and Refine
- If the generated PNG image is different from the input image:
- Find the differences in terms of layout, e.g.,
- Check the position of the nodes
- Check the colors of the nodes are the same
- Apply changes to
graph.dotto approximate the input image, e.g.,- Use rank to keep the nodes in the same relative position
- Change the color of nodes in
graph.dotto match the input image
- Find the differences in terms of layout, e.g.,
Verification
- [ ] Confirm
graph.dotrenders without errors - [ ] Confirm
graph.pngmatches the input image in node positions and colors
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
★ 0
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
★ 0
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
★ 0
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
★ 0
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 0
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 0