More screenshots

    Works with the AI Agents you already use

    Automated Revenue Analytics Pipeline

    by nwafor lawrence

    1

    Automate retail data cleaning, SQL warehousing, and interactive HTML dashboard generation from messy CSV/Excel files.

    Free

    Security scanned
    Automated Revenue Analytics Pipeline

    Automated Revenue Analytics Pipeline

    Example session with this skill installed

    clean raw_sales_june.xlsx (fix product typos, mixed dates, currency strings, and duplicates), load the records into a local SQLite database, and generate the KPI summary and interactive revenue dashboard in my current folder.

    • Read your context and instructions
    • Compiled the automated revenue analytics
    • Generated the data export

    Summary

    Cleaned and standardized raw_sales_june.xlsx via scripts/pipeline.py, resolved product typos, mixed date formats, unit-price strings, and duplicate Order_ID rows, recalculated Total = Quantity * Price, upserted the validated records into a local SQLite database (sales_warehouse.db), and generated an interactive executive HTML dashboard in your current folder.

    Pipeline Audit & Executive KPI Summary (analysis_results.csv)

    MetricValueDetails
    Rows processed10 → 82 invalid/duplicate rows removed before upsert
    total_revenue402,789.77Net revenue across sales_data table
    top_productRice41.0% of total revenue
    top_regionEast50.1% of total revenue
    weakest_regionWestLowest regional revenue share
    peak_month2025-04Highest monthly revenue (84,000.00)
    lowest_month2025-03Lowest monthly revenue (25,411.41)

    Sample Cleaned Records (cleaned_sales.csv)

    Order_IDDateProductRegionQuantityPriceTotal
    ORD-10012025-01-23GarriEast123,058.7836,705.36
    ORD-10022025-02-13BeansSouth103,384.0533,840.50
    ORD-10032025-03-09OilNorth92,823.4925,411.41
    ORD-10042025-04-18RiceEast204,200.0084,000.00

    Generated Deliverables (Current Folder)

    • sales_analytics_dashboard.html — Standalone interactive Plotly dashboard (product revenue bar chart, monthly revenue trend, region share doughnut, and top 10 transactions table)
    • cleaned_sales.csv — Deduplicated, date-sorted sales records with recalculated totals
    • analysis_results.csv — SQL-computed KPI summary table
    • sales_warehouse.db — Local SQLite warehouse (sales_data table with idempotent upsert by order_id)

    Next Steps

    1. Open sales_analytics_dashboard.html in your browser to explore regional, product, and monthly revenue breakdowns.
    2. When next month's sales file arrives, run the skill again against the new file to upsert new orders into sales_warehouse.db without duplicating existing Order_ID records.

    raw_sales_june.xlsx

    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

    Cleaning retail data manually is a recipe for broken reports and stale dashboards. This skill automates the entire ingestion path from messy spreadsheets to a production-ready SQL warehouse and interactive HTML visualization.

    What it does

    • Messy Data Cleaning handles fuzzy product typo repair, mixed date format normalization, and currency string stripping.
    • SQL Data Warehousing upserts cleaned records into SQLite or PostgreSQL using SQLAlchemy to ensure no duplicate orders.
    • Automated Recalculation fixes corrupt revenue totals by deterministically computing Quantity * Price.
    • Interactive Dashboards generates a standalone Plotly HTML file containing KPI cards, trend lines, and regional performance charts.
    • Schema Mapping translates varied header aliases like Qty or Transaction Date into a standardized internal schema.

    How it works

    1. Pre-flight Validation verifies input CSV or Excel headers against the required schema without writing data.
    2. Execution runs the Python pipeline to clean data and upsert records into the target database.
    3. Analytics Generation computes SQL aggregations for top products, peak months, and regional performance.
    4. Output Verification saves the cleaned CSV, the summary analysis, and the interactive dashboard to the specified directory.

    Frameworks & tools

    Built with Python 3, Pandas for data manipulation, and SQLAlchemy 2.0 for database abstraction. Visualizations are rendered via Plotly. Supports SQLite (default) and PostgreSQL backends.

    Why this beats prompting it yourself

    Prompting an LLM to clean data often leads to hallucinated rows or truncated outputs for large files. This skill provides a deterministic Python engine that handles thousands of rows reliably while ensuring SQL integrity via upserts.

    Use cases

    • Automating weekly retail sales ingestion from fragmented CSV exports.
    • Syncing Excel-based order history into a centralized PostgreSQL database.
    • Generating executive-ready interactive dashboards for regional sales reviews.
    • Repairing historical sales records with inconsistent date formats and currency symbols.

    Known limitations

    Requires specific columns like Order_ID and Date to function. Input files must be in .csv, .xls, or .xlsx format. Standard Python environment with pip installed is required.

    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 3.9+pip
    Optional
    PostgreSQL
    orSQLite
    psycopg2-binary (only needed for PostgreSQL)

    Runs locally with zero API keys required. Uses local SQLite by default and writes cleaned_sales.csv, analysis_results.csv, sales_warehouse.db, and sales_analytics_dashboard.html to your working folder.

    Permissions

    Terminal / Shell
    Write Files
    Environment Variables
    Read Files

    File Scopes

    *.csv
    *.xlsx
    *.xls
    *.db
    *.html

    Reads input CSV/Excel sales files, executes scripts/pipeline.py via Python in the terminal, optionally reads REVENUE_INPUT_PATH, REVENUE_OUTPUT_DIR, or DATABASE_URL environment variables, and writes cleaned_sales.csv, analysis_results.csv, sales_warehouse.db, and sales_analytics_dashboard.html to your working folder.

    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the end-to-end process of transforming fragmented CSV/Excel exports into a structured SQL database and professional Plotly dashboards, eliminating the manual errors and hallucinations common with manual LLM prompting.

    The pipeline supports both SQLite (ideal for local use) and PostgreSQL (for production environments), using SQLAlchemy to handle upserts that prevent duplicate order entries.

    The skill includes a robust schema mapping feature that recognizes common header aliases (like 'Qty' vs 'Quantity') and normalizes mixed date formats and currency strings automatically.

    You will receive the complete Python-based skill package, including the data cleaning engine, the SQL integration layer, and the dashboard generation templates, ready for deployment in your AI agent environment.

    While the skill is highly flexible, input files must be in .csv, .xls, or .xlsx format and contain core fields like Order_ID and Date to ensure accurate tracking and visualization.

    Yes, the generated Plotly dashboard is a standalone HTML file, making it easy to share via email, host on a web server, or view offline without needing a live database connection.

    It works with any products and regions in your spreadsheet. By default, the pipeline keeps all non-empty product and region names while cleaning typos, dates, prices, and duplicates. Only pass --strict-catalog if you intentionally want to restrict records to the 5-product sample catalog.

    No. All data cleaning, deduplication, SQLite storage, and dashboard generation run 100% locally on your machine with zero API keys or external uploads required.

    New in Business & Operations

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

    Free