Install
openclaw skills install @fyniujin/wps-office-suiteWPS Office 全家桶 - 支持 Word/Excel/PPT 创建、编辑、格式转换,多列排序、多条件筛选,子进程架构稳定可靠
openclaw skills install @fyniujin/wps-office-suite📝 Word / 📊 Excel / 🎬 PPT — 自然语言驱动,命令直接执行
金额>1000 且 地区=北京 且 内容包含重要pip install pywin32 # Windows
python scripts/wps_word.py create --title "测试"
python scripts/wps_word.py create --title "合同"
python scripts/wps_word.py edit --file "合同.docx" --text "补充条款..." --position end
python scripts/wps_word.py format --file "合同.docx" --align center --size 12 --indent 2
python scripts/wps_word.py export --file "合同.docx" --format pdf
python scripts/wps_word.py info --file "合同.docx"
# 创建多 Sheet 表格
python scripts/wps_excel.py create --name "租金" --sheets "收入,支出,汇总"
# 批量录入数据
python scripts/wps_excel.py input --file "租金.xlsx" --sheet "收入" --data '[["1月",3000],["2月",3500]]'
# 公式计算
python scripts/wps_excel.py formula --file "租金.xlsx" --sheet "汇总" --cell "B3" --formula "=SUM(收入!B:B)"
# 生成图表
python scripts/wps_excel.py chart --file "租金.xlsx" --sheet "收入" --type bar --data "A1:B12"
# 多列排序(关键参数 --sort-json)
python scripts/wps_excel.py sort --file "租金.xlsx" --sheet "收入" \
--sort-json '[{"column":"金额","ascending":false},{"column":"日期","ascending":true}]'
# 多条件筛选(关键参数 --filter-json)
python scripts/wps_excel.py filter --file "租金.xlsx" --sheet "收入" \
--filter-json '[{"column":"金额","op":">","value":"1000"},{"column":"城市","op":"=","value":"北京"}]'
python scripts/wps_excel.py info --file "租金.xlsx"
python scripts/wps_ppt.py create --title "推广方案"
python scripts/wps_ppt.py add-slide --file "推广方案.pptx" --title "市场分析"
python scripts/wps_ppt.py insert --file "推广方案.pptx" --slide 2 --content "市场现状\n目标群体"
python scripts/wps_ppt.py theme --file "推广方案.pptx" --name business_blue
python scripts/wps_ppt.py export --file "推广方案.pptx" --format pdf
python scripts/format_converter.py convert --input "报告.docx" --output-format pdf
python scripts/format_converter.py batch --input-dir "D:\文档" --input-format docx --output-format pdf
| 场景 | 表现 |
|---|---|
| WPS 未安装 | 明确提示安装版本,不尝试用 MS Office |
| 中文路径 | 明确报错并告知解决方案,不是静默崩溃 |
| 不支持的格式转换 | 列出支持的格式,如"Word→不支持jpg,支持pdf,txt,html,docx" |
| WPS 无响应 | 子进程超时主进程不死;自动重试 |
| 部分操作失败 | 如批量操作,每个文件单独返回,不因一个失败导致全部失败 |
| 版本 | 日期 | 关键更新 |
|---|---|---|
| v1.2.0 | 2026-06-28 | 🏗️ 子进程隔离架构(WPS 崩了不卡死);📊 多列排序(--sort-json);📋 多条件筛选(--filter-json + AND 逻辑);🗂️ 格式转换明确错误提示(列出支持格式);🛡️ safe_path 中文路径保护 |
| v1.1.0 | 2026-06-28 | 批量转换进度提示 / WPS 超时重试 / 完善 FAQ |
| v1.0.0 | 2026-06-28 | 初始版本 |