Skip to content

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)

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-business-ops-public

Install

logicpacks pack use business-ops-public/weekly-kpi-report
get_pack business-ops-public/weekly-kpi-report

The 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

  1. Export orders for the last N weeks.
  2. Run the script; paste the table into the weekly update.
  3. 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)

  1. python-stdlib: code/kpi.py (no install).