Office-CLI
🛠️
General Tools+ Agent Template

Office-CLI

Use officecli CLI; create, edit & analyze PPT, Word and Excel files

Overview

What Is Office-CLI?

Office-CLI is a powerful, local command-line interface (CLI) automation and office operations skill on EasyClaw. It integrates with native system scripts and CLI utilities (such as Python's `python-pptx`, `python-docx`, and `openpyxl`) to let you programmatically create, edit, polish, and analyze PowerPoint (`.pptx`), Word (`.docx`), and Excel (`.xlsx`) files through simple conversational commands, completely bypassing heavy desktop office suites.

The skill is built for business developers drafting structured slide decks, operations teams compiling automated reports, financial analysts building spreadsheet databases, and developers integrating Office file-generation workflows.

The expected outcome is rapid, secure file-system execution: instant PPT presentations with polished typography layouts, fully formatted Word contract edits, and detailed Excel spreadsheets with integrated pivot tables, written directly to disk.

How Office-CLI Works

1. Analyze document action and type. Specify your target file (PowerPoint, Word, or Excel) and define your operational task (e.g., "create a product launch deck" or "analyze metrics in this sheet").

2. Local CLI and script invocation. The skill launches its localized `officecli` runner, selecting the appropriate backend script handler (python-pptx for slides, openpyxl for spreadsheets) headlessly.

3. Structured content generation.
- *For PPT:* It structures slide-by-slide outlines, applies cohesive color palettes and typography scales, and generates a formatted presentation deck.
- *For Word:* It edits paragraph text, injects headers/footers, or compiles structured templates cleanly.
- *For Excel:* It writes formulas, aggregates rows, and creates formatted pivot tables or charts.

4. Layout and typography polishing. For visually poor slides or documents, the skill applies Apple-style clean padding, balanced margins, and professional color contrast grids.

5. Output delivery. Converted files are written directly to your local workspace directories (`public/data/office_exports/`) and returned with a direct local link in your chat.

Key Features

- All-in-one Office CLI: Creates, edits, and polishes PPT, Word, and Excel files headlessly.
- Structured PPT builder: Generates multi-slide presentation decks from plain text outlines.
- Excel data aggregator: Calculates metrics, writes formulas, and compiles pivot tables automatically.
- Visual style polisher: Instantly improves layout, colors, padding, and typography on messy slides.
- No desktop app dependency: Runs entirely on headless system scripts without opening Microsoft Office.
- Direct local path save: Writes finalized document files directly to your workspace.

What Problems Does Office-CLI Solve?

1. Creating a product launch deck on-demand
A startup founder wants to prepare a 10-slide presentation deck for their upcoming product launch. Instead of manually creating slides, picking colors, and copy-pasting, they ask the skill. Office-CLI parses the launch details, structures the slides (Problem, Solution, Tech, Market, Team), applies a cohesive, modern dark-tech color theme, and outputs a ready-to-run `.pptx` file in seconds.

2. Auditing and analyzing a sales spreadsheet
A business analyst has a raw sales spreadsheet and wants a quick monthly summary. The skill reads the file via `openxl`, calculates total revenue and average order values using Excel formulas, groups the data into a formatted pivot table, and exports the updated spreadsheet with a clean line chart.

3. Polishing a messy, unreadable slide deck
An engineer has a presentation deck with overlapping text, inconsistent colors, and cramped margins. They provide the file path. The skill's visual polisher scans the layout: standardizing margins to a clean 8% padding grid, applying a highly readable system font hierarchy, and matching background colors, restoring professional visual appeal.

4. Batch-creating corporate certificates or letters
An HR administrator has a list of 50 employees who completed a training program. The skill reads the employee list from a spreadsheet, maps the names to a pre-built certificate Word template, and batch-generates 50 individual, personalized certificate documents headlessly, saving hours of manual editing.

5. Automatically prompting for missing excel metrics
A user types a vague instruction: *"Analyze this Excel for me"* without specifying what they want. The skill's context logic intercepts the request and prompts politely: *"To analyze your spreadsheet, could you please specify: Which metrics or columns are we analyzing? And would you prefer a summary table, a chart, or a pivot table?"* preventing failed runs.

Example Workflow

A business developer needs to generate a clean marketing slide deck.

1. They open EasyClaw and activate Office-CLI.
2. They run: *"Create a 5-slide PPT presentation titled 'Q3 Marketing Strategy'. Style: clean minimalist, blue theme."*
3. The skill launches the `officecli` python-pptx runner, maps the slide outlines, and generates the file.
4. It writes the presentation to: `public/data/office_exports/Q3_Marketing_Strategy.pptx`.
5. It returns a direct local download link and slide summaries in the chat window.

Office files created, edited, and formatted headlessly in under 45 seconds.

Getting Started with Office-CLI

Add this skill to your EasyClaw workspace
Describe your task in a chat message
Review the output and iterate if needed
Export or share the results directly from EasyClaw
Combine with other skills to build automated workflows

Frequently Asked Questions

What file formats are supported?

The skill natively supports: PowerPoint presentations (`.pptx`), Word documents (`.docx`), and Excel spreadsheets (`.xlsx`).

Do I need Microsoft Office installed?

No. The skill utilizes secure, headless Python libraries (`python-pptx`, `python-docx`, `openpyxl`) to compile, edit, and write files, meaning you do not need an active Microsoft Office license to generate documents.

Can I run this skill completely offline?

Yes. All document compilings, spreadsheet calculations, and file writes are executed entirely locally on your machine. You can run all office tasks completely offline without any network access.

How does the visual slide polisher work?

The polisher parses the presentation XML, identifying layout elements (text frames, shapes, images). It applies standard design-system templates: aligning elements to a clean margin grid, adjusting font sizes for hierarchy, and applying harmonic color schemes.

What is the maximum number of slides I can generate?

The skill can comfortably generate presentations of up to 20–30 slides in a single command. For longer decks, we recommend generating sections sequentially to maintain high design and content precision.

Are my company's financial sheets and pitch decks kept secure?

Yes. In compliance with strict corporate security and data privacy standards, all document reading, script running, and file writing are executed entirely locally on your machine.

Can the skill calculate complex Excel formulas?

Yes. The Excel parser supports writing standard Excel formulas (such as `SUM`, `AVERAGE`, `VLOOKUP`, or `IF` statements) directly into specified cells, ensuring fully dynamic spreadsheets.

Can I convert a Word document to a clean HTML page?

Yes. The skill can parse `.docx` layouts and styles and export them as clean, well-structured, and semantic HTML5 files ready for web publication.

What is the default output save directory?

All generated and edited files are written directly to `public/data/office_exports/` inside your local workspace exports directory, paired with a direct local link in your chat.

Is there an offline log of my office actions?

Yes. Every successful document creation, spreadsheet audit, and slide polish is logged locally under `public/data/logs/` in your workspace, creating a clear local history of your operations.

Add Office-CLI to Your Workflow

Get EasyClaw, add this skill, and start building AI agent workflows in minutes.

Get EasyClaw Free →