/hubspot-admin:create-icp-tiersfrom hubspot-admin
Classifies companies into ICP tiers based on industry and employee count. Creates a custom HubSpot property and 4 automated workflows for continuous classification.
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.
Classify every company in the CRM into an Ideal Customer Profile tier based on firmographic data. Creates a custom dropdown property and 4 automated workflows that continuously classify companies as they enter or change.
Without ICP classification, every inbound lead looks the same regardless of whether they come from a large enterprise in a target vertical or a tiny company in an irrelevant industry. Sales and marketing have no systematic way to prioritize outreach, allocate resources, or differentiate campaigns by company fit. ICP Tier is also a major input to the lead scoring model.
HUBSPOT_ACCESS_TOKEN in .env; an existing legacy private app token also works) with company read/write and crm.schemas.companies.write scopesuvBefore executing, collect the following information from the user:
Q1: What industries define your ideal customer?
Q2: What employee count ranges define your tiers?
Q3: Are there any other firmographic criteria?
Script 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/create-icp-tiers/ in a clone of the repo).
| Stage | Script | Run with |
|---|---|---|
| Before | scripts/before.py | uv run scripts/before.py |
| Execute | scripts/execute.py | uv run scripts/execute.py |
| After | scripts/after.py | uv run scripts/after.py |
before.py checks whether the tier property exists and audits industry/employee-count coverage. execute.py creates the ICP Tier property (review its configuration block first). after.py verifies coverage and tier distribution. The classification workflows themselves are built in the UI (see Execute).
Before building anything, define your criteria framework:
| Tier | Label | Industry Verticals | Employee Threshold |
|---|---|---|---|
| Tier 1 | Primary ICP | [Your primary verticals, e.g., Manufacturing, Professional Services, Logistics] | [e.g., 1,000+] |
| Tier 2 | Secondary ICP | [Your secondary verticals, e.g., Retail, Education, Media & Entertainment] | [e.g., 200+] |
| Tier 3 | Tertiary ICP | [Your tertiary verticals, e.g., Hospitality, Real Estate, Agriculture] | [e.g., 200+] |
| Not ICP | Not ICP | Everything else | Any |
Size-based demotion pattern: Companies in a higher-tier industry but below that tier's employee threshold should be demoted to the next tier down, not classified as "Not ICP". For example:
This ensures ICP-relevant companies are never lost due to size alone.
Run uv run scripts/before.py. The core queries:
# Check if the ICP Tier property already exists
# Use your chosen property name (e.g., "company_segment", "buyer_tier", "icp_tier")
PROPERTY_NAME = "company_segment"
resp = requests.get(f"{BASE}/crm/v3/properties/companies/{PROPERTY_NAME}",
headers=HEADERS)
print("Property exists" if resp.status_code == 200 else "Property does not exist yet")
# Check data coverage for classification
for prop_name in ["industry", "numberofemployees"]:
resp = requests.post(f"{BASE}/crm/v3/objects/companies/search", headers=HEADERS, json={
"filterGroups": [{"filters": [
{"propertyName": prop_name, "operator": "NOT_HAS_PROPERTY"},
]}],
"limit": 1,
})
print(f"Companies missing {prop_name}: {resp.json()['total']}")
Choose a property name that fits your CRM conventions (e.g., company_segment, buyer_tier, or icp_tier). The name is configurable -- just be consistent across workflows and lists.
Via API (recommended): run uv run scripts/execute.py, which posts:
# Configure your property name here
PROPERTY_NAME = "company_segment"
resp = requests.post(f"{BASE}/crm/v3/properties/companies", headers=HEADERS, json={
"name": PROPERTY_NAME,
"label": "ICP Tier",
"type": "enumeration",
"fieldType": "select",
"groupName": "companyinformation",
"description": "Automated ICP classification based on industry and employee count. "
"Set by workflow - do not edit manually.",
"options": [
{"label": "Tier 1 - Primary ICP", "value": "tier_1_primary_icp", "displayOrder": 0},
{"label": "Tier 2 - Secondary ICP", "value": "tier_2_secondary_icp", "displayOrder": 1},
{"label": "Tier 3 - Tertiary ICP", "value": "tier_3_tertiary_icp", "displayOrder": 2},
{"label": "Not ICP", "value": "not_icp", "displayOrder": 3},
],
})
resp.raise_for_status()
Via UI: Settings > Properties > Company properties > Create property > Dropdown select with the four tier options.
Build 4 company-based workflows in the HubSpot UI. Workflows must use filter-based triggers ("When filter criteria is met") with AND logic.
Option 1: Manual UI Build. Follow the per-workflow specifications below. This is the most reliable method and gives you full control over every trigger and action.
Option 2: HubSpot Breeze AI. Navigate to Automation > Workflows > Create workflow > "Describe what you want" and paste the following prompt (repeat for each tier, adjusting the tier name, industries, and thresholds):
Create a company-based workflow that triggers when filter criteria is met:
- Number of Employees is greater than or equal to [THRESHOLD]
- AND Industry is any of [LIST YOUR INDUSTRIES]
- AND the custom property "ICP Tier" is unknown
The workflow should set the custom property "ICP Tier" to "[TIER VALUE]".
Enable re-enrollment for all trigger properties.
For the Not ICP catch-all workflow, use:
Create a company-based workflow that triggers when filter criteria is met:
- Custom property "ICP Tier" is unknown
The workflow should wait a delay (30-90 minutes) to let tiered workflows process first, then set the custom property "ICP Tier" to "Not ICP".
Enable re-enrollment.
CRITICAL WARNING: Breeze trigger limitations. Breeze creates event-based triggers (OR logic) instead of filter-based triggers (AND logic). This is especially dangerous for ICP classification because event-based triggers fire when any single property changes, regardless of other conditions, leading to incorrect tier assignments. After Breeze creates each workflow, you MUST manually verify and rebuild the triggers to use filter-based enrollment with AND logic. Breeze is best used for creating the workflow skeleton (actions, delays) -- the trigger conditions almost always need manual correction.
Additional Breeze limitations:
Option 3: Claude Anthropic Chrome Extension. The Claude Chrome extension lets Claude see and interact with the HubSpot workflow builder UI directly. You can describe each workflow's logic in natural language and Claude will click through the UI to build it. This is often more accurate than Breeze for the ICP workflows because of their complex multi-group filter logic and the critical requirement for AND-based triggers. Build the four workflows one at a time, activating in the staggered sequence described in Step 3.
ICP TIER: Assign Tier 1 - Primary ICPIndustry variant tip: HubSpot has multiple labels for the same vertical. For example, "Manufacturing" might appear as "Manufacturing", "Industrial Automation", "Machinery", "Electrical/Electronic Manufacturing". Include ALL relevant variants in the "is any of" filter. Check what values actually exist in your data.
ICP TIER: Assign Tier 2 - Secondary ICPFilter Group 1 — Secondary industries at threshold:
Filter Group 2 — Primary industries demoted by size:
Number of Employees >= [e.g., 200]
AND Number of Employees <= [e.g., 999]
AND Industry is any of [your primary verticals and variants]
AND ICP Tier is unknown
Re-enrollment: ON
Action: Set ICP Tier = "Tier 2 - Secondary ICP"
ICP TIER: Assign Tier 3 - Tertiary ICPICP TIER: Assign Not ICPActivate workflows in staggered sequence to prevent race conditions:
The stagger ensures higher-priority tiers process first. The "ICP Tier is unknown" filter on Tiers 2-4 prevents overwriting, and the delay on Not ICP provides additional buffer.
Wait 2-4 hours for all workflows to process, then verify: uv run scripts/after.py (checks that 0 companies lack a tier and prints the distribution per tier value).
Verification checklist:
DELETE /crm/v3/properties/companies/{name} archives it; values are recoverable by unarchiving). Check that no lists, reports, or scoring models reference it first.automation-access scope, you can read workflow definitions via the Workflows API and programmatically verify that triggers match your spec.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hubspot, icp, lead-scoring, crm-automation, firmographic-segmentation
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