- Home
- Skills
- Research & Analysis
- Fix Your Messy Sales Data Free: Health Score & Clean CSV
More screenshots
Works with the AI Agents you already use
Fix Your Messy Sales Data Free: Health Score & Clean CSV
by Vincent
Your AI agent checks a messy CSV, scores its health from 0 to 100, fixes only what you approve, and tells you what the data is ready for.
Free
Fix Your Messy Sales Data Free: Health Score & Clean CSV
Example session with this skill installed
Here's our online shop export, ecommerce_orders_messy.csv. Before I do anything with it, can you check how clean it is and fix what's safe to fix?
- Read your context and instructions
- Compiled the fix your messy
- Generated the data export
Step 1: health check (before changing anything)
I checked ecommerce_orders_messy.csv (1,464 rows × 10 columns, comma-delimited, UTF-8). It looks like orders data.
Health Score: 49/100 (Poor)
| Area | Score |
|---|---|
| Completeness | 19.7 / 25 |
| Uniqueness | 7.7 / 20 |
| Validity | 10.7 / 25 |
| Consistency | 0 / 15 |
| Plausibility | 10.8 / 15 |
Here's how I read your columns. Please confirm or correct:
| Role | Column | Confidence |
|---|---|---|
| Date | Order Date | high |
| Amount | Amount | high |
| Quantity | Qty | high |
| Product | Product | medium |
| Category | Category | high |
| Customer ID | Customer ID | high |
| Region | City | medium |
| Order ID | Order ID | medium |
The biggest problems
40 exact duplicate rows (2.7%, they inflate your totals),
1,106 amounts stored as text ("KSh780.00", "Ksh 2,340/="), and
dates written in 4 formats ("2025-05-02", "01/05/2025", "12-May-2025", "May 3, 2025").
Safe fixes (formatting only, nothing guessed):
- Remove 8 blank rows
- Remove 1 empty column (Coupon Code)
- Make 3 placeholder values ("N/A") properly blank
- Trim extra spaces in 81 cells
- Remove 40 exact duplicate rows (the first copy of each is kept)
- Convert "Amount" to plain numbers ("KSh780.00" → 780)
- Write all dates as YYYY-MM-DD, reading 01/05/2025 as day/month/year
- Merge capitalisation variants in "City" ("NAIROBI", "nairobi" → "Nairobi")
Your call (I won't change these unless you say so):
- 16 negative amounts: all 16 match an earlier sale to the same customer, so they look like refunds. Suggested: keep.
- "NBI" → "Nairobi" and "MSA" → "Mombasa"? Suggested: merge.
- 6 near-duplicate rows, 2 impossible dates (31/02/2026, 2025-13-05), 2 dates after today, 1 unusually large amount (980,000), 16 rows with no customer ID, and a few others.
User: "Mapping is right. Apply all the safe fixes. I'll look at the rest later."
Step 2: cleaned
| Before | After | |
|---|---|---|
| Health Score | 49 (Poor) | 80 (Good) |
| Rows | 1,464 | 1,416 (48 removed) |
| Columns | 10 | 9 |
What changed: 8 blank rows and 40 exact duplicates removed, 1,106 amounts converted to numbers, 740 dates standardised, 92 city spellings merged, 81 cells trimmed, 3 placeholders blanked and the empty Coupon Code column removed. Your original file is unchanged.
Left for you (nothing changed): the refunds, the NBI/MSA merge, the near-duplicates, the impossible and future dates, the large amount and the rows with no customer ID. Each one is listed in the report with its options.
Files
ecommerce_orders_messy_cleaned.csv(same column names, ready for the next step)cleaning_log.csv(one row per change: rule, column, rows affected, before, after)health_report.html(one page, works offline, prints on A4)
Analysis readiness
- ✓
Data Snapshot Dashboard: ready. You can turn it into a one-page view of totals, trends, top items and breakdowns.
- ✓
RFM Customer Segmentation: ready. You can see which customers are your champions and which are at risk (242 customers and 1,347 orders from 2025-05-01 to 2026-10-31).
- ✓
Churn Risk Finder: ready. 87% of your 242 customers have ordered more than once across 18.0 months of history, enough to spot who is drifting away.
Note: Amount is in KSh. The cleaned file stores plain numbers, so tell other tools the currency.
ecommerce_orders_messy.csv
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
Most business data is messier than it looks. Duplicate orders inflate your revenue. Amounts typed as "KSh 1,200" don't add up. Dates come in four formats, "Nairobi" appears as "nairobi", "NAIROBI" and "NBI", and refunds sit in the file as negative numbers nobody flagged. Any analysis built on that data starts out wrong.
Data Health Check gives your AI agent one job: diagnose and clean. Hand it a CSV of sales, orders, inventory or customers and it will:
- Find the problems. Missing values, blank rows, empty columns, exact and near-duplicate rows, repeated order IDs, numbers stored as text, mixed, impossible (31/02) or future dates, negative and zero amounts, unusual values, inconsistent labels and stray spaces.
- Score your data from 0 to 100 across five areas: completeness, uniqueness, validity, consistency and plausibility. The formula is published in the report, so you can see exactly why you got the score.
- Propose numbered fixes in plain English, such as "Remove 40 exact duplicate rows" or "Convert 'Amount' to plain numbers (e.g. 'KSh 1,200' → 1200)". Safe formatting fixes can be approved in one go.
- Leave judgement calls to you. Outliers, refunds, look-alike names and questionable dates are flagged with your options and a suggestion. Nothing is deleted or changed without your say.
- Deliver three files: a cleaned CSV with your original column names, a cleaning log with one row per change, and a one-page health report.
- Tell you what your data is ready for. You get a Ready / Not ready verdict for a snapshot dashboard, RFM customer segmentation and churn analysis. If something is missing, it names it, for example "it needs a customer ID column, and this file doesn't have one".
What you get
- Before → after Health Score with a breakdown by area
- Issues by severity (critical / warning / minor), each showing whether it was fixed, kept by your choice or left for you
- Cleaned CSV, ready to feed into the other VOTIEN skills
- cleaning_log.csv: rule, column, rows affected, before and after for every change, plus a full list of every changed cell with its line in your original file
- health_report.html: one page that works offline, prints on A4 and can be emailed
- Your original file, untouched. Every run checks that the file is still byte-for-byte the same.
Built to be trusted
- All detection and cleaning runs in bundled Python scripts, not in the AI's head, so the same file gives the same result every time.
- Every number in the report comes from the scripts.
- Missing values are never filled in by guessing.
- Refunds are recognised. A negative amount that matches an earlier sale to the same customer is labelled as a likely refund, not an error.
- Removing identical rows from files without order or customer IDs is left to you, because they may be separate real sales.
Handles real-world files
- Comma, semicolon, tab or pipe delimited
- UTF-8, UTF-8 with BOM, Windows/Latin-1 encodings
- Currency text such as
KSh 1,200,Ksh 2,340/=,$45.00,12,50 EURand decimal commas - Mixed date formats, with day/month order worked out from the data
- About 100,000 rows in seconds
Try it on the included examples
| Example file | Health Score (safe fixes only) |
|---|---|
| Messy e-commerce orders: duplicates, KSh amounts, 4 date formats, refunds, inconsistent cities | 49 → 80, ready for RFM and churn |
| Retail sales with no customer ID: semicolons, Latin-1, decimal commas | 69 → 84, not ready for RFM/churn, with the reason |
| Fairly clean inventory list | 97 → 99 |
Requirements
- An AI agent that supports SKILL.md skills
- Python 3.9+ with pandas 2.2+ (
pip install pandas). No other packages. The scripts need no internet; your AI agent uses its usual connection to its AI model.
What it doesn't do
It doesn't build dashboards, segment customers, predict churn, forecast sales or comment on how your business is doing. Those are separate VOTIEN skills. This one makes sure the data underneath them is right.
Part of the VOTIEN analytics suite
- Fix Your Messy Sales Data Free (this skill): diagnose and clean a messy CSV. Free.
- See How Your Business Is Really Doing: a one-page dashboard from any business CSV. Free.
- Stop Losing Customers: every customer in a named segment, plus who is slipping away and who to win back first
- Know Who Buys, Who's Leaving & What Next Month Brings: everything above plus a sales forecast with an honest range, in one run
Run this skill first, then feed the cleaned file straight into the others.
Privacy
Your file is processed on your own computer by the bundled Python scripts, which make no network connections, and the reports and lists are saved to your disk. Your AI agent's model sees what the scripts print (column names, totals, summaries and data-quality notes, with names, emails, phone numbers and customer IDs masked). The skill tells the agent to work from that output, not to open your data files and never to quote personal details. Your agent's own data settings apply to that conversation.
Requires Python 3.9+ and pandas 2.2+. CSV files only: export Excel sheets to CSV first. Tested on files up to about 100,000 rows. It diagnoses and cleans data; it doesn't build dashboards or give business insights, and it never fills in missing values by guessing.
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 4 days ago
- Free with an Agensi account
- Software
Python 3.9+pandas 2.2+
Permissions
What's inside
Frequently Asked Questions
New in Research & Analysis
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.