cli-anything-office

Automates Office document, spreadsheet, and presentation creation via a cross-platform CLI.

1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/HalseyYang/Skills-HY --skill cli-anything-office-halseyyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-office
Source: https://github.com/HalseyYang/Skills-HY/tree/main/cli-anything-office
Command: npx skills add https://github.com/HalseyYang/Skills-HY --skill cli-anything-office-halseyyang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pywin32.

What problem does it solve? Creating and editing Word documents, Excel spreadsheets, and PowerPoint presentations programmatically across platforms is fragmented and error-prone. This Skill provides a unified command-line interface to build, edit, style, and export Office files as structured projects, with JSON output designed for AI agent automation. ## Core Features & Use Cases - Document, Spreadsheet, and Presentation Management: Create Writer documents, Calc spreadsheets, and Impress presentations with commands for paragraphs, tables, cells, slides, and images. - PPT Design System: Apply 4 design presets (academic, consultant, business, tech), 14 layout templates, and talk-type sequences, then run a 5-dimension quality review before export. - Multi-Format Export: Render projects to DOCX, XLSX, PPTX, PDF, CSV, HTML, and more via LibreOffice on macOS/Linux or WPS/Microsoft Office COM on Windows. - Use Case: Ask the agent to generate a 15-page business report PPT: it applies the business preset, builds slides from layout templates, runs quality checks, and exports both PPTX and PDF. ## Quick Start Use the cli-anything-office skill to create a new Writer document project, add a heading and a paragraph, then export it as a DOCX file.

Frequently Asked Questions about cli-anything-office

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Word document from the command line?

Create a project with document new --type writer, then add content using writer add-heading, add-paragraph, and add-table commands. Finally run export render with the docx preset to produce the Word file.

How to generate a PowerPoint presentation with design presets?

Apply a design preset with preset apply (academic, consultant, business, or tech), then build slides following the talk-type sequence and layout templates. Export with the pptx preset and optionally run the 5-dimension quality review first.

Does this CLI work on macOS without LibreOffice?

Project editing commands work without LibreOffice, but real Office file export on macOS requires LibreOffice installed via brew. The current version does not call Mac WPS directly, so export claims without LibreOffice are not valid.

Can I use WPS Office instead of Microsoft Office on Windows?

Yes, on Windows the CLI communicates with WPS Office through COM interfaces (KWPS.Application, KET.Application, KWPP.Application) with pywin32 installed. The WPS COM API is highly compatible with Microsoft Office VBA.

What export formats are supported for spreadsheets?

Calc projects export to xlsx, xls, csv, and pdf-calc presets. Writer supports docx, doc, pdf, txt, and html, while Impress supports pptx, ppt, and pdf-impress.