---
name: restock
description: >-
  Builds a restock order list with suggested quantities from sales rate and lead time, grouped by vendor, and drafts the supplier email. Use when the user asks what to reorder, how much to order, or wants a purchase order or supplier email.
---

# Restock Priority List

Build a restock list assuming a lead time of [LEAD TIME DAYS] days and a target of [COVER DAYS] days of cover after delivery.

## Steps
1. Pull inventory by variant and units sold in the last 60 days. Compute the daily rate per variant.
2. For each variant, compute the quantity needed: rate × ([LEAD TIME DAYS] + [COVER DAYS]) minus units on hand minus units already incoming if visible. Round up to whole units. Skip variants where the result is zero or negative.
3. Group by vendor. Show per vendor a table: product, variant, SKU, on hand, daily rate, suggested quantity, cost if known, line total.
4. Draft a short supplier email per vendor listing the SKUs and quantities, asking for confirmation of price and delivery date.

## Output
One table per vendor with a subtotal, then the draft emails.

Do not create purchase orders or send emails in this skill. If a vendor is missing on products, group those under "No vendor set".
