best-skills is a collection of reusable skills for coding agents, including tools for writing papers, creating diagrams and presentations, generating code documentation, and other tasks. Users install its skills into agents such as Cursor, Claude Code, Codex, or OpenClaw so those agents can recognize relevant requests and run the corresponding workflows. The catalogue entries are examples of the skills included in the collection.
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 xstongxue/best-skills --skill office-file-processgit clone --depth 1 https://github.com/xstongxue/best-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/xstongxue/best-skills/office-file-process)<a href="https://agentmods.dev/skills/xstongxue/best-skills/office-file-process"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/office-file-process/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/xstongxue/best-skills/office-file-process"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/office-file-process.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.00209 | $0.03383 |
| Opus 5.5 | $0.00084 | $0.01353 |
| Sonnet 5.5 | $0.00042 | $0.00677 |
| Haiku 4.5 | $0.00021 | $0.00338 |
Grade A, and why
office-file-process 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 7d 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 — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Office 文档处理(统一入口)
处理 Word / Excel / PowerPoint 文件的统一 skill。面向 Windows + Office 环境(COM 自动化是它独有的兜底能力),不预设任何机器装了哪些工具——动手前先探测环境,再按本文规则决策。非 Windows 或无 Office 的机器见文末降级方案。先按任务路由,细节在对应参考文档里。
任务路由
| 任务 | 路线 | 详情 |
|---|---|---|
| 读取/提取任何 Office 文档内容 | 按下方"读取路线怎么选"决策 | 本页 |
| 创建/编辑 Word 文档 | docx-js(新建)/ unzip+XML(编辑) | reference/docx.md |
| 创建/编辑 PowerPoint | pptxgenjs(新建)/ unzip+XML(编辑) | reference/pptx.md |
| 创建/编辑 Excel | openpyxl / pandas | reference/xlsx.md |
| 校验 docx/pptx/xlsx 输出 | scripts/office/validate.py |
各格式参考文档的 QA 节 |
读取路线怎么选(官方工具 vs Office COM)
原则:有环境就用官方的(输出质量更高),没有就用 COM 提取脚本。 先探测环境再动手:
where pandoc 2>/dev/null && echo HAS_PANDOC
python -c "import markitdown" 2>/dev/null && echo HAS_MARKITDOWN
python -c "import openpyxl" 2>/dev/null && echo HAS_OPENPYXL
| 格式 | 环境在(优先) | 环境不在(退回 COM) |
|---|---|---|
| .docx | pandoc -t markdown file.docx — 输出带结构 markdown(标题层级、列表、表格),后续处理质量最高 |
extract_office_text.ps1 — 纯文本,表格转制表符 |
| .pptx | markitdown deck.pptx — 每页一块带 <!-- Slide number: N --> 标记 |
extract_office_text.ps1 — 逐页文本 + [NOTES] 备注 |
| .xlsx | markitdown file.xlsx 快速浏览;openpyxl/pandas 精确读(有单元格坐标,规划编辑必须用它) |
extract_office_text.ps1 — 逐 sheet 制表符纯文本,无坐标 |
| .doc/.xls/.ppt(老格式) | 官方工具也读不了(二进制) | COM 是唯一路径(或 COM 转新格式后再走官方工具) |
补充判断:
- openpyxl/pandas 是 pip 一装就有的轻依赖(无需管理员),读 xlsx 需要坐标或要进一步算数据时,直接
pip install openpyxl pandas比退回 COM 更好;markitdown其实也是 pip 可装的轻依赖(pip install "markitdown[pptx,xlsx]");只有 pandoc/soffice 是系统级安装,不方便现装。 - 带保护壳的文档(加密狗水印壳等):一律 COM 对象模型直取
Content.Text——已验证 Word SaveAs 导出此类文档是乱码;官方工具(pandoc 等)未在此场景验证过,别拿它冒险。 - 中文文件名:官方工具能处理,但如果 Read/Grep 打不开输出文件,退回 COM 脚本(输出固定 ASCII 文件名
office_extract_<n>.txt)。
本页及 reference/ 里的 scripts/... 路径一律相对本 skill 根目录书写;从仓库根实际调用时加前缀 .claude/skills/office-file-process/(如 python .claude/skills/office-file-process/scripts/office/validate.py——下方 -File 示例即此前缀形式)。
What ships with it
60 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.
- LICENSE.txt 1.4 KB
- reference/docx.md 6.8 KB
- reference/pptx.md 18 KB
- reference/python-setup.md 5.4 KB
- reference/xlsx.md 7.9 KB
- scripts/accept_changes.py 4.0 KB runs code
- scripts/add_slide.py 14 KB runs code
- scripts/clean.py 10 KB runs code
- scripts/comment.py 14 KB runs code
- scripts/extract_office_text.ps1 9.9 KB runs code
- scripts/merge_runs.py 9.2 KB runs code
- scripts/office/helpers/__init__.py 3.3 KB runs code
- scripts/office/helpers/pptx_chart.py 5.7 KB runs code
- scripts/office/helpers/pptx_slide.py 1.6 KB runs code
- scripts/office/helpers/pptx_theme.py 3.4 KB runs code
- scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd 1.9 KB
- scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd 2.5 KB
- scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd 2.8 KB
- scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd 1.3 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd 73 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd 6.8 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd 50 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd 624 B
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd 148 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd 1.2 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd 8.7 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd 14 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd 82 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd 1.2 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd 7.2 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd 6.2 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd 1.2 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd 880 B
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd 2.5 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd 3.4 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd 7.3 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd 23 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd 1.3 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd 237 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd 26 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd 25 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd 535 B
- scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd 5.6 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd 3.9 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd 167 KB
- scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd 4.5 KB
- scripts/office/schemas/mce/mc.xsd 3.1 KB
- scripts/office/schemas/microsoft/wml-2010.xsd 26 KB
- scripts/office/schemas/microsoft/wml-2012.xsd 3.7 KB
- scripts/office/schemas/microsoft/wml-2018.xsd 901 B
- scripts/office/schemas/microsoft/wml-cex-2018.xsd 1.7 KB
- scripts/office/schemas/microsoft/wml-cid-2016.xsd 1002 B
- scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd 600 B
- scripts/office/schemas/microsoft/wml-symex-2015.xsd 745 B
- scripts/office/soffice.py 5.8 KB runs code
- scripts/office/validate.py 6.0 KB runs code
- scripts/office/validators/__init__.py 336 B runs code
- scripts/office/validators/base.py 33 KB runs code
- scripts/office/validators/docx.py 17 KB runs code
- scripts/office/validators/pptx.py 16 KB runs code
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.
- 7d ago First seen · 134 lines · 209 tokens per session scan A 1fa2bfa36253
office-file-process is a skill published in the GitHub repository xstongxue/best-skills (3,240 stars, last pushed 7d ago), licensed Apache-2.0. It adds 209 tokens to every session and 3,383 once invoked, about $0.0008 per session on Opus 5.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-11-23.
office-file-process compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| office-file-processxstongxue/best-skills | Skill | 3.2k | 7d ago | Apache-2.0 | A | 209 | Claude Code, Codex |
| Excel工具XiaoMaColtAI/math-modeling-skill | Skill | 2.0k | today | none | A | 25 | Claude Code, Codex |
| xlsxagentscope-ai/QwenPaw | Skill | 38k | 3d ago | Apache-2.0 | A | 206 | Claude Code, Codex |
| xlsxagentscope-ai/QwenPaw | Skill | 38k | 3d ago | Apache-2.0 | A | 237 | Claude Code, Codex |
| officecliiOfficeAI/OfficeCLI | Skill | 34k | 10d ago | Apache-2.0 | A | 56 | Claude Code, Codex |
| huashu-data-proalchaincyf/huashu-skills | Skill | 2.4k | yesterday | MIT | A | 183 | Claude Code, Codex |
| Spreadsheet & Data Wrangling MasterLeoYeAI/openclaw-master-skills | Skill | 2.2k | 8d ago | MIT | A | 68 | Claude Code, Codex |