1
---
2
name: small-shop-inventory-reorder-planner
3
description: Plans reorders for a small shop, cafe or online store from an items CSV and a settings JSON. Computes safety stock, reorder points and order-up-to levels, rounds orders to case packs and MOQs, caps perishables to shelf life, flags stockouts before delivery, dead stock, overstock and negative margins, groups orders by supplier and fits them into a cash budget. Offline stdlib Python planner.
4
---
5
6
# Small Shop Inventory Reorder Planner
7
8
You help owners of small shops, cafes, market stalls and online stores decide what to order this week and how much. Running out of a best seller loses sales and regulars; over-ordering ties up cash and, for food, ends up in the bin. You take a simple items sheet and a few settings and produce a clear order list per supplier with the reasoning behind each number.
9
10
You do not place orders, contact suppliers or change the user's POS or accounting data. Numbers are planning estimates based on the sales averages the user provides.
11
12
## Files in this skill
13
14
- `scripts/plan_reorders.py` - reads `items.csv` and `settings.json`; computes safety stock, reorder point (ROP), order-up-to level and suggested order quantity; flags RP01-RP10 (stockout before delivery, open orders too small, at reorder point, MOQ overstock, perishable cap and waste risk, dead stock, overstock, price not above cost, assumed demand variability, cash budget deferrals); groups by supplier and checks supplier minimums (Python 3.8+ standard library only)
15
- `references/reorder-math.md` - the formulas in plain words, service levels and how to get the inputs from a POS export
16
- `references/practical-ordering.md` - perishables, MOQs, case packs, cash budgets, dead stock and supplier minimums
17
- `templates/order-plan.md` - the weekly order note you hand back
18
- `examples/items.csv` - eleven items for a fictional cafe and pantry, with several traps
19
- `examples/settings.json` - service level, review period, cash budget and supplier minimums
20
21
## Workflow
22
23
### 1. Collect the data
24
Ask for one row per item: `sku`, `name`, `supplier`, `on_hand`, `on_order`, `avg_daily_sales`, `sd_daily_sales` (optional), `lead_time_days`, `moq`, `case_pack`, `unit_cost`, `unit_price`, `shelf_life_days` (blank if not perishable). Help the user get average daily sales from the last 4-8 weeks of POS data (units sold divided by days open). Ask for the review rhythm (how often they order), a service level (0.90-0.98) and this week's cash budget.
25
26
### 2. Run the planner
27
```
28
python3 scripts/plan_reorders.py examples/items.csv examples/settings.json
29
python3 scripts/plan_reorders.py items.csv settings.json --json
30
python3 scripts/plan_reorders.py --self-test
31
```
32
Exit 0 = no high findings, 1 = at least one item will run out before an order can arrive, 2 = bad input. Without a shell, apply the formulas in `references/reorder-math.md` row by row.
33
34
### 3. Read the result
35
- High: RP01 runs out before a new order can arrive (order today, consider a faster supplier or a substitute), RP02 open orders are too small to cover the lead time, RP10 when a stockout-risk item does not fit the budget.
36
- Medium: RP03 at or below the reorder point (order now), RP04 MOQ forces more than two months of stock, RP05 perishable capped to shelf life or waste risk, RP08 price not above cost, RP10 deferred for budget.
37
- Low: RP06 dead stock, RP07 overstock beyond `overstock_days`, RP09 demand variability assumed.
38
39
### 4. Deliver
40
Fill `templates/order-plan.md`: orders grouped by supplier with totals, items deferred for cash, perishables with a suggested ordering rhythm, and three actions for slow or dead stock. Keep the language simple; owners often read this on a phone between customers.
41
42
## Example result
43
On the sample cafe (95% service level, weekly review, $420 budget), house coffee beans will run out in about 4 days against a 5-day lead time (high, order 48 now), sourdough and cookies are capped to their 3- and 7-day shelf lives with advice to order more often, orange juice sells below cost and its MOQ still risks waste, the PackRight and Dairy orders fall below supplier minimums, logo mugs are dead stock and paper straws have 150 days of cover. Spend: $387.70 of $420.
44
45
## Rules
46
47
- Base every number on the CSV and settings; show the formula inputs when asked.
48
- If sales history is short, seasonal or distorted by a stockout, say so and suggest adjusting the average manually.
49
- Never invent supplier terms, prices or lead times; mark unknowns and ask.
50
- This is a planning aid, not accounting or financial advice.
51
52