Back to skills
SKILL.md
Minimax Xlsx
ASecurityUse when creating, editing, or validating Excel spreadsheets
- 2 stars
- 0 votes
- 0 copies
- 3 views
- Added September 10, 2026
Works with
Security analysis
100/100Pro scans all 18 files and shows the line behind each finding
npx -y skills add LoopyLuci/Skills --skill minimax-xlsx --agent claude-codeAre you the author of Minimax Xlsx?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-minimax-xlsx)---
name: minimax-xlsx
description: Use when creating, editing, or validating Excel spreadsheets
tags: [excel, xlsx, spreadsheet, financial-model, data]
related_skills: [pptx-generator, mmx-cli]
---
# MiniMax XLSX Skill
## Overview
Create, edit, read, analyze, and validate Excel files (.xlsx, .xlsm, .csv, .tsv) using XML manipulation and helper scripts.
## Task Routing
| Task | Method |
|------|--------|
| **READ** — analyze data | `xlsx_reader.py` + pandas |
| **CREATE** — new xlsx | XML template with `create.md` |
| **EDIT** — modify existing | XML unpack→edit→pack |
| **FIX** — repair formulas | XML unpack→fix `<f>` nodes→pack |
| **VALIDATE** — check formulas | `formula_check.py` |
## Create a New Spreadsheet
```bash
# Copy minimal template, edit XML directly, then pack
python3 scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx
```
## Edit an Existing Spreadsheet
```bash
# Unpack → edit → repack cycle
python3 scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
# ... edit XML ...
python3 scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx
```
**CRITICAL:** Never use openpyxl round-trip on existing files (corrupts VBA, pivots, sparklines). Use unpack → edit → pack.
## Add a Column
```bash
python3 scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
python3 scripts/xlsx_add_column.py /tmp/xlsx_work/ --col G --sheet "Sheet1" --header "% of Total" --formula '=F{row}/$F$10' --formula-rows 2:9 --numfmt '0.0%'
python3 scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx
```
## Financial Color Standard
| Cell Role | Font Color |
|-----------|-----------|
| Hard-coded input / assumption | Blue (`0000FF`) |
| Formula / computed result | Black (`000000`) |
| Cross-sheet reference formula | Green (`00B050`) |
## Common Pitfalls
| Pitfall | Solution |
|---------|----------|
| Using openpyxl for round-trip editing | Use XML unpack→edit→pack workflow |
| Hardcoding calculated values | Every computed cell MUST use an Excel formula |
| Forgetting formula validation | Run `formula_check.py` before delivery |
| Not preserving original sheets | EDIT tasks must keep all original sheets and data |
## Verification Checklist
- [ ] READ: Data analyzed without modifying source
- [ ] CREATE: XML template used, formulas for computed values
- [ ] EDIT: XML unpack/edit/pack used (not openpyxl)
- [ ] Original sheets preserved in EDIT tasks
- [ ] Formulas validated with formula_check.py
- [ ] Output file deliverable produced
Files in this skill
- SKILL.md
- references/create.md
- references/edit.md
- references/fix.md
- references/format.md
- references/ooxml-cheatsheet.md
- references/read-analyze.md
- references/validate.md
- scripts/formula_check.py
- scripts/libreoffice_recalc.py
- scripts/shared_strings_builder.py
- scripts/style_audit.py
- scripts/xlsx_add_column.py
- scripts/xlsx_insert_row.py
- scripts/xlsx_pack.py
- scripts/xlsx_reader.py
- scripts/xlsx_shift_rows.py
- scripts/xlsx_unpack.py
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.