Skip to content

LibreOffice Document CLI

Lets an agent create and edit Writer, Calc and Impress documents through a command-line tool, without a GUI.

Stars
58,084
Licence
Apache-2.0
Files
1 file

What it does

This skill teaches an AI agent to use a command-line tool called cli-anything-libreoffice, which creates and edits word-processing, spreadsheet and presentation files (ODF format, plus import of DOCX, XLSX and PPTX) without opening LibreOffice's graphical app. The agent works in steps: it builds a project file, adds headings, paragraphs, tables, sheets or slides, supports undo and redo, and finally exports to formats such as PDF. Its output can be read as JSON, which makes it easier for software to process.

Great for

  • Developers who want an AI agent to generate or batch-edit office documents in a scripted pipeline
  • Data users who need spreadsheet or report files produced automatically from structured input
  • Anyone automating document conversion from DOCX or XLSX into editable project files

Skip it if

  • People who only need a one-off edit and are happy in a normal office app, since installing Python tooling adds effort
  • Editing sensitive or confidential documents by pushing them through an unfamiliar tool without reviewing its output, because the skill runs local code on the files it is given

Try asking

  • “Create a new Writer document with a heading, two paragraphs and a table, then export it to PDF”
  • “Import report.docx into an editable project file and list its content items”
  • “Add a sheet to a Calc workbook, set some cell values, and save it”
  • “Build a five-slide Impress deck with titles and content on each slide”
Step-by-step guide: how to use LibreOffice Document CLIInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.

    skills.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip skills.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip skills.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask the agent to use the --json flag so its output is structured and easier to check
  • Use absolute file paths, as the skill recommends, to avoid writing to the wrong location
  • Import existing Office files to project JSON first, then edit and export, and verify the output file exists afterwards

What's inside

  • SKILL.md

Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.