# Fix Your Messy Sales Data Free: Health Score & Clean CSV

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

Fix Your Messy Sales Data Free: Health Score & Clean CSV is a free AI agent skill on Agensi by Vincent, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vincent](https://www.agensi.io/creators/votien)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.7
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fix-your-messy-sales-data-free-health-score-clean-csv
- Tags: research, database, python, pandas, data-cleaning, csv, data-audit, data-quality

## 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:

1. **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.
2. **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.
3. **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.
4. **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.
5. **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.
6. **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 EUR` and 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+
- pandas 2.2+

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Fix Your Messy Sales Data Free: Health Score & Clean CSV skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this different from asking an AI to clean my CSV?

An AI editing your data directly can drop rows or change values without telling you, and it gives different results each time. Here, every check and fix runs in bundled Python scripts, so the same file always gives the same result. Nothing changes until you approve it, every change is logged, and your original file is never touched.

### Will it delete or change my data without asking?

No. It lists numbered fixes and only applies the ones you approve. Judgement calls such as refunds, outliers, merging look-alike names and questionable dates are always left to you, with options and a suggestion.

### How is the Health Score calculated?

It's out of 100, split into completeness (25), uniqueness (20), validity (25), consistency (15) and plausibility (15). Each issue takes points off its area, based on its severity (critical 20, warning 8, minor 2) and the share of rows it affects. The full formula is printed in every report.

### What files does it work with, and how big?

Any CSV with a header row: comma, semicolon, tab or pipe delimited, in UTF-8, UTF-8 with BOM or Windows/Latin-1 encoding. It has been tested on about 100,000 rows, with each step taking a few seconds.

### Which AI agents does it work with?

Any agent that runs SKILL.md skills and can execute Python, including Claude Code, Codex CLI, Cursor and Gemini CLI. You need Python 3.9+ with pandas 2.2+ installed.

### Does my data leave my computer?

Your full file stays on your computer: the bundled scripts process it there and make no network connections. Your AI agent does send its conversation to its AI model, and that includes what the scripts print: totals, summaries and data-quality notes, with names, emails, phone numbers and customer IDs masked. The skill tells the agent not to open your data files or quote personal details, and your agent's own data settings apply.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
