Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Bwkyd/wps-skills --skill wps-format-fixgit clone --depth 1 https://github.com/Bwkyd/wps-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bwkyd/wps-skills/wps-format-fix)<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-format-fix"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-format-fix/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-format-fix"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-format-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.02870 |
| Opus 5 | $0.00051 | $0.01435 |
| Sonnet 5 | $0.00020 | $0.00574 |
| Haiku 4.5 | $0.00010 | $0.00287 |
Grade A, and why
wps-format-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 329 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WPS 格式兼容性修复
修复 WPS ↔ Microsoft Office 之间互传文档时的各种格式错乱问题。
这是 WPS 用户反馈最多的痛点。 本工具提供系统性的诊断和修复方案。
When to Use
- 文档在WPS打开后格式错乱
- Word文件发给对方后排版变了
- 字体显示不对/缺失
- 行距、页边距、表格等格式异常
- 用户说"格式乱了""打开变了""兼容性问题"
When NOT to Use
- 需要从头创建文档 → 使用
wps-docx-writer - 需要公文排版 → 使用
wps-gongwen - 需要校对文字内容 → 使用
wps-proofread
常见问题诊断表
| 症状 | 原因 | 修复方案 |
|---|---|---|
| 字体变了/显示方块 | 对方电脑没有该字体 | 字体替换为通用字体 |
| 行距忽大忽小 | WPS和Word的行距计算方式不同 | 统一设置固定行距 |
| 表格超出页面 | 表格宽度计算差异 | 重设表格宽度为百分比 |
| 图片位移/重叠 | 图片锚定方式不同 | 改为嵌入型排列 |
| 页面布局错乱 | 分节符/分页符差异 | 重设页面参数 |
| 页码不连续 | 节设置差异 | 统一节的页码设置 |
| 目录页码错误 | 域代码未更新 | 更新所有域 |
| SmartArt变形 | WPS渲染差异 | 转换为普通形状 |
| 公式显示异常 | MathType/公式编辑器兼容性 | 转为图片或重新编辑 |
| 批注/修订丢失 | 版本兼容性 | 检查保存格式是否为.docx |
工作流程
Step 1: 诊断问题
如果用户提供了文件,运行诊断脚本:
pip install python-docx 2>/dev/null || pip3 install python-docx 2>/dev/null
from docx import Document
from docx.shared import Pt, Mm
from docx.oxml.ns import qn
import os
def diagnose_compat(file_path):
"""诊断文档兼容性问题"""
doc = Document(file_path)
issues = []
# 检查字体
risky_fonts = set()
safe_fonts = {'宋体', '黑体', '楷体', '仿宋', '微软雅黑',
'Arial', 'Times New Roman', 'Calibri'}
for para in doc.paragraphs:
for run in para.runs:
font_name = run.font.name
east_asia = None
rPr = run._element.find(qn('w:rPr'))
if rPr is not None:
rFonts = rPr.find(qn('w:rFonts'))
if rFonts is not None:
east_asia = rFonts.get(qn('w:eastAsia'))
for f in [font_name, east_asia]:
if f and f not in safe_fonts:
risky_fonts.add(f)
if risky_fonts:
issues.append(f"⚠️ 发现 {len(risky_fonts)} 种非通用字体:{', '.join(risky_fonts)}")
# 检查页面设置
for section in doc.sections:
if section.page_width != Mm(210) or section.page_height != Mm(297):
issues.append("⚠️ 页面尺寸非标准A4")
# 检查表格宽度
for i, table in enumerate(doc.tables):
issues.append(f"📊 表格{i+1}:{len(table.rows)}行 × {len(table.columns)}列")
# 检查图片
img_count = 0
for para in doc.paragraphs:
for run in para.runs:
if run._element.findall(qn('w:drawing')):
img_count += 1
if img_count:
issues.append(f"🖼️ 包含 {img_count} 张图片(可能有位移风险)")
return issues
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 329 lines · 101 tokens per session scan A 7244f64b3418
wps-format-fix is a skill published in the GitHub repository Bwkyd/wps-skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 101 tokens to every session and 2,870 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
docx-template-translator
Adaptive conversion of LaTeX, PDF, or Markdown sources into a complete Word .docx that follows a user-supplied .docx template. Use when pandoc --reference-doc alone is not enough — for thesis, dissertation, report, or institutional Word formatting that needs cover pages, declarations, TOC, heading numbering, captions…
法律文件脱敏处理
A browser-based and Python tool for removing sensitive details from legal Word documents and restoring them later. It can replace information such as names, dates, prices, bank accounts and case numbers while preserving document formatting.
note-organizer
Use this skill whenever the user wants to organize course materials, lecture notes, PPT/PDF/DOCX files, textbooks, personal notes, senior-student notes, historical exams, review questions, standards, manuals, or scattered study resources into a structured Markdown note library. Use it even when the user only says…
exhibition-outline
A template for turning an exhibition plan into a three-page presentation outline. The pages cover the theme, its explanation and visitor story, and a detailed area-by-area display plan.
tender-analysis
A workflow for reviewing tender documents, which are formal project requests that describe requirements and bidding rules. It extracts project details, technical and business conditions, deadlines, scoring rules, risks, and questions for clarification.
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…