wps-skillWPS Office automation skill supporting document creation, Markdown conversion, and image-text layout.
Install via ClawdBot CLI:
clawdbot install lilei0311/wps-skillWPS Office 自动化操作 Skill,支持本地文档操作和 WPS 365 云端协作功能。
pyautogui 进行键盘输入模拟,可能会与当前活动窗口交互app_id 和 app_secret,建议:scripts/main.py 源码确认功能符合预期app_id 和 app_secretpip install requests pyautogui pyperclip Pillow
编辑 config.json:
{
"default_save_path": "~/Documents/WPS",
"wps_path": "",
"app_id": "",
"app_secret": ""
}
仅在使用 WPS 365 功能时需要:
# 创建 Word 文档
python scripts/main.py create type=writer filename=报告.docx
# Markdown 转 Word(旧版,简单转换)
python scripts/main.py convert file=文档.md format=docx
# 批量转换
python scripts/main.py batch_convert dir=~/Documents format=pdf
# Markdown 转 Word(完整版)
python3 scripts/main.py md_to_docx file=文档.md output=文档.docx title="我的文档"
# Word 转 Markdown
python3 scripts/main.py docx_to_md file=文档.docx output=文档.md
# Markdown 转 Excel(表格变工作表)
python3 scripts/main.py md_to_xlsx file=数据.md output=数据.xlsx title="销售数据"
# Excel 转 Markdown
python3 scripts/main.py xlsx_to_md file=数据.xlsx output=数据.md
# Markdown 转 PPT(标题变幻灯片)
python3 scripts/main.py md_to_pptx file=汇报.md output=汇报.pptx title="项目汇报"
# PPT 转 Markdown
python3 scripts/main.py pptx_to_md file=汇报.pptx output=汇报.md
# Markdown 转 Word(含图片处理)
python3 scripts/main.py md_with_images_to_docx file=文档.md output=文档.docx image_width=4
# 向 Word 文档插入图片
python3 scripts/main.py insert_image docx=文档.docx image=图片.png width=4 align=center caption="图片标题"
# 插入图片网格
python3 scripts/main.py insert_image_grid images="1.png,2.png,3.png" cols=2 width=3 output=相册.docx
# 创建图文混排布局
python3 scripts/main.py create_text_image_layout text="说明文字" image=图片.png layout=left output=图文.docx
# 向 PPT 幻灯片插入图片
python3 scripts/main.py insert_image_to_ppt pptx=汇报.pptx slide=1 image=图片.jpg left=1 top=1 width=4
# 创建 PPT 图文混排
python3 scripts/main.py create_ppt_text_image_layout \
pptx=汇报.pptx \
slide=1 \
text="这是说明文字" \
image=图片.jpg \
layout=left \
image_width=4
# 向 Excel 单元格插入图片
python3 scripts/main.py insert_image_to_excel \
xlsx=数据.xlsx \
sheet=Sheet1 \
cell=A1 \
image=图片.jpg \
width=100
# 创建 Excel 图文混排
python3 scripts/main.py create_excel_text_image_layout \
xlsx=数据.xlsx \
sheet=Sheet1 \
cell=A1 \
text="说明文字" \
image=图片.jpg \
layout=right \
image_width=100
布局方式说明:
layout=left - 图片左,文字右layout=right - 图片右,文字左layout=top - 图片上,文字下layout=bottom - 文字上,图片下# 智能表单
python scripts/main.py form_list
# 智能文档
python scripts/main.py doc_list
# 多维表格
python scripts/main.py sheet_list
python scripts/main.py sheet_views sheet_id=sheet_001
# 流程图
python scripts/main.py flow_list
# 思维导图
python scripts/main.py mind_list
subprocess 调用 WPS Office 应用程序pyautogui 模拟键盘输入(创建带内容的文档)POST /auth/v1/token/forms/v1/*/docs/v1/*/sheets/v1/*/flows/v1/*/minds/v1/*Generated Mar 1, 2026
This skill automates the creation and conversion of documents, such as converting Markdown to Word or Excel, which is useful for writers, researchers, and data analysts who need to quickly format reports or data summaries. It supports batch processing, saving time on repetitive tasks like generating presentations from structured text.
Small businesses can use this skill to automate document workflows, such as creating invoices, reports, or marketing materials by converting data from Excel to formatted documents. The image-text layout features help in designing professional brochures or product catalogs without manual design work.
Teams can leverage the WPS 365 cloud features for real-time collaboration on documents, forms, and flowcharts, enabling project managers to streamline communication and track progress. The skill integrates with WPS's smart forms and multidimensional tables for data collection and analysis in remote work settings.
Researchers and students can automate the conversion of research notes from Markdown to various formats, insert images with captions into papers, and create presentations from outlines. This reduces manual formatting effort and ensures consistency in academic submissions or conference materials.
Offer basic local automation features for free to attract individual users, while charging a subscription for advanced WPS 365 cloud integrations, priority support, and enhanced API limits. This model targets small teams and enterprises needing collaborative tools.
Sell customized licenses to large organizations for bulk deployment, including on-premise support, dedicated training, and integration with existing systems like CRM or ERP. Focus on industries with high document automation needs, such as legal or financial services.
Monetize by providing API access to the skill's automation capabilities, allowing developers to build custom applications on top of WPS Office. Charge based on API call volume or offer tiered plans for different usage levels, fostering a community of third-party integrations.
💬 Integration Tip
Ensure proper configuration of WPS paths and credentials in config.json, and test in a sandbox environment first to avoid automation conflicts with other applications.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
用 MinerU API 解析 PDF/Word/PPT/图片为 Markdown,支持公式、表格、OCR。适用于论文解析、文档提取。
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.