From antigravity-awesome-skills
Creates vector graphics, diagrams, and technical drawings in ODG format using LibreOffice Draw. Converts ODG/SVG/PDF/PNG via CLI (soffice) or Python UNO scripting. Automates batch processing and flowchart generation.
npx claudepluginhub sickn33/antigravity-awesome-skillsThis skill uses the workspace's default tool permissions.
LibreOffice Draw skill for creating, editing, converting, and automating vector graphics and diagram workflows using the native ODG (OpenDocument Drawing) format.
Creates vector graphics, diagrams, and technical drawings in ODG format using LibreOffice Draw. Converts ODG/SVG/PDF/PNG via CLI (soffice) or Python UNO scripting. Automates batch processing and flowchart generation.
Creates, edits, replicates, and converts Draw.io diagrams from text, Mermaid, CSV, YAML using YAML design system with 6 themes. Supports architecture, flowcharts, UML, ER diagrams, academic figures, math/LaTeX.
Generates dark-themed SVG diagrams for architecture, flowcharts, sequences, structures, mind maps, timelines, state machines, and data flows to visualize systems, processes, and concepts.
Share bugs, ideas, or general feedback.
LibreOffice Draw skill for creating, editing, converting, and automating vector graphics and diagram workflows using the native ODG (OpenDocument Drawing) format.
Use this skill when:
soffice --draw template.odg
import uno
def create_drawing():
local_ctx = uno.getComponentContext()
resolver = local_ctx.ServiceManager.createInstanceWithContext(
"com.sun.star.bridge.UnoUrlResolver", local_ctx
)
ctx = resolver.resolve(
"uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"
)
smgr = ctx.ServiceManager
doc = smgr.createInstanceWithContext("com.sun.star.drawing.DrawingDocument", ctx)
page = doc.getDrawPages().getByIndex(0)
doc.storeToURL("file:///path/to/drawing.odg", ())
doc.close(True)
# ODG to SVG
soffice --headless --convert-to svg drawing.odg
# ODG to PDF
soffice --headless --convert-to pdf drawing.odg
# ODG to PNG
soffice --headless --convert-to png:PNG_drawing drawing.odg
# SVG to ODG
soffice --headless --convert-to odg drawing.svg
# Batch convert
for file in *.odg; do
soffice --headless --convert-to pdf "$file"
done
soffice --headless
soffice --headless --convert-to <format> <file>
soffice --draw # Draw
pip install ezodf # ODF handling
pip install odfpy # ODF manipulation
pip install svgwrite # SVG generation
killall soffice.bin
soffice --headless --accept="socket,host=localhost,port=8100;urp;"
soffice --headless --convert-to png:PNG_drawing_Export \
--filterData='{"Width":2048,"Height":2048}' drawing.odg