Agent skill · software engineering · sundial-org
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 PDF/TXT, add/replace images). Use for single-document actions (no batch).
Why this skill is useful
Adds a Python script that automates Word/WPS document operations via COM, providing capabilities not typically available to the AI.
What it needs
Requires python, pywin32 installed locally. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
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 Commands read Extract plain text. replace Find/replace text. insert Insert text at start/end. headings Apply Heading 1/2/3 to matching lines. header-footer Set header/footer text. page-break Insert a page break at the end. merge Merge multiple docs into one. split Split by page ranges (e.g., "1-3,4-6"). export Export to PDF or TXT. image Add or replace image at the end. 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-document operations.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/wps-word-automation