AI Agent Hub
Back to skills
Supply Chain Demand Forecasting and Inventory Optimization icon

Supply Chain Demand Forecasting and Inventory Optimization

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_ade1c2ac/supply-chain-demand-forecast into your AI assistant.

About this skill

Problem Context

When operations teams have date-level sales data but need answers like next-month demand, reorder timing, and high-risk SKUs, ad-hoc spreadsheets can easily lead to stockouts or excess inventory. This skill targets CSV/Excel sales records and turns demand forecasting into a repeatable analysis workflow.

How It Works

Input files usually include date, sku, and sales, with optional fields such as price, promotion, stock, and lead_time. The workflow starts with data quality checks for missing values, time-series continuity, outliers, and seasonality, then produces cleaned_data.csv. Forecasting can select methods such as Prophet, XGBoost, or LightGBM, with Prophet as the default when data volume is uncertain and seasonal or holiday effects matter. Results include confidence intervals in forecast_results.csv and an interactive chart. If inventory parameters are provided, it can also estimate safety stock, reorder point ROP, and EOQ, then export replenishment recommendations. The final HTML report summarizes historical trends, decomposition, model comparison, MAPE, MAE, RMSE, and high-risk SKUs.

Boundaries and Caveats

It works best with at least 12 continuous time points and a clear target such as a SKU, category, or total demand. If missing data is heavy, outliers may reflect real business events, or MAPE remains high, the outputs should be reviewed with promotions, holidays, production stops, or channel changes in mind rather than treated as final decisions.

Use Cases

  • A retail operator has monthly store sales CSV files and wants to decide whether a SKU needs extra stock next quarter.
  • A supply chain analyst has 24 months of sales and promotion flags and needs to compare Prophet versus XGBoost forecast errors.
  • A planner has lead time and safety stock targets and needs to generate reorder points and replenishment recommendations.
  • A data engineer wants to turn historical demand cleaning, outlier checks, and HTML reporting into a reusable script workflow.

Best For

  • A supply chain specialist handling SKU replenishment plans, who needs safety stock and reorder points during monthly reviews.
  • A retail operator working with store sales spreadsheets, who wants to identify items likely to face stockouts or slow sales next month.
  • A Python time-series analyst who wants to connect EDA, forecasting, and HTML reporting into one workflow.
  • A data analyst evaluating demand forecast models, who needs side-by-side MAPE, MAE, and RMSE results.