runbookify
← All plans
Procurement & Purchasing / Inventory Replenishment & Reorder Planning

Reorder-Point & Min-Max Replenishment Suggester: Buy the Right Stock, Before It Runs Out

Import your item master, current on-hand stock, and open POs already on the way — and get a daily replenishment list of exactly what to buy, how much, and from which supplier, net of inbound and rounded to MOQ and pack size, for a buyer to review and approve before anything becomes a requisition or PO.

IntermediateA weekendBuilds onNext.jsSupabaseResend
What you'll build

A logged-in tool where you import your item master, on-hand stock, and open POs, the agent computes which SKUs are at or below their reorder point, suggests an order quantity net of inbound and rounded to MOQ and pack size, flags items with no supplier or lead time, the buyer reviews and approves or edits each line, and you export draft requisitions or POs grouped by supplier as a clean CSV.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • An export of your item master (SKU, supplier, lead time, MOQ, pack size, min/max or reorder point)
  • An export of current on-hand stock
  • An export of open POs already on the way (CSV is fine)
  • Claude Code or any AI coding agent

The problem this kills

Somewhere in your business there's a planner or buyer who opens a giant stock spreadsheet every morning, scrolls down a few hundred rows, and tries to eyeball which items are getting low. They squint at on-hand columns, try to remember which POs are already on the way, do mental math against a reorder point that lives in a different tab, and decide what to buy today.

It works right up until it doesn't. A fast-moving SKU slips past the line on a busy day and you stock out — the one item a customer actually wanted, gone. Or the opposite: someone reorders a part that already has three pallets inbound, and now you're sitting on cash you didn't need to spend. The "system" is one person's attention, and attention runs out somewhere around row 200.

The math here isn't hard. It's just relentless, every single day, across every SKU, and it has to subtract what's already on order, respect minimum order quantities and pack sizes, and never suggest the same item twice. That's exactly the kind of dull, high-stakes arithmetic a computer should do — and a buyer should approve.

What you'll build

A simple internal web app for your purchasing team. You import three things: your item master (SKU, supplier, lead time, minimum/maximum or reorder point, MOQ, pack size), your current on-hand stock, and your open POs that are already on the way.

The tool runs a replenishment pass: it finds every SKU at or below its reorder point, calculates how much you actually need to get back up to your target (max or order-up-to level), and then subtracts the quantity already inbound so you never double-order. It rounds the result up to your pack size and respects each supplier's MOQ. Items with no supplier or no lead time get flagged instead of silently skipped. Items with enough stock already inbound are suppressed so they don't clutter the list.

The result is a clean, ranked suggestion list — what to buy, how much, from which supplier. The buyer reviews each line, edits a quantity if their judgment differs, and approves. Only approved lines become draft requisitions or POs, grouped by supplier, ready to export as a CSV in the exact columns your purchasing system expects.

What's inside the Implementation Plan

The plan is a complete, copy-paste runbook. You paste the whole thing into your AI coding agent and answer its questions as it builds.

It opens by interviewing you about your business. This is the part that makes the tool yours and not a generic template. Before it writes a single line of code, the agent asks how you replenish today, what your SKU and supplier codes actually look like, whether you plan by reorder point or min/max, how you handle MOQ and pack rounding, what your typical and peak order volumes are, and where the messy exceptions live. It reflects a short tailored spec back to you, you give it a thumbs-up, and only then does it build — shaping the data model, the calculations, and every later step around how you actually buy.

From there the plan walks you through, step by step: setting up the database and login, importing your three data files, building the replenishment calculation (net of inbound, rounded to pack and MOQ), the buyer's review-and-approve screen, the supplier-grouped draft-order export, and the email digest that tells the buyer their list is ready. Each step ends with a ready-to-paste prompt.

The governance it includes (this is the point)

This isn't a spreadsheet macro. It's a governed internal tool, and the guardrails are built in from the start:

  • Login so only your team can use it.
  • Row-level security so each organization only ever sees its own items, stock, and orders.
  • A hard human-in-the-loop approval gate — the AI suggests, a buyer reviews and approves or edits, and nothing becomes a requisition or PO until a person signs off. Suggestions never auto-order.
  • A complete audit trail — who ran the replenishment pass, who approved which lines, what quantity they changed it to, and when.
  • Duplicate guards — the same SKU can't be suggested twice in one run, and an already-open suggestion is respected, so you never accidentally order the same thing twice.

Who it's for

Inventory planners and buyers who today decide what to reorder by eyeballing a stock spreadsheet — and occasionally miss an item or double-order one. If you manage replenishment across more SKUs than one person can reliably scan every day, this turns that daily guesswork into a fast, defensible, approve-it-and-go routine.

You've got this — paste the first prompt and let the agent interview you.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.