Home
cd ../playbooks
FinanceAdvanced

Financial Analyst Toolkit

Run DCF valuations, financial statement analysis, ratio analysis, comparable company analysis, budget variance reporting, and scenario modeling from your local data.

15 minutes
By davila7/claude-code-templates
#finance#valuation#DCF#financial-statements#ratio-analysis#comps#budgeting#scenario-modeling#KPI

Your DCF has 47 linked tabs, one broken formula changes the valuation by $50M, and you spend more time debugging Excel than doing actual analysis. Financial modeling shouldn't require forensic spreadsheet archaeology.

Who it's for: investment banking analysts building valuation models, corporate finance teams doing budget variance analysis, equity researchers running comparable company screens, FP&A professionals modeling scenarios, anyone who builds financial models in Excel and wishes it were less painful

Example

"Run a DCF valuation on this company using their 10-K data" → Complete DCF model with revenue projections, WACC calculation, terminal value, sensitivity tables, comparable company multiples, and a structured report — auditable, with every assumption documented

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add financial-analyst-toolkit
# Financial Analyst Toolkit

## Role
You are a senior financial analyst with expertise in corporate valuation, financial statement analysis, and strategic finance. You produce institutional-quality analysis with clear assumptions, sourced calculations, and actionable conclusions. Every number must trace back to source data or a stated assumption.

## Workflow

### Phase 1: Data Ingestion
1. Read all files in `data/` to inventory available financial data
2. Identify the company, reporting periods, and currency
3. Flag any missing data required for the requested analysis
4. Standardize line items to a common format before computing

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Turns Claude Code into a full-stack financial analyst workstation. You feed it financial statements, market data, or budget files and it runs institutional-grade analysis: discounted cash flow valuations, three-statement modeling, ratio decomposition, comparable company analysis, budget variance reporting, and Monte Carlo scenario modeling. Every output lands as a structured markdown report you can hand to stakeholders or drop into a deck.

The Problem

Financial analysis involves repetitive spreadsheet gymnastics across dozens of tabs. Building a DCF means manually linking assumptions to projections to terminal value to WACC. Ratio analysis requires pulling the same line items across periods and computing trends. Comparable company tables need standardized metrics across different reporting formats. Budget variance reports are tedious column-by-column comparisons. None of this is intellectually hard, but it eats hours and invites copy-paste errors.

The Fix

This playbook gives Claude Code a structured financial analysis framework. Drop your financial data into a project folder, point Claude at it, and request any standard analysis. The template defines output formats, calculation methodologies, and quality checks so every report is consistent and auditable.

Quick Start

Step 1: Create the project structure

mkdir -p ~/financial-analysis/{data,models,reports,comps}
cd ~/financial-analysis

Step 2: Download the Template

Download the CLAUDE.md template below and save it to your ~/financial-analysis/ folder.

Step 3: Add your financial data

Place financial statements in data/:

  • Income statements (CSV, markdown, or PDF)
  • Balance sheets
  • Cash flow statements
  • Budget files
  • Comparable company data

Step 4: Launch and analyze

cd ~/financial-analysis
claude

Try: "Build a 5-year DCF model for the company in my data folder using a 10% WACC"

Example Commands

"Build a 5-year DCF for Acme Corp using 9.5% WACC and 2.5% terminal growth"
"Run a full ratio analysis on the last 4 years of financial statements"
"Build a comps table with the peer companies in my comps/ folder"
"Compare Q3 actuals to budget and identify the top variance drivers"
"Model three scenarios for next year: base at 8% growth, bull at 15%, bear at 2%"
"Generate a KPI dashboard from the latest quarterly data"
"Decompose ROE using 5-factor DuPont analysis and show the trend"
"What's the implied EV/EBITDA if we apply peer median multiples?"
"Run a sensitivity table on WACC (8-12%) vs terminal growth (1.5-3.5%)"
"Analyze working capital efficiency: compute DSO, DIO, DPO, and cash conversion cycle"

Tips

  • Start with clean data. Garbage in, garbage out. Spend five minutes formatting your financial statements into consistent CSVs before running analysis. Column headers should include the period (e.g., "Revenue_2024", "Revenue_2025").
  • Use the quality checklist. Before trusting any output, verify that the balance sheet balances and the cash flow statement reconciles. These are fast sanity checks that catch data import errors.
  • Layer your analysis. Start with financial statement analysis to understand the business, then run ratios to benchmark, then build the DCF. Each layer informs the next.
  • Comps require judgment. The toolkit will compute the math, but you need to pick the right peer set. Include 5-10 companies in the same industry, similar size, and similar growth profile.
  • Challenge the terminal value. If terminal value exceeds 75% of total enterprise value, your near-term projections may be too conservative or your terminal assumptions too aggressive. The toolkit flags this automatically.
  • Keep assumptions in one place. The assumptions register is your audit trail. When a stakeholder questions a number, you can trace it back to a specific input and rationale.
  • Iterate on scenarios. Run the base case first, then stress the 2-3 assumptions that matter most. Use the sensitivity table to find where the valuation breaks.

Troubleshooting

Problem: DCF output seems unreasonably high or low

Solution: Check your WACC inputs first. A 1% change in WACC can swing valuation by 15-25%. Verify the risk-free rate matches current treasury yields, beta is sourced from a reliable provider, and your capital structure weights reflect market values, not book values. Also check that your revenue growth assumptions taper to a sustainable rate by the terminal year.

Problem: Ratio analysis shows impossible values (negative current ratio, margins above 100%)

Solution: This almost always means a data formatting issue. Check that expenses are negative (or positive, consistently), that the balance sheet date aligns with the income statement period, and that you haven't mixed quarterly and annual data in the same analysis.

Problem: Comps table has wildly different multiples across peers

Solution: Remove outliers (companies with negative EBITDA, recent M&A, or one-time charges) and recalculate. If dispersion is still high, narrow your peer set to companies with more similar growth and margin profiles. Use median rather than mean for the implied valuation.

Problem: Budget variance report flags everything as material

Solution: Set a materiality threshold. A common approach is to flag variances greater than 5% AND greater than $10,000 (or whatever absolute threshold fits your company's scale). Update the policy configuration in the template to reflect your thresholds.

Problem: Claude runs out of context with large financial datasets

Solution: Pre-process your data. Have Claude write a Python script that summarizes your raw transaction-level data into period-level aggregates first. Feed the summary tables to the analyst modules rather than raw CSVs with thousands of rows.

$Related Playbooks

Finance

Expense Report Auditor

Review expense reports for policy compliance, flag issues, and ensure audit-readiness.

10 minutes
Intermediate
Finance

Financial Data Collector

Collect real financial data for any US public company from free sources (yfinance) into structured JSON — market data, historical financials, WACC inputs, and estimates — ready for DCF and comps.

10 minutes
Intermediate
Finance

Financial Modeling Assistant

Build integrated financial models with 3-statement projections. Create income statement, balance sheet, and cash flow models with proper linkages.

10 minutes
Advanced
Finance

Investment Memo Writer

Write professional investment memorandums for VC, PE, or public market investments. Structure thesis, risks, and recommendations clearly.

10 minutes
Advanced
Finance

Multi-Agent Financial Planner

Build a virtual financial advisory team with specialized agents for budgeting, retirement planning, and investment strategy that analyze your finances and create actionable plans.

15 minutes
Intermediate
Finance

Multi-Card Expense Tracker

Combine transactions from multiple cards, categorize expenses, match receipts, and generate expense reports.

10 minutes
Intermediate
Finance

Risk Manager

Run financial risk assessments, portfolio risk analysis, Monte Carlo simulations, VaR calculations, stress testing, and risk register management from local data.

15 minutes
Advanced
Finance

Stock Analysis & Research

Analyze stocks with fundamental and technical analysis. Supports US, China A-shares, and Hong Kong markets. Generate investment reports with key metrics.

10 minutes
Advanced
Finance

Scientific Usfiscaldata

Query the U.S. Treasury Fiscal Data API for federal financial data including national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Access 54 datasets and 182 data tables with no API key required. Use when ...

5 minutes
Beginner
Finance

Tax Prep Guide

A guided Q&A that assesses your tax situation and generates a personalized preparation plan with document checklists and workflow recommendations.

5 minutes
Beginner
Finance

Professional Tax Knowledge Agent

Create a searchable knowledge base from tax documents for reference during tax season.

15 minutes
Advanced
Finance

Scientific Alpha Vantage

Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income s...

5 minutes
Beginner

Browse all Finance playbooks →