Amazon Inventory Forecast
FBA inventory intelligence — know exactly when to reorder and how much to order before you stock out or overstock.
Provide your sales data, lead time, and current stock levels. The agent calculates reorder points, EOQ, stockout risk windows, and storage fee exposure.
Commands
CODEBLOCK0
What Data to Provide
The agent works with:
- - SKU + sales data — "SKU: B-RED-LG, sold 240 units last 30 days, currently 180 units on hand"
- Lead time — "supplier takes 25 days to ship, FBA check-in adds 5 days"
- Storage cost — monthly FBA storage fee rate (standard or oversized)
- Unit cost — your landed cost per unit (for EOQ calculation)
- Seasonal notes — "Q4 demand doubles, Prime Day adds ~3x spike"
No integrations needed. Paste your data directly.
Workspace
Creates ~/amazon-inventory/ containing:
- -
skus.md — tracked SKUs with sales history and parameters - INLINECODE2 — generated forecast reports per SKU
- INLINECODE3 — stockout and overstock alert log
- INLINECODE4 — history of reorder recommendations made
Analysis Framework
1. Sales Velocity Calculation
- - Compute average daily sales from 30-day, 60-day, and 90-day windows
- Weight recent data more heavily: 30-day gets 50%, 60-day gets 30%, 90-day gets 20%
- Weighted daily sales = (30d avg × 0.5) + (60d avg × 0.3) + (90d avg × 0.2)
- Flag: high variance between windows — demand is trending up or down
- Flag: 30d velocity >20% above 90d average — demand acceleration detected
2. Lead Time Buffer Calculation
- - Total lead time = supplier processing + shipping transit + FBA check-in buffer
- Default FBA check-in buffer: 7 days (use 10 days during Oct–Dec peak season)
- Safety stock formula: Safety Stock = Z-score × σ(daily demand) × √(lead time)
- Conservative Z-score = 1.65 (95% service level); aggressive = 1.28 (90%)
- Minimum safety stock: 14 days of average daily sales
3. Reorder Point Formula
- - Reorder Point = (Average Daily Sales × Total Lead Time) + Safety Stock
- Example: 8 units/day × 30 days lead time + 56 units safety stock = 296 units
- Express reorder point both in units and in days-of-stock-remaining
- Show the calculation explicitly so sellers can verify inputs
4. EOQ Formula (Economic Order Quantity)
- D = annual demand (units/year)
- S = order cost per purchase order (shipping + prep + admin, typically $50–$200)
- H = annual holding cost per unit (FBA storage fee × 12 + opportunity cost)
- - Round EOQ up to nearest full case pack quantity
- Show sensitivity analysis: EOQ at ±20% demand change
5. Storage Fee Avoidance
- - FBA long-term storage fee triggers: units stored >365 days
- Q4 surcharge period: Oct 1 – Dec 31 (higher monthly rates)
- Q4 inventory removal deadline: recommend sending final Q4 shipment no later than Sept 15
- Overstock flag: current inventory > 180 days of supply at current velocity
- Compute projected months-of-supply: Current Stock / (Daily Sales × 30)
6. Demand Seasonality Adjustments
- - Apply seasonal multipliers when user provides them
- Common multipliers: Q4 holiday = 1.5–3x, Prime Day = 2–4x (48-hour window), Back-to-school = 1.2–1.5x
- Adjusted forecast = base velocity × seasonal multiplier
- For Q4 planning: build to cover Oct 1 – Dec 31 + post-holiday return buffer
- Flag: if current stock will not cover a known seasonal spike, surface reorder urgency
Reorder Decision Output
Every forecast check shows per SKU:
| SKU | Daily Sales | Days of Stock | Reorder Point | EOQ | Status |
|---|
| ... | ... | ... | ... | ... | OK / REORDER NOW / URGENT |
Status levels:
- - OK — days of stock > reorder point days
- REORDER SOON — within 14 days of reorder point
- REORDER NOW — at or below reorder point
- URGENT — less than lead time days of stock remaining (stockout imminent)
Rules
- 1. Always collect lead time before computing reorder points — the formula is useless without it
- Never recommend a reorder quantity below one full case pack — partial cases create receiving complications at FBA
- Flag all assumptions explicitly — if the user has not provided 90-day sales data, state which averages were used
- Apply Q4 seasonality adjustments automatically for any forecast that spans October–December
- Show the full math for every EOQ and reorder point calculation — sellers need to verify with their own numbers
- Distinguish between units currently at FBA and units in transit — both count toward days-of-supply
- Save updated forecasts to
~/amazon-inventory/forecasts/ on every forecast save call
Amazon Inventory Forecast
FBA库存智能——精确掌握何时补货及补货数量,避免断货或库存积压。
提供您的销售数据、交货周期和当前库存水平。智能助手将计算补货点、经济订货量、断货风险窗口以及仓储费用风险。
指令
forecast add # 添加SKU并录入销售数据和交货周期
forecast check # 对所有追踪SKU执行预测更新
forecast reorder point # 计算每个SKU的补货点
forecast eoq # 计算经济订货量
forecast stockout risk # 识别存在断货风险的SKU
forecast overstock risk # 识别存在长期仓储费风险的SKU
forecast report # 完整库存健康报告
forecast save # 将所有SKU数据和预测保存至工作区
所需数据
智能助手处理以下数据:
- - SKU + 销售数据 — SKU: B-RED-LG,过去30天销售240件,当前库存180件
- 交货周期 — 供应商发货需25天,FBA入库需5天
- 仓储成本 — 月度FBA仓储费率(标准件或超大件)
- 单位成本 — 每件到岸成本(用于经济订货量计算)
- 季节性备注 — Q4需求翻倍,Prime Day约增长3倍
无需集成,直接粘贴数据即可。
工作区
创建 ~/amazon-inventory/ 目录,包含:
- - skus.md — 追踪的SKU及其销售历史与参数
- forecasts/ — 每个SKU的预测报告
- alerts.md — 断货与积压预警日志
- reorder-log.md — 补货建议历史记录
分析框架
1. 销售速度计算
- - 基于30天、60天和90天窗口计算日均销量
- 近期数据权重更高:30天占50%,60天占30%,90天占20%
- 加权日均销量 = (30天均值 × 0.5) + (60天均值 × 0.3) + (90天均值 × 0.2)
- 标记:窗口间差异较大——需求呈上升或下降趋势
- 标记:30天速度高于90天均值20%以上——检测到需求加速
2. 交货周期缓冲计算
- - 总交货周期 = 供应商处理 + 运输时间 + FBA入库缓冲
- 默认FBA入库缓冲:7天(10月至12月旺季使用10天)
- 安全库存公式:安全库存 = Z值 × σ(日均需求) × √(交货周期)
- 保守Z值 = 1.65(95%服务水平);激进Z值 = 1.28(90%)
- 最低安全库存:14天日均销量
3. 补货点公式
- - 补货点 = (日均销量 × 总交货周期) + 安全库存
- 示例:8件/天 × 30天交货周期 + 56件安全库存 = 296件
- 补货点以件数和剩余库存天数两种方式呈现
- 明确展示计算过程,便于卖家验证输入数据
4. 经济订货量公式
- D = 年需求量(件/年)
- S = 每笔采购订单成本(运费+预处理+管理费,通常$50–$200)
- H = 每件年持有成本(FBA仓储费×12 + 机会成本)
- - 经济订货量向上取整至最近整箱数量
- 展示敏感性分析:需求变化±20%时的经济订货量
5. 仓储费规避
- - FBA长期仓储费触发条件:存储超过365天的商品
- Q4附加费期间:10月1日至12月31日(月度费率更高)
- Q4库存发货截止日期:建议最迟9月15日发出最后一批Q4货物
- 积压标记:当前库存按当前速度可供应超过180天
- 计算预计供应月数:当前库存 / (日均销量 × 30)
6. 需求季节性调整
- - 用户提供季节性乘数时自动应用
- 常见乘数:Q4假日 = 1.5–3倍,Prime Day = 2–4倍(48小时窗口),返校季 = 1.2–1.5倍
- 调整后预测 = 基础速度 × 季节性乘数
- Q4规划:覆盖10月1日至12月31日 + 节后退货缓冲
- 标记:若当前库存无法覆盖已知季节性高峰,显示补货紧迫性
补货决策输出
每次 forecast check 显示每个SKU:
| SKU | 日均销量 | 库存天数 | 补货点 | 经济订货量 | 状态 |
|---|
| ... | ... | ... | ... | ... | 正常 / 立即补货 / 紧急 |
状态等级:
- - 正常 — 库存天数 > 补货点天数
- 即将补货 — 距补货点14天内
- 立即补货 — 达到或低于补货点
- 紧急 — 剩余库存天数少于交货周期(即将断货)
规则
- 1. 计算补货点前必须收集交货周期——无此数据公式无效
- 建议补货数量不得低于一箱整箱——部分箱装会导致FBA收货问题
- 明确标注所有假设——若用户未提供90天销售数据,需说明使用了哪些平均值
- 对任何覆盖10月至12月的预测自动应用Q4季节性调整
- 每次经济订货量和补货点计算均展示完整数学过程——卖家需与自身数据核对
- 区分FBA现有库存与在途库存——两者均计入供应天数
- 每次调用 forecast save 时将更新后的预测保存至 ~/amazon-inventory/forecasts/