check-model

check-model is a skill for Claude Code from yuping322/financial-services-plugins-new. It costs 2 tokens per session (1,336 once invoked), scanned A, a copy of check-model, Apache-2.0.

A method for checking an Excel financial model for structural, formula, and logic errors. It can identify the model type, map its tabs, and review how inputs and calculations connect.

In plain words
What is it for?
Use it to audit or debug DCF, LBO, merger, three-statement, comparable-company, returns, or custom financial models.
Why use it?
It helps find problems such as broken formulas, circular references, hidden overrides, mismatched statements, and models that do not balance before others rely on them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the financial-analysis plugin — 9 skills, 8 commands, 11 MCP servers shipped together

Good fit Use it to audit or debug DCF, LBO, merger, three-statement, comparable-company, returns, or custom financial models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuping322/financial-services-plugins-new/check-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yuping322/financial-services-plugins-new --skill check-model
Clone the repo
git clone --depth 1 https://github.com/yuping322/financial-services-plugins-new

Made for: Claude Code.

Or install financial-analysis, the plugin that ships this one along with the rest of its 9 skills, 8 commands, 11 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuping322/financial-services-plugins-new/check-model/github.svg)](https://agentmods.dev/skills/yuping322/financial-services-plugins-new/check-model)
Your own site
<a href="https://agentmods.dev/skills/yuping322/financial-services-plugins-new/check-model"><img src="https://agentmods.dev/badge/skills/yuping322/financial-services-plugins-new/check-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuping322/financial-services-plugins-new/check-model"><img src="https://agentmods.dev/badge/skills/yuping322/financial-services-plugins-new/check-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00002 $0.01336
Opus 5 $0.00001 $0.00668
Sonnet 5 $0.00000 $0.00267
Haiku 4.5 $0.00000 $0.00134

Measured 9d ago against content hash 5ca19cdba260, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

check-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to check-model — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

financial-analysis/skills/check-model/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Checker

description: Debug and audit financial models for errors — circular references, broken formulas, hardcoded overrides, balance sheet imbalances, cash flow mismatches, and logic gaps. Use when a model isn't tying, producing unexpected results, or before sending to a client or IC. Triggers on "debug model", "model check", "audit model", "model won't balance", "something's off in my model", "check my model", "QA model", or "model review".

Workflow

Step 1: Ingest the Model

  • Accept the user's Excel model (.xlsx or .xlsm)
  • Identify model type: DCF, LBO, merger, 3-statement, comps, returns, or custom
  • Map the structure: which tabs exist, how they're linked, where inputs vs. outputs live

Step 2: Structural Checks

Tab & Layout Review:

  • Are inputs clearly separated from calculations?
  • Is there a consistent color-coding convention? (blue = input, black = formula, green = link)
  • Are there hidden tabs or rows that could contain overrides?
  • Is the model flow logical? (assumptions → IS → BS → CF → valuation)

Formula Consistency:

  • Check for hardcoded numbers inside formulas (partial hardcodes)
  • Check for inconsistent formulas across row/column ranges (should be the same formula dragged across)
  • Identify any #REF!, #VALUE!, #N/A, #DIV/0! errors
  • Flag cells that are formatted as formulas but contain hardcoded values

Step 3: Integrity Checks

Balance Sheet:

  • Total Assets = Total Liabilities + Equity (every period)
  • If imbalanced, quantify the gap and trace where it breaks
  • Check that retained earnings rolls forward correctly: Prior RE + Net Income - Dividends = Current RE
  • Verify goodwill and intangibles flow from acquisition assumptions (if M&A model)

Cash Flow Statement:

  • Ending cash from CF = Cash on BS (every period)
  • Operating CF + Investing CF + Financing CF = Change in Cash
  • D&A on CF matches D&A on IS
  • Capex on CF matches PP&E rollforward on BS
  • Working capital changes on CF match BS movements (AR, AP, inventory)

Read the full file on GitHub · 139 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 139 lines · 2 tokens per session scan A 5ca19cdba260

Subscribe to this mod's changes

check-model is a skill published in the GitHub repository yuping322/financial-services-plugins-new (17 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 2 tokens to every session and 1,336 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to check-model, differing in 9 lines, and is treated as a copy.