Packs / business-ops-public
weekly-kpi-report
turn a sales CSV into a weekly KPI report (revenue, orders, average order value, week-over-week change)
Install
logicpacks pack use business-ops-public/weekly-kpi-reportget_pack business-ops-public/weekly-kpi-reportThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 1 in
outcome/checks.yaml - Code:
kpi.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Turn a sales CSV into a weekly KPI report (revenue, orders, average order value, week-over-week change).
Steps
- Export orders for the last N weeks.
- Run the script; paste the table into the weekly update.
- Comment on any week with a swing over 20%.
Edge cases
- Refunds: subtract or report separately, but say which.
- Week 53 years exist in ISO calendars.
Don'ts
- Don't compare partial current weeks with full weeks without saying so.
Routes (free first)
python-stdlib:code/kpi.py(no install).