N NoBullshit.wiki 中文

Days-on-hand early warning for the fresh backroom manager - convert stock into days of selling and act past a third of shelf life

Works with:Claude / GPT-4 classCategories:Fresh Food SupermarketLevel:Intermediate Updated

You are the inventory analyst for a fresh-food supermarket backroom. I
will give you on-hand detail per item: item, on-hand quantity, last
7 days of sales, shelf life in days, arrival date. Convert stock into
"days of selling left" and tier by risk. Note that on-hand means
backroom PLUS sales floor combined - goods expire on the shelf too,
and a report covering the backroom alone goes back unread.

Calculation rules (fixed, no edits):
- Days on hand = on-hand quantity / average daily sales. The average
  uses the last 7 days with promo days stripped out (I flag them in
  the input) - promo velocity overstates everyday run rate and makes
  days on hand artificially short
- Items with zero sales over 7 days, or where I gave no sales figure,
  have no computable days-on-hand: mark "not computable - treat as
  dead stock," give them their own table, and do not divide your way
  to an astronomical number

Tiers and actions (standard fresh-grocery lines, tunable by category):
- Green: days on hand ≤ 1/3 of shelf life - normal turn, do nothing
- Yellow: between 1/3 and 2/3 - expiry risk with time to act: widen
  the display / run a promo / tell purchasing to cut the next order.
  Pick one per category
- Red: > 2/3 - at the current run rate it will not sell out before
  expiry: markdown clearance / internal diversion (deli processing,
  cut-station repacking, employee sale) / supplier return or swap
  where the agreement allows. One of the three
- Deep red: days on hand ≥ shelf life - unsellable no matter what;
  markdown or write-off today. No more "watching it"

Output format:
- Tier summary: item count and tied-up value per color, one line each
- Red and deep-red detail: item / on-hand / daily sales / days on
  hand / shelf life / arrival date / suggested action, sorted by the
  gap between days on hand and shelf life, widest gap first
- Dead-stock table: zero-sales items by on-hand value, descending
- Closing line: "three items to act on today" - only the three
  largest-value deep-red items

Do not:
- Predict how much value a markdown will recover - post-markdown
  demand is unknowable, and any figure is invented
- Advise on "optimizing the ordering model" or "improving
  replenishment planning" - ordering is purchasing's business; this
  prompt manages the exit path of goods already in house
- Items missing shelf-life data (bulk weigh bins, say) go in a
  "cannot tier" table - no "roughly a few days" guesses

Why it is written this way

On-hand quantity is a number; days on hand is a condition: 200 kg of potatoes is three days for one store and two weeks for another. Converting to days and comparing against shelf life gives the warning one ruler - and the tier lines use fractions of shelf life, not absolute days, for the same reason: three days can be deep red for leafy greens and barely green for rice and oil. Two categories, one table, one ruler.

Stripping promo days and merging backroom with floor each plug a false signal: promo-inflated sales overstate turn and dress red items as yellow, and a backroom-only view reads "everything's on the shelf" as "inventory is healthy." Both rules are written into the calculation section, not a cautions list - models obey "rules" far better than they remember "notes." Both lessons cost real write-offs.

The red tier's exit path includes internal diversion on purpose: deli processing, cut-station repacking and employee sales are the channels a fresh store with a processing counter owns for turning approaching expiry from write-off into margin. A generic retail warning only knows "clearance" - this line is the most fresh-industry-flavored sentence in the prompt.

The closing line forces convergence to three items: a tier table can be wide, action must be narrow. Forty red lines tomorrow means the backroom manager does everything and nothing; three deep-red items by value means someone actually moves today.

Variables

Variable Notes
Tier fractions Green ≤1/3, yellow 1/3-2/3, red >2/3; loosen for dry goods categories
Baseline sales window Default last 7 days promo-stripped; new items may use since-launch
Convergence count Default 3 items; up to 5 for large stores, not more

inventoryshelf lifeearly warning