Aller au contenu
Skillpedia
PDF, Word et présentations58k · #3217

cli-anything-libreoffice

Ce qu’il fait

Cette compétence permet à votre agent de créer et de modifier des documents, des feuilles de calcul et des présentations par un outil en ligne de commande. Elle s'adresse aux personnes qui ont besoin de fichiers bureautiques sans ouvrir d'application bureautique.

Quand l’utiliser

  • ✓Quand vous voulez créer ou modifier un document texte en ligne de commande.
  • ✓Quand vous voulez construire ou mettre à jour une feuille de calcul depuis un script.
  • ✓Quand vous voulez importer un fichier Office ou ODF dans un fichier de projet.

Lien du skill

https://github.com/HKUDS/CLI-Anything/blob/main/libreoffice/agent-harness/cli_anything/libreoffice/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/CLI-Anything/blob/main/libreoffice/agent-harness/cli_anything/libreoffice/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Crée un nouveau document avec un titre et deux paragraphes, et enregistre-le au format ODF.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence construit de vrais fichiers ODF, qui sont des archives zip contenant du XML, à partir de vos commandes. Elle peut aussi importer des fichiers Office ou ODF existants dans un fichier de projet.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Calc

Calc (spreadsheet) commands.

Command Description
add-sheet Add a new sheet
remove-sheet Remove a sheet by index
rename-sheet Rename a sheet
set-cell Set a cell value
get-cell Get a cell value
list-sheets List all sheets

Impress

Impress (presentation) commands.

Command Description
add-slide Add a slide to the presentation
remove-slide Remove a slide by index
set-content Update a slide's title and/or content
list-slides List all slides
add-element Add an element to a slide

Style Group

Style management commands.

Command Description
create Create a new style
modify Modify an existing style
list List all styles
apply Apply a style to a content item (Writer only)
remove Remove a style

Export Group

Export/render commands.

Command Description
presets List export presets
preset-info Show preset details
render Export the document to a file

Session

Session management commands.

Command Description
status Show session status
undo Undo the last operation
redo Redo the last undone operation
history Show undo history

Examples

Create a New Project

Create a new libreoffice project file.

cli-anything-libreoffice project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-libreoffice --json project new -o myproject.json

Interactive REPL Session

Start an interactive session with undo/redo support.

cli-anything-libreoffice
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation

Export Project

Export the project to a final output format.

cli-anything-libreoffice --project myproject.json export render output.pdf --overwrite

State Management

The CLI maintains session state with:

  • Undo/Redo: Up to 50 levels of history
  • Project persistence: Save/load project state as JSON
  • Existing file import: Convert ODF/DOCX/XLSX/PPTX and related formats into editable project JSON
  • Session tracking: Track modifications and changes

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors,
Questions fréquentes

Faut-il l'application LibreOffice complète ?

La compétence est conçue pour produire des fichiers sans fenêtre LibreOffice, même si ses notes listent LibreOffice comme prérequis.

Quels formats peut-elle importer ?

Elle peut importer des fichiers Office et ODF existants, et elle liste les formats d'importation pris en charge.

Quel format de sortie utilise-t-elle ?

Elle produit de vrais fichiers ODF, c'est-à-dire des archives zip contenant du XML.

Détails

Description originale de l’auteur

Command-line interface for Libreoffice - A stateful command-line interface for document editing, producing real ODF files (ZIP archives with ...

repo: HKUDS/CLI-Anything

Popularité

Étoiles GitHub
58k
Position au classement
#3217
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires