cli-anything-libreoffice
यह क्या करती है
यह स्किल आपके एजेंट को कमांड-लाइन टूल से दस्तावेज़, स्प्रेडशीट और प्रेज़ेंटेशन बनाने और संपादित करने देती है। यह उन लोगों के लिए है जिन्हें ऑफ़िस फ़ाइलें बिना ऑफ़िस ऐप खोले बनवानी हैं।
कब इस्तेमाल करें
- ✓जब आप कमांड लाइन से टेक्स्ट दस्तावेज़ बनाना या संपादित करना चाहते हैं।
- ✓जब आप स्क्रिप्ट से स्प्रेडशीट बनवाना या अपडेट करवाना चाहते हैं।
- ✓जब आप कोई Office या ODF फ़ाइल प्रोजेक्ट फ़ाइल में इंपोर्ट करना चाहते हैं।
Skill का लिंक
https://github.com/HKUDS/CLI-Anything/blob/main/libreoffice/agent-harness/cli_anything/libreoffice/skills/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एक शीर्षक और दो पैराग्राफ़ वाला नया दस्तावेज़ बनाइए और उसे ODF फ़ाइल के रूप में सेव कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल आपके कमांड से असली ODF फ़ाइलें बनाती है, जो XML वाली zip फ़ाइलें होती हैं। यह मौजूदा Office या ODF फ़ाइलों को प्रोजेक्ट फ़ाइल में इंपोर्ट भी कर सकती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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,
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए पूरा LibreOffice ऐप चाहिए?
स्किल बिना ग्राफ़िकल LibreOffice विंडो के फ़ाइलें बनाने के लिए बनी है, हालाँकि इसके नोट्स में LibreOffice को पूर्व-आवश्यकता बताया गया है।
कौन से फ़ॉर्मेट इंपोर्ट हो सकते हैं?
यह मौजूदा Office और ODF फ़ाइलें इंपोर्ट कर सकती है, और यह समर्थित इंपोर्ट फ़ॉर्मेट की सूची देती है।
यह कौन सा आउटपुट फ़ॉर्मेट इस्तेमाल करती है?
यह असली ODF फ़ाइलें बनाती है, जो अंदर XML वाली zip फ़ाइलें होती हैं।
जानकारी
लेखक का मूल विवरण
Command-line interface for Libreoffice - A stateful command-line interface for document editing, producing real ODF files (ZIP archives with ...
repo: HKUDS/CLI-Anything
लोकप्रियता
- GitHub स्टार
- 58k
- रैंकिंग में स्थान
- #3217
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 21/9/2026
कमेंट
- …
इस repository की और skills
cli-anything-3mf
58kयह आपके एजेंट को 3D प्रिंटिंग फ़ाइलों का निरीक्षण और सुधार करने देती है, जिसमें गोल छेद खोजना, उनका आकार बदलना, मेश ठीक करना और दो फ़ाइलों की तुलना शामिल है।
cli-anything-qgis
58kयह आपके एजेंट को टर्मिनल से QGIS मैप प्रोजेक्ट खोलने, संपादित करने और निर्यात करने देती है, जिसमें लेयर, फ़ीचर, प्रिंट लेआउट और प्रोसेसिंग टूल शामिल हैं।
cli-anything-adguardhome
58kयह आपके एजेंट को AdGuard Home, एक नेटवर्क-व्यापी ऐड ब्लॉकर, प्रबंधित करने देती है, जिसमें फ़िल्टर, DNS rewrites, क्लाइंट और क्वेरी लॉग शामिल हैं।
cli-anything-anygen
58kयह आपके एजेंट को लिखे गए प्रॉम्प्ट से AnyGen सेवा का उपयोग करके स्लाइड, दस्तावेज़, वेबसाइट और आरेख बनवाने देती है।
मिलती-जुलती skills
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।