hubspot-crm

HubSpot adapter of crm (use crm for any other CRM, or with no CRM). Derive the ICP from HubSpot closed-won deals, check a lead list against existing HubSpot contacts and companies before outreach, and

SKILL.md

GitHub

HubSpot only. crm is the version for every CRM and calls this skill when the team's CRM is HubSpot. Its rules (crm, section 3) apply here too.

HubSpot CRM

HubSpot is the source of truth in this stack. Clay and Lemlist feed it; nothing should overwrite it blindly.

Connection: HubSpot's remote MCP server, through the HubSpot connector in the Claude app or a registered MCP connector (see hackathon-setup step 3). Call get_user_details first to confirm the portal and what is writable. List the tools before the first call; pick by what they do, among the tools of the HubSpot endpoint only (mcp.hubspot.com, or the claude.ai connector called exactly HubSpot). Another CRM connected in the user's Claude account (Salesforce, Attio, Pipedrive, Dex, Airtable, Notion...) is never used for a HubSpot step or a CRM write; if no HubSpot server is connected, stop at "Connect HubSpot first" (hackathon-setup step 3) or take the CSV route.

The HubSpot skill set

This skill is the hub: ICP, dedupe, and the write rules every other HubSpot skill follows.

Need Skill
Brief on a whole account (company) hubspot-account-brief
Prep a call or meeting with one person hubspot-call-prep (official)
Quick look at one person's record hubspot-contact-lookup (official)
Quick lookups, stats, a task, a field or deal change, a new deal hubspot (official)
Pipeline health, suggested tasks and forecast hubspot-pipeline-pulse (official)
Log a call or meeting (note, deal fields, lead status, follow-up task) hubspot-log-call (official)
Today's tasks, meetings and at-risk deals hubspot-daily-brief (official)
Draft a follow-up email to open in HubSpot hubspot-follow-up (official)
Import contacts from a CSV or a pasted list hubspot-import-contacts (official)
Getting started in an empty portal hubspot-onboarding (official)
Score, route and assign new leads hubspot-lead-triage
Data-quality audit (read-only) crm-audit
ICP tiers, lead scoring and segment lists (a spec and an import file) crm-scoring-design
Duplicate contacts and companies (report only) crm-duplicate-detector

Rows marked official come from HubSpot's own hubspot-sales plugin (Apache-2.0), vendored and adapted: each has a box at the top with this workspace's rules, and the rules below apply to them too. The last three rows are this workspace's CRM-agnostic skills: they read HubSpot and write a report or an import file, never a bulk change.

Job A: derive the ICP (step 1 of revenue-engine)

  1. Pull closed-won deals, newest first, up to 100. If there are fewer than 10, say so and ask the user to describe the ICP instead.
  2. For each deal, get the associated company: industry, employee count, country, annual revenue if present, and the contacts' job titles.
  3. Find the patterns: top 3 industries, the size band that holds most wins, top countries, the 3 to 5 titles that appear most among contacts on won deals.
  4. Write out/icp.md in exactly this shape, so clay-build-list can read it:
# ICP
source: HubSpot closed-won, N deals, <date range>
industries: <comma list>
employees: <min>-<max>
countries: <comma list>
titles: <comma list>
exclude_domains: <domains of current customers and open deals>
notes: <one or two lines on anything surprising>

exclude_domains matters: it is how the loop avoids prospecting existing customers.

Job B: dedupe a lead list (step 3)

  1. Read out/leads.csv. Match each row against HubSpot contacts by email first, then against companies by domain.
  2. Split into three groups: new (no match), known company but new contact, already a contact.
  3. Write out/leads-new.csv with the first two groups (keep every input column, including any fit_ columns; if any row has a fit_score, leave out rows below min_fit_to_route from clay-build-list, and rows with an empty fit_score, and count them; if no row has one, keep every row), adding a column crm_status (new or known_company) and crm_owner where a company owner exists.
  4. Report the three counts. Never delete or edit HubSpot records in this job.

Job C: write back (used by close-the-loop)

  • Create a contact only if no contact with that email exists. Associate it to the company by domain; create the company only if none matches.
  • Log engagement as a note on the contact, not by overwriting properties. Start the note with [<team>][<tool>], for example [acme][lemlist].
  • Set lifecycle stage forward only (subscriber to lead to MQL to SQL), never backwards.
  • Create a deal only when the user says so, or when a reply is tagged interested and the user approved deal creation for this run.
  • Before any write, read crm_mode in team-profile.md: if read-only, write nothing and offer a CSV of the planned changes instead.
  • Every write needs a go. Over 10 records: show the plan first and write in batches of 10 (the HubSpot connector's limit).
  • Never create a company from a free-mail domain (gmail.com, outlook.com, yahoo.com, hotmail.com, icloud.com).
  • Lifecycle stages only move forward in the loop's write-backs. A stage that needs moving back is a manual fix the team makes in HubSpot.

Failure modes

  • Auth expired: run /mcp, pick hubspot, re-authenticate.
  • Missing scope (for example, deals): say which object failed and continue with what works.