office-file-process

office-file-process is a skill for Claude Code, Codex from xstongxue/best-skills. It costs 209 tokens per session (3,383 once invoked), scanned A, original, Apache-2.0.

A guide for reading, creating, editing, converting, and checking Word, Excel, and PowerPoint files. It chooses tools based on the available environment, including Python libraries, command-line tools, and Windows Office automation.

In plain words
What is it for?
Use it to extract document text, build reports and presentations, edit spreadsheets, handle older files, and validate generated office documents.
Why use it?
It gives one route for common office-file tasks instead of requiring a separate process for each format. It also includes fallback methods when preferred tools or Office are unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to extract document text, build reports and presentations, edit spreadsheets, handle older files, and validate generated office documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xstongxue/best-skills/office-file-process
About the project

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.

xstongxue/best-skills · 3,240 stars · on GitHub

Install

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.

Any agent
npx skills add xstongxue/best-skills --skill office-file-process
Clone the repo
git clone --depth 1 https://github.com/xstongxue/best-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for office-file-process

README.md
[![agentmods](https://agentmods.dev/badge/skills/xstongxue/best-skills/office-file-process/github.svg)](https://agentmods.dev/skills/xstongxue/best-skills/office-file-process)
Your own site
<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.

agentmods 80×15 button for office-file-process

Your own site · 80×15
<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>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 1fa2bfa36253, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/accept_changes.py, scripts/add_slide.py, scripts/clean.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/office-file-process/SKILL.md · 134 lines

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 示例即此前缀形式)。

Read the full file on GitHub · 134 lines

Files

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.

Changes

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.

  1. 7d ago First seen · 134 lines · 209 tokens per session scan A 1fa2bfa36253

Subscribe to this mod's changes

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.

Related

office-file-process compared with skills from other repositories

office-file-process next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
office-file-processxstongxue/best-skillsSkill3.2k7d agoApache-2.0A209Claude Code, Codex
Excel工具XiaoMaColtAI/math-modeling-skillSkill2.0ktodaynoneA25Claude Code, Codex
xlsxagentscope-ai/QwenPawSkill38k3d agoApache-2.0A206Claude Code, Codex
xlsxagentscope-ai/QwenPawSkill38k3d agoApache-2.0A237Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A56Claude Code, Codex
huashu-data-proalchaincyf/huashu-skillsSkill2.4kyesterdayMITA183Claude Code, Codex
Spreadsheet & Data Wrangling MasterLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA68Claude Code, Codex