WPS Office Automation for Openclaw

A comprehensive automation tool for WPS Office that handles local document creation, Markdown conversion, and cloud-based collaboration.

lilei0311
v1.3.0
Feb 17, 2026
2
3.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install wps-skill

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 wps-skill 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 WPS Office Automation?

The WPS Office automation skill is designed to streamline professional document workflows by bridging the gap between plain-text Markdown and rich office formats. As a key component of Openclaw Skills, it allows developers to programmatically generate Word, Excel, and PowerPoint files while supporting complex image-text layouts. It provides a robust interface for both local GUI-based automation and WPS 365 cloud integration via REST APIs.

This skill is particularly valuable for users who need to maintain documentation in Markdown but require professional distribution formats. By utilizing this solution within the ecosystem of Openclaw Skills, you can automate repetitive formatting tasks, manage cloud-based smart documents, and ensure consistent document structures across your organization without manual intervention.

WPS Office Automation Use Cases

  • Automatically converting technical Markdown files into polished Word reports for stakeholders.
  • Generating PowerPoint presentations from Markdown outlines for rapid meeting preparation.
  • Batch converting legacy document formats into Markdown for modern knowledge management.
  • Creating complex image grids and multi-column layouts in Word documents for marketing materials.
  • Synchronizing local data with WPS 365 multi-dimensional tables and cloud-based flowcharts.

How WPS Office Automation Works

  1. The user initiates a command through the CLI script, specifying the task type such as creation, conversion, or cloud sync.
  2. For local operations, the skill leverages pyautogui to simulate keyboard inputs and subprocess calls to trigger the WPS Office suite.
  3. Markdown content is parsed and transformed into document-specific elements like headers, lists, and tables using internal mapping logic.
  4. When dealing with images, the skill calculates alignment and dimensions to create professional image-text layouts automatically.
  5. For cloud-based workflows, the skill authenticates via OAuth 2.0 and communicates with the WPS Open Platform REST APIs to manage remote documents and forms.

WPS Office Automation Setup

To begin using this tool within your Openclaw Skills environment, first install the necessary Python dependencies:

pip install requests pyautogui pyperclip Pillow

Next, configure your local settings by editing the config.json file in the skill directory. You will need to define your default save path and, optionally, your WPS Open Platform credentials for cloud features:

{
  "default_save_path": "~/Documents/WPS",
  "wps_path": "/path/to/wps",
  "app_id": "your_app_id",
  "app_secret": "your_app_secret"
}

Note: macOS users must grant Accessibility permissions to their terminal or IDE to allow the GUI automation to function correctly.

WPS Office Automation Data Schema & Taxonomy

The skill manages data through a combination of configuration files and structured document mappings. Below is the primary data structure used by the skill:

Component Type Description
config.json JSON Stores local paths and API credentials for cloud access
Markdown Parser Logic Maps MD syntax (headers, tables, code) to OOXML/Office formats
Layout Metadata Params Supports left, right, top, and bottom alignment for image-text mixing
Cloud API REST Handles authentication tokens and resource IDs for WPS 365

All generated files are stored in the default_save_path unless an absolute output path is specified in the CLI command.

WPS Office Automation Advanced Features

  • Bi-directional conversion between Markdown and all major Office formats (Word, Excel, PPT).
  • Advanced image-text layout engine supporting four distinct positioning modes for professional document design.
  • Automatic image compression and resizing during document insertion to optimize file size.
  • Full integration with WPS 365 cloud services, including Smart Docs, Mind Maps, and Flowcharts via Openclaw Skills.
  • Batch processing capabilities for directory-wide document format migration.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*