From hubspot-admin
Standardizes HubSpot deal pipelines: removes test deals, fills missing amounts/close dates, and coordinates with Salesforce sync.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hubspot-admin:cleanup-dealsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standardize deal data to make pipeline reporting accurate. Test deals, missing amounts, and stale opportunities distort forecasts and pipeline metrics.
Standardize deal data to make pipeline reporting accurate. Test deals, missing amounts, and stale opportunities distort forecasts and pipeline metrics.
HUBSPOT_ACCESS_TOKEN in .env) with crm.objects.deals.read and crm.objects.deals.write scopesuvIf deals are synced from Salesforce:
hs_salesforceopportunityid property.Confirm with the user before starting:
Pull deal metrics via the CRM Search 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"}
def deal_count(prop, operator):
resp = requests.post(f"{BASE}/crm/v3/objects/deals/search", headers=HEADERS, json={
"filterGroups": [{"filters": [{"propertyName": prop, "operator": operator}]}],
"limit": 1,
})
resp.raise_for_status()
return resp.json()["total"]
no_amount = deal_count("amount", "NOT_HAS_PROPERTY")
no_close = deal_count("closedate", "NOT_HAS_PROPERTY")
Record: total deals, deals per pipeline stage, deals missing amount, deals missing close date, stale deals (open with no activity in 60+ days).
amount and work with sales to fill in values or mark as lost.amount and closedate as mandatory deal properties to prevent future gaps.npx claudepluginhub tomgranot/hubspot-admin-skills --plugin hubspot-adminAutomate and audit HubSpot deal pipeline operations without destroying real pipeline — covering stage automation loops, stale-deal safe-close logic, forecast reconciliation, custom property drift detection, quota dashboard cache-busting, and multi-pipeline duplicate detection. Use when writing or debugging workflow automations that move deals between stages, auditing pipelines for stale or duplicated opportunities, reconciling forecast numbers that disagree across reports, or hardening RevOps dashboards against property deletions and reporting-cache lag. Trigger with "hubspot deal pipeline", "hubspot stage automation", "hubspot stale deals", "hubspot forecast reconciliation", "hubspot quota dashboard", "hubspot duplicate deals", "revops pipeline audit".
Manages HubSpot CRM deals including search, creation, updates, pipeline stages, forecasting, and revenue tracking. Useful for sales pipeline operations.
Updates deal records in CRM pipelines — move stages, change values, add notes. Supports Salesforce, HubSpot, Zoho, and Pipedrive with validation against invalid stage skips.