/hubspot-admin:cleanup-lead-ownersfrom hubspot-admin
Removes non-employee users from HubSpot and reassigns their orphaned contacts, companies, and deals. Pairs with assign-unowned-contacts for comprehensive ownership cleanup.
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.
None: SKILL.md is the whole skill.
Remove departed employees from HubSpot and reassign their CRM records. Orphaned records with no active owner fall through the cracks.
HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) with crm.objects.owners.read and contact/company/deal write scopesuvConfirm with the user before starting:
Identify non-employee owners via the Owners API:
import os, requests
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.environ["HUBSPOT_ACCESS_TOKEN"]
BASE = "https://api.hubapi.com"
HEADERS = {"Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json"}
active = requests.get(f"{BASE}/crm/v3/owners", headers=HEADERS,
params={"limit": 100, "archived": "false"}).json()["results"]
deactivated = requests.get(f"{BASE}/crm/v3/owners", headers=HEADERS,
params={"limit": 100, "archived": "true"}).json()["results"]
Cross-reference with your current employee list. Flag:
For each flagged owner, count how many contacts, companies, and deals they own.
Reassign records owned by non-employees:
Deactivate users who are no longer employees (requires Super Admin in HubSpot Settings > Users & Teams).
Run /assign-unowned-contacts after reassignment to catch any records that ended up without an owner.
hubspot_owner_id matches any deactivated owner ID — count should be zero.hubspot_owner_id back to the original value./assign-unowned-contacts for comprehensive ownership hygiene.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./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