Tiangong Wps Word Automation
Automate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to... Skill: Tiangong Wps Word Automation Owner: jirboy Summary: Automate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-17T11:49:07.831Z | auto Initial release of wps-word-automation: - Automates common Microsoft Word and WPS Writer document operations on Windows usin
Rank
62
Safety
84
Downloads
1.3k
Updated
Oct 10, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.0release · observed Apr 17, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s172kehers3wd9ajz7fymawqnn843cz8:tiangong-wps-word-automation-cn- Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jirboy-tiangong-wps-word-automation-cn/snapshot"
Documentation
CLAWHUB
6,637 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: wps-word-automation
description: Automate common Word/WPS document operations on Windows via COM (read text, replace, insert, headings, headers/footers, page breaks, merge, split, export to PDF/TXT, add/replace images). Use for single-document actions (no batch).
---
# WPS/Word Automation (Windows)
Use the bundled Python script to control Word or WPS via COM.
## Requirements
- Windows with **Microsoft Word** or **WPS Writer** installed.
- Python + **pywin32** (`python -m pip install pywin32`).
## Quick start
```bash
python {baseDir}/scripts/wps_word_automation.py read --input "C:\path\file.docx"
python {baseDir}/scripts/wps_word_automation.py replace --input "C:\path\file.docx" --find "旧" --replace "新" --save "C:\path\out.docx"
python {baseDir}/scripts/wps_word_automation.py export --input "C:\path\file.docx" --format pdf --output "C:\path\out.pdf"
```
## Commands
### read
Extract plain text.
```bash
python {baseDir}/scripts/wps_word_automation.py read --input "C:\path\file.docx" --output "C:\path\out.txt"
```
### replace
Find/replace text.
```bash
python {baseDir}/scripts/wps_word_automation.py replace --input "C:\path\file.docx" --find "old" --replace "new" --save "C:\path\out.docx"
```
### insert
Insert text at start/end.
```bash
python {baseDir}/scripts/wps_word_automation.py insert --input "C:\path\file.docx" --text "Hello" --where start --save "C:\path\out.docx"
```
### headings
Apply Heading 1/2/3 to matching lines.
```bash
python {baseDir}/scripts/wps_word_automation.py headings --input "C:\path\file.docx" --level 1 --prefix "# " --save "C:\path\out.docx"
```
### header-footer
Set header/footer text.
```bash
python {baseDir}/scripts/wps_word_automation.py header-footer --input "C:\path\file.docx" --header "标题" --footer "页脚" --save "C:\path\out.docx"
```
### page-break
Insert a page break at the end.
```bash
python {baseDir}/scripts/wps_word_automation.py page-break --input "C:\path\file.docx" --save "C:\path\out.docx"
```
### merge
Merge multiple docs into one.
```bash
python {baseDir}/scripts/wps_word_automation.py merge --inputs "a.docx" "b.docx" --output "merged.docx"
```
### split
Split by page ranges (e.g., "1-3,4-6").
```bash
python {baseDir}/scripts/wps_word_automation.py split --input "C:\path\file.docx" --pages "1-3,4-6" --outdir "C:\out"
```
### export
Export to PDF or TXT.
```bash
python {baseDir}/scripts/wps_word_automation.py export --input "C:\path\file.docx" --format pdf --output "C:\path\out.pdf"
python {baseDir}/scripts/wps_word_automation.py export --input "C:\path\file.docx" --format txt --output "C:\path\out.txt"
```
### image
Add or replace image at the end.
```bash
python {baseDir}/scripts/wps_word_automation.py image --input "C:\path\file.docx" --image "C:\path\img.png" --save "C:\path\out.docx"
```
## Notes
- If WPS is installed, try `--app wps`; otherwise default uses Word.
- Use `--visible true` if you need to watch the UI.
- Avoid batch usage; this skill is for single-docum_meta.json
{
"ownerId": "kn7024ea9mpn20nvh221shx04h8434xe",
"slug": "tiangong-wps-word-automation-cn",
"version": "1.0.0",
"publishedAt": 1776426547831
}skill-card.md
## Description: Automate common Word/WPS document operations on Windows via COM, including reading text, replacement, insertion, headings, headers and footers, page breaks, merging, splitting, exporting to PDF or TXT, and adding or replacing images. This skill is ready for commercial/non-commercial use. ## Publisher: [jirboy](https://clawhub.ai/user/jirboy) ### License/Terms of Use: MIT-0 ## Use Case: Developers and document-automation users use this skill to run single-document Word or WPS Writer operations on Windows from command-line Python scripts. It is suited for trusted document editing, conversion, and content manipulation workflows that require Microsoft Word or WPS Writer COM automation. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Opening Word or WPS documents through COM can expose the user to active-content risks when documents are untrusted. Mitigation: Use the skill only with trusted documents, or enforce Office/WPS macro and Protected View policies before opening unknown files. Risk: Write, merge, split, export, and image operations can alter documents or create unexpected outputs. Mitigation: Use separate output paths, keep backups of source documents, and review generated files before relying on them. Risk: The required pywin32 dependency is not pinned in the artifact guidance. Mitigation: Pin and review the pywin32 package version before installing it in a managed environment. ## Reference(s): ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] **Output Format:** [Markdown with inline shell commands and file-operation guidance] **Output Parameters:** [1D] **Other Properties Related to Output:** [Produces instructions for running a bundled Python script; script operations may read, modify, merge, split, export, or create document files.] ## Skill Version(s): 1.0.0 (source: server release evidence and package.json) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
package.json
{
"license": "MIT",
"version": "1.0.0",
"description": "天工 WPS Word 自动化",
"name": "tiangong-wps-word-automation",
"author": "OpenClaw Community"
}AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/jirboy/skills/tiangong-wps-word-automation-cn",
"sourceUrl": "https://clawhub.ai/jirboy/skills/tiangong-wps-word-automation-cn",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T19:25:10.065Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jirboy-tiangong-wps-word-automation-cn/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jirboy-tiangong-wps-word-automation-cn/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T19:25:10.065Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceUrl": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T19:25:10.065Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceUrl": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T11:49:07.831Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jirboy-tiangong-wps-word-automation-cn/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jirboy-tiangong-wps-word-automation-cn/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "Initial release of wps-word-automation: - Automates common Microsoft Word and WPS Writer document operations on Windows using Python and COM. - Supports reading text, find/replace, inserting text, applying headings, setting headers/footers, page breaks, merging and splitting documents. - Allows exporting to PDF/TXT, and adding or replacing images. - Designed for single-document actions, not batch processing. - Compatible with both Word and WPS Writer via command-line scripts.",
"href": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceUrl": "https://clawhub.ai/jirboy/tiangong-wps-word-automation-cn",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T11:49:07.831Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
