officecli

Edit and validate .docx, .xlsx, and .pptx files via a dependency-free CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/escotilha/claude-public --skill officecli-escotilha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli
Source: https://github.com/escotilha/claude-public/tree/main/skills/officecli
Command: npx skills add https://github.com/escotilha/claude-public --skill officecli-escotilha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual editing of .docx, .xlsx, and .pptx is slow and error-prone when you need repeatable changes, validation, and inspection without installing Office. This Skill streamlines document engineering by letting you create, inspect, fix, and update Office files programmatically from the command line.

Core Features & Use Cases

  • Create and inspect Office files: generate new .docx/.xlsx/.pptx, view structure/stats/issues/text, and extract XML nodes for auditing.
  • Safe, targeted modifications: update attributes and formatting at DOM-like paths, including regex-based find/replace with run splitting and property-level control.
  • Bulk and resident workflows: run batch operations in one save cycle and use resident mode (open/close) for multi-step edits on large documents.
  • PPTX/Word/Excel coverage: supports CSS-like querying and selector-based targeting; includes interactive visual selection via watch for PPT and top-level Word elements.

Quick Start

Ask your AI to generate a cleaned, formatted document by running the officecli command to create and then update an Office file, for example: "Create report.docx, find TODO markers across the body, replace them with DONE, and verify issues with the issues view."

Frequently Asked Questions about officecli

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

FAQPage Schema
How do I edit Office documents like docx, xlsx, and pptx from the command line without Microsoft Office installed?

You can edit Office documents from the command line without Microsoft Office by using a dependency-free CLI that directly manipulates OpenXML structures, applying DOM-like path edits, regex find/replace, and batch updates to .docx, .xlsx, and .pptx files.

What is the best way to perform batch find and replace operations across large Office documents?

Batch find and replace across large Office documents is handled efficiently using resident mode, which keeps files open for multi-step edits and saves changes in a single cycle, while regex capabilities handle run splitting and property-level formatting control.

Can I inspect and fix the underlying XML structure of an xlsx or pptx file programmatically?

Yes, you can inspect and fix XML structure programmatically by extracting XML nodes for auditing, applying layered manipulations at the XML level, and validating the final output against the OpenXML schema to ensure document integrity.

Does this CLI tool support CSS-like queries for targeted modifications in Word and PowerPoint files?

CSS-like querying and selector-based targeting are supported for Word, PowerPoint, and Excel files, allowing precise DOM-like path updates to attributes and formatting, alongside interactive visual selection for top-level elements.

How do I create a new Office document and validate it against the OpenXML schema without installing Office?

You can create new .docx, .xlsx, or .pptx files and validate them against the OpenXML schema without Office by running CLI commands that generate the document structure, apply targeted modifications, and check for structural issues before saving.