# list clean and compare

> Clean, validate, and compare messy Excel/CSV lists using deterministic Python scripts with full audit logs.

list clean and compare is a paid AI agent skill on Agensi by Giuseppe Bellamacina, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Giuseppe Bellamacina](https://www.agensi.io/creators/giuseppe-bellamacina)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-10-09
- Security: scan passed (2026-10-09); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/list-clean-and-compare
- Tags: automation, python, excel, data-analysis, csv

## About this skill

Messy spreadsheets with inconsistent formatting, duplicate entries, and hidden errors waste hours of manual work. This skill automates the tedious process of cleaning Excel and CSV files while ensuring data integrity through deterministic Python scripts and detailed change logs.

### What it does
- **Standardizes formatting** by fixing irregular casing, trimming whitespace, and unifying date formats to YYYY-MM-DD.
- **Validates data** to identify invalid emails, malformed phone numbers, and missing required values.
- **Detects duplicates** using both exact matches and similarity algorithms to catch typos or near-misses.
- **Performs list comparison** between two versions to track who is new, who left, and exactly which cells changed.
- **Preserves data** by never modifying original files and outputting results to a dedicated directory with full audit trails.

### How it works
1. **Profiling phase** where the agent analyzes the file structure to detect headers, column types, and data quality issues.
2. **Cleaning phase** where the user provides configuration for phone country codes and required fields to generate a cleaned output.
3. **Deduplication phase** where exact matches are merged and potential typos are flagged for human review.
4. **Comparison phase** where two lists are mapped and cross-referenced to identify additions, removals, and updates.

### Frameworks & tools
The skill uses a standalone Python 3.8+ script utilizing the standard library for deterministic processing. It handles `.xlsx` and `.csv` formats natively.

### Why this beats prompting it yourself
Standard LLM prompts often hallucinate data or silently truncate large lists when "cleaning" text. This skill uses executable code to ensure every single row is processed accurately with a permanent log of every change made.

### Use cases
- Cleaning membership directories for clubs or non-profit associations.
- Reconciling monthly sales reports to find new leads and churned customers.
- Normalizing employee contact lists for HR system migrations.

### Known limitations
Does not support legacy `.xls` files directly; users must save them as `.xlsx` or `.csv` first. Requires a Python 3.8 environment for execution.

## Requires

- Python

## 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 list clean and compare skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent the data 'hallucinations' common in LLM-based cleaning?

Unlike standard AI prompts that may skip rows or hallucinate data, this skill uses deterministic Python scripts to ensure every single entry is processed with 100% accuracy and a verifiable audit trail.

### Can I use this skill with older Excel file formats like .xls?

The skill natively supports .xlsx and .csv files; however, legacy .xls files must be saved as .xlsx before processing to ensure compatibility with modern data libraries.

### What exactly is included in the purchase of this skill?

You will receive the standalone Python cleaning scripts, a configuration guide for custom validation rules, and documentation for integrating the skill into your existing AI agent workflow.

### Is it possible to compare two lists that have slightly different column structures?

Yes, the comparison phase allows you to map two different files to identify specific changes, such as new additions, deletions, or cell-level updates between versions.

### What are the technical requirements for running these scripts?

The skill requires a Python 3.8+ environment and is designed to be called by any AI agent capable of executing local Python scripts or managing file-based workflows.

### How can I verify which changes were made to my original spreadsheet?

The skill generates a detailed change log in a separate directory, documenting every modification made so you can verify the cleaning process without altering your original source data.

---

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.
