tiangong-wps-word-automationAutomate 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).
Install via ClawdBot CLI:
clawdbot install Fadeloo/tiangong-wps-word-automationUse the bundled Python script to control Word or WPS via COM.
python -m pip install pywin32).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"
Extract plain text.
python {baseDir}/scripts/wps_word_automation.py read --input "C:\path\file.docx" --output "C:\path\out.txt"
Find/replace text.
python {baseDir}/scripts/wps_word_automation.py replace --input "C:\path\file.docx" --find "old" --replace "new" --save "C:\path\out.docx"
Insert text at start/end.
python {baseDir}/scripts/wps_word_automation.py insert --input "C:\path\file.docx" --text "Hello" --where start --save "C:\path\out.docx"
Apply Heading 1/2/3 to matching lines.
python {baseDir}/scripts/wps_word_automation.py headings --input "C:\path\file.docx" --level 1 --prefix "# " --save "C:\path\out.docx"
Set header/footer text.
python {baseDir}/scripts/wps_word_automation.py header-footer --input "C:\path\file.docx" --header "ๆ ้ข" --footer "้กต่" --save "C:\path\out.docx"
Insert a page break at the end.
python {baseDir}/scripts/wps_word_automation.py page-break --input "C:\path\file.docx" --save "C:\path\out.docx"
Merge multiple docs into one.
python {baseDir}/scripts/wps_word_automation.py merge --inputs "a.docx" "b.docx" --output "merged.docx"
Split by page ranges (e.g., "1-3,4-6").
python {baseDir}/scripts/wps_word_automation.py split --input "C:\path\file.docx" --pages "1-3,4-6" --outdir "C:\out"
Export to PDF or TXT.
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"
Add or replace image at the end.
python {baseDir}/scripts/wps_word_automation.py image --input "C:\path\file.docx" --image "C:\path\img.png" --save "C:\path\out.docx"
--app wps; otherwise default uses Word.--visible true if you need to watch the UI.Generated Mar 1, 2026
Law firms can automate text replacement in contracts, such as updating client names or dates, and export finalized documents to PDF for secure distribution. This reduces manual errors and saves time on repetitive editing tasks.
Educational institutions can use this skill to insert standard headers and footers with course codes, apply heading styles to structure reports, and merge multiple student submissions into a single document for grading. It streamlines document formatting and organization.
Marketing teams can automate the insertion of promotional text and images into templates, replace outdated content in brochures, and export materials to PDF for printing or digital sharing. This accelerates campaign launches and ensures consistency.
Offices can split large documents by page ranges for distribution, merge meeting notes from multiple files, and extract plain text for archiving or analysis. It improves efficiency in handling routine administrative paperwork.
Engineering firms can replace technical terms or specifications in manuals, add page breaks for new sections, and export updated versions to TXT for version control. This supports quick revisions and compliance with standards.
Offer basic automation features for free to attract individual users, then charge for advanced capabilities like batch processing or API access. Revenue comes from subscription tiers targeting small businesses and enterprises.
Provide custom integration and training services for companies needing tailored document automation workflows. Revenue is generated through project-based fees and ongoing support contracts for specific industries.
License the skill package to large organizations for internal use, with pricing based on the number of users or documents processed. Revenue includes upfront licensing fees and optional maintenance renewals.
๐ฌ Integration Tip
Ensure pywin32 is installed and test with a sample document first to verify COM connectivity; use the --visible flag for debugging UI issues.
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.
Advanced desktop automation with mouse, keyboard, and screen control
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.