Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Anthropic

audit-xls — Claude Code skill: what it does, how to install

Audits Excel sheets for formula errors, hardcoded values, and logic breaks. It checks financial model integrity before sharing work with clients or review committees.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add anthropics/financial-services --skill audit-xls -a claude-code
Open on GitHub

What audit-xls does

The skill inspects spreadsheet formulas and data across three distinct scopes: a selected range, an active sheet, or the entire workbook. The baseline audit flags standard errors like #REF! or #DIV/0!, hardcoded numbers within calculations, broken neighbor patterns, and hidden rows.

Full model scope triggers specialized integrity tests for DCF, LBO, merger, and 3-statement models. The tool tests whether the balance sheet balances, reconciles cash to ending balance sheet cash, and checks retained earnings roll-forwards. If the balance sheet is out of balance, it isolates the exact gap per period before addressing other items.

Findings are summarized in a table classified by Critical, Warning, and Info severity levels. The skill never modifies cells automatically. If calculations depend on VBA macros, formula inspection cannot verify them alone, so the report flags them as unaudited logic.

What it helps with

  • locate #REF!, #DIV/0!, and off-by-one formula ranges
  • detect hardcoded numeric overrides inside calculations
  • verify balance sheet balancing and cash flow tie-outs
  • test financial model logic across DCF, LBO, and merger models

Example prompts for the agent

  • audit this sheet for formula errors and hardcodes
  • model won't balance, debug the entire financial model
  • sanity check the selected range for broken references

How to install audit-xls

1Skills CLI (Vercel)

npx skills add anthropics/financial-services --skill audit-xls -a claude-code

2Manually: put the files in place

~/.claude/skills/audit-xls/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/audit-xls/

From the same set25

The whole set →
earnings-analysis official anthropics Builds quarterly earnings update reports with beat/miss analysis, revised estimates, key metrics, charts, and the effect on the investment thesis. Claude Code CX Codex Cursor +1 3,300installs equity-research official anthropics Builds a stock snapshot from analyst consensus, financials, price history and macro data. Useful when you need to size up a company fast. Claude Code CX Codex Cursor +1 3,200installs competitive-analysis official anthropics A framework for building competitor analysis decks in PowerPoint or chat. It clarifies project scope, then builds verified slides once the outline is approved. Claude Code CX Codex Cursor +1 2,400installs pitch-deck official anthropics Fills an existing investment banking deck template with data from source files. Use it to move figures into established slide layouts, not to build a deck from scratch. Claude Code CX Codex Cursor +1 2,400installs dcf-model official anthropics Builds an institutional-grade DCF valuation model: pulls data from SEC filings and analyst reports, computes WACC and cash flows, and outputs an Excel model with sensitivity analysis. Claude Code CX Codex Cursor +1 2,400installs ppt-template-creator official anthropics A skill that converts PowerPoint templates into self-contained, reusable skills. Analyze your .pptx, extract all layouts and placeholders with exact coordinates, and package everything as a ready-to-use skill. Claude Code CX Codex Cursor +1 2,300installs macro-rates-monitor official anthropics Builds macro and rates dashboards by combining inflation breakevens, yield curves, and swap spreads into a single analysis. Claude Code CX Codex Cursor +1 2,300installs clean-data-xls official anthropics Automates cleanup of messy Excel and Google Sheets data: trims whitespace, unifies case, converts numbers stored as text, standardizes dates, removes duplicates, and flags mixed-type columns. Claude Code CX Codex Cursor +1 2,100installs

Similar

datanalysis-credit-risk official github This skill cleans credit data and screens variables before risk modeling. Use it when a raw dataset needs quality checks and pre-loan preparation. GitHub Copilot 7,300installs data-storytelling Seth Hobson This skill turns raw data into a clear narrative with context, visuals, and recommendations. Use it for analytics reports and executive presentations. Claude Code CX Codex Cursor 16,782installs backtesting-frameworks Seth Hobson Helps build trading strategy backtests that account for look-ahead and survivorship bias, plus transaction costs. Use it when developing or validating a trading algorithm. Claude Code CX Codex Cursor 16,710installs churn-prevention coreyhaines31 A Claude Code skill for subscription churn: an exit survey at cancellation, an offer matched to the stated reason, and recovery of failed payments. Claude Code CX Codex Cursor +1 120,600installs revops coreyhaines31 This skill helps design RevOps workflows for lead stages, scoring, routing, and marketing-to-sales handoffs. Use it when CRM processes need clear rules. Claude Code CX Codex Cursor +1 113,000installs community-marketing coreyhaines31 Builds and grows branded communities on Discord or Slack to drive product retention and turn users into advocates. Claude Code CX Codex Cursor +1 89,100installs ads coreyhaines31 Guides paid advertising campaigns across Google Ads and Meta. It connects agents to rigorous playbooks and forbids guessing missing numbers. Claude Code CX Codex Cursor +1 82,200installs pricing coreyhaines31 Turns the agent into a pricing advisor for SaaS: pick a value metric, structure tiers, audit the pricing page. Useful when you can't tell what to charge. Claude Code CX Codex Cursor +1 78,800installs

Questions about audit-xls

How to install audit-xls in Claude Code?

Run npx skills add anthropics/financial-services --skill audit-xls -a claude-code in your terminal.

What does audit-xls do?

It audits spreadsheets for broken formulas, hardcoded numbers, and circular references. On workbook audits, it validates financial integrity checks like balance sheet balance and cash reconciliations.

Will audit-xls modify spreadsheet cells automatically?

No, the skill generates a findings table with severity levels and suggested fixes without altering your data. It applies modifications only when you explicitly ask for them.

Source text

SKILL.md · Apache-2.0
---
name: audit-xls
description: Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this spreadsheet", "sanity check this", "debug model", "model check", "model won't balance", "something's off in my model", "model review".
---

# Audit Spreadsheet

Audit formulas and data for accuracy and mistakes. Scope determines depth — from quick formula checks on a selection up to full financial-model integrity audits.

## Step 1: Determine scope

If the user already gave a scope, use it. Otherwise **ask them**:

> What scope do you want me to audit?
> - **selection** — just the currently selected range
> - **sheet** — the current active sheet only
> - **model** — the whole workbook, including financial-model integrity checks (BS balance, cash tie-out, roll-forwards, logic sanity)

The **model** scope is the deepest — use it for DCF, LBO, 3-statement, merger, comps, or any integrated financial model before sending to a client or IC.

---

## Step 2: Formula-level checks (ALL scopes)

Run these regardless of scope:

| Check | What to look for |
|---|---|
| Formula errors | `#REF!`, `#VALUE!`, `#N/A`, `#DIV/0!`, `#NAME?` |
| Hardcodes inside formulas | `=A1*1.05` — the `1.05` should be a cell reference |
| Inconsistent formulas | A formula that breaks the pattern of its neighbors in a row/column |
| Off-by-one ranges | `SUM`/`AVERAGE` that misses the first or last row |
| Pasted-over formulas | Cell that looks like a formula but is actually a hardcoded value |
| Circular references | Intentional or accidental |
| Broken cross-sheet links | References to cells that moved or were deleted |
| Unit/scale mismatches | Thousands mixed with millions, % stored as whole numbers |
| Hidden rows/tabs | Could contain overrides or stale calculations |

---

## Step 3: Model-integrity checks (MODEL scope only)

If scope is **model**, identify the model type (DCF / LBO / 3-statement / merger / comps / custom) and run the appropriate integrity checks below.

### 3a. Structural review

| Check | What to look for |
|---|---|
| Input/formula separation | Are inputs clearly separated from calculations? |
| Color convention | Blue=input, black=formula, green=link — or whatever the model uses, applied consistently? |
| Tab flow | Logical order (Assumptions → IS → BS → CF → Valuation)? |
| Date headers | Consistent across all tabs? |
| Units | Consistent (thousands vs millions vs actuals)? |

### 3b. Balance Sheet

| Check | Test |
|---|---|
| BS balances | Total Assets = Total Liabilities + Equity (every period) |
| RE rollforward | Prior RE + Net Income − Dividends = Current RE |
| Goodwill/intangibles | Flow from acquisition assumptions (if M&A) |

If BS doesn't balance, **quantify the gap per period and trace where it breaks** — nothing else matters until this is fixed.

### 3c. Cash Flow Statement

| Check | Test |
|---|---|
| Cash tie-out | CF Ending Cash = BS Cash (every period) |
| CF sums | CFO + CFI + CFF = Δ Cash |
| D&A match | D&A on CF = D&A on IS |
| CapEx match | CapEx on CF matches PP&E rollforward on BS |
| WC changes | Signs match BS movements (ΔAR, ΔAP, ΔInventory) |

### 3d. Income Statement

| Check | Test |
|---|---|
| Revenue build | Ties to segment/product detail |
| Tax | Tax expense = Pre-tax income × tax rate (allow for deferred tax adj) |
| Share count | Ties to dilution schedule (options, converts, buybacks) |

### 3e. Circular references

- Interest → debt balance → cash → interest is a common intentional circ in LBO/3-stmt models
- If intentional: verify iteration toggle exists and works
- If unintentional: trace the loop and flag how to break it

### 3f. Logic & reasonableness

| Check | Flag if |
|---|---|
| Growth rates | >100% revenue growth without explanation |
| Margins | Outside industry norms |
| Terminal value dominance | TV > ~75% of DCF EV (yellow flag) |
| Hockey-stick | Projections ramp unrealistically in out-years |
| Compounding | EBITDA compounds to absurd $ by Year 10 |
| Edge cases | Model breaks at 0% or negative growth, negative EBITDA, leverage goes negative |

### 3g. Model-type-specific bugs

**DCF:**
- Discount rate applied to wrong period (mid-year vs end-of-year)
- Terminal value not discounted back
- WACC uses book values instead of market values
- FCF includes interest expense (should be unlevered)
- Tax shield double-counted

**LBO:**
- Debt paydown doesn't match cash sweep mechanics
- PIK interest not accruing to principal
- Management rollover not reflected in returns
- Exit multiple applied to wrong EBITDA (LTM vs NTM)
- Fees/expenses not deducted from Day 1 equity

**Merger:**
- Accretion/dilution uses wrong share count (pre- vs post-deal)
- Synergies not phased in
- Purchase price allocation doesn't balance
- Foregone interest on cash not included
- Transaction fees not in sources & uses

**3-statement:**
- Working capital changes have wrong sign
- Depreciation doesn't match PP&E schedule
- Debt maturity schedule doesn't match principal payments
- Dividends exceed net income without explanation

---

## Step 4: Report

Output a findings table:

| # | Sheet | Cell/Range | Severity | Category | Issue | Suggested Fix |
|---|---|---|---|---|---|---|

**Severity:**
- **Critical** — wrong output (BS doesn't balance, formula broken, cash doesn't tie)
- **Warning** — risky (hardcodes, inconsistent formulas, edge-case failures)
- **Info** — style/best-practice (color coding, layout, naming)

For **model** scope, prepend a summary line:

> Model type: [DCF/LBO/3-stmt/...] — Overall: [Clean / Minor Issues / Major Issues] — [N] critical, [N] warnings, [N] info

**Don't change anything without asking** — report first, fix on request.

---

## Notes

- **BS balance first** — if it doesn't balance, everything downstream is suspect
- **Hardcoded overrides are the #1 source of silent bugs** — search aggressively
- **Sign convention errors** (positive vs negative for cash outflows) are extremely common
- If the model uses VBA macros, note any macro-driven calculations that can't be audited from formulas alone

© anthropics · Apache-2.0 · anthropics/financial-services

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor