Office Toolkit for Openclaw

A comprehensive automation suite for manipulating Word, Excel, PowerPoint, and PDF documents using Python and system-level tools.

axelhu
v1.0.0
Apr 1, 2026
1
9.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-office-toolkit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-office-toolkit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Office Toolkit?

The Office Toolkit is a versatile skill designed to empower AI agents with the ability to programmatically manage Microsoft Office and PDF files. By integrating industry-standard Python libraries such as python-docx, openpyxl, and python-pptx, this skill allows for deep inspection and modification of document structures. It is a vital component for Openclaw Skills users who need to automate document generation, data entry, or report compilation.

Beyond basic editing, the toolkit leverages powerful system utilities like Pandoc and LibreOffice to handle complex format conversions and document validation. Whether you are extracting text from a PDF or applying specific financial formatting to an Excel spreadsheet, this skill provides the necessary hooks to perform these actions reliably within an automated environment.

Office Toolkit Use Cases

  • Automating the creation of monthly financial reports with specific color-coded cell formatting.
  • Batch extracting text content from PDF documents for indexing or analysis.
  • Generating professional PowerPoint presentations from raw data using custom design principles.
  • Converting Word documents to Markdown for better compatibility with LLM processing.
  • Programmatically merging multiple PDF files into a single document or splitting them by page.

How Office Toolkit Works

  1. The AI agent detects the file type and selects the specialized library required (e.g., openpyxl for spreadsheets or pypdf for PDFs).
  2. For creation tasks, the skill initializes a new document object and populates it with headings, tables, or slides based on user instructions.
  3. For editing tasks, the skill loads the existing file into memory, applies the requested modifications, and saves the output.
  4. When high-fidelity conversion is required, the skill invokes Pandoc or LibreOffice's headless mode to ensure formatting consistency.
  5. The skill uses Openclaw Skills logic to verify file paths and write permissions before executing any file system operations.

Office Toolkit Setup

To use this skill, you must install the necessary Python dependencies and system packages:

pip install --break-system-packages python-docx openpyxl python-pptx pypdf
sudo apt install libreoffice-writer libreoffice-calc libreoffice-impress pandoc

Office Toolkit Data Schema & Taxonomy

The Office Toolkit organizes data according to the specific requirements of each document format:

Feature Supported Formats Engine Used Capability
Word Processing .docx python-docx Paragraphs, Styles, Tables
Spreadsheet Management .xlsx, .csv openpyxl Formulas, Cell Styling, Multi-sheet
Presentation Design .pptx python-pptx Slide Layouts, Shapes, Text boxes
PDF Operations .pdf pypdf Extraction, Merge, Split, Rotate
Format Conversion Cross-format Pandoc / LibreOffice MD to Docx, PDF to Text

Office Toolkit Advanced Features

  • Financial-grade Excel styling rules, including automatic font coloring for hardcoded vs. formula-based values.
  • Advanced PowerPoint design principles implementation, such as the "Sandwich" structure for deep/light contrast.
  • Multi-engine PDF processing, using pypdf for standard text and Pandoc as a fallback for complex layouts.
  • Headless LibreOffice integration for validating document structure and performing advanced XML-based edits.
  • Automated directory permission auditing and existence checks via pathlib within the Openclaw Skills framework.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*