Retail Sellout Analytics
by Hudaif
Clean messy retail spreadsheets and generate store clusters, sales forecasts, and stock-risk reports using Python.
Free
Retail Sellout Analytics
Example session with this skill installed
Clean my retail sales in data.xlsx (wide format), run the full analysis pipeline with a 6-week horizon, and give me the summary report.
- Read your context and instructions
- Compiled the retail sellout analytics
- Generated the data export
I have processed your retail data through the analytics pipeline. The cleaning script handled the wide-to-long conversion and removed 3 subtotal rows. I then executed the clustering, forecasting, and stock-risk modules.
Retail Analysis Deliverables
| File | Description | Key Insight |
|---|---|---|
clean_sales.csv | Tidy fact table | 1,240 rows validated, matching source totals. |
store_clusters.csv | Store segments | 3 clusters identified: Fast Movers (12), Core Steady (45), Overstocked (8). |
forecast.csv | 6-week projection | Category "Electronics" shows a 12% projected growth (MAPE: 8.4%). |
stock_risk.csv | Inventory health | 14 SKUs flagged as High Risk (Score 5-6) due to zero sales in 2 weeks. |
report.md | Executive summary | Suggests immediate markdowns for Cluster 3 and reorders for Laptops. |
Forecast Accuracy (Backtested)
| Category | Best Model | MAPE | Horizon |
|---|---|---|---|
| Electronics | Holt's Trend | 8.4% | 6 Weeks |
| Apparel | 4-Week MA | 12.1% | 6 Weeks |
| Home | Naive | 15.5% | 6 Weeks |
Next steps
- Review
output/report.mdfor specific store-transfer recommendations. - Use
output/stock_risk.csvto identify which 14 SKUs require immediate markdown. - Import
clean_sales.csvinto Power BI or Tableau for further visualization.
clean_sales.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Retail sell-out data is often trapped in messy, unformatted Excel sheets with merged cells, subtotal rows, and inconsistent column headers. This skill provides a Python-based pipeline to clean raw weekly sales files and generate predictive insights without leaving your environment.
What it does
- Data cleaning automates the removal of subtotal rows, handles merged cells, and converts wide-format spreadsheets into tidy long-format CSVs.
- Store clustering segments retail outlets into profiles like Fast Movers or Declining/Overstocked using k-means based on growth, stock cover, and target achievement.
- Demand forecasting selects the best-performing model from Naive, Moving Average, or Holt’s Trend based on backtested MAPE for future weekly sales.
- Stock risk analysis scores inventory health from 0-6 to identify high-risk positions needing markdowns or transfers.
- Automated reporting synthesizes all CSV outputs into a Markdown management report covering category performance and inventory suggested actions.
How it works
- Inspect the raw file to identify store, category, week, and sales columns.
- Clean the data using
clean_data.pyto produce a validatedclean_sales.csv. - Analyze by running the full pipeline or individual scripts for clustering, forecasting, and stock risk.
- Review the
report.mdanddata_quality.txtto verify totals and interpret the business findings.
Frameworks & tools
Python 3.9+, Pandas, NumPy, Scikit-learn, and Openpyxl.
Why this beats prompting it yourself
Prompting an LLM to "analyze sales" often leads to hallucinated totals or shallow summaries. This skill uses verifiable Python logic to calculate stock-turn, backtest forecasts, and cap outliers at the 95th percentile, ensuring the math is reproducible and the data is ready for BI tools.
Use cases
- Auditing weekly retail performance across hundreds of mall locations.
- Identifying overstocked categories for end-of-season markdown planning.
- Generating a 6-week sales forecast for supply chain replenishment.
- Segmenting stores by volume and growth to tailor local marketing efforts.
Known limitations
Requires at least 6 stores for clustering and 7 weeks of history for forecasting. Does not support network-based API calls or external data enrichment.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 8 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Creator
Hudaif
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.