xlsx-toolkit
БесплатноЗапускает вложенные скриптыНе проверенAudit Microsoft Excel (.xlsx) workbooks for formula density, external references, named ranges, hidden sheets, and data validation. Use when reviewing a…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Xlsx Toolkit
Audit .xlsx files using the standard library only — no openpyxl required. Reads OOXML directly via zipfile + xml.etree.
Table of Contents
- Keywords
- Quick Start
- Core Workflows
- Tools
- Reference Guides
- Templates
- Best Practices
- Scope & Limitations
Keywords
xlsx, Excel, spreadsheet, workbook, financial model, formula audit, hidden sheets, external references, named ranges, data validation
Clarify First
Before running the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- Audit purpose (pre-send leak check, financial-model review, or handoff portability check): selects the workflow and what you flag.
- Recipient context (external partner, another team, their machine): sets the tolerance for hidden sheets and external links.
- Which sheets are inputs vs calculations (for model review): drives where to focus formula-density reading.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Quick Start
python scripts/xlsx_auditor.py model.xlsx
Outputs: sheet count and names, hidden-sheet count, cell count per sheet, formula count per sheet, external link count, named range count, data validation rule count.
Core Workflows
Workflow 1: Pre-Send Workbook Audit
Goal: Catch the issues that embarrass the sender — leftover hidden sheets, broken external links, unused named ranges, formulas referencing local file paths.
Steps:
- Run audit
- Hidden sheets > 0 → confirm intentional or delete
- External links > 0 → verify links point to public / shared sources, not your local drive
- Named-range count anomalies (very high) → likely cruft from prior model versions; clean up
- Re-run until clean
Time Estimate: 5-10 minutes per workbook.
Workflow 2: Financial Model Review
Goal: Quantify the rough complexity of a financial model before reading cell-by-cell.
Steps:
- Run audit; capture per-sheet cell counts and formula counts
- Sheets with formula density > 70% are calculation sheets; should be well-structured
- Sheets with formula density 0-10% are inputs; should be obviously labeled
- Sheets with formula density 10-70% are mixed — easiest place for errors to hide
- Cross-reference with
references/financial_model_audit_guide.md
Time Estimate: 30-60 minutes per model audit (audit + targeted reading).
Workflow 3: Workbook Handoff Check
Goal: Ensure a workbook handed off to another team or partner won't break on their machine.
Steps:
- Run audit
- External links → re-link to shared paths (OneDrive, SharePoint, S3) or hard-code values
- Custom named ranges → document if recipient is expected to extend; remove if internal
- Macros (xlsm) → audit shows non-
.xlsxextension expected; convert if recipient cannot run macros - File size > 10 MB → consider splitting or removing image / chart blobs
Time Estimate: 10-20 minutes per workbook.
Tools
xlsx_auditor.py
Reads a .xlsx file as a ZIP archive and parses OOXML directly.
python scripts/xlsx_auditor.py model.xlsx
python scripts/xlsx_auditor.py model.xlsx --json
Reports:
- Sheet list with name, hidden status, cell count, formula count, formula density %
- Total cell and formula counts
- Named ranges and their scopes
- External link references (file paths or URLs)
- Data validation rule count
- File size
Limits:
- Does not evaluate formulas. To check whether formulas are correct, use Excel itself or a financial-model-checker library.
- Does not read cell values for non-shared-string cells beyond counting; full value extraction requires more parsing than this tool does.
Reference Guides
references/financial_model_audit_guide.md— Patterns for auditing financial models; common error categories; defensive structure tips
Templates
assets/workbook_handoff_checklist.md— Pre-send xlsx sign-off checklist
Best Practices
- Hide internal-only sheets only when intended. If a sheet is hidden because it's WIP, delete it before sending.
- Avoid external links across handoffs. A formula referencing
'C:\Users\you\Desktop\old-model.xlsx'is the workbook equivalent of leaving your laptop name in the document author field. - Name your inputs. Cells like
Inputs!B7mean nothing. Named ranges likeWACCandRevenueGrowthsurvive structural changes. - One model, one purpose. Workbooks that calculate, present, and serve as a database of records always end up broken.
Scope & Limitations
In Scope:
- Read-only audit of
.xlsxfil
Установить xlsx-toolkit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл xlsx-toolkit?
Audit Microsoft Excel (.xlsx) workbooks for formula density, external references, named ranges, hidden sheets, and data validation. Use when reviewing a financial model, sharing a workbook externally, or checking for data leakage.
Как установить скилл xlsx-toolkit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xlsx-toolkit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic