wps-word

lc2panda/wps-skills · updated Jun 3, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/lc2panda/wps-skills --skill wps-word
0 commentsdiscussion
summary

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

skill.md

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)

格式设置:

  • 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. 告知样式已应用

场景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 自动生成文档目录(根据文档结构自动生成)

调用示例

// 设置字体
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

how to use wps-word

How to use wps-word on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add wps-word
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/lc2panda/wps-skills --skill wps-word

The skills CLI fetches wps-word from GitHub repository lc2panda/wps-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/wps-word

Reload or restart Cursor to activate wps-word. Access the skill through slash commands (e.g., /wps-word) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.673 reviews
  • Soo Smith· Dec 28, 2024

    I recommend wps-word for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Michael Thomas· Dec 24, 2024

    Keeps context tight: wps-word is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Soo Tandon· Dec 8, 2024

    I recommend wps-word for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Ganesh Mohane· Dec 4, 2024

    wps-word has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Maya Li· Nov 27, 2024

    Useful defaults in wps-word — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Sakshi Patil· Nov 23, 2024

    wps-word reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Benjamin Bhatia· Nov 23, 2024

    Solid pick for teams standardizing on skills: wps-word is focused, and the summary matches what you get after install.

  • Hana Ghosh· Nov 19, 2024

    Useful defaults in wps-word — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Dev Nasser· Nov 19, 2024

    wps-word is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Sophia Srinivasan· Nov 15, 2024

    Registry listing for wps-word matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 73

1 / 8