Skip to content

Batch-upserts CSV or JSONL records into HubSpot contacts or companies by email or domain in one pass.

CCM score
77 of 100
skills.sh installs
1.9K
GitHub stars
30
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the reshape, dry-run, and execute flow using jq pipelines into hubspot objects upsert, with per-row OK and error splitting
  • Includes OR-search matching with --filter groups, capped at 5 per call, for read-only lookups without write-back
  • Enforces a dry-run digest and confirm step before any write, and lowercases natural keys since CRM matching is exact
  • Designed for RevOps and sales-ops teams enriching CRM records from spreadsheet exports

Install

$ npx -y skills add hubspot/agent-cli-skills --skill data-enrichment -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Prereq: read bulk-operations/SKILL.md first — JSONL piping, dry-run/digest, history, and rate-limit hygiene live there. This skill is the upsert-by-natural-key workflow on top.

The core move: upsert, not search-then-create

hubspot objects upsert --type X --id-property <natural-key> reads JSONL on stdin and creates-or-updates each row in one CLI call (the CLI batches 100 rows per API request), keyed by a property (email for contacts, domain for companies). No race window, no branching. Do not loop search → empty? → create.

Per line in: {"id":"jane@example.com","properties":{"firstname":"Jane","jobtitle":"VP"}} Per line out: {"id":"123","ok":true,"data":{...}} or {"ok":false,"error":{...}}. Order matches input. The CLI adds no fields of its own — data is the raw batch-upsert API result row.

CSV/JSONL → upsert stream

Details

Repository
github.com/hubspot/agent-cli-skills
Category
Sales & CRM
First seen
Jul 14, 2026

Questions

What does the data-enrichment skill do with CSV or JSONL records?

It matches external CSV or JSONL records to HubSpot contacts by email or companies by domain, then writes the enriched data back in one pass using hubspot objects upsert. The upsert creates or updates each row in a single CLI call, batching 100 rows per API request.

How do I install the data-enrichment skill?

Run npx -y skills add hubspot/agent-cli-skills --skill data-enrichment -y in your project. The skill then lets your agent reshape records with jq, preview changes with --dry-run, and execute the upsert safely.

Can data-enrichment update records without creating new ones?

Yes, a match-only path uses repeated --filter flags to search existing contacts, with a verified cap of 5 OR groups per call. Those matches can then be updated with hubspot objects update after a dry run.

More from hubspot/agent-cli-skills

All 15

Similar to Data Enrichment

More Sales & CRM