cli-anything-libreoffice

cli-anything-libreoffice is a skill for Claude Code, Codex from HKUDS/CLI-Anything. It costs 34 tokens per session (1,352 once invoked), scanned A, original, Apache-2.0.

A command-line interface for LibreOffice, a free office suite for text documents, spreadsheets, and presentations. It creates and edits real LibreOffice documents, including Writer, Calc, and Impress files.

In plain words
What is it for?
Creating, opening, editing, and saving documents, spreadsheets, and presentations. It is intended for automated document workflows and requires LibreOffice to be installed.
Why use it?
It lets scripts and coding agents work with office documents without clicking through the LibreOffice interface. Projects can also be handled interactively or with machine-readable JSON output.

Skill for Claude CodeCodex

About the project

CLI-Anything turns software and services into command-line interfaces that AI agents can use to perform tasks and produce artifacts. It is intended for people building or using agent workflows with tools such as coding assistants, design software, and other applications. The catalogue entries are skills, commands, a plugin, and a rule for working with CLI-Anything.

HKUDS/CLI-Anything · 48,985 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hkuds/cli-anything/cli-anything-libreoffice
Any agent
npx skills add HKUDS/CLI-Anything --skill cli-anything-libreoffice
Clone the repo
git clone --depth 1 https://github.com/HKUDS/CLI-Anything

Made for: Claude Code, Codex.

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 cli-anything-libreoffice

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-libreoffice.svg)](https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-libreoffice)
Your own site
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-libreoffice"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-libreoffice.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.01352
Opus 5 $0.00017 $0.00676
Sonnet 5 $0.00007 $0.00270
Haiku 4.5 $0.00003 $0.00135

Measured 5d ago against content hash 64b02c1038a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cli-anything-libreoffice 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 5d ago.

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/cli-anything-libreoffice/SKILL.md · 231 lines

How it starts

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

cli-anything-libreoffice

A stateful command-line interface for document editing, producing real ODF files (ZIP archives with XML). Designed for AI agents and power users who need to create and manipulate Writer, Calc, and Impress documents without a GUI or LibreOffice installation.

Installation

This CLI is installed as part of the cli-anything-libreoffice package:

pip install cli-anything-libreoffice

Prerequisites:

  • Python 3.10+
  • libreoffice must be installed on your system

Usage

Basic Commands

# Show help
cli-anything-libreoffice --help

# Start interactive REPL mode
cli-anything-libreoffice

# Create a new project
cli-anything-libreoffice project new -o project.json

# Run with JSON output (for agent consumption)
cli-anything-libreoffice --json project info -p project.json

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-libreoffice
# Enter commands interactively with tab-completion and history

Command Groups

Document

Document management commands.

Command Description
new Create a new document
open Open project JSON, or import an existing Office/ODF file
import Import an existing Office/ODF file to project JSON
import-formats List supported import formats
save Save the current document
info Show document information
profiles List available page profiles
json Print raw project JSON

Writer

Writer (word processor) commands.

Command Description
add-paragraph Add a paragraph to the document
add-heading Add a heading to the document
add-list Add a list to the document
add-table Add a table to the document
add-page-break Add a page break
remove Remove a content item by index
list List all content items
set-text Set the text of a content item

Read the full file on GitHub · 231 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. 5d ago First seen · 231 lines · 34 tokens per session scan A 64b02c1038a9

Subscribe to this mod's changes

cli-anything-libreoffice is a skill published in the GitHub repository HKUDS/CLI-Anything (48,985 stars, last pushed 15d ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,352 once invoked, about $0.0002 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-30.