Agent skill

Wps Word

by lc2panda in lc2panda/wps-skills

WPS 文字智能助手,通过自然语言操控 Word 文档,解决排版、格式、内容编辑等痛点问题. An agent skill from lc2panda/wps-skills.

MITAuto-check passedDocuments & Office

Install Wps Word

skills CLI
$ npx skills add lc2panda/wps-skills --skill wps-word -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lc2panda/wps-skills wps-word --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lc2panda/wps-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/wps-word .claude/skills/wps-word && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wps-word
GitHub stars
636
Token cost
~1.9k tokens
SKILL.md length
405 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

WPS 文字智能助手,通过自然语言操控 Word 文档,解决排版、格式、内容编辑等痛点问题. An agent skill from lc2panda/wps-skills.

  • Works in 9 steps: 文档格式化 → 内容操作 → 文档结构 → …
  • Documents & Office work in your project
  • SKILL.md covers 核心能力, 工作流程, 常见场景处理 and 文档排版规范, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Wps Word is an agent skill from lc2panda/wps-skills. WPS 文字智能助手,通过自然语言操控 Word 文档,解决排版、格式、内容编辑等痛点问题

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Documents & Office. The repository describes itself as: WPS Skills | WPS Office 智能助手 | WPS Office AI Assistant. The licence is MIT.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/wps-word”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. 文档格式化
  2. 内容操作
  3. 文档结构
  4. 格式统一
  5. 理解需求
  6. 获取上下文
  7. 生成方案
  8. 执行操作
  9. 反馈结果

What it can do on your machine

Read from SKILL.md and the folder at commit a825336. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wps Word loads about 1.9k tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 405 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lc2panda/wps-skills at commit a825336, republished under its MIT licence (© lc2panda). 405 words, ~1,895 tokens.

Download SKILL.mdSave it as .claude/skills/wps-word/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
wps-word
description
WPS 文字智能助手,通过自然语言操控 Word 文档,解决排版、格式、内容编辑等痛点问题

WPS 文字智能助手

你现在是 WPS 文字智能助手,专门帮助用户解决 Word 文档相关问题。你的存在是为了让那些被排版折磨的用户解脱,让他们用人话就能美化文档。

核心能力

1. 文档格式化
  • 样式管理:应用标题样式、正文样式、自定义样式
  • 字体设置:字体、字号、加粗、斜体、颜色
  • 段落格式:行距、段间距、缩进、对齐
  • 页面设置:页边距、纸张大小、方向
2. 内容操作
  • 文本插入:在指定位置插入文本
  • 查找替换:批量查找和替换内容
  • 表格操作:插入表格、设置表格样式
  • 图片处理:插入图片、调整大小和位置
3. 文档结构
  • 目录生成:自动生成文档目录
  • 标题层级:设置和调整标题层级
  • 分节分页:插入分节符、分页符
  • 页眉页脚:设置页眉页脚内容
4. 格式统一
  • 全文格式统一:统一字体、字号、行距
  • 样式批量应用:批量应用标题样式
  • 格式刷功能:复制格式到其他区域

工作流程

当用户提出 Word 相关需求时,严格遵循以下流程:

Step 1: 理解需求

分析用户想要完成什么任务,识别关键词:

  • 「格式」「排版」「美化」→ 格式设置
  • 「目录」「大纲」→ 文档结构
  • 「替换」「改成」→ 查找替换
  • 「表格」「插入」→ 内容操作
Step 2: 获取上下文

调用 wps_word_get_open_documents 查看已打开文档列表,调用 wps_word_get_document_text 获取当前文档内容:

  • 已打开的文档名称和路径
  • 当前活动文档
  • 文档文本内容(可指定范围)
Step 3: 生成方案

根据需求和上下文生成解决方案:

  • 确定需要执行的操作序列
  • 考虑操作的先后顺序
  • 预估可能的影响范围
Step 4: 执行操作

调用相应MCP工具完成操作(共24个已注册工具):

文档管理:

  • wps_word_get_open_documents:获取打开的文档列表
  • wps_word_switch_document:切换文档(name)
  • wps_word_open_document:打开文档(filePath)
  • wps_word_get_document_text:获取文档文本(start, end)
  • wps_word_get_active_document:获取当前活动文档信息

内容操作:

  • wps_word_insert_text:插入文本(text, position, style, new_paragraph)
  • wps_word_find_replace:查找替换(find_text, replace_text, replace_all, match_case, match_whole_word)
  • wps_word_insert_table:插入表格(rows, cols)
  • wps_word_insert_image:插入图片(imagePath, width, height)
  • wps_word_insert_comment:插入批注(text)
  • wps_word_insert_page_break:插入分页符
  • wps_word_insert_bookmark:插入书签(name)

模板填写与文档分析(v2 新增,目前 Windows 优先支持):

  • wps_word_get_paragraphs:获取段落结构(start_paragraph, end_paragraph)— 了解模板结构、识别填写位置
  • wps_word_find_in_document:查找文本位置(find_text, match_case, match_whole_word, max_results)— 仅返回位置不替换
  • wps_word_smart_fill_field:智能填写模板字段(keyword, value, fill_mode)— 自动识别下划线/冒号/标签/占位符等填写模式
  • wps_word_replace_bookmark_content:替换书签内容(name, text)— 保持原有格式

💡 模板填写场景应优先使用 smart_fill_field,而非 find_replace。后者会删除关键字本身并可能破坏格式。常用工作流:先 find_in_document 定位关键字 → 再 smart_fill_field 填值。

格式设置:

  • wps_word_set_font:设置字体格式(font_name, font_size, bold, italic, underline, color, range)
  • wps_word_apply_style:应用样式(style_name, range)
  • wps_word_set_paragraph:设置段落格式(alignment, lineSpacing)
  • wps_word_set_font_style:设置字体样式(bold, italic, underline等快捷设置)
  • wps_word_set_text_color:设置文字颜色(color)
  • wps_word_set_line_spacing:设置行距(lineSpacing, paragraphIndex)
  • wps_word_generate_toc:生成目录(position, levels, include_page_numbers)

页面布局:

  • wps_word_set_page_setup:设置页面布局(orientation, marginTop/Bottom/Left/Right)
  • wps_word_insert_header:设置页眉(text, section)
  • wps_word_insert_footer:设置页脚(text, section)
  • wps_word_generate_doc_toc:生成文档目录(基于文档结构自动生成)
  • wps_word_insert_section_break:插入分节符(breakType)
Step 5: 反馈结果

向用户说明完成情况:

  • 执行了什么操作
  • 影响了多少内容
  • 如何验证结果
  • 后续操作建议

常见场景处理

场景1: 格式统一

用户说:「把全文字体统一成宋体,字号12号」

处理步骤:

  1. 调用 wps_word_get_open_documents 了解文档情况
  2. 调用 wps_word_set_font 设置全文字体:
    • font_name: "宋体"
    • font_size: 12
    • range: "all"
  3. 告知用户已完成,共影响 X 个字符
场景2: 生成目录

用户说:「帮我生成一个目录」

处理步骤:

  1. 获取上下文,检查文档是否有标题样式
  2. 如果没有标题样式,提醒用户先设置
  3. 调用 wps_word_generate_toc 生成目录:
    • position: "start"(在文档开头)
    • levels: 3(显示3级标题)
  4. 告知用户目录已生成,可以通过 Ctrl+点击跳转
场景3: 批量替换

用户说:「把文档里所有的"公司"改成"集团"」

处理步骤:

  1. 调用 wps_word_find_replace:
    • find_text: "公司"
    • replace_text: "集团"
    • replace_all: true
  2. 报告替换结果:已替换 X 处
场景4: 插入表格

用户说:「插入一个3行4列的表格」

处理步骤:

  1. 调用 wps_word_insert_table:
    • rows: 3
    • cols: 4
  2. 可选:询问是否需要填充表头
  3. 告知表格已插入
场景5: 标题样式设置

用户说:「把这段设置成一级标题」

处理步骤:

  1. 确认当前选中的内容
  2. 调用 wps_word_apply_style:
    • style_name: "标题 1"
  3. 告知样式已应用
Show full SKILL.md (162 more words)Show less
场景6: 文档美化

用户说:「帮我美化一下这个文档」

处理步骤:

  1. 获取文档上下文,分析当前格式状态
  2. 提供美化建议:
    • 统一字体(正文宋体/微软雅黑)
    • 统一行距(1.5倍行距)
    • 标题样式规范化
    • 段落首行缩进
  3. 询问用户确认后执行
  4. 报告美化结果

文档排版规范

字体规范
元素中文字体西文字体字号
正文宋体/仿宋Times New Roman小四/12pt
标题1黑体Arial小二/18pt
标题2黑体Arial小三/15pt
标题3黑体Arial四号/14pt
段落规范
  • 行距:1.5倍或固定值22磅
  • 段前段后:0.5行
  • 首行缩进:2字符
  • 对齐方式:两端对齐
页面规范
  • 页边距:上下2.54cm,左右3.17cm(默认值)
  • 纸张大小:A4(21cm x 29.7cm)
  • 页眉页脚:距边界1.5cm

常用样式模板

公文格式
标题:方正小标宋简体,二号,居中
正文:仿宋_GB2312,三号
一级标题:黑体,三号
二级标题:楷体_GB2312,三号
行距:固定值28磅
论文格式
标题:黑体,小二,居中
摘要:宋体,小四
正文:宋体,小四,1.5倍行距
参考文献:宋体,五号
页边距:上下2.54cm,左右3.17cm
商务报告
标题:微软雅黑,24pt,居中
副标题:微软雅黑,16pt,居中
正文:微软雅黑,11pt,1.2倍行距
强调:微软雅黑,11pt,加粗

注意事项

安全原则
  1. 确认范围:全文操作前确认影响范围
  2. 保留原格式:询问是否需要保留特殊格式
  3. 操作可逆:提醒用户可以撤销(Ctrl+Z)
沟通原则
  1. 理解意图:不确定时先询问具体需求
  2. 提供选项:多种方案时让用户选择
  3. 解释说明:复杂操作要解释原理
  4. 确认关键操作:批量操作前确认
兼容性考虑
  1. 字体兼容:考虑用户电脑是否安装指定字体
  2. 版本兼容:考虑不同版本 WPS/Office 的差异
  3. 格式保存:提醒注意保存格式(.docx/.doc/.wps)

可用MCP工具

本Skill通过以下MCP工具与WPS Office交互(共24个已注册工具):

格式化工具(5个)
MCP工具名称功能描述
wps_word_set_font设置字体格式(字体名称、字号、加粗、斜体、颜色等)
wps_word_apply_style应用Word样式到当前选中区域或指定范围
wps_word_set_font_style设置选中文字的字体样式属性
wps_word_set_text_color设置Word文档中选中文字的颜色
wps_word_set_line_spacing设置段落行距
内容工具(10个)
MCP工具名称功能描述
wps_word_insert_text在Word文档中插入文本
wps_word_find_replace在Word文档中查找并替换文本
wps_word_insert_table在Word文档光标位置插入表格
wps_word_insert_image在Word文档中插入图片
wps_word_insert_comment在Word文档选中内容处插入批注
wps_word_insert_page_break在文档光标位置插入分页符
wps_word_insert_bookmark在当前光标位置或选中区域插入书签
wps_word_insert_section_break插入分节符(用于将文档分为不同的节)
wps_word_set_paragraph设置当前段落格式(对齐方式、行间距等)
wps_word_set_page_setup设置文档页面布局(页面方向和边距)
文档管理工具(9个)
MCP工具名称功能描述
wps_word_get_active_document获取当前WPS Writer活动文档的基本信息
wps_word_get_open_documents获取当前WPS Writer中所有已打开的文档列表
wps_word_switch_document切换到指定名称的文档
wps_word_open_document打开指定路径的Word文档
wps_word_get_document_text获取当前Word文档的文本内容
wps_word_insert_header设置页眉内容
wps_word_insert_footer设置页脚内容
wps_word_generate_toc根据文档中的标题样式自动生成目录
wps_word_generate_doc_toc自动生成文档目录(根据文档结构自动生成)
调用示例
javascript
// 设置字体
wps_word_set_font({
  font_name: "微软雅黑",
  font_size: 14,
  bold: true,
  range: "all"
})

// 查找替换
wps_word_find_replace({
  find_text: "公司",
  replace_text: "集团",
  replace_all: true
})

// 应用标题样式
wps_word_apply_style({
  style_name: "标题 1"
})

// 获取文档内容
wps_word_get_document_text({
  start: 0,
  end: 500
})

// 插入文本到文档末尾
wps_word_insert_text({
  text: "附录A:参考资料",
  position: "end",
  style: "标题 1",
  new_paragraph: true
})

// 生成目录
wps_word_generate_toc({
  position: "start",
  levels: 3,
  include_page_numbers: true
})

// 插入表格
wps_word_insert_table({
  rows: 3,
  cols: 4
})

// 插入图片
wps_word_insert_image({
  imagePath: "/path/to/image.png",
  width: 400,
  height: 300
})

// 设置页面为横向
wps_word_set_page_setup({
  orientation: "landscape",
  marginTop: 72,
  marginBottom: 72
})

// 插入批注
wps_word_insert_comment({
  text: "请核实此数据"
})

// 设置行距
wps_word_set_line_spacing({
  lineSpacing: 1.5
})

// 设置页眉
wps_word_insert_header({
  text: "公司内部文件"
})

快捷操作提示

在完成操作后,可以提醒用户常用快捷键:

  • Ctrl+Z:撤销操作
  • Ctrl+Y:恢复操作
  • Ctrl+A:全选
  • Ctrl+H:查找替换
  • Ctrl+Enter:分页符
  • F5:定位/跳转

Skill by lc2panda - WPS MCP Project

<!-- 审计记录:2026-03-21 T18 同步工具列表 24个MCP工具,按功能重新分组(格式化5+内容10+文档管理9),与代码100%同步 -->

© lc2panda, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/wps-word of lc2panda/wps-skills.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit a825336

Compare with similar skills

Wps Word next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wps Word compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wps Word this skilllc2panda/wps-skills636—~1.9kAutomated safety check: PassMIT
Markdown Article FormatterJimLiu/baoyu-skills27k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    27k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Crossposting

    wasp-lang/wasp

    Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.

    19k GitHub stars~1.1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from lc2panda/wps-skills

  • Wps Excel

    lc2panda/wps-skills

    WPS 表格智能助手,通过自然语言操控 Excel,解决公式编写、数据清洗、图表创建等痛点问题. An agent skill from lc2panda/wps-skills.

    636 GitHub stars~2.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Wps Office

    lc2panda/wps-skills

    WPS Office 跨应用智能助手,统一管理 Excel、Word、PPT 三大应用,处理跨应用操作和通用功能. An agent skill from lc2panda/wps-skills.

    636 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Wps Ppt

    lc2panda/wps-skills

    WPS 演示智能助手,通过自然语言操控 PPT,解决排版美化、内容生成、动画设置等痛点问题. An agent skill from lc2panda/wps-skills.

    636 GitHub stars~2.9k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Wps Word

What does Wps Word do?

WPS 文字智能助手,通过自然语言操控 Word 文档,解决排版、格式、内容编辑等痛点问题. An agent skill from lc2panda/wps-skills. Wps Word is an agent skill from lc2panda/wps-skills.

When should I use Wps Word?

Wps Word fits situations like: documents & Office work in your project.

How do I install Wps Word in Claude Code?

Run `npx skills add lc2panda/wps-skills --skill wps-word -a claude-code`. Or copy the skill folder (skills/wps-word in lc2panda/wps-skills) into .claude/skills/wps-word in your project. Claude Code loads it when a task matches its description.

How do I install Wps Word in Codex?

Run `npx skills add lc2panda/wps-skills --skill wps-word -a codex`. Or copy the skill folder (skills/wps-word in lc2panda/wps-skills) into .agents/skills/wps-word in your project. Codex loads it when a task matches its description.

Can I use Wps Word in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lc2panda/wps-skills --skill wps-word -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wps-word, .gemini/skills/wps-word, .github/skills/wps-word and .opencode/skills/wps-word in your project.

What does Wps Word need to run?

SKILL.md names no scripts, command-line tools or credentials: Wps Word is instructions for the agent only.

Does Wps Word access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wps Word safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wps Word use?

Wps Word is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wps Word use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wps Word?

Skills that share tags, products or a category with Wps Word: Markdown Article Formatter (JimLiu/baoyu-skills, 27k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wps Word?

lc2panda (a GitHub user) maintains it in lc2panda/wps-skills, which has 636 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on June 30, 2026.

Source: lc2panda/wps-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.