What problem does it solve?
This Skill automates exporting KPI totals aggregated by program, client, and month from ReturnPro financial data to remove manual SQL querying and table assembly for ad-hoc analysis, reporting, and validation.
Core Features & Use Cases
- Aggregates KPI totals by month, program, and client using the get_kpi_totals_by_program_client RPC and flattens results into consumable rows.
- Resolves months automatically (defaults to the three most recent with data), filters programs via partial name matches to dim_master_program, and formats output as a markdown table or CSV for downstream use.
- Use case: generate a stakeholder-ready monthly KPI report across multiple programs or export CSVs for spreadsheet-based financial reconciliation.
Quick Start
Run the export-kpis command to fetch KPI totals for the latest three months and return a markdown table.