SuperDoc for Openclaw

A modern document editor skill for programmatically creating, editing, and formatting DOCX files with full control.

yebo-liu
v1.0.0
Mar 5, 2026
0
813
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install superdoc

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 superdoc 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 SuperDoc?

SuperDoc is a robust skill designed for developers who need to work with Microsoft Word files programmatically. As a key component of the Openclaw Skills library, it offers a custom rendering pipeline that goes beyond simple text extraction, allowing for complex formatting, section management, and template-based document generation.

Whether you are building automated report generators or a web-based document editor, this skill provides the necessary abstractions to handle OpenXML formats seamlessly. It is designed to be versatile, supporting both headless Node.js environments and modern frontend frameworks like React, ensuring consistent document manipulation across the entire development stack.

SuperDoc Use Cases

  • Generating personalized business documents from JSON data templates.
  • Programmatically updating specific text, branding, or formatting within existing DOCX files.
  • Building web-based Word document editors using specialized React components.
  • Automating high-volume document workflows in headless server-side environments.
  • Batch processing client communications with custom placeholders and conditional formatting.

How SuperDoc Works

  1. Initialize the document structure by importing the core Document and Packer classes from the skill.
  2. Build the document hierarchy by nesting Sections, Paragraphs, and TextRuns to define the layout.
  3. Apply granular formatting properties such as bolding, italics, custom fonts, and colors to individual text runs.
  4. Load existing DOCX files into the document object model to perform search-and-replace operations or structural edits.
  5. Use the Packer utility to convert the internal document object into a Buffer or Blob for file system storage or browser downloads.

SuperDoc Setup

To integrate this tool into your Openclaw Skills workflow, install the core package and its headless requirements:

npm install --global superdoc jsdom

For React-based projects, use the specialized integration package:

npm install @superdoc-dev/react

When running in a headless Node.js context, you must polyfill browser APIs using JSDOM to ensure the rendering pipeline functions correctly outside of a browser environment.

SuperDoc Data Schema & Taxonomy

The skill organizes data using a hierarchical object model that maps directly to the OpenXML standard.

Level Description Key Components
Document The root container for the file sections
Section Defines page layout, headers, and footers children
Paragraph A block-level element for text or images children, alignment
TextRun The smallest unit of text with specific styling text, bold, color

All exported files follow the standard application/vnd.openxmlformats-officedocument.wordprocessingml.document MIME type.

SuperDoc Advanced Features

  • Full headless execution support via JSDOM for automated server-side document generation.
  • Native React component integration (SuperDocEditor) featuring real-time document state management.
  • Batch processing optimized for high-volume workflows, capable of handling hundreds of documents in chunks.
  • Granular search-and-replace functionality that preserves existing document formatting during edits.
  • Compatibility with Openclaw Skills browser tools for advanced rendering scenarios requiring a real browser context.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*