officecli

Create, inspect, and modify Word, Excel, and PowerPoint documents via the officecli CLI.

2|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/ShineBreaker/Guix-configs --skill officecli-shinebreaker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: officecli
Source: https://github.com/ShineBreaker/Guix-configs/tree/main/dotfiles/mutable/agents/skills/.config/agents/skills/officecli
Command: npx skills add https://github.com/ShineBreaker/Guix-configs --skill officecli-shinebreaker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Editing .docx, .xlsx, and .pptx files programmatically usually requires heavy libraries or an Office installation. This Skill lets an AI agent create, read, proofread, and modify Office documents through a single dependency-free CLI, with structured JSON output and a live browser preview. ## Core Features & Use Cases - Layered editing model: L1 read/inspect (view, get, query, validate), L2 DOM operations (add, set, move, remove, batch), and L3 raw XML for anything the DOM layer cannot express. - Live preview and selection: watch serves an auto-refreshing HTML preview where users click shapes or paragraphs, and the agent reads the selection back to apply edits. - Specialized sub-skills: Loadable rule sets for pitch decks, academic papers, financial models, dashboards, and Morph-animated presentations. - Use Case: Ask the agent to build a Q4 sales deck: it creates the .pptx, adds slides and styled shapes, runs view issues to catch formatting problems, and validates the file before delivery. ## Quick Start Ask the agent to create a PowerPoint file named slides.pptx with a title slide and a text shape, then verify it with officecli validate.

Frequently Asked Questions about officecli

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

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

Use officecli commands like create, add, set, and remove with element paths such as '/body/p[1]' or '/slide[1]/shape[2]'. 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 programmatically?▼

Run officecli set with --find and --replace, for example: officecli set doc.docx / --find draft --replace final. The path controls scope, regex is supported via --prop regex=true, and Word supports tracked revisions.

Does officecli require Microsoft Office to be installed?▼

No. officecli is a single binary with no dependencies and no Office installation requirement. It reads and writes .docx, .xlsx, and .pptx files directly using the OpenXML format.

Can officecli create pivot tables and charts in Excel?▼

Yes. Use add --type pivottable with props like source, rows, cols, and values, or add --type chart for charts. Run officecli help xlsx pivottable for the full property schema including aggregators and layout options.

Why do my officecli path arguments fail in the shell?▼

Paths containing brackets like '/slide[1]' get glob-expanded by zsh or bash if unquoted. Always quote paths, and remember paths are 1-based while the --index flag is 0-based (except Excel row/col inserts, which are 1-based).

What are the limitations of officecli batch operations?▼

Batches are atomic by default: if any item fails, the whole batch rolls back and the file stays unchanged. Use --best-effort to keep partial successes, which is recommended for lossy dump-to-batch replays.