Retail Intelligence System

    by Moazam M

    1

    Analyze retail sales CSV files, generate product and category performance reports, forecast 14 days of demand, backtest forecasting models, and calculate inventory reorder recommendations.

    Free

    Security scanned

    Works with the AI Agents you already use

    Retail Intelligence System

    Example session with this skill installed

    Run the Retail Intelligence System on the bundled retail sales dataset. Validate the data, generate a full sales performance report, forecast demand for the next 14 days, compare the Random Forest model against simple forecasting baselines, and calculate inventory reorder recommendations using a 7 day lead time and 95% service level. Explain the results and highlight the limitations.

    • Read your context and instructions
    • Compiled the retail intelligence system
    • Generated the data export

    Retail Intelligence Report

    1. Dataset Validation

    The bundled dataset contains synthetic retail sales records.

    MetricResult
    Total records4,380
    Products12
    Categories7
    Historical period365 days
    Date rangeJan 1 to Dec 31, 2025
    Validation warningsNone

    2. Business Performance

    MetricResult
    Total revenueRs. 5,957,610
    Total profitRs. 1,213,830
    Units sold25,132
    Products12
    Average daily revenueRs. 16,322.22

    Top products by revenue

    ProductRevenueProfit
    Cooking OilRs. 909,150Rs. 132,240
    EggsRs. 723,300Rs. 120,550
    MilkRs. 714,120Rs. 129,840
    RiceRs. 696,500Rs. 139,300
    TeaRs. 613,800Rs. 109,120

    Grocery is the leading category, contributing 33.2% of total revenue.

    3. Demand Forecasting

    The system generated a 14 day demand forecast using a Random Forest model.

    Backtesting results

    ModelMAERMSEWAPE
    Random Forest1.892.4635.5%
    Weekday mean1.912.5335.8%
    Seasonal naive2.543.3447.6%

    The Random Forest achieved an MAE only 0.8% lower than the weekday mean baseline. This is not a meaningful improvement. Forecasts should be treated as estimates, not exact demand targets.

    4. Inventory Recommendations

    Using the configured lead time and service level, the system identified:

    Inventory statusProducts
    Reorder7
    Watch2
    Healthy3

    Products requiring reorder include Bread, Tea, Sugar, Eggs, Cooking Oil, Milk, and Biscuits.

    The system also calculates reorder points, safety stock, days of stock coverage, and suggested order quantities.

    5. Generated Files

    The report produces CSV exports

    • product_performance.csv
    • category_performance.csv
    • monthly_performance.csv
    • insights.csv
    • forecast.csv
    • forecast_summary.csv
    • backtest.csv
    • inventory.csv

    Important Limitations

    The bundled dataset is synthetic, not real business data. Results demonstrate the system's functionality and should not be treated as evidence of real business performance.

    Forecasting requires at least 134 days of historical data. The model does not account for promotions, holidays, weather, or other external factors.

    Next steps: Validate the recommendations against actual supplier lead times and stock records before making purchasing decisions.

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

    What makes this useful

    Instead of relying on manual calculations or unsupported estimates, this skill runs actual Python code against your sales CSV files.

    It provides repeatable calculations, model evaluation against simple baselines, and downloadable reports. It also clearly reports forecasting limitations so users can make informed decisions.

    Requires 134+ days of data for forecasting. No support for holidays or promos. Supports only 0.90, 0.95, 0.99 service levels. Inventory requires Stock_Remaining column.

    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 5 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill requires a CSV file with historical daily sales including columns for Date, Product_ID, Quantity, Unit_Price, and Unit_Cost. For the forecasting engine to function accurately, you must provide at least 134 days of consecutive sales history.

    Unlike simple LLM prompts, this skill uses a localized Random Forest model and rigorous backtesting (MAE, RMSE, WAPE) to ensure predictions are statistically grounded. It prevents 'data leakage' and performs precise safety stock calculations that generic AI models often hallucinate.

    The system is built on Python 3.10+ and is compatible with any AI agent or platform that supports Python environments and standard libraries like pandas and scikit-learn. It is designed to be easily integrated into custom agentic workflows via a command-line interface.

    You will receive the full source code for the analysis and forecasting engine, documentation on CSV formatting, and the logic modules for inventory reordering and backtesting. The purchase includes the core logic required to run the system locally or within your agent's environment.

    Currently, the model focuses on historical sales patterns and temporal trends; it does not ingest external variables like promotional calendars or weather data. If your sales are heavily influenced by one-off events, the backtesting feature will help you identify which SKUs remain predictable.

    The skill generates a 14-day demand forecast, but it also provides a 'Lead Time' parameter for inventory logic. This allows you to calculate reorder points and safety stock specifically tailored to how long it takes your suppliers to restock.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Free