officecli-xlsx

officecli-xlsx is a skill for Claude Code, Codex from iOfficeAI/OfficeCLI. It costs 119 tokens per session (9,228 once invoked), scanned C, original, Apache-2.0.

A set of instructions for working with Excel spreadsheet files, which use the .xlsx format. It covers creating, reading, editing, and validating workbooks with formulas, charts, pivot tables, and conditional formatting.

In plain words
What is it for?
Use it to create or update spreadsheets, financial models, dashboards, trackers, charts, pivot tables, formulas, and data-driven formatting.
Why use it?
It establishes practical rules for spreadsheet structure, formulas, formatting, shell quoting, and checking results before a workbook is delivered.

Skill for Claude CodeCodex

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

Good fit Use it to create or update spreadsheets, financial models, dashboards, trackers, charts, pivot tables, formulas, and data-driven formatting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iofficeai/officecli/officecli-xlsx
About the project

OfficeCLI is a standalone command-line Office suite that lets AI agents read, edit, render, and automate Word, Excel, and PowerPoint files without requiring Microsoft Office. Developers and other users employ it to create and inspect documents through commands, with HTML or PNG rendering supporting visual review. The catalogue skills teach coding agents how to install and use OfficeCLI.

iOfficeAI/OfficeCLI · 32,330 stars · on GitHub · officecli.ai

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 iOfficeAI/OfficeCLI --skill officecli-xlsx
Clone the repo
git clone --depth 1 https://github.com/iOfficeAI/OfficeCLI

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 officecli-xlsx

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofficeai/officecli/officecli-xlsx"><img src="https://agentmods.dev/badge/skills/iofficeai/officecli/officecli-xlsx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Supply Chain · line 12
    Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
    Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
  • high Tool Misuse · line 462
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00119 $0.09228
Opus 5.5 $0.00048 $0.03691
Sonnet 5.5 $0.00024 $0.01846
Haiku 4.5 $0.00012 $0.00923

Measured 1mo ago against content hash 95ed125c9c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

officecli-xlsx scanned grade C with 2 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.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **macOS / Linux**: `curl -fsSL https://d.officecli.ai/install.sh | bash`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **macOS / Linux**: `curl -fsSL https://d.officecli.ai/install.sh | bash`
skills/officecli-xlsx/SKILL.md · 498 lines

How it starts

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

OfficeCLI XLSX Skill

Setup

If officecli is missing:

  • macOS / Linux: curl -fsSL https://d.officecli.ai/install.sh | bash
  • Windows (PowerShell): irm https://d.officecli.ai/install.ps1 | iex

Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.

⚠️ Help-First Rule

This skill teaches what good xlsx looks like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.

officecli help xlsx                         # List all xlsx elements
officecli help xlsx <element>               # Full element schema (e.g. pivottable, chart, cf)
officecli help xlsx <verb> <element>        # Verb-scoped (e.g. add chart, set cell)
officecli help xlsx <element> --json        # Machine-readable schema

Help reflects the installed CLI version. When this skill and help disagree, help is authoritative.

Shell & Execution Discipline

Shell quoting (zsh / bash). Excel paths contain [], and number formats contain $. Both are shell metacharacters. Rules:

  • ALWAYS quote element paths: "/Sheet1/row[1]", not /Sheet1/row[1].
  • Use single quotes for any prop value containing $: numFmt='$#,##0'.
  • For formulas with cross-sheet ! references, use batch with a <<'EOF' heredoc (see Known Issues).
  • \n and \t in a prop value ARE interpreted by the CLI — \n is a real in-cell line break (pair with --prop wrapText=true), \t a tab — consistent across xlsx / docx / pptx. Double them (\\n) for a literal backslash-n (rarely wanted). ($ is the shell layer above — single-quote it.)

Incremental execution. Run commands one at a time and read each exit code. officecli mutates the file on every call; a 50-command script that fails at command 3 will cascade silently. One command → check output → continue.

Requirements for Outputs

Before reaching for a command, know what a good xlsx looks like. These are the deliverable standards every workbook MUST meet.

Read the full file on GitHub · 498 lines

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 Changed · +1 lines 95ed125c9c06
  2. 1mo ago First seen · 497 lines · 119 tokens per session scan C 5cd79d2c7398

Subscribe to this mod's changes

officecli-xlsx is a skill published in the GitHub repository iOfficeAI/OfficeCLI (32,330 stars, last pushed 3d ago), licensed Apache-2.0. It adds 119 tokens to every session and 9,228 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). 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

lark-sheets

A tool for creating and editing Feishu spreadsheets, which are online tables for storing, calculating, and presenting data. It also manages sheets, formulas, formatting, charts, pivot tables, and filters.

davidtoby/agent-skills · 259 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

agentscope-ai/QwenPaw · 201 tokens

xlsx

A guide for working with spreadsheet files such as Excel workbooks, CSV files, and TSV files.

agentscope-ai/QwenPaw · 232 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

yida-formula

A reference and set of rules for writing formulas in Yida form fields. It covers built-in functions, field references, calculated defaults, and custom submission checks.

openyida/openyida · 76 tokens

bilig-workpaper

Formula WorkPaper runtime and MCP server for AI agents and Node.js services. Use when an agent needs spreadsheet-style formulas, cell edits, recalculation, readback verification, or persisted WorkPaper JSON without driving Excel UI.

agent-skills-hub/agent-skills-hub · 49 tokens