officecli

Create, inspect, and modify Word, Excel, and PowerPoint documents via a command-line interface.

284|54|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/nomifun/nomifun-desktop --skill officecli-nomifun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: officecli
Source: https://github.com/nomifun/nomifun-desktop/tree/main/crates/backend/nomifun-app/assets/builtin-skills/officecli
Command: npx skills add https://github.com/nomifun/nomifun-desktop --skill officecli-nomifun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Editing Office documents programmatically usually requires heavy libraries or an installed Office suite. This Skill lets you create, read, proofread, and modify .docx, .xlsx, and .pptx files through a single dependency-free CLI, without Microsoft Office installed. ## Core Features & Use Cases - Layered editing model: Read documents (outline, stats, issues, text, HTML), edit via DOM operations (add, set, move, remove, batch), or drop to raw XML for full control. - Live preview and review: Watch mode renders documents in a browser with click-to-select, and marks let you propose changes for human review before applying them. - Specialized sub-skills: Load dedicated rule sets for pitch decks, academic papers, financial models, and data dashboards. - Use Case: Ask the AI to build a Q4 sales deck with styled slides and charts, then validate the file and preview it in the browser before sending it out. ## Quick Start Use the officecli skill to create a PowerPoint file named report.pptx with a title slide and a revenue summary text box.

Frequently Asked Questions about officecli

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

FAQPage Schema
How do I create and edit Word, Excel, or PowerPoint files from the command line?▼

Use officecli create to make a blank .docx, .xlsx, or .pptx file, then add or set elements with paths like '/body/p[1]' or '/slide[1]'. Run officecli help <format> <element> to see exact property names instead of guessing.

How do I find and replace text in a docx or pptx file?▼

Use officecli set with the find and replace props, for example: officecli set doc.docx / --prop find=draft --prop replace=final. The path controls scope, regex is supported with regex=true, and Excel supports find plus replace only.

Does officecli require Microsoft Office to be installed?▼

No. officecli is a single binary with no dependencies and no Office installation needed. Install it on macOS or Linux with the curl install script, or on Windows with the PowerShell installer, then verify with officecli --version.

Can I preview Office document changes in a browser?▼

Yes. Run officecli watch <file> to start a live HTML preview that refreshes on every change. You can click shapes to select them, read the selection with officecli get <file> selected, and use marks to propose edits for review.

Why does my officecli path with brackets fail in the shell?▼

Shells like zsh and bash glob-expand brackets, so paths like /slide[1] must be quoted: '/slide[1]'. Also note paths are 1-based while the --index flag is 0-based, except Excel row and column inserts which are 1-based.

What are the limitations of officecli watch selection?▼

Watch selection covers pptx shapes, pictures, tables, charts, connectors, and groups, plus top-level docx paragraphs and tables. Excel does not emit data-paths, group children are not individually selectable, and Word nested elements like table cells are not addressable.