doc-handler for Openclaw

A comprehensive Python-based utility for programmatically reading and editing Word, PDF, and Excel documents via a CLI.

xaiohuangningde
v1.0.0
Feb 26, 2026
0
3.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install doc-handler

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 doc-handler 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 doc-handler?

The doc-handler skill is a specialized tool designed to bridge the gap between AI agents and static document formats. By leveraging robust Python libraries such as python-docx, pdfplumber, and openpyxl, this skill allows for seamless interaction with DOCX, PDF, and XLSX files. It is an essential component for developers using Openclaw Skills who need to extract data from reports, update templates, or parse spreadsheets without manual intervention.

Built for speed and reliability, doc-handler provides a unified interface for document manipulation. Whether you are building an automated research assistant or a data entry bot, these Openclaw Skills ensure that your agent can understand and modify the most common document types used in professional environments.

doc-handler Use Cases

  • Extracting text from multi-page PDF documents for automated analysis.
  • Modifying Word document content to generate custom reports or contracts.
  • Reading Excel spreadsheets to feed data into a database or another application.
  • Automating the parsing of invoices and receipts stored in PDF format.
  • Creating document processing pipelines within Openclaw Skills workflows.

How doc-handler Works

  1. The user or agent initiates a command specifying the target file and the desired action (read or write).
  2. The doc-handler module identifies the file type and selects the appropriate engine, such as pdfplumber for PDFs or openpyxl for Excel.
  3. The skill parses the internal structure of the document to locate text paragraphs, table cells, or metadata.
  4. For read operations, the content is extracted and returned as a clean string or structured data.
  5. For write operations, the skill updates the document structure and saves the changes back to the file system.
  6. The processed data is then ready to be used by other Openclaw Skills in the agent's task sequence.

doc-handler Setup

To utilize doc-handler, you must install the necessary Python dependencies. These Openclaw Skills rely on specific libraries to handle various file encodings.

# Install required document processing libraries
pip install python-docx pdfplumber openpyxl pandas

After installation, you can verify the setup by running a read command on a sample document:

python3 -m doc_handler read docx sample.docx

doc-handler Data Schema & Taxonomy

The doc-handler skill organizes its operations based on file extensions and specific library integrations. The following table outlines the data handling structure within these Openclaw Skills:

Document Type Extension Processing Engine
Word Document .docx python-docx
PDF File .pdf pdfplumber
Excel Sheet .xlsx openpyxl / pandas

All extracted text is typically returned in a UTF-8 encoded string format to ensure compatibility with LLM context windows.

doc-handler Advanced Features

  • Support for complex Excel data manipulation through pandas integration.
  • High-fidelity text extraction from PDFs that preserves logical reading order.
  • Batch processing capabilities when combined with other Openclaw Skills.
  • Template-based Word document editing for automated document generation.
  • Lightweight CLI footprint suitable for containerized agent environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*