From learning-skills
Beautifies WPS Notes documents with single-color schemes, title hierarchy optimization, highlight blocks for key conclusions, and columns for comparisons via XML edits.
npx claudepluginhub wpsnote/wpsnote-skills --plugin learning-skillsThis skill uses the workspace's default tool permissions.
对 WPS 笔记进行智能美化,包括:结构层级优化、高亮块/分栏强调重点、配色方案应用、富文本样式写入。通过 WPS 笔记 MCP 工具(`user-wpsnote`)完成所有读写操作。
Manages WPS notes via MCP tools: reads, edits, searches, creates, tags using block model and XML format. Activates on WPS Note mentions, note operations, or MCP errors like BLOCK_NOT_FOUND.
Refines rough notes into structured documents with headings, improved phrasing, and formatting via Yuque tools. Handles links or pasted text; preserves original meaning for personal use.
Automates WPS Word documents via natural language for formatting, content editing, tables, images, TOC generation, and page setup using 24 MCP tools. Useful for doc typesetting and batch operations.
Share bugs, ideas, or general feedback.
对 WPS 笔记进行智能美化,包括:结构层级优化、高亮块/分栏强调重点、配色方案应用、富文本样式写入。通过 WPS 笔记 MCP 工具(user-wpsnote)完成所有读写操作。
美化的核心目标是提升可读性,而非"让文档变得五颜六色"。必须遵守以下约束:
必须先执行以下步骤,不要跳过:
get_note_outline 获取笔记大纲(包含 block_id、类型、文本预览)read_note 读取全文 XMLget_xml_reference 获取 XML 格式参考(首次美化时)分析要点:
<p> 没有标题、标题层级跳跃等)根据分析结果,制定具体美化计划。向用户简要展示方案并确认后再执行。
方案应包含:
执行前必须刷新大纲: 每次写入前调用 get_note_outline 获取最新 block_id。
优先使用 batch_edit 批量执行,减少调用次数。执行顺序固定为:delete → replace → update_attrs → insert。
分批执行时,每批完成后重新获取大纲再继续。
read_note 检查最终效果| 层级 | 用途 | 说明 |
|---|---|---|
<h1> | 文档主标题 | 全文仅一个,位于开头 |
<h2> | 一级章节 | 文档的主要板块划分 |
<h3> | 二级章节 | 板块内的子主题 |
<h4> | 三级章节 | 细分内容,按需使用 |
<h5>/<h6> | 极少使用 | 仅在层级确实需要时 |
扁平化文档(全是段落无标题):
<h2> 或 <h3>层级跳跃修复(如 h1 直接到 h4):
过深层级扁平化(超过 4 级):
<h5>/<h6> 内容合并到上级或转为加粗段落| 场景 | 背景色 | 边框色 | 推荐 emoji |
|---|---|---|---|
| 核心结论/要点 | #E8F5E9 | #4CAF50 | ✅ 或 💡 |
| 重要提示/注意 | #FFF3E0 | #FF9800 | ⚠️ 或 📌 |
| 警告/风险 | #FFEBEE | #F44336 | ❗ 或 🚨 |
| 引用/摘要 | #E3F2FD | #2196F3 | 📖 或 💬 |
| 定义/术语 | #F3E5F5 | #9C27B0 | 📝 或 🔍 |
| 最佳实践 | #E0F7FA | #00BCD4 | ⭐ 或 🎯 |
<highlightBlock emoji="💡" highlightBlockBackgroundColor="#E8F5E9" highlightBlockBorderColor="#4CAF50">
<p><strong>核心结论</strong></p>
<p>这里是需要强调的重点内容。</p>
</highlightBlock>
| 场景 | 栏数 | 说明 |
|---|---|---|
| 优缺点对比 | 2 栏 | 左优右缺,配不同背景色 |
| 方案对比 | 2-3 栏 | 并列展示方案要点 |
| 概念并列 | 2-3 栏 | 相关但独立的概念并排 |
| 数据摘要 | 2-4 栏 | 关键指标并排展示 |
<columns>
<column columnBackgroundColor="#E8F5E9">
<p><strong><span fontColor="#2E7D32">优势</span></strong></p>
<p>第一个优点说明</p>
<p>第二个优点说明</p>
</column>
<column columnBackgroundColor="#FFEBEE">
<p><strong><span fontColor="#C62828">劣势</span></strong></p>
<p>第一个缺点说明</p>
<p>第二个缺点说明</p>
</column>
</columns>
通过 <span fontColor="..."> 包裹标题文字:
<h2><span fontColor="#1565C0">章节标题</span></h2>
标题颜色应全文统一:同级标题用同一颜色。
关键术语、重点词汇使用加粗 + 颜色:
<p>这是一段文字,其中<strong><span fontColor="#D84315">关键概念</span></strong>被突出显示。</p>
对少量关键词使用背景高亮:
<p>使用 <span fontHighlightColor="#FFF9C4">核心方法</span> 实现目标。</p>
详细的 XML 模板参见 reference/xml-patterns.md。
<h2> 章节逐段美化read_section 读取单章节get_note_outline 刷新edit_block(op="replace")<img/>、<embed/>、<imageColumn/>、<tag> 无法通过 XML 创建