templates/analytics/.builder/skills/hubspot/SKILL.md
Query HubSpot CRM for deals, contacts, companies, and sales metrics. Use this skill when the user asks about sales pipeline, deal status, or customer CRM data.
npx skillsauth add BuilderIO/agent-native hubspotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
https://api.hubapi.comAuthorization: Bearer $HUBSPOT_ACCESS_TOKENHUBSPOT_ACCESS_TOKENserver/lib/hubspot.ts| Function | Description |
| ------------------------------------------------ | ------------------------------------ |
| getDealPipelines() | All deal pipelines with stages |
| getVisiblePipelines(pipelines) | Filter to visible pipelines |
| getMetricsPipelines(pipelines) | Filter to metrics-relevant pipelines |
| getAllDeals() | All deals (paginated, up to ~10k) |
| computeSalesMetrics(deals, pipelines, filter?) | Compute won/lost/pipeline metrics |
# List deals
pnpm action hubspot-deals --fields=dealname,amount,stageLabel
# Search for a specific customer
pnpm action hubspot-deals --grep="Example Corp" --fields=dealname,amount,stageLabel
getAllDeals paginates using limit=100 and HubSpot after token (up to 100 pages)DEAL_PROPERTIES includes hard-coded hs_v2_date_entered stage property names with embedded stage IDscomputeSalesMetrics infers won/lost stages from probability metadata or label text; identifies POV stages by names containing "proof of value", "pov", "poc"/crm/v3/objects/deals/{id}/associations/companies, then contacts via /crm/v3/objects/companies/{id}/associations/contactsTable: your-project-id.dbt_staging.hubspot_companies
company_name, company_id, company_domain_nameupcoming_renewal_date, customer_stage, hs_csm_sentimentcompany_owner_name, root_org_idcustomer_segmentation, current_enterprise_arr, company_statusdim_hs_contacts.builder_user_id → BigQuery usage datatools
Public booking flow — the state machine, animations, and URL/app-state sync.
tools
Trigger-based automations — reminders, follow-ups, webhooks — across the booking lifecycle.
tools
Team event types, round-robin assignment, collective bookings, host weights, and no-show calibration.
development
The pure `computeAvailableSlots` function — inputs, outputs, invariants, and debugging guide.