/finance:variance-analysis <line item> <period> vs <comparison>from finance
Decompose financial variances into drivers with narrative explanations and waterfall analysis. Use when analyzing budget vs. actual, period-over-period changes, revenue or expense variances, or preparing variance commentary for leadership.
Ships in finance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Important: This skill assists with variance analysis workflows but does not provide financial advice. All analyses should be reviewed by qualified financial professionals before use in reporting.
Techniques for decomposing variances, materiality thresholds, narrative generation, waterfall chart methodology, and budget vs actual vs forecast comparisons.
The most fundamental variance decomposition. Used for revenue, cost of goods, and any metric that can be expressed as Price x Volume.
Formula:
Total Variance = Actual - Budget (or Prior)
Volume Effect = (Actual Volume - Budget Volume) x Budget Price
Price Effect = (Actual Price - Budget Price) x Actual Volume
Mix Effect = Residual (interaction term), or allocated proportionally
Verification: Volume Effect + Price Effect = Total Variance
(when mix is embedded in the price/volume terms)
Three-way decomposition (separating mix):
Volume Effect = (Actual Volume - Budget Volume) x Budget Price x Budget Mix
Price Effect = (Actual Price - Budget Price) x Budget Volume x Actual Mix
Mix Effect = Budget Price x Budget Volume x (Actual Mix - Budget Mix)
Example — Revenue variance:
Used when analyzing blended rates across segments with different unit economics.
Formula:
Rate Effect = Sum of (Actual Volume_i x (Actual Rate_i - Budget Rate_i))
Mix Effect = Sum of (Budget Rate_i x (Actual Volume_i - Expected Volume_i at Budget Mix))
Example — Gross margin variance:
Used for analyzing payroll and people-cost variances.
Total Comp Variance = Actual Compensation - Budget Compensation
Decompose into:
1. Headcount variance = (Actual HC - Budget HC) x Budget Avg Comp
2. Rate variance = (Actual Avg Comp - Budget Avg Comp) x Budget HC
3. Mix variance = Difference due to level/department mix shift
4. Timing variance = Hiring earlier/later than planned (partial-period effect)
5. Attrition impact = Savings from unplanned departures (partially offset by backfill costs)
Used for operating expense analysis when price/volume is not applicable.
Total OpEx Variance = Actual OpEx - Budget OpEx
Decompose by:
1. Headcount-driven costs (salaries, benefits, payroll taxes, recruiting)
2. Volume-driven costs (hosting, transaction fees, commissions, shipping)
3. Discretionary spend (travel, events, professional services, marketing programs)
4. Contractual/fixed costs (rent, insurance, software licenses, subscriptions)
5. One-time / non-recurring (severance, legal settlements, write-offs, project costs)
6. Timing / phasing (spend shifted between periods vs plan)
Materiality thresholds determine which variances require investigation and narrative explanation. Set thresholds based on:
| Comparison Type | Dollar Threshold | Percentage Threshold | Trigger |
|---|---|---|---|
| Actual vs Budget | Organization-specific | 10% | Either exceeded |
| Actual vs Prior Period | Organization-specific | 15% | Either exceeded |
| Actual vs Forecast | Organization-specific | 5% | Either exceeded |
| Sequential (MoM) | Organization-specific | 20% | Either exceeded |
Set dollar thresholds based on your organization's size. Common practice: 0.5%-1% of revenue for income statement items.
When multiple variances exceed thresholds, prioritize investigation by:
[Line Item]: [Favorable/Unfavorable] variance of $[amount] ([percentage]%)
vs [comparison basis] for [period]
Driver: [Primary driver description]
[2-3 sentences explaining the business reason for the variance, with specific
quantification of contributing factors]
Outlook: [One-time / Expected to continue / Improving / Deteriorating]
Action: [None required / Monitor / Investigate further / Update forecast]
Good variance narratives should be:
A waterfall (or bridge) chart shows how you get from one value to another through a series of positive and negative contributors. Used to visualize variance decomposition.
Starting value: [Base/Budget/Prior period amount]
Drivers: [List of contributing factors with signed amounts]
Ending value: [Actual/Current period amount]
Verification: Starting value + Sum of all drivers = Ending value
When a charting tool is not available, present as a text waterfall:
WATERFALL: Revenue — Q4 Actual vs Q4 Budget
Q4 Budget Revenue $10,000K
|
|--[+] Volume growth (new customers) +$800K
|--[+] Expansion revenue (existing customers) +$400K
|--[-] Price reductions / discounting -$200K
|--[-] Churn / contraction -$350K
|--[+] FX tailwind +$50K
|--[-] Timing (deals slipped to Q1) -$150K
|
Q4 Actual Revenue $10,550K
Net Variance: +$550K (+5.5% favorable)
Complement the waterfall with a reconciliation table:
| Driver | Amount | % of Variance | Cumulative |
|---|---|---|---|
| Volume growth | +$800K | 145% | +$800K |
| Expansion revenue | +$400K | 73% | +$1,200K |
| Price reductions | -$200K | -36% | +$1,000K |
| Churn / contraction | -$350K | -64% | +$650K |
| FX tailwind | +$50K | 9% | +$700K |
| Timing (deal slippage) | -$150K | -27% | +$550K |
| Total variance | +$550K | 100% |
Note: Percentages can exceed 100% for individual drivers when there are offsetting items.
| Metric | Budget | Forecast | Actual | Bud Var ($) | Bud Var (%) | Fcast Var ($) | Fcast Var (%) |
|---|---|---|---|---|---|---|---|
| Revenue | $X | $X | $X | $X | X% | $X | X% |
| COGS | $X | $X | $X | $X | X% | $X | X% |
| Gross Profit | $X | $X | $X | $X | X% | $X | X% |
Track how accurate forecasts are over time to improve planning:
Forecast Accuracy = 1 - |Actual - Forecast| / |Actual|
MAPE (Mean Absolute Percentage Error) = Average of |Actual - Forecast| / |Actual| across periods
| Period | Forecast | Actual | Variance | Accuracy |
|---|---|---|---|---|
| Jan | $X | $X | $X (X%) | XX% |
| Feb | $X | $X | $X (X%) | XX% |
| ... | ... | ... | ... | ... |
| Avg | MAPE | XX% |
Track how variances evolve over the year to identify systematic bias:
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Important: This command assists with variance analysis workflows but does not provide financial advice. All analyses should be reviewed by qualified financial professionals before use in reporting.
Decompose variances into underlying drivers, provide narrative explanations for significant variances, and generate waterfall analysis.
/finance:variance-analysis <area> <period-comparison>
area — The area to analyze:
revenue — Revenue variance by stream, product, geography, customer segmentopex — Operating expense variance by category, department, cost centercapex — Capital expenditure variance vs budget by project and asset classheadcount — Headcount and compensation variance by department and role levelcogs or cost-of-revenue — Cost of revenue variance by componentgross-margin — Gross margin analysis with mix and rate effectsperiod-comparison — The periods to compare. Formats:
2024-12 vs 2024-11 — Month over month2024-12 vs 2023-12 — Year over year2024-Q4 vs 2024-Q3 — Quarter over quarter2024-12 vs budget — Actual vs budget2024-12 vs forecast — Actual vs forecast2024-Q4 vs 2024-Q3 vs 2023-Q4 — Three-way comparisonIf ~~erp or ~~data warehouse is connected:
If no data source is connected:
Connect ~~erp or ~~data warehouse to pull financial data automatically. To analyze manually, provide:
- Actual data for both comparison periods (at account or line-item detail)
- Budget/forecast data (if comparing to plan)
- Any operational metrics that drive the financial results (headcount, volumes, pricing, etc.)
VARIANCE SUMMARY: [Area] — [Period 1] vs [Period 2]
Period 1 Period 2 Variance ($) Variance (%)
-------- -------- ------------ ------------
Total [Area] $XX,XXX $XX,XXX $X,XXX X.X%
Break down the total variance into constituent drivers. Use the appropriate decomposition method for the area:
Revenue Decomposition:
Operating Expense Decomposition:
CapEx Decomposition:
Headcount Decomposition:
Generate a text-based waterfall showing how each driver contributes to the total variance:
WATERFALL: [Area] — [Period 1] vs [Period 2]
[Period 2 Base] $XX,XXX
|
|--[+] [Driver 1 description] +$X,XXX
|--[+] [Driver 2 description] +$X,XXX
|--[-] [Driver 3 description] -$X,XXX
|--[+] [Driver 4 description] +$X,XXX
|--[-] [Driver 5 description] -$X,XXX
|
[Period 1 Actual] $XX,XXX
Variance Reconciliation:
Driver 1: +$X,XXX (XX% of total variance)
Driver 2: +$X,XXX (XX% of total variance)
Driver 3: -$X,XXX (XX% of total variance)
Driver 4: +$X,XXX (XX% of total variance)
Driver 5: -$X,XXX (XX% of total variance)
Unexplained: $X,XXX (XX% of total variance)
--------
Total: $X,XXX (100%)
For each significant driver, generate a narrative explanation:
[Driver name] — [Favorable/Unfavorable] variance of $X,XXX (X.X%)
[2-3 sentence explanation of what caused this variance, referencing specific operational factors, business events, or decisions. Include quantification where possible.]
Outlook: [Whether this is expected to continue, reverse, or change in future periods]
If the decomposition does not fully explain the total variance, flag the residual:
Unexplained variance: $X,XXX (X.X% of total)
Possible causes to investigate:
- [Suggested area 1]
- [Suggested area 2]
- [Suggested area 3]
Ask the user for additional context on unexplained variances:
Provide:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/audit-supportSupport SOX 404 compliance with control testing methodology, sample selection, and documentation standards. Use when generating testing workpapers, selecting audit samples, classifying control deficiencies, or preparing for internal or external audits./close-managementManage the month-end close process with task sequencing, dependencies, and status tracking. Use when planning the close calendar, tracking close progress, identifying blockers, or sequencing close activities by day./financial-statementsGenerate income statements, balance sheets, and cash flow statements with GAAP presentation and period-over-period comparison. Use when preparing financial statements, running flux analysis, or creating P&L reports with variance commentary./income-statementGenerate an income statement with period-over-period comparison and variance analysis/journal-entryPrepare journal entries with proper debits, credits, and supporting detail/journal-entry-prepPrepare journal entries with proper debits, credits, and supporting documentation for month-end close. Use when booking accruals, prepaid amortization, fixed asset depreciation, payroll entries, revenue recognition, or any manual journal entry.npx claudepluginhub grailautomation/claude-plugins --plugin finance