LaunchKit · 2026
Back to Skills

tiangong-wps-word-automation

Automate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings.

7
5.2k downloads
by @fadeloo

Setup & Installation

openclaw skills install @fadeloo/tiangong-wps-word-automation

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install tiangong-wps-word-automation

What This Skill Does

Controls Word or WPS Writer documents on Windows via COM automation. Supports reading, editing, formatting, merging, splitting, and exporting documents without manual UI interaction.

COM automation operates directly inside the Word/WPS application, so formatting, styles, and native features are preserved without relying on third-party parsers.

When to use it

  • Export a contract to PDF before sending
  • Replace a client name across an entire report
  • Merge monthly chapter files into one document
  • Split a long document into page-range segments
  • Add a company header and footer to a template

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: export report.docx to PDF

AGENT
  1. 1Locate the target .docx file path
  2. 2Run the export command with --format pdf
  3. 3Specify the output PDF path
  4. 4Confirm the file was written successfully
OUTPUT

report.pdf created at the specified output path

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Windows OS with Microsoft Word or WPS Writer installedpywin32 Python package (pip install pywin32)