# Minimax XLSX

Open, create, read, analyze, edit, or validate Excel/spreadsheet files (.xlsx, .xlsm...

- Repository: https://github.com/MiniMax-AI/skills (13760 stars)
- Category: Documents
- License: MIT
- Last updated: 2026-04-18
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add MiniMax-AI/skills --skill minimax-xlsx -g -a claude-code -y`
Codex: `npx skills add MiniMax-AI/skills --skill minimax-xlsx -g -a codex -y`
Cursor: `npx skills add MiniMax-AI/skills --skill minimax-xlsx -g -a cursor -y`
Gemini CLI: `npx skills add MiniMax-AI/skills --skill minimax-xlsx -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add MiniMax-AI/skills`

## Description

Open, create, read, analyze, edit, or validate Excel/spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use when the user asks to create, build, modify, analyze, read, validate, or format any Excel spreadsheet, financial model, pivot table, or tabular data file. Covers: creating new xlsx from scratch, reading and analyzing existing files, editing existing xlsx with zero format loss, formula recalculation and validation, and applying professional financial formatting standards. Triggers on 'spreadsheet', 'Excel', '.xlsx', '.csv', 'pivot table', 'financial model', 'formula', or any request to produce tabular data in Excel format.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# MiniMax XLSX Skill

Handle the request directly. Do NOT spawn sub-agents. Always write the output file the user requests.

## Task Routing

| Task | Method | Guide |
|------|--------|-------|
| **READ**, analyze existing data | `xlsx_reader.py` + pandas | `references/read-analyze.md` |
| **CREATE**, new xlsx from scratch | XML template | `references/create.md` + `references/format.md` |
| **EDIT**, modify existing xlsx | XML unpack→edit→pack | `references/edit.md` (+ `format.md` if styling needed) |
| **FIX**, repair broken formulas in existing xlsx | XML unpack→fix `<f>` nodes→pack | `references/fix.md` |
| **VALIDATE**, check formulas | `formula_check.py` | `references/validate.md` |

## READ, Analyze data (read `references/read-analyze.md` first)

Start with `xlsx_reader.py` for structure discovery, then pandas for custom analysis. Never modify the source file.

**Formatting rule**: When the user specifies decimal places (e.g. "2 decimal places"), apply that format to ALL numeric values, use `f'{v:.2f}'` on every number. Never output `12875` when `12875.00` is required.

**Aggregation rule**: Always compute sums/means/counts directly from the DataFrame column, e.g. `df['Revenue'].sum()`. Never re-derive column values before aggregation.

## CREATE, XML template (read `references/create.md` + `references/format.md`)

Copy `templates/minimal_xlsx/` → edit XML directly → pack with `xlsx_pack.py`. Every derived value MUST be an Excel formula (`<f>SUM(B2:B9)</f>`), never a hardcoded number. Apply font colors per `format.md`.

## EDIT, XML direct-edit (read `references/edit.md` first)

The rest: https://github.com/MiniMax-AI/skills/blob/HEAD/skills/minimax-xlsx/SKILL.md
