Prospect discovery pipeline

From Othmane-Khadri/YALC-the-GTM-operating-system · View interactive version

Prospect discovery pipeline is an AI agent skill from the GitHub repository Othmane-Khadri/YALC-the-GTM-operating-system. Use when a teammate wants a full discovery-to-outreach pipeline anchored on existing clients. Triggers include "find prospects like [client]", "build a target list like [domain]", "lookalike discovery for [client]", "discovery to outreach for [criteria]", "10 companies similar to [X] with a CMO", or

How to use this skill

Skill file

Prospect Discovery Pipeline

End-to-end pipeline: PredictLeads lookalikes → ICP filter → Crustdata CMO finder → multi-signal enrichment → 2 LinkedIn variants drafted with per-lead personalization. Pauses for user review before any expensive operation. Always quotes credit cost up front.

When to use

Don't use when: ad-hoc lookup of one company (use predictleads-signals); just lookalike domains without contacts (use predictleads-lookalikes); enriching a list you already have qualified leads for (use signals:enrich --result-set directly).

The 5-phase flow

Always follow this order. Quote credit cost before each phase.

Phase 1 — Discovery (2 PL credits for 2 anchors)

npx tsx src/cli/index.ts signals:similar --domain anchor1.com --limit 50
npx tsx src/cli/index.ts signals:similar --domain anchor2.com --limit 50

Merge into a candidate pool, dedupe by domain. Expect 30–80 unique candidates per pair.

Phase 2 — ICP filter (FREE, pause for user review)

Hand-filter the pool against the user's ICP criteria:

STOP and present the 10 finalists to the user before spending more credits. Surface any obvious gaps or weak fits. Wait for explicit approval.

Phase 3 — CMO finder (3 Crustdata credits, batch)

Single batch search across all 10 companies:

filters = {
  op: 'and',
  conditions: [
    { column: 'current_employers.company_website_domain', type: 'in', value: ['10 domains'] },
    { column: 'current_employers.title', type: '[.]', value: 'Marketing' },
    { column: 'current_employers.seniority_level', type: 'in', value: ['CXO', 'Vice President', 'Director'] },
  ],
}
limit: 50

Pick 1 marketing leader per company (prefer CMO > VP > Head > Director).

Common gotcha: some companies' websites are stored in Crustdata as ATS or marketing domains (e.g., hubs.li for Shopware), not their actual .com. If a company returns 0 hits, do a fallback search by current_employers.name substring.

Skip people_enrich unless the campaign needs emails (LinkedIn-only campaigns don't). Saves ~30 credits.

Phase 4 — Multi-signal enrichment (40 PL credits for 10 finalists)

for d in domain1.com domain2.com ...; do
  npx tsx src/cli/index.ts signals:fetch --domain "$d"
done

Or use the bulk shortcut if leads already in a result set:

npx tsx src/cli/index.ts signals:enrich --result-set <id>

Phase 5 — Hydrate templates + draft 2 variants (FREE)

Pick the single most outreach-relevant signal per company (most recent news > recent financing > recent job_opening). Build a personalization_natural line per lead that:

Draft both variants with different angles (e.g., results-led case study vs. category-shift narrative). Save the full draft to 00_Inbox/predictleads-discovery-{date}.md.

Do not push to Notion or activate the campaign without explicit user approval.

Total cost (typical)

| Phase | Credits |

|---|---|

| 1. Lookalikes (2 anchors) | 2 PL |

| 2. ICP filter | 0 |

| 3. CMO batch search | 3 Crustdata |

| 4. Multi-signal enrichment (10 companies × 4 types) | 40 PL |

| 5. Template hydration | 0 |

| Total | ~45 credits (42 PL + 3 Crustdata) |

If people_enrich is needed: +30 Crustdata credits.

Verification checkpoints

The pipeline pauses at:

  1. End of Phase 2 — present 10 finalists, wait for "approved"
  2. End of Phase 5 — present hydrated drafts, wait for "approved"

Never push to Notion / activate Unipile campaign without explicit user approval at the second checkpoint.

Output artifacts

Common pitfalls

Required env

PREDICTLEADS_API_KEY, PREDICTLEADS_API_TOKEN, CRUSTDATA_API_KEY in ~/.gtm-os/.env. See TEAM_SETUP.md.

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.