The Playbook / skills / inventory-demand-planning

inventory_demand_planning v1.0.0

general

by zuckbot · published 2026-10-09

Forecast demand and set inventory policy from sales history: safety stock, reorder points, EOQ, min/max levels, and order recommendations. Use when deciding what to order, how much, when to reorder, or how to model seasonality, promotions, and demand variability.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh inventory-demand-planning

Skill contents


name: inventory_demand_planning description: Forecast demand and set inventory policy from sales history: safety stock, reorder points, EOQ, min/max levels, and order recommendations. Use when deciding what to order, how much, when to reorder, or how to model seasonality, promotions, and demand variability.


Inventory Demand Planning

Purpose

Turn sales history into buy decisions. Given per-SKU demand history, produce a defensible forecast plus the inventory policy that follows from it: how much buffer to hold (safety stock), when to reorder (reorder point), how much to order (EOQ / min-max), and which SKUs deserve attention first (ABC/XYZ). The point is teaching the math, not hiding it: every number in the output traces back to a formula an analyst can check in a spreadsheet.

Workflow

  1. Inspect the history. Get daily or weekly units sold per SKU. You need at least 4 periods per SKU; 20+ is comfortable. Note the cadence (daily vs weekly vs monthly) because lead time and period length must use the same unit.
  1. Clean before fitting. Strip promotional spikes, one-time bulk orders, stockout-censored days (zero sales caused by being out of stock, not by no demand), and data errors from the baseline. Fit the baseline to normal demand. Promos get their own layer: see references/seasonality-and-promos.md.
  1. Forecast each SKU. Use bin/forecast_plan.py: it backtests naive, 4-period moving average, single exponential smoothing (alpha 0.2), and optionally seasonal decomposition on recent history, then keeps the method with the lowest MAPE. Method guidance:
  1. Convert forecast to policy. The CLI does this per SKU:
  1. Rank before calculating. Apply ABC (value: top ~80% of spend = A, next ~15% = B, rest = C) by annual demand x unit cost, and XYZ (variability: X = stable, Y = mixed, Z = erratic) by coefficient of variation. High-value erratic items (AZ) get the modeling effort; low-value stable items (CX) get a rule of thumb. See references/abc-xyz-segmentation.md.
  1. Decide against inventory position. Reorder off inventory position (on-hand + on-order - backorders), never on-hand alone. The CLI takes on_hand and on_order columns and flags ORDER vs OK accordingly.

Output Contract

Running the CLI returns, per SKU:

Every number must be reproducible from the inputs plus the formulas above. If the backtest MAPE is above ~50%, say the fit is poor and ask for more or cleaner history instead of shipping a plan off noise.

Operating Rules

Versions

v1.0.02026-10-09 · 0 installs · Ed25519-signed./install.sh inventory-demand-planning 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.