Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Graphviz.Convert Image

БесплатноБез исполняемых скриптовНе проверен

Convert an image of a graph into a Graphviz Dot in an accurate way

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

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 <PREFIX>.dot
    • <PREFIX> is graphviz.convert_image.<INPUT_REF>, in the current dir
    • <INPUT_REF> comes from <IMAGE>, as in .claude/skills/skill.rules.md ### Name the Output File
  • 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 <PREFIX>.dot -o <PREFIX>.png
    > open <PREFIX>.png
    

Compare and Refine

  • If <PREFIX>.png differs from the input image:
    • Find the differences in layout, e.g.,
      • Node positions
      • Node colors
    • Apply changes to <PREFIX>.dot to 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

Verification

  • The output file is graphviz.convert_image.<INPUT_REF>.dot in the current dir
  • Confirm <PREFIX>.dot renders without errors
  • Confirm <PREFIX>.png matches the input image in node positions and colors
  • The DOT file says that it was generated by .claude/skills/graphviz.convert_image/SKILL.md

Установить Graphviz.Convert Image в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Graphviz.Convert Image?

Convert an image of a graph into a Graphviz Dot in an accurate way

Как установить скилл Graphviz.Convert Image?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Graphviz.Convert Image запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Graphviz.Convert Image с