odg

odg is a skill for Claude Code from leiverkus/open-document-skills. It costs 56 tokens per session (3,136 once invoked), scanned A, original, MIT.

An add-on for creating and working with OpenDocument Graphics files, the editable drawing format used by LibreOffice Draw. It supports diagrams such as flowcharts, organisation charts, and mind maps.

In plain words
What is it for?
Use it to create, read, edit, repair, inspect, or export ODG diagrams, including drawings with connected shapes and grouped elements.
Why use it?
It avoids manually editing the compressed XML files inside an ODG document and provides ways to inspect, convert, and visually check drawings.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is zip -0 -X ../output.odg mimetype.

Part of the open-document-skills plugin — 4 skills shipped together

Good fit Use it to create, read, edit, repair, inspect, or export ODG diagrams, including drawings with connected shapes and grouped elements.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/leiverkus/open-document-skills
agentmods
npx agentmods add skills/leiverkus/open-document-skills/odg

Made for: Claude Code.

Or install open-document-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for odg

README.md
[![agentmods](https://agentmods.dev/badge/skills/leiverkus/open-document-skills/odg/github.svg)](https://agentmods.dev/skills/leiverkus/open-document-skills/odg)
Your own site
<a href="https://agentmods.dev/skills/leiverkus/open-document-skills/odg"><img src="https://agentmods.dev/badge/skills/leiverkus/open-document-skills/odg/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for odg

Your own site · 80×15
<a href="https://agentmods.dev/skills/leiverkus/open-document-skills/odg"><img src="https://agentmods.dev/badge/skills/leiverkus/open-document-skills/odg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.03136
Opus 5 $0.00028 $0.01568
Sonnet 5 $0.00011 $0.00627
Haiku 4.5 $0.00006 $0.00314

Measured 8d ago against content hash d58e2bfda500, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

odg scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 18 executable files (scripts/add_gluepoint.py, scripts/add_image.py, scripts/connect_shapes.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/odg/SKILL.md · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ODG creation, editing, and analysis

Overview

An .odg file is an OpenDocument ZIP package for vector drawings, diagrams, and LibreOffice Draw documents. Important package files:

  • mimetype - should be the first ZIP entry and stored uncompressed as application/vnd.oasis.opendocument.graphics
  • content.xml - pages, shapes, connectors, text boxes, images, and drawing content
  • styles.xml - drawing, text, page, and graphic styles
  • meta.xml - document metadata
  • settings.xml - application settings
  • META-INF/manifest.xml - package manifest
  • Pictures/... - embedded raster or vector media

Quick Reference

Task Preferred approach
Create simple drawing/diagram Generate ODG package XML directly
Create branded/repeated diagram Start from an .odg template and edit XML
Use SVG-first Only when portable vector output matters more than Draw editability
Extract visible text Use scripts/extract_text.py or parse content.xml
Inspect shapes/geometry Use scripts/extract_shapes.py
Convert ODG to PDF/SVG/PNG LibreOffice headless export
Visual QA Export to PDF/PNG/SVG and inspect the rendered output

Tool Checks

Before starting a real ODG task, check available tools:

which pandoc

Resolve the LibreOffice command as described in docs/soffice-resolver.md.

Reading and Inspecting

For raw package inspection:

unzip -l input.odg
python -m zipfile -e input.odg unpacked_odg

Drawing content is usually in content.xml. Inspect:

  • draw:page for pages/canvases
  • draw:custom-shape, draw:rect, draw:ellipse, draw:path, draw:line, and draw:connector for vector objects
  • draw:frame and draw:image for embedded media
  • text:p and text:span for visible text labels
  • style:style references for fill, stroke, text, and positioning behavior

Use an XML parser with namespace support. Do not use regex for XML edits.

Read the full file on GitHub · 314 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 314 lines · 56 tokens per session scan A d58e2bfda500

Subscribe to this mod's changes

odg is a skill published in the GitHub repository leiverkus/open-document-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 3,136 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pdf-design

Designs PDF reports and proposals from HTML with previews and branding. Use to create, export, or securely upload a PDF.

jamditis/claude-skills-journalism · 28 tokens

document-design

Creates print-ready HTML that exports to PDF. Use to make a proposal, report, one-pager, newsletter, slides, or flyer.

jamditis/claude-skills-journalism · 31 tokens

design-export-repair

Fixes broken decks/PDFs exported from Claude's "Design" feature (or similar AI deck generators) — cut-off or clipped text, wrong/substituted fonts, and corrupted .pptx package structure that shows up only once you export to PDF, not while looking at it in the app. Use this skill whenever the user uploads a zip, .pptx…

OneWave-AI/claude-skills · 219 tokens

brand-consistency-checker

Scan documents and slides for off-brand colors, fonts, and logos. Validate against brand guidelines and suggest corrections.

OneWave-AI/claude-skills · 28 tokens

strategy-consulting-visualization

Use when turning any content into clear, professional visualizations - board slides, reports, proposals, research summaries, training materials, technical diagrams, infographics, process flows, timelines, benchmarks, waterfall charts, or data-backed visual specs for any audience.

kgraph57/mckinsey-style-visualization-skill · 58 tokens

convert-mermaid

Translate .mmd diagram files into PNG images with configurable resolution (retina/HQ/scale), supporting rasterization (raster, rasterize, rasterization). V2 includes L5 Delegated Constraint Verification via verifypng for strict binary linting and Puppeteer-based rendering.

richfrem/agent-plugins-skills · 60 tokens