# Tidify Local CSV Cleaner & GDPR Privacy Shield

> 100% local, zero-dependency CSV cleaner & relational GDPR/PII anonymizer for Claude Code, Cursor & Codex (0 bytes sent over network).

Tidify Local CSV Cleaner & GDPR Privacy Shield is a free AI agent skill on Agensi by D0ctor64, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [D0ctor64](https://www.agensi.io/creators/d0ctor64)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/tidify-local-csv-cleaner-gdpr-privacy-shield
- Tags: database, security, productivity, data-cleaning, csv, privacy, pii, crm

## About this skill

### Tidify Local CSV Cleaner & GDPR Privacy Shield

> **Keep raw customer PII, B2B client domains, and payroll figures out of your LLM context window.**
> **100% local execution · Zero `npm install` · Zero dependencies · 0 bytes transmitted over the network.**

---

#### Why Use Tidify Local CSV Cleaner?

When you ask **Claude Code, Cursor, or Codex** to inspect or clean a messy CSV file (HubSpot export, Stripe/payroll sheet, user list), reading the raw file in your agent prompt sends sensitive personal and commercial data straight to cloud inference APIs.

**Tidify Local CSV Cleaner** acts as a deterministic privacy shield between your local `.csv` files and your AI coding agent:

- **Security-First Agent Workflow:** Instructs the AI agent to run `tidify-cli.js` locally **before** reading the CSV, so the LLM only ever sees pseudonymized data.
- **Zero Dependencies & Zero Network Calls:** Built strictly with native Node.js (`fs`, `path`, `crypto`). No `npm install`, no external enrichment APIs (no Hunter/Apollo leaks), works 100% offline.
- **Relational GDPR/PII Pseudonymization:**
  - Separated First/Last Name columns become relationally consistent `Prenom_001` & `Nom_001` (or `Contact_001` for full-name columns).
  - Company columns (`Entreprise`, `Company`, `Organisation`) become `Entreprise_001`, `Entreprise_002`, etc.
  - **B2B Domain Shield:** Corporate emails (`jean.dupont@grand-client.fr`) become `j***t@entreprise_001.com` so you keep relational grouping across colleagues without leaking client company domains to an LLM. Public webmails (`gmail.com`, `outlook.com`) become `j***t@gmail.com`.
  - Phone numbers are partially masked (`06 ** ** ** 78`).
  - Unmasked free-text narrative columns (`Comments`, `Notes`) trigger an explicit privacy warning in stdout.
- **Deterministic Data Cleanup:** Purges invisible characters (`\u00A0` non-breaking spaces, zero-width spaces, stray tabs), removes exact duplicate rows (ignoring sequential ID columns), validates calendar dates (`YYYY-MM-DD` / `DD/MM/YYYY`), normalizes amounts/currencies (`CHF`, `USD`, `GBP` → `EUR`), and clears `#VALUE!` / `N/A` anomalies.

---

#### Concrete Examples

##### Example 1: Clean a Messy HubSpot / Salesforce Export (`--preset crm`)

```bash
node scripts/tidify-cli.js --input ./hubspot_raw.csv --output ./hubspot_ready.csv --preset crm
```

- Strips hidden `\u00A0` spaces that broke CRM deduplication
- Removes exact duplicate contact rows
- Standardizes `Name` capitalization (`jEaN dUpOnT ` → `Jean Dupont`), lowercases emails, formats phones, and harmonizes mixed dates (`05/28/2024`, `14.03.2025`) to `2024-05-28` / `2025-03-14`.

##### Example 2: GDPR/PII Anonymization Before Asking Your AI Agent to Analyze Data (`--preset rgpd`)

```bash
node scripts/tidify-cli.js --input ./client_pipeline.csv --output ./client_safe.csv --preset rgpd
```

**Before (Raw Local CSV — Never Exposed to LLM):**
```csv
Prenom;Nom;Entreprise;Email;Date_Entree;Salaire_Annuel
jEaN ;dUpOnT ;Acme Grand Client;Jean.Dupont@acme-grand-client.fr;14/03/2025;45 000 €
jEaN ;dUpOnT ;Acme Grand Client;Jean.Dupont@acme-grand-client.fr;14/03/2025;45 000 €
MARIE-claire;martin;Acme Grand Client;m.martin@acme-grand-client.fr;2025.03.14;52000 EUR
```

**After (Sanitized Local CSV — Safe for AI Context):**
```csv
Prenom;Nom;Entreprise;Email;Date_Entree;Salaire_Annuel
Prenom_001;Nom_001;Entreprise_001;j***t@entreprise_001.com;2025-03-14;45000
Prenom_002;Nom_002;Entreprise_001;m***n@entreprise_001.com;2025-03-14;52000
```

##### Example 3: Accounting & Currency Standardization (`--preset compta`)

```bash
node scripts/tidify-cli.js --input ./expenses.csv --output ./expenses_eur.csv --preset compta
```

Converts `CHF`, `USD`, and `GBP` amounts to EUR, cleans French text numbers, clears `ERR!#VALEUR`, and standardizes dates to `DD/MM/YYYY`.

---

#### Need `.xlsx` / `.xls` Support or Interactive Diff Preview?

For native Excel (`.xlsx`, `.xls`) spreadsheets, visual cell-by-cell diff inspection before export, or offline desktop PWA usage, this skill pairs with the **Tidify Web App** — a free, 100% local-first browser tool that runs entirely client-side with zero file uploads.

## Requires

- Node.js

## Known limitations

Supports only .csv files. Excel formats must be converted first. Unstructured PII in free-text "Notes" or "Comments" columns is flagged for manual review rather than fully masked.

## 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 Tidify Local CSV Cleaner & GDPR Privacy Shield 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 does this skill help me maintain GDPR compliance when using AI?

This skill provides a local Node.js engine that cleans and anonymizes CSV files directly on your machine. It ensures that sensitive information like names, emails, and financial data is pseudonymized or normalized before any data is sent to a cloud model, helping you maintain GDPR compliance and data privacy.

### Do I need any third party accounts or software to use this?

You do not need any external accounts or API keys. The skill runs using a standalone Node.js script that relies exclusively on native system modules like fs and crypto, requiring no network connectivity or additional npm packages.

### What kind of output files and data formats does this skill produce?

The skill outputs a sanitized and standardized CSV file. Depending on your chosen preset, it can remove duplicates, normalize date formats to YYYY-MM-DD or DD/MM/YYYY, convert currencies like USD and GBP to EUR, and mask phone numbers and email domains.

### Are there any file types or data categories this skill cannot process?

This skill is specifically designed for .csv files and does not support Excel formats like .xlsx or .xls directly. Additionally, while it flags columns containing free text notes, it does not fully mask them, so users should review those columns for unstructured sensitive data.

### How should I instruct my AI agent to start the cleaning process?

You can tell your agent to clean, deduplicate, or anonymize a specific local CSV file path. For example, you might ask it to run the GDPR preset on a customer list or to standardize the currency in a financial export before you begin your analysis.

---

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.
