python-office is a Python library that provides ready-to-use modules for automating office and media tasks such as PDF, Word, Excel, PowerPoint, email, WeChat, images, video, and OCR. It is for people who want to automate common work activities with short Python calls, including users with little Python experience. Its catalogue skills expose the library's individual automation areas to coding agents.
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 CoderWanFeng/python-office --skill excel_column_statsgit clone --depth 1 https://github.com/CoderWanFeng/python-officeWrote 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/coderwanfeng/python-office/excel_column_stats)<a href="https://agentmods.dev/skills/coderwanfeng/python-office/excel_column_stats"><img src="https://agentmods.dev/badge/skills/coderwanfeng/python-office/excel_column_stats/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/coderwanfeng/python-office/excel_column_stats"><img src="https://agentmods.dev/badge/skills/coderwanfeng/python-office/excel_column_stats.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.00051 | $0.00577 |
| Opus 5.5 | $0.00020 | $0.00231 |
| Sonnet 5.5 | $0.00010 | $0.00115 |
| Haiku 4.5 | $0.00005 | $0.00058 |
Grade A, and why
excel_column_stats 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 5d 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.
What it actually says
excel_column_stats Skill
给 Excel 每一列做一次「体检」:填充率、类型、唯一值、数值分布
功能描述
逐列统计非空数量、空值占比、去重后的取值个数,并推断列类型 (number / text / date / mixed / empty)。数值列额外给出最小值、最大值、 均值、中位数和样本标准差;文本列给出出现次数最多的前 N 个值。
适合在正式处理数据之前先看一眼:哪列缺失严重、哪列数字里混了文本、数值量级是否合理。
所属分类
skills/excel/excel_column_stats/
调用方式
from skills.excel import excel_column_stats
excel_column_stats(excel_path='销售明细.xlsx', top_n=3)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
excel_path |
str | 是 | - | 需要统计的 Excel 路径 |
sheet_name |
str | 否 | None |
工作表名,默认取第一个 |
top_n |
int | 否 | 5 |
文本列返回前 N 个高频值,0 表示不返回 |
返回值
dict,包含 sheet、row_count、column_count、fill_rate、columns。
columns 是列表,每项含 name、index、filled、empty、empty_ratio、
unique、type,并按类型附带 numeric、date_range 或 top。
使用示例
from skills.excel import excel_column_stats
stats = excel_column_stats('销售明细.xlsx')
print('整体填充率:{:.1%}'.format(stats['fill_rate']))
for column in stats['columns']:
print('{}({}):空值 {} 个'.format(column['name'], column['type'], column['empty']))
if column['type'] == 'number':
print(' 均值 {mean},中位数 {median}'.format(**column['numeric']))
原始函数
contributors/my12yyds/excel_column_stats.py
What ships with it
1 file 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.
- 5d ago First seen · 60 lines · 51 tokens per session scan A ba3248a0a81c
excel_column_stats is a skill published in the GitHub repository CoderWanFeng/python-office (1,369 stars, last pushed 3d ago), licensed Apache-2.0. It adds 51 tokens to every session and 577 once invoked, about $0.0002 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-10-27.
Other skills, from other repositories
xlsx
Read, create, or edit Excel spreadsheets (.xlsx/.xlsm) — sheet data, formulas, styles, charts, multi-sheet workbooks — and bulk .csv/.tsv tables; use whenever a spreadsheet is the input or the deliverable (extract/analyze data, add columns/formulas/formatting/charts, clean messy tables, build from scratch), but not…
officecli-financial-model
Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity / scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value'…
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.
xberg-extracting-tables
Use when extracting tabular data from PDFs, spreadsheets, or images. Covers layout-aware table detection, table model selection, output formats (markdown / JSON cells), and known limits.
cli-anything-wps
A command-line tool that controls WPS Office on Windows, including Writer, Calc, and Impress. It can also build presentations from structured JSON data and export them as PowerPoint and PDF files.
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…