Document Generator for Openclaw

A high-performance automation skill for generating professional-grade Word, Excel, and PDF documents through structured JSON configurations.

lnblxj
v0.1.3
Mar 19, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install document-generator

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 document-generator 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 Document Generator?

The Document Generator is a robust addition to the Openclaw Skills ecosystem designed to bridge the gap between raw data and professional presentation. By utilizing Python-based scripts, it allows AI agents and developers to programmatically create .docx, .xlsx, and .pdf files with granular control over styles, layouts, and embedded media.

Whether you are building automated reporting systems or dynamic invoicing tools, this skill provides a standardized interface for document production. It eliminates the need for manual formatting by translating simple JSON schemas into rich, formatted outputs compatible with all major office suites.

Document Generator Use Cases

  • Automated generation of monthly business reports with custom headings and branding.
  • Programmatic creation of financial spreadsheets featuring complex formulas and cell styling.
  • Exporting dynamic data into professional PDF invoices or certificates.
  • Bulk document production using pre-defined templates for consistent corporate identity.
  • Converting structured JSON data into human-readable table layouts in Word or PDF.

How Document Generator Works

  1. Analyze user requirements to determine the appropriate document format (Word, Excel, or PDF).
  2. Construct a structured JSON configuration file following the specific schema for the chosen format.
  3. Trigger the corresponding Python execution script (generate_word.py, generate_excel.py, or generate_pdf.py).
  4. The script processes the JSON, applies styles, and embeds assets like images or headers.
  5. The final formatted document is saved to the specified output path for user retrieval.

Document Generator Setup

To integrate this into your Openclaw Skills environment, ensure you have the necessary Python dependencies installed:

pip install python-docx openpyxl reportlab Pillow

Run the generator using the CLI:

python document-generator/scripts/generate_word.py config.json output.docx

Document Generator Data Schema & Taxonomy

The skill utilizes a structured JSON metadata taxonomy to define document properties:

Document Type Key Elements Configuration File
Word (.docx) page_setup, content (headings, paragraphs, images), font word_schema.md
Excel (.xlsx) sheets, data (arrays), formatting (column_widths, formulas) excel_schema.md
PDF (.pdf) page_setup (size, margins), content (text, tables), styling pdf_schema.md

Document Generator Advanced Features

  • Template variable substitution for dynamic content injection into existing files.
  • Support for complex Excel formulas and conditional formatting logic.
  • High-fidelity PDF rendering with custom font embedding and multi-page layouts.
  • Precise image positioning and sizing for professional document design.
  • Header and footer management for multi-page Word and PDF generation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*