/hubspot-admin:enrich-company-namefrom hubspot-admin
Populates missing contact company name fields from associated company records in HubSpot using a workflow and optional API backfill. Useful for CRM hygiene, segmentation, and personalization.
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.
Populate missing contact-level company name fields by copying the value from the associated company record. Uses a HubSpot workflow for ongoing enrichment and optionally an API backfill script for immediate results.
Contacts missing a company name cannot be matched to ICP-classified companies, break email personalization tokens, and are invisible to company-based segmentation. In a typical neglected CRM, 40-60% of contacts may be missing this field even though the vast majority have a company association.
HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) with contact read/write scopes (for the scripted stages)uvScript 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-company-name/ 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), which handles both the backlog and future contacts.
Run the before-state audit to capture the baseline: uv run scripts/before.py
The core query it runs:
resp = requests.post(f"{BASE}/crm/v3/objects/contacts/search", headers=HEADERS, json={
"filterGroups": [{"filters": [
{"propertyName": "company", "operator": "NOT_HAS_PROPERTY"},
]}],
"limit": 1,
})
print(f"Contacts missing company name: {resp.json()['total']}")
Manual approach: Go to Contacts > filter by Company name > is unknown. Record the count.
Save the count. This is your baseline for measuring success.
AUTO-ENRICH: Copy Company Name from AssociationEnrollment trigger:
Re-enrollment:
Action 1: Delay 10 minutes
Action 2: If/then branch
Activate:
Use this if you need the data populated immediately rather than waiting for workflow processing.
# Pattern: fetch contacts missing company name,
# look up their associated company, copy the name.
# 1. POST /crm/v3/objects/contacts/search (company NOT_HAS_PROPERTY)
# 2. POST /crm/v4/associations/contacts/companies/batch/read (get associations)
# 3. POST /crm/v3/objects/companies/batch/read (fetch company names)
# 4. POST /crm/v3/objects/contacts/batch/update (write the contact's company property)
Key API notes:
company NOT_HAS_PROPERTYcreatedate ranges if needed.POST /crm/v3/objects/contacts/batch/update (100 per call)Wait 1-2 hours after activating the workflow (longer for very large databases), then verify: uv run scripts/after.py (re-runs the before-state query and compares against the baseline).
Verification checklist:
company property, or restore values from each contact's property history./waterfall-enrich-contacts for the provider-agnostic path.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./bounce-monitoring-workflowBuild a workflow to protect sender reputation through automated bounce monitoring. Auto-suppresses contacts above a configurable bounce threshold, alerts on hard bounces, and flags high-bounce contacts for weekly manual review./build-lead-scoringCreate a comprehensive lead scoring model with separate Fit and Engagement scores using HubSpot's new Lead Scoring tool. Replaces the deprecated HubSpot Score property./build-smart-listsCreate foundational segmented lists for marketing and sales operations via the Lists API, plus advanced UI-built segments: a master sendable list, ICP-based lists, persona lists, and engagement lists. All active (dynamic) lists.Other plugins' skills for the same job