/cargo:crm-enrichmentfrom Cargo GTM
Clean up and enrich a messy CRM: fill the missing identifiers on accounts and contacts first (LinkedIn, domain, email), write them back into blank fields only, then deduplicate on those identifiers with crm-deduplication. Keeps records filled and refreshes them when they go stale. Triggers: "keep our CRM accounts filled", "keep our CRM contacts filled", "nobody refreshes the company records", "nobody refreshes the contact records", "enrich my CRM", "refresh stale firmographics", "every new CRM company", "every new CRM contact", "contacts are missing emails, LinkedIn URLs, or titles". HubSpot, Salesforce, Attio, Cargo project. Skip when: the records are not in a CRM. A supplied company list is enrich-company-data, a supplied LinkedIn URL list is enrich-linkedin-profile, and a one-time email lookup is find-work-email.
Ships in Cargo GTM. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
State: to-be-approved. This pipeline has not been deploy-verified against a live workspace.
Review cargo-ai project plan, the compiled graph, and the live connector schemas before deployment.
Choose the account path, contact path, or both. Each selected path has its own model, tool contract, play, field approval, cost preview, pilot, and acceptance criteria. Approval for one path does not authorize the other.
enrich_accounts keeps approved company identity and firmographic fields filled. It calls
account_enrichment, selects the LinkedIn company route or domain fallback, and writes approved
blanks to the triggering CRM account. A row takes only one provider route.
The starting HubSpot destinations are linkedin_company_id, name, domain, website,
linkedin_company_page, and numberofemployees.
enrich_contacts is one play calling three gated tool resources:
| Starting identifiers | Calls | Outcome |
|---|---|---|
| Email and LinkedIn | Contact LinkedIn Enrichment | Fill approved LinkedIn identity and role blanks |
| LinkedIn only | Find email, then Contact LinkedIn Enrichment | Fill email and approved LinkedIn blanks |
| Email only | Find LinkedIn URL from email, then Contact LinkedIn Enrichment | Stop without a write if no profile resolves |
| Neither | None | Stop without a write |
The starting HubSpot destinations are email, linkedin_person_id, linkedin_profile_url, and
jobtitle. This path contains no customer split, movement detection, relationship mutation, note
creation, or alerting.
Both plays run directly on their CRM extracts and match the CRM record ID. The custom tools own
provider access and have no CRM access. The plays own every CRM write. Business fields fill blanks
only. cargo_last_enriched_at and cargo_enrichment_status are stamped only after a successful
write.
The checked example targets HubSpot companies and contacts by hs_object_id. Adapt the connector,
extracts, record IDs, write action, and blank-only behavior together for Salesforce or Attio.
Keep our HubSpot contacts filled: find the missing email or LinkedIn profile, then fill job title, but never overwrite a value a rep already entered.
Illustrative output, fictional records:
| Contact (hs_object_id) | Started with | Fields filled | cargo_enrichment_status |
|---|---|---|---|
| Priya Raman (51007) | LinkedIn only | email [email protected], linkedin_person_id, jobtitle VP RevOps | succeeded |
| Tomás Ortega (51022) | Email only | linkedin_profile_url, linkedin_person_id, jobtitle Head of Sales Ops | succeeded |
| Mei Lin (51040) | Email and LinkedIn | jobtitle left as entered; linkedin_person_id filled | succeeded |
| Sam Hale (51055) | Email only | nothing: no profile resolved | (not stamped) |
Every write fills blanks only, and cargo_last_enriched_at is stamped only after a successful write, so
a contact where nothing resolved, like Sam Hale, is never marked enriched.
Install the required authoring skill first. If cargo-project is absent, run:
npx skills add getcargohq/cargo-skills --skill cargo-project
Then read .agents/skills/cargo-project/SKILL.md and follow its state, plan, and deployment rules.
From the Cargo project, install this example with:
cargo-ai project add cookbook/crm-enrichment
Or start a project with:
cargo-ai project init <dir> --cookbook crm-enrichment
cd <dir>
npm install
Reconcile default connectors and models with existing project resources. Do not deploy duplicate
slugs. Append environment requirements to the project .env.example; never overwrite it.
Choose the account path, contact path, or both before the audit. Follow the selected path sections
in references/audit.md, references/configure.md,
and references/run.md. Walk the matching path in
evals/acceptance.md. If both paths are selected, both must pass separately.
Verify the live CRM company schema and both LinkedIn company actions. Approve the account field
contract before adapting crm_accounts, account_enrichment, or enrich_accounts.
Both Cargo-native tools are already in the workspace: every workspace is seeded with read-only
Find email and Find LinkedIn URL from email tools in its Cargo Tools folder. Look up their
UUIDs (cargo-ai orchestration action list "find email" --kind tool, or cargo-ai orchestration tool list filtered on isReadOnly) and replace:
REPLACE-WITH-FIND-EMAIL-TOOL-UUIDREPLACE-WITH-FIND-LINKEDIN-PROFILE-FROM-EMAIL-TOOL-UUIDConfirm their live contracts. Find email takes camelCase linkedinUrl, firstName and
lastName (or companyDomain with the names) and returns email, already checked by zeroBounce.
Find LinkedIn URL from email takes email and returns linkedin_url. A tool drops an input key
it does not know without an error, so a snake_case key silently arrives as nothing.
No paid call or CRM write occurs during either audit. Deploy selected resources disabled only after the matching field contract is approved. Run a paid pilot only after the operator approves that path's priced population.
Derive what can be discovered before asking the operator. Ask only for decisions that change the selected path's field contract, target population, cadence, or spend.
| Input | Kind | How it is answered | Why it matters |
|---|---|---|---|
crm_shape | derived | Inspect authenticated connectors, selected extracts, and live CRM properties | Determines objects, record IDs, destinations, and write behavior |
selected_paths | derived | Read whether the request names account enrichment, contact enrichment, or both | Sets which resources, audits, approvals, and pilots are in scope |
| Input | Kind | How it is answered | Why it matters |
|---|---|---|---|
account_provider_schema | derived | Inspect both live LinkedIn company actions | Prevents guessed output paths and types |
account_field_contract | asked | Review one decision row per company provider property | Controls every company mutation |
account_population | derived | Count mutually exclusive LinkedIn URL and domain fallback routes | Sets account scope and spend |
account_run | asked | Review disabled resource links, exact population, and maximum spend | Authorizes only the account pilot |
| Input | Kind | How it is answered | Why it matters |
|---|---|---|---|
contact_tool_contracts | derived | Inspect profile enrichment and both instantiated Cargo-native tools | Prevents guessed inputs, output paths, and prices |
contact_field_contract | asked | Review one decision row per contact provider property | Controls every contact mutation |
contact_population | derived | Count both-identifiers, LinkedIn-only, email-only, and neither routes | Sets contact scope and spend |
contact_run | asked | Review disabled resource links, exact population, and maximum spend | Authorizes only the contact pilot |
| Variation | When it is right | How | What it costs |
|---|---|---|---|
crm_shape | The consumer uses Salesforce or Attio | Replace the connector, selected extracts, object names, record IDs, write action, and blank-only guard together | Generated types and write semantics must be reverified |
refresh_cadence | The default window does not fit the data policy | Change freshness independently for each selected path and report repeat-spend impact | Faster cadence repeats provider charges more often |
| Variation | When it is right | How | What it costs |
|---|---|---|---|
account_fields | The approved company contract differs from the starting fields | Change account tool outputs, CRM mappings, and transformations together | Every added field expands schema and write review |
account_eligibility | Only a governed company subset should be enriched | Intersect the account play filter with approved lifecycle, tier, or ownership conditions | Narrower scope reduces coverage and paid calls |
account_refresh_policy | Approved populated company fields must be refreshed | Remove blank-only protection only for approved fields and compare against a fresh CRM read | The provider snapshot can replace CRM-authoritative values |
| Variation | When it is right | How | What it costs |
|---|---|---|---|
contact_fields | The approved person contract differs from the starting fields | Change custom tool outputs, contact mappings, blank filters, and transformations together | Every added field expands schema and write review |
contact_eligibility | Only a governed contact subset should be enriched | Intersect the contact play filter with approved lifecycle, tier, or ownership conditions | Narrower scope reduces coverage and paid calls |
native_tool_contracts | The deployed native tools expose different schemas | Update each toolRef, call payload, and result access from the verified live schema | A guessed path can create paid calls with no usable result |
profile_provider | The workspace uses an equivalent approved profile action | Replace the provider call inside contact_linkedin_enrichment and remap its output | Coverage, fields, and unit price change |
Keep every optional provider field as its own decision row. State the live unit price and expected fill rate before recommending a paid route.
cargo_last_enriched_at and
cargo_enrichment_status=succeeded only on successful CRM write paths.noConcurrency. Removing either expands an unapproved
pilot.account_enrichment owns provider routing;
enrich_accounts owns the only company write.enrich_contacts and
use only Find email, Find LinkedIn URL from email, and Contact LinkedIn Enrichment.isNull and isEmpty for every contact string destination.Run the compiled graph contract from this skill's folder after every adaptation:
node --import tsx evals/contract.mjs
Complete only the selected paths. If both were selected, both lists must pass.
The complete evidence checklist is in evals/acceptance.md.
Fetch live prices from the workspace before every preview. Cost only the selected paths. A failed CRM write can cause provider calls to be billed again on retry, so probe write capability before a batch.
Quote both LinkedIn company actions. Multiply the mutually exclusive LinkedIn URL and domain fallback populations by their respective live unit prices. Rows with neither identifier make no paid call.
Quote both Cargo-native tools and the LinkedIn profile enrichment action. Per contact, the maximum paid chain is:
Show mutually exclusive route counts and maximum spend before requesting approval for either path.
crm-deduplication after account enrichment, find-stakeholders for coverage gaps, segment-accounts
for activation, and track-job-changes as a separate one-time movement check.
README.md (opens in a new tab)evals/acceptance.md (opens in a new tab)evals/contract.mjs (opens in a new tab)infra/connectors/crm.ts (opens in a new tab)infra/connectors/linkedin.ts (opens in a new tab)infra/folders/crm-enrichment.ts (opens in a new tab)infra/models/crm-accounts.ts (opens in a new tab)infra/models/crm-contacts.ts (opens in a new tab)infra/plays/enrich-accounts.ts (opens in a new tab)infra/plays/enrich-contacts.ts (opens in a new tab)infra/tools/account-enrichment.ts (opens in a new tab)infra/tools/contact-linkedin-enrichment.ts (opens in a new tab)references/audit.md (opens in a new tab)references/configure.md (opens in a new tab)references/run.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
47 skills in this plugin
/account-scoringScore every account against your ICP on a schedule: a deployed agent tiers each company in a Cargo model (tam-building's, or your CRM companies) A / B / C / disqualified against the ICP and rubric in workspace context, and the tier, a two-sentence reason and evidence are written onto the row and, optionally, the matching HubSpot or Salesforce company. New companies are tiered hourly; the book is re-scored weekly or on any window set. Triggers: "score our TAM", "tier the market we just sourced", "which accounts should the team work first", "why is this account tier A", "keep our accounts tiered as they arrive", "our lead scoring is a spreadsheet nobody trusts". Cargo project, defineAgent, webSearch, context, tam_companies, tier segments. Skip when: someone hands you a list and wants it scored once, which is score-leads; or there is no account universe yet, which is tam-building./agentic-engagementDeploy an AI agent that holds email conversations with leads from a mailbox your workspace owns: a sending domain, a mailbox, native sendEmail and listEmailEvents on the agent, a native email trigger on reply and unsubscribe, and a heartbeat that checks thread status when nothing inbound happened. Triggers: "handle email conversations with leads", "agentic engagement", "an agent that replies to inbound email", "stand up a conversation agent on a Cargo mailbox", "native email trigger for lead replies", "keep talking to leads over email". Cargo project, defineDomain, defineMailbox, defineAgent, agentNativeTrigger, heartbeat, sendEmail, listEmailEvents. Skip when: you want to send one email right now, which is a native sendEmail from the CLI and needs nothing deployed; or you want a play that blasts a list rather than holding a thread.npx claudepluginhub getcargohq/gtm-skills --plugin cargo