Pitchlane / Leadgen Skills
official script Evaluated (1 test)

list-cleaning

Clean, deduplicate, and pre-flight validate any lead CSV before spending Pitchlane render credits or sending emails. Strips missing/dead websites, normalizes URLs, and outputs clean and skipped CSVs with reasons.

npx skills add pitchlane-video/leadgen-skills --skill list-cleaning View SKILL.md on GitHub →

Lead List Cleaning

Clean any lead CSV (GetLeads.io, Apollo, Clay, LinkedIn) before rendering Pitchlane videos. Works on any CSV path the user provides (or leads/raw.csv if inside workspace/).

Rules

  1. Normalize columns (when creating a clean export): first_name,last_name,email,company,website,title,linkedin_url.
  2. Email hygiene: Trim, lowercase email. Drop missing/invalid emails (invalid_email) and role inboxes (info@, support@, sales@, admin@, noreply@ → role_inbox) unless the user asks to keep them.
  3. Dedupe: Drop duplicate lowercase emails (duplicate_email). If the user only wants 1 contact per company, also dedupe by root domain (duplicate_domain).
  4. Websites: Drop rows with missing/invalid website (missing_or_invalid_website). Prepend https:// if missing; strip utm_* params. Do not guess websites from corporate email domains unless the user approves.
  5. Pre-flight reachability check:
    bun run skills/playbooks/list-cleaning/scripts/check-urls.ts <input.csv> <clean.csv> <skipped.csv>
    
    Drops unreachable, 4xx/5xx, timeout, and parked domains into <skipped.csv> with skip_reason.
  6. Report: State input count, clean count, and skipped counts by skip_reason (name dropped leads when the list is small).