Agent skill

Office File Process

by xstongxue in xstongxue/best-skills

处理 Office 文档的一站式 skill:Word(.doc/.docx/.dotx)、Excel(.xls/.xlsx/.xlsm/.csv)、PowerPoint(.ppt/.pptx/.potx) 的创建、读取、编辑、提取、转换、校验。触发:『读取 word 文档』『提取 excel 内容』『看 ppt 讲了什么』、.doc 老格式打不开、生成/编辑 Word…

ProprietaryAuto-check passedDocuments & Office

Install Office File Process

skills CLI
$ npx skills add xstongxue/best-skills --skill office-file-process -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xstongxue/best-skills office-file-process --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xstongxue/best-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/office-file-process .claude/skills/office-file-process && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
office-file-process
GitHub stars
3k
Token cost
~1.8k tokens
SKILL.md length
475 words
Files
77 (incl. scripts)
Skills in repo
15
Repo updated
First seen
Licence
Proprietary

At a glance

处理 Office 文档的一站式 skill:Word(.doc/.docx/.dotx)、Excel(.xls/.xlsx/.xlsm/.csv)、PowerPoint(.ppt/.pptx/.potx) 的创建、读取、编辑、提取、转换、校验。触发:『读取 word 文档』『提取 excel 内容』『看 ppt 讲了什么』、.doc 老格式打不开、生成/编辑 Word…

  • Works in 5 steps: 输出放在源文档旁边,命名 office_extract_.txt——ASCII… → 每次运行先清掉该目录上次残留的… → Word 表格单元格转为制表符分隔(协议表格 CMD/参数定义可直接阅读); → …
  • Any .docx/.xlsx/.pptx file is the primary input
  • SKILL.md covers 任务路由, 读取路线怎么选(官方工具 vs Office COM), COM 提取脚本(官方工具不可用/老格式/带壳文档时的读取路径) and 环境检查(写代码前先对照), plus 3 more sections
  • Runs Python and PowerShell scripts from its folder; calls pip, python and markitdown

What it does

Office File Process is an agent skill from xstongxue/best-skills. 处理 Office 文档的一站式 skill:Word(.doc/.docx/.dotx)、Excel(.xls/.xlsx/.xlsm/.csv)、PowerPoint(.ppt/.pptx/.potx) 的创建、读取、编辑、提取、转换、校验。触发:『读取 word 文档』『提取 excel 内容』『看 ppt 讲了什么』、.doc 老格式打不开、生成/编辑 Word 报告/合同/模板、制作幻灯片/deck/演示文稿、写带公式的电子表格。读取优先 pandoc/markitdown 等官方工具,环境没有则走 Windows Office COM 自动化(含中文文件名、PowerShell 编码等 Windows 环境方案);创建/编辑用 docx-js、pptxgenjs、openpyxl 等。Use whenever any .docx/.xlsx/.pptx file is the primary input or output: create, read, edit, extract, convert, or validate it.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 80 other files, including scripts (for example `reference/docx.md`, `reference/pptx.md` and `reference/python-setup.md`).

It sits in Documents & Office, covering PowerPoint presentations, Word documents and Excel spreadsheets. It works with Microsoft Excel, Microsoft PowerPoint, Microsoft Word and MarkItDown.

When your agent uses it

  • Any .docx/.xlsx/.pptx file is the primary input
  • Tasks that involve PowerPoint presentations
  • Tasks that involve Word documents

Example prompts

  • “/office-file-process”

Requirements

  • Python 3
  • Node.js
  • PowerShell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 输出放在源文档旁边,命名 office_extract_.txt——ASCII 文件名(父目录即使是中文路径,Read/Grep 也能打开),原文档在哪提取就在哪;
  2. 每次运行先清掉该目录上次残留的 office_extract_*.txt,目录里恒为本次结果;
  3. Word 表格单元格转为制表符分隔(协议表格 CMD/参数定义可直接阅读);
  4. 结束时打印 manifest(源文件 → 输出文件全路径映射),照着 Read 即可;
  5. 收尾杀掉无窗口的残留 Office 进程(用户自己开的可见 Word/Excel 永远不动)。

What it can do on your machine

Read from SKILL.md and the folder at commit 9aa4e55. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 11 files in scripts/ (Python and PowerShell, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • pip
    • python
    • markitdown
    • node
    • pandoc
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Office File Process loads about 1.8k tokens when it runs. Until then it costs about 125 tokens; SKILL.md has 475 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~125
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Proprietary) doesn't allow us to republish the file, so here is its outline and opening line. It has 475 words (~1,844 tokens).

“处理 Word / Excel / PowerPoint 文件的统一 skill。面向 Windows + Office 环境(COM 自动化是它独有的兜底能力),不预设任何机器装了哪些工具——动手前先探测环境,再按本文规则决策。非 Windows 或无 Office 的机器见文末降级方案。先按任务路由,细节在对应参考文档里。”

— opening of SKILL.md by xstongxue, Proprietary
name
office-file-process
license
Proprietary. LICENSE.txt has complete terms

Read the full SKILL.md on GitHub

Files

SKILL.md and 76 other files (scripts) in skills/office-file-process of xstongxue/best-skills.

  • SKILL.md
  • LICENSE.txt
  • reference/docx.md
  • reference/pptx.md
  • reference/python-setup.md
  • reference/xlsx.md
  • scripts/accept_changes.py
  • scripts/add_slide.py
  • scripts/clean.py
  • scripts/comment.py
  • scripts/extract_office_text.ps1
  • scripts/merge_runs.py
  • scripts/office/helpers/__init__.py
  • scripts/office/helpers/pptx_chart.py
  • scripts/office/helpers/pptx_slide.py
  • scripts/office/helpers/pptx_theme.py
  • scripts/office/schemas
  • … and 60 more

Open the folder on GitHubat commit 9aa4e55

Compare with similar skills

Office File Process next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Office File Process compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Office File Process this skillxstongxue/best-skills3k—~1.8kAutomated safety check: PassProprietary
Markdown ConverterTeam-Commonly/commonly1.4k—~557Automated safety check: PassApache-2.0
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Markitdownjimmc414/Kosmos5952 repos~1.7kAutomated safety check: PassNone
Markdown Converterintellectronica/agent-skills2954 repos~492Automated safety check: PassCC0-1.0
Document Converterwentorai/Research-Claw858—~1.3kAutomated safety check: PassCustom licence

Similar skills

  • Markdown Converter

    Team-Commonly/commonly

    Convert binary documents (PDF, DOCX, XLSX, PPTX, HTML, EPUB, images) to clean LLM-friendly Markdown using Microsoft's markitdown Python tool.

    1.4k GitHub stars~557 tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Markitdown

    jimmc414/Kosmos

    Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.

    595 GitHub starsUsed in 2 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • Markdown Converter

    intellectronica/agent-skills

    Convert documents and files to Markdown using markitdown. An agent skill from intellectronica/agent-skills.

    295 GitHub starsUsed in 4 repos~492 tokens
    Documents & OfficeAuto-check passed
  • Document Converter

    wentorai/Research-Claw

    Convert Office documents (PPTX, DOCX, XLSX, PDF, HTML, CSV, JSON, XML, images) to Markdown using Microsoft MarkItDown.

    858 GitHub stars~1.3k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Brand DOCX

    ferdinandobons/brand-docs

    Brand-aware Word engine. An agent skill from ferdinandobons/brand-docs.

    272 GitHub stars~3.8k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed

More from xstongxue/best-skills

All 15 skills in this repo
  • Create Skill

    xstongxue/best-skills

    Guides users through creating effective Agent Skills for Cursor.

    3k GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check passed
  • Pptgen Drawio

    xstongxue/best-skills

    根据论文或汇报内容生成多页 Draw.io 格式 PPT,支持论文答辩与通用汇报两种模式,自动导出为 .pptx。当用户提到论文答辩 PPT、答辩幻灯片、通用 PPT、汇报 PPT、根据模板生成 PPT、drawio2pptx 时使用。

    3k GitHub stars~2.1k tokensUpdated 27 days ago
    Auto-check passed
  • Wechat Article Writer

    xstongxue/best-skills

    公众号/自媒体全流程。根据用户表述自动匹配:撰写文章、封面图、正文插图、风格提取。支持多种写作风格。当用户提到写公众号、技术博客、公众号封面、正文插图、步骤图、演示图、流程示意、分析写作风格、克隆文风、模仿爆款、提取风格时使用。详见 reference 目录。

    3k GitHub stars~2k tokensUpdated 27 days ago
    Auto-check: notes
  • Drawio Diagram

    xstongxue/best-skills

    为深度学习模型、网络架构、算法流程等生成标准 Draw.io (.drawio) 格式的可视化图表;支持从零生成与风格迁移两种模式。从零生成:模型架构图、流程图、感受野示意图等;风格迁移:参考图 + 内容描述/项目 → 按参考图风格生成新图。确保 XML 格式正确,可直接在 Draw.io 中打开编辑。

    3k GitHub stars~487 tokensUpdated 27 days ago
    Auto-check passed
  • Project Docs

    xstongxue/best-skills

    对任意代码项目生成一套面向新人的循序渐进文档集,输出到 docs/ 目录。含架构、设计思想、语言特性、代码导读、运行时模型、构建、对接、调试、设计规范共 9 篇,支持全部生成 / 只写几篇 / 更新已有文档。当用户提到"生成项目文档"、"新人文档"、"上手文档"、"架构文档"、"代码导读"、"项目理解"、"深入理解项目"、"onboarding…

    3k GitHub stars~720 tokensUpdated 27 days ago
    Auto-check passed
  • Skill Prompt Convert

    xstongxue/best-skills

    在 Skill(SKILL.md)与 Prompt(聊天框指令)两种格式之间相互转换。支持 Skill→Prompt 与 Prompt→Skill 双向转换,保持核心信息零丢失。当用户提到 Skill 转 Prompt、Prompt 转 Skill、格式互转、SKILL.md 转换时使用。

    3k GitHub stars~382 tokensUpdated 27 days ago
    Auto-check passed

Questions about Office File Process

What does Office File Process do?

处理 Office 文档的一站式 skill:Word(.doc/.docx/.dotx)、Excel(.xls/.xlsx/.xlsm/.csv)、PowerPoint(.ppt/.pptx/.potx) 的创建、读取、编辑、提取、转换、校验。触发:『读取 word 文档』『提取 excel 内容』『看 ppt 讲了什么』、.doc 老格式打不开、生成/编辑 Word…. Office File Process is an agent skill from xstongxue/best-skills.pptx file is the primary input or output: create, read, edit, extract, convert, or validate it.

When should I use Office File Process?

Office File Process fits situations like: any .docx/.xlsx/.pptx file is the primary input; tasks that involve PowerPoint presentations; tasks that involve Word documents.

How do I install Office File Process in Claude Code?

Run `npx skills add xstongxue/best-skills --skill office-file-process -a claude-code`. Or copy the skill folder (skills/office-file-process in xstongxue/best-skills) into .claude/skills/office-file-process in your project. Claude Code loads it when a task matches its description.

How do I install Office File Process in Codex?

Run `npx skills add xstongxue/best-skills --skill office-file-process -a codex`. Or copy the skill folder (skills/office-file-process in xstongxue/best-skills) into .agents/skills/office-file-process in your project. Codex loads it when a task matches its description.

Can I use Office File Process in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xstongxue/best-skills --skill office-file-process -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/office-file-process, .gemini/skills/office-file-process, .github/skills/office-file-process and .opencode/skills/office-file-process in your project.

What does Office File Process need to run?

Going by SKILL.md and its folder, Office File Process needs Python and PowerShell for the scripts in its folder and the command-line tools its instructions call (pip, python, markitdown, node, pandoc and npm). Our summary lists: Python 3; Node.js; PowerShell.

Does Office File Process access the network?

SKILL.md contains no URLs. Its commands use pip and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Office File Process safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Office File Process use?

Office File Process carries a proprietary licence (declared in SKILL.md). It is published on GitHub, but it is not open source: read the licence file before using or sharing it.

How many tokens does Office File Process use?

About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Office File Process?

Skills that share tags, products or a category with Office File Process: Markdown Converter (Team-Commonly/commonly, 1.4k stars), Markitdown (ImCa0/just-laws, 781 stars), Markitdown (jimmc414/Kosmos, 595 stars) and Markdown Converter (intellectronica/agent-skills, 295 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Office File Process?

xstongxue (a GitHub user) maintains it in xstongxue/best-skills, which has 2,966 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 13, 2026.

Source: xstongxue/best-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.