- Home
- Skills
- Business & Operations
- Automated Revenue Analytics Pipeline
More screenshots
Works with the AI Agents you already use
Automated Revenue Analytics Pipeline
Automate retail data cleaning, SQL warehousing, and interactive HTML dashboard generation from messy CSV/Excel files.
Free
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)
| Metric | Value | Details |
|---|---|---|
| Rows processed | 10 → 8 | 2 invalid/duplicate rows removed before upsert |
total_revenue | 402,789.77 | Net revenue across sales_data table |
top_product | Rice | 41.0% of total revenue |
top_region | East | 50.1% of total revenue |
weakest_region | West | Lowest regional revenue share |
peak_month | 2025-04 | Highest monthly revenue (84,000.00) |
lowest_month | 2025-03 | Lowest monthly revenue (25,411.41) |
Sample Cleaned Records (cleaned_sales.csv)
| Order_ID | Date | Product | Region | Quantity | Price | Total |
|---|---|---|---|---|---|---|
ORD-1001 | 2025-01-23 | Garri | East | 12 | 3,058.78 | 36,705.36 |
ORD-1002 | 2025-02-13 | Beans | South | 10 | 3,384.05 | 33,840.50 |
ORD-1003 | 2025-03-09 | Oil | North | 9 | 2,823.49 | 25,411.41 |
ORD-1004 | 2025-04-18 | Rice | East | 20 | 4,200.00 | 84,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 totalsanalysis_results.csv— SQL-computed KPI summary tablesales_warehouse.db— Local SQLite warehouse (sales_datatable with idempotent upsert byorder_id)
Next Steps
- Open
sales_analytics_dashboard.htmlin your browser to explore regional, product, and monthly revenue breakdowns. - When next month's sales file arrives, run the skill again against the new file to upsert new orders into
sales_warehouse.dbwithout duplicating existingOrder_IDrecords.
raw_sales_june.xlsx
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
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
QtyorTransaction Dateinto a standardized internal schema.
How it works
- Pre-flight Validation verifies input CSV or Excel headers against the required schema without writing data.
- Execution runs the Python pipeline to clean data and upsert records into the target database.
- Analytics Generation computes SQL aggregations for top products, peak months, and regional performance.
- 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
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 3.9+pip
- Optional
- PostgreSQLorSQLitepsycopg2-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
File Scopes
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.
What's inside
Frequently Asked Questions
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.