- Home
- Skills
- Workflow Automation
- Xlookup Retail Sales Intelligence
More screenshots
Works with the AI Agents you already use
Xlookup Retail Sales Intelligence
Automate Excel XLOOKUP enrichment across raw sales logs, product catalogs, and supplier tables—outputting QA reports, pivot workbooks, SQLite/PostgreSQL storage, and an interactive Plotly HTML dashboard.
$8
Xlookup Retail Sales Intelligence
Example session with this skill installed
I have Retail_Sales_RAW.xlsx (200 transactions missing Product_Name, Category, Unit_Price, and Total_Sales), along with Product_Lookup.xlsx and Supplier_Lookup.xlsx. Validate the schemas, enrich every transaction with XLOOKUP joins, load the cleaned table into SQLite (retail_sales.db), and generate the QA Excel workbooks and interactive HTML dashboard.
- Read your context and instructions
- Compiled the xlookup retail sales
- Generated the data export
XLOOKUP Retail Sales Enrichment & Reporting Complete
Validated all schemas (--validate-only passed) and enriched
200 retail transactions (2025-01-02 to 2025-12-29, 2,265 units sold) from Retail_Sales_RAW.xlsx against Product_Lookup.xlsx (15 SKUs) and Supplier_Lookup.xlsx (6 suppliers). All output files have been saved cleanly to your output directory.
Verified Enrichment & Revenue Summary
| Audit Metric / KPI | Result | Output Source |
|---|---|---|
| Before → After QA Audit | Recovered 200 / 200 missing Product_Name, Category, Unit_Price, and Total_Sales fields (0 → 200 usable records) | Data_Quality_Comparison sheet |
| Total Net Revenue | $849,307.65 across 200 transactions and 2,265 units (net of item Discount_%) | retail_sales_cleaned.xlsx |
| Regional Performance | East leads at $245,985.35 (28.96%), followed by South ($235,648.60, 27.75%), North ($196,693.40, 23.16%), and West ($170,980.30, 20.13%) | Revenue_by_Region sheet |
| Top Product & Category | Desktop PC ($260,190.00, 30.64%) & Laptop Pro ($166,452.00, 19.60%); Electronics category accounts for $731,385.90 (86.12%) | Revenue_by_Product / Revenue_by_Category |
| Peak Sales Month | October 2025 (2025-10) at $128,878.50 | Monthly_Revenue_Trend sheet |
| SQL Warehouse Table | Loaded 200 enriched rows with supplier & country columns into table retail_sales_cleaned | retail_sales.db |
Generated Deliverables
retail_sales_cleaned.xlsx— Currency-formatted ledger ($#,##0.00) includingSupplier_Name,Country,Discount_%, and netTotal_Sales.retail_sales_insights_report.xlsx— 5-sheet Excel report (Data_Quality_Comparison,Revenue_by_Region,Revenue_by_Product,Revenue_by_Category,Monthly_Revenue_Trend).retail_sales_dashboard.html— Standalone dark-mode Plotly dashboard featuring Before/After QA audit cards, KPI tiles, liveRegion&Categorydropdown filters, and 3 interactive charts.SalesTable.csv— Flat CSV table ready for downstream BI orstreamlit run streamlit_app.py.
Recommended Next Steps
- Open
retail_sales_dashboard.htmlin any browser to filter revenue byRegionorCategory. - Review
Data_Quality_Comparisoninsideretail_sales_insights_report.xlsxto confirm100%lookup coverage across every SKU. - (Optional) Run
streamlit run streamlit_app.pyfor an interactive local Streamlit view backed bySalesTable.csv.
Retail_Sales_RAW.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
Stop wasting hours on fragile manual XLOOKUP/VLOOKUP formulas and spreadsheet cleanup. This skill automates the enrichment of raw retail transaction files (.csv or .xlsx) by joining them against product and supplier catalogs, calculating net revenue with discounts, and generating audit-ready Excel workbooks and an interactive HTML dashboard.
What it does
- Data enrichment joins raw transaction files against a Product Lookup table (
Product_ID) and optional Supplier Lookup table (Supplier_ID) to populate missingProduct_Name,Category,Unit_Price,Discount_%,Supplier_Name, andCountryfields. - Financial calculation computes net
Total_Sales = Quantity * Unit_Price * (1 - Discount_% / 100)while preserving existing numeric values. - Reporting automation exports a currency-formatted
retail_sales_cleaned.xlsxledger alongside a 5-sheetretail_sales_insights_report.xlsx(Data_Quality_Comparisonplus ranked summaries by Region, Product, Category, and Month). - Quality assurance tracks exact
BEFOREvsAFTERmissing-field recovery counts so you can verify 100% lookup coverage. - Interactive visualization generates a standalone dark-mode Plotly HTML dashboard (
retail_sales_dashboard.html) with live Region & Category filters and KPI cards, plus an optionalstreamlit_app.pyview.
How it works
- Schema validation checks raw sales and lookup files (
--validate-only) to confirm required join keys and columns (auto-mapping aliases likeOrderID,TxnID,Qty,Price,Total). - Pipeline execution runs
scripts/run_xlookup_pipeline.pyto deduplicate lookup keys, enrich missing columns, and calculate net revenue. - Database loading optionally writes the
retail_sales_cleanedtable to SQLite or PostgreSQL via--db-url. - Export generation writes
SalesTable.csv, both formatted.xlsxworkbooks, andretail_sales_dashboard.htmlinto--output-dir.
Frameworks & tools
Built with Python using pandas and openpyxl for ETL and Excel formatting, SQLAlchemy / sqlite3 for SQL loading, and Plotly (plus optional Streamlit) for browser dashboards.
Why this beats prompting it yourself
One-off prompts frequently break across mismatched header names, duplicate lookup rows, or Excel currency formatting. This skill runs a tested, deterministic CLI pipeline that validates schemas upfront and outputs consistent Excel reports and dashboards every time.
Use cases
- Transaction enrichment when raw POS/ERP exports only log
Product_IDandQuantitywithout names, categories, or unit prices. - Retail revenue audits calculating net sales after item-level discount percentages across regions.
- Stakeholder reporting generating standalone interactive HTML dashboards with Before/After data-quality scorecards.
- Database seeding transforming incomplete
.csvor.xlsxexports into a structured SQLretail_sales_cleanedtable.
Known limitations
Requires Python with pandas, openpyxl, and SQLAlchemy installed via requirements.txt (streamlit and plotly optional for Streamlit mode). Raw input files must include Transaction_ID, Date, Product_ID, Quantity, and Region columns, and the HTML dashboard fetches Plotly.js from CDN when opened in a browser.
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.10+pandas = 2.0.0openpyxl = 3.1.0SQLAlchemy = 2.0.0Local filesystem read/write
- Optional
- Streamlit (for live UI app)Plotly (for Streamlit chartsPostgreSQLorSQLite database
Raw sales files need 5 columns: Transaction_ID, Date, Product_ID, Quantity, and Region (OrderID/TxnID/Qty map automatically). Run pip install -r requirements.txt first, then run --validate-only to check Product_Lookup join keys.
Permissions
File Scopes
Read access is required to ingest your local sales logs and reference lookup tables cleanly via Pandas and OpenPyXL. Write access is needed to save the enriched CSV, multi-sheet formatted Excel reports, and standalone HTML dashboard into your chosen `--output-dir`. Database permissions are only used if you explicitly pass a `--db-url` connection string to warehouse cleaned records into SQLite or PostgreSQL. No telemetry or external data uploads are performed.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.