officecli-office-automation

Create, read, and edit Word, Excel, and PowerPoint files via command line.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill officecli-office-automation-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: officecli-office-automation
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/officecli-office-automation
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill officecli-office-automation-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating and editing Office documents programmatically usually requires heavy libraries or an installed Office suite. This Skill lets you generate and modify .docx, .xlsx, and .pptx files with simple, AI-friendly CLI commands using a single dependency-free binary. ## Core Features & Use Cases - Unified document editing: Use the same add, set, get, remove, and view verbs with XPath-like addressing across Word paragraphs, Excel cells, and PowerPoint slides. - Rich content support: Add tables, charts, images, pivot tables, formulas, conditional formatting, slide transitions, and RTL/internationalized text. - Live preview and rendering: Watch documents auto-refresh in a browser and render files to HTML or PNG without Office installed. - Use Case: Generate a monthly sales report by creating an Excel file, populating cells with data and SUM formulas, then adding a line chart, all from a shell script. ## Quick Start Ask the AI to create a Word document named report.docx with a Heading1 title and a summary paragraph using OfficeCLI.

Frequently Asked Questions about officecli-office-automation

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?▼

Run officecli create document.docx to make a blank file, then use officecli add with --type paragraph and --prop text to insert content. Styles, alignment, bold, color, and font size are set through additional --prop flags.

How to add formulas and charts to an Excel file programmatically?▼

Use officecli add with a cell address like $Sheet1:C1 and --prop formula='=SUM(B1:B10)' for formulas, which auto-evaluate across 150+ functions. Add charts with --type chart, specifying chartType, dataRange, and title.

Does OfficeCLI require Microsoft Office to be installed?▼

No, OfficeCLI is a single standalone binary that works without any Office installation. It can create, edit, and render .docx, .xlsx, and .pptx files to HTML or PNG independently.

Can I preview PowerPoint slides while editing them?▼

Yes, run officecli watch presentation.pptx to start a live preview server on localhost:26315. Every edit auto-refreshes the browser, and you can set a custom port with the --port flag.

Why is my OfficeCLI formula showing a #NAME? error?▼

A #NAME? error means the formula uses a function outside the 150+ supported built-in functions. Check the formula syntax with officecli get on the cell using --json to inspect the stored value.

Does OfficeCLI support right-to-left languages like Arabic?▼

Yes, set --prop direction=rtl and --prop lang.cs=ar-SA on paragraphs for RTL rendering. You can also assign per-script fonts using font.latin, font.ea, and font.cs properties for mixed-language documents.