office-docs

office-docs is a skill for Claude Code, Codex from znlgis/my-opencode-deepseek-config. It costs 90 tokens per session (939 once invoked), scanned A, original, MIT.

A workflow for reading and creating Microsoft Word documents and Excel spreadsheets by converting them to and from plain text, Markdown, or CSV files.

In plain words
What is it for?
It helps extract text and tables from DOCX and XLSX files and generate new Word documents or Excel workbooks from structured content.
Why use it?
It lets an agent work with common office files without needing Microsoft Office installed or reading binary files directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit It helps extract text and tables from DOCX and XLSX files and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/my-opencode-deepseek-config/office-docs
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 znlgis/my-opencode-deepseek-config --skill office-docs
Clone the repo
git clone --depth 1 https://github.com/znlgis/my-opencode-deepseek-config

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-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/office-docs.svg)](https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/office-docs)
Your own site
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/office-docs"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/office-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 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.00090 $0.00939
Opus 5 $0.00045 $0.00469
Sonnet 5 $0.00018 $0.00188
Haiku 4.5 $0.00009 $0.00094

Measured 2d ago against content hash 80a86202a3bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

office-docs 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 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/csv2xlsx.py, scripts/docx2md.py, scripts/md2docx.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.

opencode/skills/office-docs/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Office Documents (Word / Excel)

Read and write .docx and .xlsx files through bundled Python scripts that convert to/from Markdown and CSV. The model then reads the plain-text output with the normal read tool, or writes a text file that a script converts back to a binary Office file.

When to use

  • Extract text/content from a .docx or .xlsx so the model can read it.
  • Generate a .docx or .xlsx from content the model produced.

Prerequisites

Python 3 with these packages (already installed in this environment): python-docx, openpyxl. Scripts live in scripts/ next to this file.

Reading

Word (.docx) -> Markdown

python <skill_dir>/scripts/docx2md.py <input.docx> <output.md>

Then read the .md. Omit the output path to print to stdout. Paragraphs, headings, bullet/numbered lists, and pipe tables are preserved. Numbered lists are written as Markdown ordered lists, so the renderer re-numbers them rather than preserving the original values. Inline images are not extracted (binary media).

Excel (.xlsx) -> CSV

python <skill_dir>/scripts/xlsx2csv.py <input.xlsx> <output_dir>

Writes one <sheetname>.csv per sheet into output_dir. Omit the output dir to print the first sheet to stdout. Formulas are read as cached values.

Legacy formats (.doc / .xls)

The scripts only handle the modern OOXML formats. For a legacy .doc or .xls, first convert via Word/Excel COM (available on this machine, Office 2007) to .docx/.xlsx, then run the script above:

$w = New-Object -ComObject Word.Application; $w.Visible = $false
$d = $w.Documents.Open('<abs path>.doc'); $d.SaveAs2('<abs path>.docx', 16); $d.Close(); $w.Quit()

(Excel: SaveAs format 51 = xlsx.) Use absolute paths for COM; a single quote in a path must be doubled ('') to escape.

Writing

Markdown -> Word (.docx)

python <skill_dir>/scripts/md2docx.py <input.md> <output.docx>

Supports ATX headings, paragraphs, -/* unordered lists, 1. ordered lists, and pipe tables. Inline bold/italic/code is not parsed — content is written as plain runs. This is a lossy plain-text writer for simple documents, not a styled round-trip.

Read the full file on GitHub · 95 lines

Files

What ships with it

4 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. 2d ago First seen · 95 lines · 90 tokens per session scan A 80a86202a3bb

Subscribe to this mod's changes

office-docs is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (58 stars, last pushed 3d ago), licensed MIT. It adds 90 tokens to every session and 939 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-09-03.

Related

Other skills, from other repositories

excel-helper

A spreadsheet assistant for Excel, a program used to organize, calculate, and analyze tabular data. It covers formulas, pivot tables, charts, data cleaning, and VBA macros, which are small automation programs for Excel.

dongsheng123132/u-claw · 31 tokens

cash-flow-snapshot

Create a 30/60/90-day cash-flow forecast from AR, AP, opening cash, payment timing, and fixed-cost data. Use when asked about runway, payroll coverage, liquidity risks, or a near-term cash crunch.

sandbaseai/sandbase-skills · 52 tokens

officecli

Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.

Sylinko/Everywhere · 56 tokens

csv_analyzer

Analyze CSV and Excel files — statistics, filtering, grouping, and data previews. Use when: user asks to read, analyze, query, summarize, or explore tabular data in CSV, TSV, or Excel files. NOT for: database queries, writing new files, or non-tabular formats.

ericwang915/PythonClaw · 64 tokens

officecli-xlsx

Use this skill any time a .xlsx file is involved -- as input, output, or both. This includes: creating spreadsheets, financial models, dashboards, or trackers; reading, parsing, or extracting data from any .xlsx file; editing, modifying, or updating existing workbooks; working with formulas, charts, pivot tables, or…

zhu1090093659/deepseek-pp · 119 tokens

officecli

Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.

zhu1090093659/deepseek-pp · 56 tokens