# Claude Code for finance: models, variance, checks

> Use Anthropic's Finance plugin for variance and statements, then pin formulas so silent rounding bugs cannot hide.

Source: https://fullbytedeveloper.com/blog/claude-code-for-finance
Published here: 2026-11-26, updated 2026-11-26

Board packs break on silent float math and unsourced filing extracts, not on a weak chat narrative. Keep Anthropic's Finance plugin for variance and statement drafts, pin Decimal or spreadsheet formulas so rounding cannot hide, and require a source URL on every extract. [1]

After this page you can run a flux pass, ship a Decimal (or integer-cents) unit-economics script with checksums, and extract named SEC lines without inventing GAAP. Related: [Claude Code for accounting](/blog/claude-code-for-accounting) for JE and recon, [Choose five tools for spreadsheet data](/blog/claude-code-spreadsheet-data-tools) when the file is local CSV. Browse the [Claude Code topic](https://fullbytedeveloper.com/blog/topic/claude-code).

## Install Finance, then pin the period

```bash
claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install finance@knowledge-work-plugins
```

```text
/income-statement monthly 2026-11
/variance-analysis opex 2026-11 vs budget
```

`/income-statement` produces a P&L with period-over-period comparison. `/variance-analysis` decomposes variances into drivers with narrative and waterfall-style breakdown. Paste budget and actuals for the same chart of accounts before you trust a story. [1]

You should get a flux narrative tied to named accounts, not a vibe about "opex being up."

## Build unit economics as a script Claude can re-run

Ask Claude to write a small model (Python or SQL) that takes one CSV of orders and one CSV of costs, then prints contribution margin, payback, and burn with a fixed schema. Claude Code best practices say to give Claude a check so "done" is measurable. [4]

A useful check set:

1. Row count of inputs equals the export count from your source system.
2. Sum of cents equals the bank or processor settlement total for that day.
3. Every division uses Decimal (or integer cents), not binary float. [5]

```python
from decimal import Decimal, ROUND_HALF_UP

cents = Decimal("0.01")

def money(value: str) -> Decimal:
    return Decimal(value).quantize(cents, rounding=ROUND_HALF_UP)
```

You should see the same totals when you re-run the script tomorrow on the same files.

## Extract SEC or filing facts without inventing numbers

For public comps, open the filing on SEC EDGAR first, then ask Claude to extract only the line items you name (revenue, operating income, share count) with the form type and filing date beside each number. [3]

Do not ask Claude to "estimate" a missing GAAP line. If the filing does not show it, write "not in this filing" and stop. The Finance plugin disclaimer still applies when you paste those extracts into a board deck. [1] [3]

## Forecast scripts stay versioned next to the check

Keep forecast assumptions in a YAML or CSV checked into the repo. Ask Claude to change only named drivers (churn, ARPU, headcount) and to refuse silent edits to historical actuals. Re-run `/variance-analysis` after each forecast refresh so the story matches the new sheet. [1]

**Warning:** never let the agent overwrite the actuals tab. Put actuals behind a read-only path or a deny rule if your repo holds them. [4]

## Fail the pack before the slide updates

A practical board-pack gate:

1. Script prints checksums for revenue, COGS, and cash.
2. Diff against last published pack; unexplained deltas block the export.
3. Person reviews `/variance-analysis` narrative against the checksums. [1]

For close workpapers, go back to [Claude Code for accounting](/blog/claude-code-for-accounting). For local CSV and DuckDB checks, use [Choose five tools for spreadsheet data](/blog/claude-code-spreadsheet-data-tools). [6] [7]

You now have a finance loop: plugin variance and statements, Decimal unit economics, EDGAR-backed extracts, versioned forecasts, checksum gate before slides.

Send this to the operator who wants Claude Code in the model without silent float bugs.

## Sources

1. [Anthropic Finance & Accounting plugin README, accessed 2026-11-26](https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/finance/README.md)
2. [Anthropic Finance plugin tree, accessed 2026-11-26](https://github.com/anthropics/knowledge-work-plugins/tree/main/finance)
3. [SEC EDGAR full-text search, accessed 2026-11-26](https://www.sec.gov/edgar/search/)
4. [Claude Code best practices, accessed 2026-11-26](https://code.claude.com/docs/en/best-practices)
5. [Python decimal module docs, accessed 2026-11-26](https://docs.python.org/3/library/decimal.html)
6. [Full Byte Developer: Claude Code for accounting](https://fullbytedeveloper.com/blog/claude-code-for-accounting)
7. [Full Byte Developer: Choose five tools for spreadsheet data](https://fullbytedeveloper.com/blog/claude-code-spreadsheet-data-tools)
