Performs financial planning, budget analysis, cash flow forecasting, and investment evaluation for businesses. Creates budget templates with variance tracking, generates P&L and cash flow reports, analyzes expenses against forecasts, calculates NPV/IRR for investment decisions, and builds financial dashboards with KPI tracking. Use when the user asks about budgets, financial forecasts, P&L statements, cash flow analysis, expense tracking, cost reduction, ROI calculations, audit preparation, tax planning, or business investment decisions.
87
85%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Default requirement: Every output must include compliance validation and a documented audit trail.
Full implementations live in referenced files. Use them as drop-in modules; brief signatures are shown below.
BUDGET_QUERIES.sqlComputes annual budget vs. actuals with quarterly variance, per-department rollup, and a budget_status label (On Track / Over Budget / Under Budget) based on ±5 % thresholds. Query targets a financial_data table filtered to the current fiscal year.
-- Budget variance by department for current quarter
WITH dept_summary AS (
SELECT
department,
DATE_TRUNC('quarter', date) AS quarter,
SUM(budget_amount) AS total_budget,
SUM(actual_amount) AS total_actual,
SUM(actual_amount - budget_amount) AS total_variance,
CASE
WHEN ABS(SUM(actual_amount - budget_amount))
/ NULLIF(SUM(budget_amount), 0) <= 0.05 THEN 'On Track'
WHEN SUM(actual_amount) > SUM(budget_amount) THEN 'Over Budget'
ELSE 'Under Budget'
END AS budget_status
FROM financial_data
WHERE DATE_TRUNC('year', date) = DATE_TRUNC('year', CURRENT_DATE())
GROUP BY department, DATE_TRUNC('quarter', date)
)
SELECT department, quarter, total_budget, total_actual, total_variance, budget_status
FROM dept_summary
WHERE quarter = DATE_TRUNC('quarter', CURRENT_DATE())
ORDER BY department;CASH_FLOW.pyCashFlowManager(historical_data, current_cash) — historical_data is a pandas DataFrame with columns month, receipts, payments, net_cash_flow.
Key methods:
forecast(periods=12) — rolling forecast with seasonal & growth factors; returns DataFrame with ci_low/ci_high (±15 %).identify_risks(forecast_df) — flags cash below $50k (liquidity warning) and surplus above $200k (investment opportunity).optimize_payment_timing(schedule) — ranks payables by annualised early-pay discount value.from CASH_FLOW import CashFlowManager
mgr = CashFlowManager(historical_data=df, current_cash=150_000)
forecast = mgr.forecast(periods=12)
risks = mgr.identify_risks(forecast)INVESTMENT.pyInvestmentAnalyzer(discount_rate=0.10) — evaluates capital projects via NPV, IRR (Brent's method), payback period, and ROI.
Key method: analyse(name, investment, cash_flows) — returns a dict with all metrics plus a tiered recommendation:
from INVESTMENT import InvestmentAnalyzer
ia = InvestmentAnalyzer(discount_rate=0.10)
result = ia.analyse("Project X", investment=500_000, cash_flows=[120_000]*6)BUDGET_QUERIES.sql.InvestmentAnalyzer.CashFlowManager.identify_risks() before committing funds.See REPORT_TEMPLATE.md for the full period-end report structure (executive summary, variance tables, KPI dashboard, and action-item log). Populate it using the outputs of Steps 1–4 above.
010799b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.