officecli

Create, inspect, and modify Office documents via command-line interface.

29|4|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ruuxi/stella --skill officecli-ruuxi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: officecli
Source: https://github.com/ruuxi/stella/tree/main/desktop/stella-office/vendor/officecli
Command: npx skills add https://github.com/ruuxi/stella --skill officecli-ruuxi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Office documents are traditionally edited through desktop applications like Microsoft Word or Excel, which makes bulk automation, AI-driven modifications, and headless server-side processing difficult and error-prone. This Skill gives AI agents and developers a command-line interface to create, read, modify, and validate Office files programmatically, removing the need for manual GUI interaction or fragile scripting.

Core Features & Use Cases

  • Three-Layer Document Access: Start with high-level read operations such as viewing text, outlines, and statistics, escalate to DOM-level edits like adding shapes and setting properties, and fall back to raw XML manipulation for advanced scenarios.
  • Batch & Resident Mode: Execute multiple operations in a single save cycle or keep documents in memory for near-zero latency across dozens of commands.
  • AI-Native Integration: Built-in MCP server, deterministic JSON output, path-based element addressing, and auto-install for Claude Code, Cursor, and other AI coding agents.
  • Use Case: A developer can use this Skill to auto-generate a PowerPoint deck from a database query, apply corporate branding, validate the schema, and produce a live HTML preview through automated CLI commands.

Quick Start

Use the officecli skill to create a new PowerPoint presentation, add a title slide with a dark blue background, and insert a content shape with the text Q4 Report by asking the AI to build the deck.

Frequently Asked Questions about officecli

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

FAQPage Schema
How do I automate Excel and PowerPoint creation through an AI agent?▼

You can automate Excel and PowerPoint creation through an AI agent by using a command-line interface that applies path-based DOM addressing and JSON-structured output to generate and modify .xlsx and .pptx files programmatically.

What's the best way to batch format Word documents without opening a GUI?▼

Batch formatting Word documents without a GUI is best handled via a CLI that executes multiple operations in a single save cycle or uses resident mode to keep .docx files in memory for near-zero latency across dozens of commands.

Can I use MCP server integration for Office document automation?▼

Yes, you can use MCP server integration for Office document automation. The CLI includes a built-in MCP server for tool interoperability and supports auto-install for AI coding agents like Claude Code and Cursor.

How do I modify raw XML in PowerPoint files programmatically?▼

You can modify raw XML in PowerPoint files programmatically by escalating from high-level read operations to DOM-level edits, and falling back to raw XML manipulation for advanced .pptx scenarios via CLI commands.

Does officecli require .NET runtime to generate Office files headlessly?▼

Yes, officecli requires the .NET runtime to generate Office files headlessly. The officecli binary comes with an embedded .NET runtime to execute server-side document processing and schema validation.

Why use a CLI for Office automation instead of desktop applications?▼

Using a CLI for Office automation removes the need for manual GUI interaction or fragile scripting, allowing developers to auto-generate decks, apply corporate branding, and produce live HTML previews through deterministic automated commands.