/hubspot-admin:enrich-industryfrom hubspot-admin
Backfills contact-level industry from associated company records using a HubSpot workflow. Enables industry-based segmentation for targeted campaigns aligned with ICP verticals.
Ships in hubspot-admin. 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; scripts run unread.
Copy industry data from company records to their associated contacts. In a typical B2B CRM, company records have industry populated at high rates (80-90%) while contact records have almost none. This workflow bridges that gap automatically.
Without industry on contact records, you cannot segment email campaigns by vertical. For B2B companies targeting specific industries, this makes the difference between spray-and-pray email blasts and targeted, relevant messaging. Industry data on contacts also feeds ICP tier classification and lead scoring models.
HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) for the scripted stagesuvScript paths are relative to this skill's directory. Run them from your project directory so .env, data/, and reports/ resolve there: prefix each path with wherever this skill is installed (skills/enrich-industry/ in a clone of the repo).
| Stage | Script | Run with |
|---|---|---|
| Before | scripts/before.py | uv run scripts/before.py |
| After | scripts/after.py | uv run scripts/after.py |
There is no execute script: the enrichment itself runs as a HubSpot workflow (see Execute below).
This is the most important pre-step. Contacts may have TWO industry properties: industry and industry_name. You must verify which one HubSpot uses for lists and reports.
If no contact Industry property exists, create one:
Run uv run scripts/before.py. The core query:
resp = requests.post(f"{BASE}/crm/v3/objects/contacts/search", headers=HEADERS, json={
"filterGroups": [{"filters": [
{"propertyName": "industry", "operator": "NOT_HAS_PROPERTY"},
]}],
"limit": 1,
})
print(f"Contacts missing industry: {resp.json()['total']}")
Also create a HubSpot list to estimate enrichable contacts:
This workflow is nearly identical to the company name enrichment workflow. If you already built that one, clone it and swap the property references.
AUTO-ENRICH: Copy Industry from CompanyEnrollment trigger:
Re-enrollment:
Action: Copy property
Activate:
Note: Unlike the company name workflow, no delay is needed here. If the contact already has an associated company with industry data (checked by the enrollment trigger), the copy can happen immediately.
Wait 1-2 hours for the workflow to process, then verify: uv run scripts/after.py (re-runs the before-state query and compares against the baseline).
Verification checklist:
industry property, or restore individual values from property history.This skill only moves industry data the portal already has (company → contact). When the company itself has no industry value, that gap needs external data — see /waterfall-enrich-contacts for the provider-agnostic enrichment path, or HubSpot's Breeze Intelligence add-on for in-platform enrichment.
industry and industry_name on contacts. Verify which one is authoritative before building the workflow. Writing to the wrong one means your lists and reports will not see the data.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tomgranot/hubspot-admin-skills --plugin hubspot-admin40 skills in this plugin
/assign-unowned-contactsAssign an owner to marketing contacts that have no owner. Ensures every marketable contact has accountability for follow-up, proper lead routing, and accurate owner-based reporting./audit-api-usageInventory the integrations, service keys, legacy private apps, and internal tooling that call HubSpot APIs, and flag anything on legacy v1-v4 endpoints or legacy app architecture ahead of HubSpot's 2027 cutoffs. Produces a migration checklist to date-based API versions and service keys./backfill-geo-dataEnrich missing geographic data (country, state, city) on contacts and companies using HubSpot workflows, external data providers, or IP-based geolocation.Other plugins' skills for the same job