excel2json

excel2json is a skill for Claude Code, Codex from CoderWanFeng/python-office. It costs 51 tokens per session (551 once invoked), scanned A, original, Apache-2.0.

An Excel conversion tool that turns worksheet data into JSON, a structured text format commonly used by programs and web APIs. It supports row-based, column-based, and two-dimensional output, and converts dates to a standard text form.

In plain words
What is it for?
Use it to turn product tables or other worksheets into JSON files, Python data, API input, or mock data.
Why use it?
It removes manual data reshaping when spreadsheet contents need to be consumed by code, an API, or test data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to turn product tables or other worksheets into JSON files, Python data, API input, or mock data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coderwanfeng/python-office/excel2json
About the project

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.

CoderWanFeng/python-office · 1,368 stars · on GitHub · python-office.com

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 CoderWanFeng/python-office --skill excel2json
Clone the repo
git clone --depth 1 https://github.com/CoderWanFeng/python-office

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 excel2json

README.md
[![agentmods](https://agentmods.dev/badge/skills/coderwanfeng/python-office/excel2json/github.svg)](https://agentmods.dev/skills/coderwanfeng/python-office/excel2json)
Your own site
<a href="https://agentmods.dev/skills/coderwanfeng/python-office/excel2json"><img src="https://agentmods.dev/badge/skills/coderwanfeng/python-office/excel2json/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 excel2json

Your own site · 80×15
<a href="https://agentmods.dev/skills/coderwanfeng/python-office/excel2json"><img src="https://agentmods.dev/badge/skills/coderwanfeng/python-office/excel2json.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 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.00051 $0.00551
Opus 5.5 $0.00020 $0.00220
Sonnet 5.5 $0.00010 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured yesterday against content hash a44b27c85c92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

excel2json 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.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/excel/excel2json/SKILL.md · 60 lines

What it actually says

excel2json Skill

把 Excel 转成程序能直接消费的 JSON

功能描述

把工作表转换成 JSON 兼容的 Python 对象,可直接写入文件或当接口数据使用。 三种结构:records(每行一个对象)、columns(每列一个数组)、values(纯二维数组)。 空单元格转 null,日期时间转 ISO 字符串,重复的列名自动加 _2、_3 后缀避免覆盖。

所属分类

skills/excel/excel2json/

调用方式

from skills.excel import excel2json

data = excel2json('商品表.xlsx', orient='records', output_path='goods.json')

参数说明

参数 类型 必填 默认值 说明
excel_path str 是 - Excel 文件路径
sheet_name str 否 None 工作表名,默认取第一个
orient str 否 'records' records、columns 或 values
output_path str 否 None JSON 输出路径,指定后同时写文件
indent int 否 2 写文件时的缩进,None 表示压缩
ensure_ascii bool 否 False 是否把中文转成 \uXXXX

返回值

list | dict:records 和 values 返回列表,columns 返回字典。

使用示例

from skills.excel import excel2json

rows = excel2json('商品表.xlsx')
print(rows[0])            # {'商品名': '苹果', '价格': 5.5}

by_column = excel2json('商品表.xlsx', orient='columns')
print(by_column['价格'])   # [5.5, 3.0, ...]

excel2json('商品表.xlsx', output_path='goods.json', ensure_ascii=False)

原始函数

contributors/my12yyds/excel2json.py

Files

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.

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. yesterday First seen · 60 lines · 51 tokens per session scan A a44b27c85c92

Subscribe to this mod's changes

excel2json is a skill published in the GitHub repository CoderWanFeng/python-office (1,368 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 551 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.

Related

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…

HKUDS/DeepTutor · 88 tokens

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'…

iOfficeAI/OfficeCLI · 222 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.

iOfficeAI/OfficeCLI · 56 tokens

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.

yb2460/harness-anything · 37 tokens

officecli-data-dashboard

Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to…

iOfficeAI/OfficeCLI · 159 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…

iOfficeAI/OfficeCLI · 119 tokens