budget-vs-actual
Skill8 starsChanged 4 months agoMITView on GitHub
Compares actuals to budget by department and account, applies dollar and percentage thresholds, and refuses to call the report complete until every variance above its applicable threshold has an explanation whose components sum to the variance exactly. Use this whenever the user mentions budget vs actual, BvA report, variance analysis against budget, flux against budget, department spend vs budget, or "why did we go over budget." Trigger on "build the BvA," "run budget vs actual for this quarter," "which departments are over budget," "explain this variance," or when actuals, a budget export, and threshold config are supplied together. Reuses the enforced-explanation gate pattern from return-yoy-variance, applied to budget rather than prior-year comparisons — use return-yoy-variance for year-over-year variance, this one for actual-vs-budget variance.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- SkillMedev/finance-accounting-opstheir own version, first seen Oct 5, 2026
- Uhudsavasindankacanokcu2/finance-skills-for-claudetheir own version, first seen Jun 18, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Uhudsavasindankacanokcu2/finance-skills-for-claude★ 1same name
- SkillMedev/finance-accounting-ops★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accrual-proposalsSkill
- ar-aging-tie-outSkill
- arr-waterfallSkill
- audit-samplingSkill
- audit-workpaperSkill
- balance-sheet-recon-packSkill
- bank-rec-reviewSkill
- bank-rec-to-glSkill
- bank-statement-to-excelSkill
- board-package-builderSkill
- cash-applicationSkill
- cash-flow-tieoutSkill
- commission-recalcSkill
- consolidation-rollupSkill
- cutoff-and-unrecorded-liabilitiesSkill
- debt-covenant-checkSkill
- deferred-revenue-waterfallSkill
- depreciation-tie-outSkill
- dunning-draftsSkill
- duplicate-payment-scanSkill
- expense-policy-testingSkill
- filing-diffSkill
- flux-narrativeSkill
- fx-revaluationSkill
- intercompany-reconSkill
- invoice-codingSkill
- journal-entry-anomaly-scanSkill
- k1-extract-summarizeSkill
- lease-schedule-tie-outSkill
- month-end-close-checklistSkill
- payroll-tax-reconciliationSkill
- pbc-assemblerSkill
- prepaid-amortizationSkill
- receipts-to-expenseSkill
- return-yoy-varianceSkill
- revenue-trace-to-sourceSkill
- sales-tax-reconciliationSkill
- tax-return-reviewSkill
- thirteen-week-cash-forecastSkill
- three-way-matchSkill
- trial-balance-integritySkill
- vendor-statement-reconSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
An explanation's components don't sum to the variance: If component rows are supplied, they must add up exactly to the variance they claim …
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Budget vs Actual Report
A BvA report that lists variances without forcing an explanation for the ones that matter is a
list, not a report. This skill applies the same enforced-explanation discipline as
return-yoy-variance, scoped to actual-vs-budget instead of year-over-year.
The gate
The script refuses to call the report complete when:
- A variance above its threshold has no explanation. It lands on the Unexplained Variance tab, and the workbook summary states plainly the report is not complete while that tab is non-empty.
- An explanation's components don't sum to the variance. If component rows are supplied, they must add up exactly to the variance they claim to explain — a partial explanation is an exception, not a pass.
- Aggregation drops a row. Total actual and total budget on the report must equal the sums of the source files exactly.
Inputs
- Actuals —
department, account, actual_amount. - Budget export —
department, account, budget_amount. - Threshold config —
department, account, dollar_threshold, pct_threshold. Either field may be blank to disable that test, anddepartment/accountmay be blank to scope a threshold more broadly — blank-both is the global default. The most specific threshold that matches wins: account+department beats account-only beats department-only beats global. No threshold is ever hardcoded — a department/account with no matching threshold row at all is flagged for review rather than silently passed. - Explanations —
department, account, reason_category, narrative, component_description, component_amount. One row per component; an account can have several rows explaining pieces of one variance (a travel overage split into conference airfare and hotel, say).
Step 1 — Get a blank explanations worksheet for what currently exceeds threshold
python3 scripts/budget_vs_actual.py --actuals actuals.csv --budget budget.csv \
--thresholds thresholds.csv --template --out explanations_template.csvThis evaluates thresholds first and emits one row per department/account pair found in the actuals or budget files, ready for explanation narratives to be filled in.
Step 2 — Build the report
python3 scripts/budget_vs_actual.py --actuals actuals.csv --budget budget.csv \
--thresholds thresholds.csv --explanations explanations.csv \
--period "FY2026 Q1" --client "Northwind Systems Inc" \
--out "Northwind - Q1 BvA.xlsx"Deliver
Workbook tabs:
- BvA Report — department, account, budget, actual, variance $, variance %, whether it exceeds its threshold, whether it's explained, and the explanation narrative.
- Unexplained Variance — the gate. Empty means the report is complete; non-empty means it isn't, and the workbook summary says so.
- Threshold Config — which threshold basis (account+department / account / department / global) actually applied to each line, so a reviewer can audit the thresholds themselves.
Then, in chat: total budget and total actual first, then the count exceeding threshold and the count still unexplained, then the two or three largest unexplained variances by dollar amount.
What to escalate
- A department/account pair with no matching threshold row at all. The script flags it rather than inventing a default — the threshold config is incomplete and needs a decision, not a guess.
- A variance explained the same way every period (e.g., "timing" every month for a year) — a pattern worth a conversation about whether the budget itself needs revisiting.
- A component total that keeps falling short of the variance across periods for the same account — suggests an unidentified driver, not a reporting error.
- Large unexplained variances concentrated in one department. Report the fact; don't characterize whether it reflects a budgeting miss or an operational one.
Security posture
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
Department spend and budget data never leave the machine.
Dependencies
pip install openpyxlBuilt by Adopt AI — free to use and modify.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

