xlsx

xlsx is a skill for Claude Code, Codex from smith-network-solutions/threadknot. It costs 84 tokens per session (1,919 once invoked), scanned A, original, Apache-2.0.

A set of instructions for creating, reading, and editing Microsoft Excel .xlsx workbooks. It covers tables, formulas, sheets, formatting, charts, frozen panes, named ranges, and recalculating formula results.

In plain words
What is it for?
Building or updating Excel files, extracting values and formulas, applying formatting, adding charts, inspecting workbook structure, and recalculating formulas so other tools can read their results.
Why use it?
It prevents spreadsheet changes from silently losing structure or leaving formula values stale. It also explains how to inspect an unfamiliar workbook before editing it.

Skill for Claude CodeCodex

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

Good fit Building or updating Excel files, extracting values and formulas, applying formatting, adding charts, inspecting workbook structure, and recalculating formulas so other tools can read their results.

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

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 xlsx

README.md
[![agentmods](https://agentmods.dev/badge/skills/smith-network-solutions/threadknot/xlsx/github.svg)](https://agentmods.dev/skills/smith-network-solutions/threadknot/xlsx)
Your own site
<a href="https://agentmods.dev/skills/smith-network-solutions/threadknot/xlsx"><img src="https://agentmods.dev/badge/skills/smith-network-solutions/threadknot/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/smith-network-solutions/threadknot/xlsx"><img src="https://agentmods.dev/badge/skills/smith-network-solutions/threadknot/xlsx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,919 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.00084 $0.01919
Opus 5.5 $0.00034 $0.00768
Sonnet 5.5 $0.00017 $0.00384
Haiku 4.5 $0.00008 $0.00192

Measured 1mo ago against content hash 34cbf50f3df1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/autofit.py, scripts/inspect_xlsx.py, scripts/ooxml.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 · 181 lines

How it starts

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

Excel workbooks (.xlsx)

openpyxl for anything that reads or edits. XlsxWriter only when writing a very large file from scratch, where it is faster and lighter but cannot read.

The single fact that causes the most wasted time:

openpyxl does not calculate. Writing =SUM(B2:B10) stores the formula string. The cached value stays empty until a real spreadsheet application opens and recalculates the file. load_workbook(data_only=True) returns None for every formula cell in a file that Excel has never opened.

So: if the user needs a workbook whose numbers are readable by other tools, run scripts/recalc.py after writing it. If you need to read values from a file someone sent you, data_only=True works — Excel already cached them.

Before editing a workbook, look at it

scripts/inspect_xlsx.py budget.xlsx

Prints each sheet with its dimensions, frozen panes, column widths, a preview grid, where the formulas are, merged ranges, named ranges, conditional formatting and charts. Do this first on any file you did not create — a spreadsheet's structure is rarely what the file name suggests.

scripts/inspect_xlsx.py budget.xlsx --sheet Q1 --range A1:F20   # focus
scripts/inspect_xlsx.py budget.xlsx --formulas                  # every formula

Creating a workbook

from openpyxl import Workbook
from openpyxl.styles import Font, Alignment, PatternFill, Border, Side
from openpyxl.utils import get_column_letter

wb = Workbook()
ws = wb.active
ws.title = "Q1"                      # sheet names: <=31 chars, no : \ / ? * [ ]

ws.append(["Region", "Revenue", "Cost", "Margin"])
for cell in ws[1]:
    cell.font = Font(bold=True, color="FFFFFF")
    cell.fill = PatternFill("solid", fgColor="1F4E79")
    cell.alignment = Alignment(horizontal="center")

for row, (region, revenue, cost) in enumerate(data, start=2):
    ws.cell(row=row, column=1, value=region)
    ws.cell(row=row, column=2, value=revenue).number_format = '#,##0.00'
    ws.cell(row=row, column=3, value=cost).number_format = '#,##0.00'
    ws.cell(row=row, column=4, value=f"=B{row}-C{row}").number_format = '#,##0.00'

ws.freeze_panes = "A2"               # header stays visible
ws.auto_filter.ref = ws.dimensions
ws.column_dimensions["A"].width = 18 # openpyxl does NOT auto-size columns

wb.create_sheet("Notes")
wb.save("budget.xlsx")

Read the full file on GitHub · 181 lines

Files

What ships with it

6 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. 1mo ago First seen · 181 lines · 84 tokens per session scan A 34cbf50f3df1

Subscribe to this mod's changes

xlsx is a skill published in the GitHub repository smith-network-solutions/threadknot (8 stars, last pushed 13d ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,919 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

document-xlsx

Builds Excel charts, pivots, validation, exports, Office Scripts/Graph automation, and workbook audits. Use when automating workbooks; for plain edits prefer official xlsx skill.

vasilyu1983/AI-Agents-public · 42 tokens

xlsx-official

Builds, edits, cleans, and inspects spreadsheet files (.xlsx, .xltx, .csv, .tsv) when the file is the deliverable or the record being changed: financial and operating models with live formulas, formula-driven summaries, template fills, cell and row patches, messy-data repair, sheet-to-CSV or PDF export, formula…

evoelsewhere/evoflux · 151 tokens

dev-document

Code that generates documents inside an application (PDF, DOCX, XLSX, PPTX) - choose and wire the library for an export endpoint, an invoice, a scheduled report. Trigger when the user wants their app or a script to generate, export or download PDF/Word/Excel/PowerPoint files. For Claude itself to write, read or edit…

christopherlouet/claude-base · 94 tokens

aetox-audit-xls

ตรวจเวิร์กบุ๊กที่คนอื่นทำมา ก่อนเชื่อตัวเลขในนั้นหรือส่งต่อให้ใครใช้ หา error, ค่าคงที่ฝังในสูตร, สูตรที่หลุดแพตเทิร์น, ช่วง SUM ที่ขาดแถว, สูตรที่ถูกวางทับด้วยค่า และงบที่ไม่บาลานซ์.

Mikedev115/Aetox · 83 tokens

aetox-clean-data-xls

ล้างข้อมูลที่เละก่อนเอาไปคำนวณ รวมยอด หรือ pivot ช่องว่างหัวท้าย ตัวพิมพ์ไม่ตรงกัน ตัวเลขที่ถูกเก็บเป็นข้อความ วันที่คนละฟอร์แมตในคอลัมน์เดียว แถวซ้ำ และตัวอักษรเพี้ยน.

Mikedev115/Aetox · 72 tokens

Google Sheets

Read, write, and manage Google Sheets spreadsheets.

outworked/outworked · 12 tokens