xlsx

xlsx is a skill for Claude Code from nexus-research-lab/nexus. It costs 100 tokens per session (1,054 once invoked), scanned A, original, Apache-2.0.

Instructions for reading, creating, editing, cleaning, and converting spreadsheet files such as XLSX, XLSM, XLS, CSV, and TSV. It covers formulas, formatting, charts, macros, and data types.

In plain words
What is it for?
Use it when a spreadsheet is the main input or output, including tasks like inspecting sheets, cleaning data, editing formatted workbooks, converting old Excel files, and working with formulas or charts.
Why use it?
It helps preserve spreadsheet structure and formulas while avoiding common mistakes such as losing macros, overwriting the original file, or saving stale formula results.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Good fit Use it when a spreadsheet is the main input or output, including tasks like inspecting sheets, cleaning data, editing formatted workbooks, converting old Excel files, and working with formulas or charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nexus-research-lab/nexus/xlsx
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 nexus-research-lab/nexus --skill xlsx
Clone the repo
git clone --depth 1 https://github.com/nexus-research-lab/nexus

Made for: Claude Code.

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 xlsx

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nexus-research-lab/nexus/xlsx"><img src="https://agentmods.dev/badge/skills/nexus-research-lab/nexus/xlsx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00100 $0.01054
Opus 5 $0.00050 $0.00527
Sonnet 5 $0.00020 $0.00211
Haiku 4.5 $0.00010 $0.00105

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

Security

Grade A, and why

xlsx 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/read_spreadsheet.py, tests/test_read_spreadsheet.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/xlsx/SKILL.md · 69 lines

What it actually says

Excel 工作簿

任务 路径
快速读取 XLSX 运行自带读取脚本,保留工作表、行列和公式信息
读取 CSV/TSV 用 Python csv 或通用文本工具;保留原始字段类型约束
新建或编辑工作簿 openpyxl 处理公式、格式、表格和图表
大批量数据清洗 标准库足够时直接使用;确有需要再用 pandas
旧版 .xls 用 LibreOffice 转为 .xlsx,保留原件

工作契约

  • 只读问题不保存、重算或导出工作簿。
  • 写操作默认另存新文件;模板和既有格式优先于默认样式。
  • 先直接使用当前环境。import openpyxl 失败且任务需要写文件时,取得用户同意后在隔离环境安装 ${CLAUDE_SKILL_DIR}/requirements.txt,不要静默修改系统 Python。

读取

python3 "${CLAUDE_SKILL_DIR}/scripts/read_spreadsheet.py" "<input.xlsx>"
python3 "${CLAUDE_SKILL_DIR}/scripts/read_spreadsheet.py" "<input.xlsx>" --sheet "<sheet-name>" --max-rows 1000 --max-columns 100
python3 "${CLAUDE_SKILL_DIR}/scripts/read_spreadsheet.py" "<input.xlsx>" --output "<new-output.md>"

脚本同时显示公式文本和文件内缓存值。关键结论要定位到工作表与单元格,并沿公式引用核对输入; 缓存可能过期,不能把它当成刚刚重算的结果。

创建与编辑

在 workspace 或临时目录写一个可重复运行的短 Python 脚本,再用 openpyxl 输出文件。

  • 数值、日期、百分比和货币写成真实类型,格式代码只负责显示;ID、邮编等标识符才写文本。
  • 派生结果使用可读公式并引用输入单元格,不把 Python 计算值或魔法数字写死在计算区。
  • 跨表引用始终给工作表名加单引号,例如 ='Assumptions'!B5;正确使用绝对和相对引用。
  • 读取公式与缓存值时分别打开两次。绝不能保存以 data_only=True 打开的工作簿,否则公式会丢失。
  • 编辑时延续相邻格式、公式模式、条件格式、表格和图表范围;不要对成熟模板做全表重排。
  • .xlsm 使用 keep_vba=True,并保持宏格式输出。外部链接、透视表、切片器和高级图表可能在往返保存时变化, 只修改必要区域并明确验证范围。

完成条件

  1. 含公式时先在单独目录用 LibreOffice 重算,检查转换结果后再作为最终文件,不能直接覆盖未验证的源文件。
  2. 用读取脚本回读关键范围,确认公式仍存在、缓存值已更新,并扫描 #REF!#DIV/0!#VALUE!#NAME?#N/A 等错误。
  3. 用 LibreOffice 导出 PDF 或工作表预览,检查每张非空工作表的标题、表头、关键数字、图表、分页和打印区域。
  4. 缺少 LibreOffice 时可以继续不依赖重算的读取;含公式的写任务必须说明结果尚未由表格引擎重算。
  5. 最终只交付用户要求的 XLSX/XLSM/CSV/TSV,不附带构建脚本和预览文件。
Files

What ships with it

3 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. 10d ago First seen · 69 lines · 100 tokens per session scan A fb1f55518dbd

Subscribe to this mod's changes

xlsx is a skill published in the GitHub repository nexus-research-lab/nexus (145 stars, last pushed today), licensed Apache-2.0. It adds 100 tokens to every session and 1,054 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-08-30.

Related

Other skills, from other repositories

Google Workspace

Handle Google Docs, Sheets, Drive, and related Workspace tasks through the narrowest available API or browser workflow.

agentic-in/elephant-agent · 25 tokens

data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to…

bytedance/deer-flow · 69 tokens

xlsx

Read, edit, or create Microsoft Excel .xlsx workbooks. Trigger this skill whenever the user mentions a spreadsheet, .xlsx file, workbook, sheet, formula, pivot table, or asks to extract tabular data, modify a sheet, or build a workbook from rows. Three execution paths: structured inspection, in-place cell edits, and…

opensquilla/opensquilla · 108 tokens

meta-knowledge-base-bootstrap

Bootstrap a domain knowledge base from a single seed (URL / PDF path / git repo / free-text topic): classify source → ingest with the right tool → persist to memory + xlsx index.

opensquilla/opensquilla · 45 tokens

meta-multi-format-export-pack

From one piece of source content, render four deliverables: .docx report, .pptx slides, .xlsx data, and an HTML/PDF public version.

opensquilla/opensquilla · 41 tokens

meta-spreadsheet-insight

Turn an Excel workbook into business insight: structured read → trend/anomaly summary → write back to a new 'Insights' sheet → persist KPIs to memory.

opensquilla/opensquilla · 39 tokens