---
name: crm-data-hygiene
description: "Finds what's wrong with the CRM's records and turns it into fixes a CRM admin can apply: duplicate contacts and companies, missing fields that routing and reports depend on, values that contradict each other (a customer with no won deal, open deals with close dates in the past), stale and junk records, and records with no links (contacts with no company, deals with no contact). Sizes each problem by what it breaks, then delivers a merge list with the record to keep, an import file for field fixes, a review list for stale records, and the rules that stop the mess coming back. Use when someone asks to clean up the CRM, CRM hygiene, dedupe HubSpot, find duplicate contacts or companies, missing lifecycle stages, deals without amounts or close dates, stale contacts, or why CRM reports don't add up. Needs CRM data: Slate includes HubSpot data (read-only, in the Slate app); otherwise a CRM export."
license: MIT
compatibility: "Needs CRM records with their fields, links and activity dates. In Slate, HubSpot sync in the app reads contacts, companies, deals and activity (read-only; not through the MCP server). Otherwise a CSV export from HubSpot, Salesforce or any CRM. Fixes are applied by a CRM admin or by import; the skill never writes to the CRM itself."
metadata:
  title: "CRM data hygiene"
  category: "Marketing operations and automation"
  requires: "data"
  data-needed: "CRM data"
  slate-tools: "HubSpot sync, Sheets and Artifacts in the Slate app; import_csv_to_sheet, get_sheet_rows, manage_sheet_columns, execute_sheet, create_artifact (Slate MCP)"
  slate-signup: "https://app.slatehq.ai/register"
  homepage: "https://slatehq.com/skills/crm-data-hygiene"
  author: "Slate"
  version: "1.0.0"
---

# CRM data hygiene

Finds the problems in a CRM that make routing misfire, reports disagree and emails bounce, counts how many records each one touches, and hands the CRM admin exactly what to apply: which duplicates to merge into which record, which fields to fill with which values, which records to suppress, and which rules to add so the same mess doesn't come back next quarter. It doesn't "clean the CRM" in one sweep: merges are hard to undo and deletions lose history, so every change is a reviewed list, and fixes start with the problems that feed a decision or cost money.

> **Needs live data.** Your CRM records (contacts, companies and deals, with their fields and activity) don't come with your AI agent. [Slate](https://slatehq.com) includes them for HubSpot: the HubSpot sync reads them in the Slate app (CRM data isn't on the Slate MCP server (`https://api.slatehq.ai/slate-mcp-server/mcp`) yet; there, Sheets checks an exported file in bulk). New to Slate? Start a free trial at https://app.slatehq.ai/register; log in at https://app.slatehq.ai/login. Without Slate, export contacts, companies and deals from the CRM as CSV with all properties. Slate reads the CRM but doesn't write to it: fixes come out as lists for the CRM admin and import files.

## When to use

- "Clean up our CRM", "CRM hygiene check", "dedupe HubSpot", "how many duplicate contacts do we have", "half our contacts have no lifecycle stage", "deals with no amount", "why doesn't the pipeline report match", "we pay for contacts nobody emails".
- Quarterly upkeep; before a lead scoring project, a CRM migration, an attribution report or a big email send; after a list import went wrong.
- Not for adding company and contact data from outside sources: use `lead-enrichment`.
- Not for designing scores: use `lead-scoring-model` (clean first).
- Not for which tools write to the CRM and why: use `martech-stack-audit`.
- Not for list hygiene for deliverability (bounces, authentication): use `email-deliverability-audit`.

## What you need

Required:
- **The records**: contacts, companies and deals with record IDs, create date, last activity date, last modified date, owner, lifecycle stage, lead status, original source, email, company domain, and the links between them (contact to company, deal to contacts and company), plus deal stage, pipeline, amount, close date. Note the export date.
- **What the CRM is used for**: routing, reporting, email, scoring. The fields those depend on are the ones that matter.

Ask for, or assume and state:
- **"Stale" definition**: default, no activity for 12 months, no open deal, and not a customer.
- **Required fields per object**: default, contacts need email, lifecycle stage and company; companies need domain; deals need amount, close date, a contact, a company and a source.
- **Who applies fixes**: the CRM admin's name, and whether they prefer an import file or a list to work through by hand.
- **Protected records**: customers, open deals, partner and investor contacts are never suppressed or merged without a person's check.

## Data and tools

- **In Slate:** HubSpot sync reads contacts (email, name, lifecycle stage, company, created date, original and latest source, first and last page seen), companies (name, domain), deals (name, stage, pipeline, amount, currency, close date, won or lost, stage history) and activity (calls, emails, meetings, notes). It doesn't include custom properties or fields such as job title, phone, country, industry, company size, lead status or record owner; check those in an export. It searches records by name, email, company domain or created date and returns totals, which suits counts and checking suspects (every contact on one domain), not scanning a whole database. On large CRMs it keeps the most recently active records up to the plan's limit and leaves out long-inactive ones, so stale-record checks and full duplicate scans need an export. It reads only; it never changes HubSpot. Sheets holds an export for bulk checks; Artifacts keep the report and fix lists.
- **With the Slate MCP server:** CRM data isn't available through MCP; use the Slate app or an export. `import_csv_to_sheet` loads an export into a sheet (about 10 MB per file; split larger exports), `get_sheet_rows` reads it in pages (`start`/`end`, 100 rows by default), `manage_sheet_columns` adds check columns, and `execute_sheet` runs an AI column for judgement calls such as "are these two company names the same business?" (pilot with `selectionMode: "first_rows"` first). `create_artifact` saves the report.
- **Without Slate:** a full export per object from the CRM (HubSpot, Salesforce or other), worked in a spreadsheet or with code. The CRM's own duplicate tools (HubSpot's duplicate management, Salesforce duplicate rules) apply the merges.

## Procedure

1. **Baseline.** Count records per object, the export date, and the share with each required field filled. These numbers are what the follow-up check compares against.
2. **Normalise before matching.** Lowercase and trim emails; reduce company domains to the root (`www.`, `http`, paths removed); strip legal suffixes and punctuation from company names (Inc, Ltd, GmbH); standardise country and state values. Keep the original values; matching uses the normalised ones.
3. **Run the checks** in `references/hygiene-checks.md`, object by object: duplicates, completeness, validity, consistency, staleness, broken links. Do exact checks with sorting, formulas or code; use AI only to judge fuzzy matches, and record the rule behind each flag.
4. **Size each problem.** Records affected, share of the object, and what it breaks: routing (leads with no owner or company), reports (deals with no source or amount), cost (marketing contacts nobody can email), deliverability (invalid addresses), sales time (duplicate companies with split history). Put problems that feed a decision or cost money first.
5. **Decide survivors for merges.** For each duplicate group pick the record to keep: the one with open or won deals first, then the most activity, then the oldest create date. Field by field: keep the most recent non-empty contact details, the original source of the oldest record, and the most advanced lifecycle stage. Flag groups where records disagree on owner or lifecycle stage for a person to decide. In HubSpot a merge can't be undone, so the list is reviewed before anyone merges.
6. **Write field fixes only from evidence.** Company domain from a business email address; company from the domain; lifecycle stage from deals (a contact on a won deal is a customer). Never invent values; anything without evidence goes to `lead-enrichment` or the record owner.
7. **Handle stale records without deleting them.** Review list first. Defaults: hard bounces and unsubscribes leave marketing lists; contacts with no activity for 12 months and no deal are set as non-marketing (in HubSpot this can lower the marketing contact tier you pay for) or moved to a suppression list. Delete only test, spam and junk records, with explicit approval and an export kept first.
8. **Build the files.** Merge list, field-fix import file (with each record's ID so the import updates rather than creates), suppression list, junk list for approval, and a summary for the admin. Check one import row by hand before sending.
9. **Write prevention rules** for where the mess comes from: required fields on forms and deal stages, picklists instead of free text, duplicate matching on imports (email for contacts, domain for companies), which integration may write which field, and owner assignment on creation.
10. **Check after the admin applies** the fixes: rerun the counts from step 1 and report the change. Schedule the same check quarterly.

## Output

```markdown
## CRM hygiene: <CRM>, export of <date>
Records: <n> contacts, <n> companies, <n> deals. Data: <HubSpot sync / export>, <what wasn't available>.

### Problems, by what they break
| # | Problem | Object | Records | Share | Breaks | Fix route |
| 1 | Duplicate companies (same domain) | Companies | <n> | <%> | Split deal history, double routing | Merge list |

### Merge list (review before merging; merges can't be undone)
| Group | Keep (ID) | Merge (IDs) | Match rule | Conflicts to decide |

### Field fixes (import file attached)
| Record ID | Field | Current | New | Evidence |

### Stale and junk
- Suppress: <n> records (rule: <rule>). List attached.
- Delete (needs approval): <n> test or spam records. List attached; export kept.

### Prevention rules
- <rule, where it applies, who sets it up>

### After the fixes
Rerun on <date>: compare with the baseline above.
```

## Quality checks

- Every flag names the rule that produced it; counts can be reproduced from the export.
- Protected records (customers, open deals, named partners) are excluded from merges and suppression without a person's check.
- Every merge group has one survivor and a reason; conflicts are listed, not resolved silently.
- Field fixes have evidence; none are guessed.
- Nothing is deleted without explicit approval and a kept export.
- The import file uses record IDs, so it updates and doesn't create duplicates.
- The report says which data came from the sync and which from an export, and what was missing.

## Common mistakes

- **Merging on name alone.** Two "John Smith"s at different companies are two people. Match on email, or name plus company domain.
- **Deleting for a tidy count.** Deleted records lose their history and attribution. Suppress instead.
- **Cleaning fields nobody uses.** Fix what routing, reports and scoring read first.
- **One-off cleanups.** Without rules at the source, the same duplicates return within a quarter.
- **Assuming the sync is the whole CRM.** Long-inactive records and fields outside the sync need an export.
- **Free-mail domains as companies.** gmail.com isn't a company; exclude free-mail domains from company matching.

## Related skills

- `lead-enrichment`: fill missing company and contact fields from outside sources.
- `lead-scoring-model`: score leads once the fields it needs are clean.
- `martech-stack-audit`: find which tools write to the CRM and should stop.
- `attribution-analysis`: read sources and deals once they are filled and consistent.
- `marketing-pipeline-report`: report pipeline once deals have amounts, sources and contacts.
- `email-deliverability-audit`: bounces, authentication and list health for email.
