Documents

WPS Office workflow automation for Chinese documents, spreadsheets, and presentations.

What it does

Covers WPS Writer, Spreadsheets, and Presentation tasks: creation, editing, review, and conversion between .docx/.xlsx/.pptx and WPS native formats. Ships headless scripts for batch conversion via LibreOffice, Markdown-to-.docx generation with Chinese typography defaults, spreadsheet dedup and pre-delivery checks, and .docx inspection for fonts, page/section breaks, and comment/tracked-change residue. Designed for Chinese office scenarios with attention to font substitution, pagination drift, and formula compatibility.

When to use it

  • Batch-converting WPS or Office files to PDF
  • Generating spec-compliant .docx from Markdown with Chinese typography
  • Cleaning and validating spreadsheets before delivery
  • Troubleshooting layout drift or font replacement between WPS and Office

The skill document

WPS Office

面向中文办公场景的 WPS 技能,覆盖文档写作、表格处理、演示制作、格式兼容和导出交付。

何时使用

  • 用户明确提到 WPS/WPS Office、WPS 文字/表格/演示。
  • 需要在 .docx/.xlsx/.pptx 与 WPS 常用格式之间互转或排查兼容问题。
  • 需要处理中文排版问题,例如字号行距、段前段后、中文标点、分页和目录。
  • 需要“可交付版本”,例如导出 PDF、打印版、批注审阅版。

不适用场景

  • 纯代码开发、数据库查询、服务器运维类任务。
  • 只涉及 Google Docs/Notion 等在线协作工具且不需要 WPS。
  • 仅当任务必须 GUI 交互(需要人工确认的点击、拖拽等)且当前环境无桌面会话时不适用;无桌面会话时优先改走 scripts/ 下的 headless 路线(其中 convert.py 依赖 LibreOffice)。

默认工作流

  1. 明确目标:先确认文档类型(文字/表格/演示)、交付格式(源文件/PDF)和截止时间。
  2. 收集输入:确认原始文件、模板、字体要求、页边距与纸张规格(A4/Letter)。
  3. 优先脚本处理:文档生成、格式转换、表格清洗等可自动化的操作,优先使用 scripts/ 下的脚本完成;GUI 操作仅作为需要人工确认时的兜底。给出最小步骤:优先提供可复制的短流程,先保证可交付,再做美化。
    • scripts/convert.py:封装 LibreOffice headless,批量互转 Office/WPS 格式并导出 PDF。
    • scripts/docx_gen.py:从 Markdown 生成中文排版规范的 .docx(A4、宋体/黑体/Times New Roman)。
    • scripts/xlsx_tool.py:表格去重清洗与交付前检查(sheet 清单、空行、公式、冻结窗格)。
    • scripts/inspect_doc.py:.docx 交付前检查(字体、分页分节符、批注/修订残留)。
  4. 兼容性检查:重点检查字体替换、分页漂移、图表错位、公式兼容。
  5. 交付说明:输出“已完成项 + 待确认项 + 回滚方案”。

高频任务模板

1) WPS 文字

  • 中文长文:先统一样式(标题 1/2/3、正文、引用)再插目录。
  • 合同或公文:优先锁定页面设置、页眉页脚和段落网格,最后处理编号。
  • 审阅流程:建议开启修订 + 批注,避免直接覆盖原文。
  • 从 Markdown 生成规范 docx 用 scripts/docx_gen.py;交付前检查用 scripts/inspect_doc.py。

2) WPS 表格

  • 数据清洗:先备份副本,再做分列、去重、格式标准化。
  • 汇总分析:优先使用数据透视表,减少手工复制粘贴。
  • 交付前检查:公式引用范围、数字格式、冻结窗格、打印区域。
  • 去重清洗与交付前检查用 scripts/xlsx_tool.py(dedup / check 子命令)。

3) WPS 演示

  • 先定母版与字体,再批量套版;避免逐页手工对齐。
  • 图文混排优先使用参考线与对齐分布工具。
  • 导出前检查字体嵌入与动画兼容,必要时导出 PDF 兜底。
  • 批量导出 PDF 用 scripts/convert.py。

兼容与故障排查

  • 打开后版式错乱:先确认缺失字体,再检查段落样式与分页符。
  • Excel/WPS 公式不一致:确认函数差异与区域引用方式。
  • 图片模糊:优先替换原图,避免重复截图压缩。
  • 打印分页异常:固定纸张与边距,重设打印区域后再预览。

详细格式差异与排查顺序见 WPS Reference。

安全边界

  • 未经用户同意,不覆盖原文件;默认另存为新版本。
  • 不处理或暴露真实敏感信息(证件号、手机号、合同金额等),示例一律用占位符。
  • 需要安装软件、联网下载模板或宏插件时,先说明风险与来源。

OpenClaw 与 clawhub.ai 规范

  • 只输出可复现、可审计的操作步骤,避免依赖个人设备路径。
  • 示例统一使用通用占位符文件名(如 合同草案-v2.docx)。
  • 面向 clawhub.ai 发布时:
    • 使用 semver 版本号与清晰 changelog。
    • 不包含私有文档、账号、密钥、企业内链。
    • 保持技能描述可检索(含中英文关键词),便于中国用户搜索。

Questions people ask

Can it apply Chinese typography defaults?
docx_gen.py defaults to A4 page size with 宋体/黑体/Times New Roman, which matches common Chinese long-form and official-document conventions.

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from jvy

Browse all skills

Create Apache ECharts option JSON, standalone HTML chart pages, and export-ready chart artifacts from CSV, TSV, JSON tables, or existing option configs. Use...

by jvy23 installs

Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull reque...

by jvy36 installs1 stars

Write, explain, adapt, and debug practical shader code for GLSL, WebGL, Three.js ShaderMaterial, React Three Fiber, postprocess-style full-screen effects, an...

by jvy24 installs1 stars

Build, debug, and integrate OpenLayers web maps, including map/view setup, XYZ and OSM base layers, vector sources, GeoJSON overlays, Web Mercator and WGS84...

by jvy17 installs

Research public holidays, bank holidays, observed days, school breaks, and make-up workdays for any country or region. Use when the user asks whether a speci...

by jvy18 installs

Explain and work with the CGCS2000 coordinate reference system for China geospatial workflows, including EPSG:4490 interpretation, projected CRS selection, G...

by jvy18 installs