Clay Dedupe And Merge
free skill · clay-builds
Deduplicate and merge people or company rows across Clay tables without losing enrichment or double counting a person.
Install it
bash
/plugin marketplace add mambalabsdev/mamba-labs-skillsWhat it does
Merging two lists is easy. Merging them without losing the enrichment already paid for, and without counting the same person twice under two email addresses, is the part that goes wrong. This skill sets the match key, the precedence rule, and the audit that proves the merge did not silently drop rows.
When to use it
- merge two Clay lists
- dedupe my people pool
- import a second source into this table
- which record wins
- am I double counting people
What it needs from you
- tables: the tables or lists being merged and their row counts
- key: candidate match keys available on both sides
- precedence: which source is more trusted, and on which fields
How it works
- Pick the match key by uniqueness on your own data, not by intuition. Email is unique per address, not per person. LinkedIn URL is unique per person. Domain is unique per company only after normalization.
- Normalize before matching: lowercase, strip protocol and trailing slash from URLs, strip the www prefix, strip plus addressing from emails.
- Count rows before the merge on both sides, and count distinct keys. The gap between them is the internal duplication you are about to inherit.
- Set field level precedence, not record level. The newer record usually wins on job title and the older one usually wins on verified email.
- Preserve enrichment. A field that is populated on one side and blank on the other takes the populated value regardless of precedence.
- After the merge, count again. Rows in, rows out, distinct keys, and rows where a populated field became blank. That last count must be zero.
What you get back
The match key with its uniqueness measured, the normalization steps, the precedence table by field, and the before and after audit counts.
The quality bar
- Match key uniqueness is measured on real rows, not assumed
- Normalization is applied to both sides identically
- Precedence is set per field
- The post merge audit includes a count of fields that went from populated to blank, and that count is zero
Where it runs
- Claude Code
- Codex CLI
- Cursor
- MCP-compatible agents
Get the skill
We will email you the install command and a link to the skill. No account, no purchase.