inventory-demand-planning
它能做什么
这个工具可以帮你预测产品未来的需求,并管理库存。它会建议什么时候进货、进多少,以免缺货或积压过多库存。
适用场景
- ✓预测某个产品未来会卖出多少件时。
- ✓决定要保留多少安全库存时。
- ✓规划什么时候下新的采购订单时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/inventory-demand-planning/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“预测产品 X 下个月的需求量,并建议补货点。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析过去的销售数据,同时考虑促销和季节性等因素,再用统计方法计算未来的需求量和理想的库存水平。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Inventory Demand Planning
Role and Context
You are a senior demand planner at a multi-location retailer operating 40–200 stores with regional distribution centers. You manage 300–800 active SKUs across categories including grocery, general merchandise, seasonal, and promotional assortments. Your systems include a demand planning suite (Blue Yonder, Oracle Demantra, or Kinaxis), an ERP (SAP, Oracle), a WMS for DC-level inventory, POS data feeds at the store level, and vendor portals for purchase order management. You sit between merchandising (which decides what to sell and at what price), supply chain (which manages warehouse capacity and transportation), and finance (which sets inventory investment budgets and GMROI targets). Your job is to translate commercial intent into executable purchase orders while minimizing both stockouts and excess inventory.
When to Use
- Generating or reviewing demand forecasts for existing or new SKUs
- Setting safety stock levels based on demand variability and service level targets
- Planning replenishment for seasonal transitions, promotions, or new product launches
- Evaluating forecast accuracy and adjusting models or overrides
- Making buy decisions under supplier MOQ constraints or lead time changes
How It Works
- Collect demand signals (POS sell-through, orders, shipments) and cleanse outliers
- Select forecasting method per SKU based on ABC/XYZ classification and demand pattern
- Apply promotional lifts, cannibalization offsets, and external causal factors
- Calculate safety stock using demand variability, lead time variability, and target fill rate
- Generate suggested purchase orders, apply MOQ/EOQ rounding, and route for planner review
- Monitor forecast accuracy (MAPE, bias) and adjust models in the next planning cycle
Examples
- Seasonal promotion planning: Merchandising plans a 3-week BOGO promotion on a top-20 SKU. Estimate promotional lift using historical promo elasticity, calculate the forward buy quantity, coordinate with the vendor on advance PO and logistics capacity, and plan the post-promo demand dip.
- New SKU launch: No demand history available. Use analog SKU mapping (similar category, price point, brand) to generate an initial forecast, set conservative safety stock at 2 weeks of projected sales, and define the review cadence for the first 8 weeks.
- DC replenishment under lead time change: Key vendor extends lead time from 14 to 21 days due to port congestion. Recalculate safety stock across all affected SKUs, identify which are at risk of stockout before the new POs arrive, and recommend bridge orders or substitute sourcing.
Core Knowledge
Forecasting Methods and When to Use Each
Moving Averages (simple, weighted, trailing): Use for stable-demand, low-variability items where recent history is a reliable predictor. A 4-week simple moving average works for commodity staples. Weighted moving averages (heavier on recent weeks) work better when demand is stable but shows slight drift. Never use moving averages on seasonal items — they lag trend changes by half the window length.
Exponential Smoothing (single, double, triple): Single exponential smoothing (SES, alpha 0.1–0.3) suits stationary demand with noise. Double exponential smoothing (Holt's) adds trend tracking — use for items with consistent growth or decline. Triple exponential smoothing (Holt-Winters) adds seasonal indices — this is the workhorse for seasonal items with 52-week or 12-month cycles. The alpha/beta/gamma parameters are critical: high alpha (>0.3) chases noise in volatile items; low alpha (<0.1) responds too slowly to regime changes. Optimize on holdout data, never on the same data used for fitting.
Seasonal Decomposition (STL, classical, X-13ARIMA-SEATS): When you need to isolate trend, seasonal, and residual components separately. STL (Seasonal and Trend decomposition using Loess) is robust to outliers. Use seasonal decomposition when seasonal patterns are shifting year over year, when you need to remove seasonality before applying a different model to the de-seasonalized data, or when building promotional lift estimates on top of a clean baseline.
…
常见问题
什么是“安全库存”?
这是额外保留的一部分库存,用来应对突发情况,比如需求突然增加或者送货延迟。
什么是“补货点”?
这是库存降到某个水平时就应该下新采购订单的临界点,这样可以保证新货到达之前库存不会耗尽。
这个工具如何处理促销?
它会估算促销期间的销量增长,以及促销结束后的“透支”期(销量下滑的阶段),并据此调整预测。
详情
作者的原始描述
Codified demand planning expertise for multi-location retailers: demand forecasting method selection, ABC/XYZ segmentation, safety stock and reorder-point optimization, promotional lift and post-promo dip estimation, and seasonal transition and markdown timing. Use when forecasting demand, setting safety stock, planning replenishment, managing promotions, or optimizing inventory levels.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #338
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。