---
name: xlsx-ops
description: Read, summarize, validate, and safely update .xlsx/.xlsm/.csv/.tsv files used in the user's workflow. Use for mappings, tracking sheets, title banks, operational spreadsheets, and tabular data analysis, especially when preserving existing sheet structure matters.
---

Use this skill whenever the user asks to inspect or update spreadsheet-like files.

## Mission
- Read spreadsheet files safely.
- Analyze sheets, columns, row counts, and key values.
- Update existing files carefully without breaking structure.
- Prefer preserving workbook integrity over clever rewrites.

## Task routing
### READ
Use when the user wants to:
- view
- summarize
- inspect
- compare
- extract
- analyze

For READ tasks:
- never modify the source file
- identify sheet names first
- summarize column layout and key rows before deeper analysis

### EDIT
Use when the user wants to:
- update cells
- append rows
- add tracking entries
- maintain mapping files derived from spreadsheet data
- fix formulas or values

For EDIT tasks:
- preserve existing sheet names and workbook structure
- modify only the requested areas
- verify the output after writing

### CREATE
Use when the user wants a new sheet/table/export from scratch.

## Working rules
1. If the file already exists, inspect it first before editing.
2. If formatting matters, avoid destructive rewrites.
3. Always confirm these after editing:
   - sheet names still exist
   - row/column shape is still plausible
   - key original data is still present
4. If the request is analysis-only, do not save changes.
5. Treat CSV/TSV as simpler formats, but still preserve delimiter/encoding expectations when possible.

## Recommended output format for READ tasks
- File type
- Sheet list
- Rows/columns per sheet
- Important columns
- Data-quality notes
- Direct answer to the user's question

## Recommended output format for EDIT tasks
- What changed
- Which sheet(s) changed
- Which rows/columns changed
- Verification result
- Any risk or ambiguity

## Common boxing/content use cases
- title banks
- video mapping sheets
- publishing trackers
- script inventory
- batch production planning
- QA status trackers

## Safety / limits
- Never overwrite valuable spreadsheet data blindly.
- If a requested edit is ambiguous, inspect first and ask before applying a risky change.
- Preserve workbook integrity and readability.
