OfficeCLI

Automate Word, Excel, and PowerPoint document creation, editing, and validation via CLI.

27.0k|1.8k|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/iOfficeAI/OfficeCLI --skill officecli-iofficeai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: OfficeCLI
Source: https://github.com/iOfficeAI/OfficeCLI/tree/main
Command: npx skills add https://github.com/iOfficeAI/OfficeCLI --skill officecli-iofficeai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

OfficeCLI enables AI agents to automate the creation, inspection, and editing of Word, Excel, and PowerPoint documents, streamlining workflows that traditionally require manual intervention.

Core Features & Use Cases

  • Document Automation: Generate, analyze, and modify Office files without Office installed.
  • Structured Data Handling: Extract and manipulate content with hierarchical commands, supporting complex editing workflows.
  • Use Case: An AI assistant can automatically generate a sales report in Excel, update charts, and prepare a presentation in PowerPoint, all from user prompts, with validation and error recovery.
  • Template Merging: Fill in placeholders in templates with JSON data for scalable report generation.
  • Headless Rendering & Preview: Render HTML or snapshots for UI inspection and debugging in CI/CD pipelines.
  • Batch & Resident Modes: Efficiently process multiple operations with in-memory or single-cycle workflows.
  • Schema & Help System: Query supported elements and properties to ensure correctness.

Quick Start

To start using OfficeCLI, run the command to create a new PowerPoint file, add a slide with title, then view the outline:

  • Generate a presentation with a title slide and view its structure using simple descriptive commands.

Frequently Asked Questions about OfficeCLI

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

FAQPage Schema
How do I automate creating and editing Word, Excel, and PowerPoint documents?

You can automate Office document workflows by using structured CLI commands to generate, read, and modify Word, Excel, and PowerPoint files without needing Microsoft Office installed.

Can I generate Office documents from templates using JSON data?

Yes, template merging allows you to fill placeholders in Office document templates with JSON data, enabling scalable and automated report generation across Word, Excel, and PowerPoint.

Do I need Microsoft Office installed to automate document generation in CI/CD pipelines?

No, you do not need Microsoft Office installed. The CLI supports headless rendering and preview generation across platforms, making it suitable for CI/CD pipelines and automated server environments.

How do AI agents extract and manipulate content in Excel or PowerPoint files?

AI agents extract and manipulate content using hierarchical structured commands that support complex editing workflows, validation, and error recovery for Excel and PowerPoint files.

What is the best way to process multiple Office document operations efficiently?

Batch and resident modes allow you to efficiently process multiple operations using in-memory workflows or single-cycle execution, minimizing setup overhead for bulk document automation.

How do I validate supported elements and properties when modifying Office documents?

You can query the schema and help system to inspect supported elements and properties, ensuring structural correctness and preventing errors during document generation and modification.