autofigure

Installation
SKILL.md

AutoFigure: Image to Editable DrawIO

Convert a raster figure (PNG/JPEG) into an editable .drawio file where text, arrows, and shapes are real mxCell elements, and icons are embedded as transparent PNGs using DrawIO's image style.

Available Tools

Tool Purpose
segment_figure Detect icons/elements via SAM3 (fal.ai), produce samed.png + boxlib.json
crop_remove_bg Crop detected regions + RMBG-2.0 background removal → transparent PNGs
generate_drawio_template Multimodal LLM reconstructs the figure as DrawIO XML with gray placeholder mxCells
replace_icons_drawio Embed transparent icons into drawio placeholder mxCells → final.drawio

Legacy SVG tools (generate_svg_template, replace_icons_svg) are also available if you need SVG output instead.

Workflow

Follow these steps in order. Each step's output feeds into the next.

Related skills
Installs
1
GitHub Stars
151
First Seen
Apr 28, 2026