RS

    Retail Sellout Analytics

    by Hudaif

    1

    Clean messy retail spreadsheets and generate store clusters, sales forecasts, and stock-risk reports using Python.

    Free

    Security scanned

    Works with the AI Agents you already use

    RS

    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

    FileDescriptionKey Insight
    clean_sales.csvTidy fact table1,240 rows validated, matching source totals.
    store_clusters.csvStore segments3 clusters identified: Fast Movers (12), Core Steady (45), Overstocked (8).
    forecast.csv6-week projectionCategory "Electronics" shows a 12% projected growth (MAPE: 8.4%).
    stock_risk.csvInventory health14 SKUs flagged as High Risk (Score 5-6) due to zero sales in 2 weeks.
    report.mdExecutive summarySuggests immediate markdowns for Cluster 3 and reorders for Laptops.

    Forecast Accuracy (Backtested)

    CategoryBest ModelMAPEHorizon
    ElectronicsHolt's Trend8.4%6 Weeks
    Apparel4-Week MA12.1%6 Weeks
    HomeNaive15.5%6 Weeks

    Next steps

    1. Review output/report.md for specific store-transfer recommendations.
    2. Use output/stock_risk.csv to identify which 14 SKUs require immediate markdown.
    3. Import clean_sales.csv into Power BI or Tableau for further visualization.

    clean_sales.csv

    CSV · data export

    Generated

    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

    1. Inspect the raw file to identify store, category, week, and sales columns.
    2. Clean the data using clean_data.py to produce a validated clean_sales.csv.
    3. Analyze by running the full pipeline or individual scripts for clustering, forecasting, and stock risk.
    4. Review the report.md and data_quality.txt to 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Creator

    Hudaif

    Hudaif

    Frequently Asked Questions

    The skill is a Python-based pipeline designed for any AI agent with a code execution environment. It works seamlessly with ChatGPT (Advanced Data Analysis), Claude (Analysis Tool), or local agents running Python 3.9+.

    This skill specifically targets the 'messy' data common in retail, such as merged cells, subtotal rows, and non-standard layouts. It uses hard-coded logic to restructure these into tidy formats, preventing the hallucinations often seen when asking an LLM to clean data manually.

    You will receive a suite of modular Python scripts (including data cleaning, clustering, and forecasting modules), a documentation guide, and a sample template to ensure your raw retail data maps correctly to the pipeline.

    The clustering and forecasting engines require a baseline of data to ensure statistical significance: a minimum of 6 unique store locations and at least 7 weeks of historical sales data are needed to generate reliable results.

    No, this skill is designed for privacy and speed; it processes all data locally within your agent's environment. It does not require external API keys or cloud connections to perform the clustering or forecasting.

    Yes, the forecasting module automatically backtests multiple models (Naive, Moving Average, and Holt’s Trend) and selects the one with the lowest Mean Absolute Percentage Error (MAPE) specifically for your dataset.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    Free