Skip to content

Bulk reassignment, auditing, and rep-transition ownership changes for HubSpot CRM records, built on the bulk-operations skill.

CCM score
73 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 finding records by owner, reassigning ownership in bulk or per record, and handling workflows when a rep leaves
  • Includes search and update commands for contacts, companies, deals, and tickets, plus team-level grouping by hubspot_owner_id
  • Enforces a dry-run digest and --confirm step before any irreversible objects update is applied
  • Designed for CRM admins managing ownership changes across HubSpot portals, with hubspot history available for recovery

Install

$ npx -y skills add hubspot/agent-cli-skills --skill team-ownership -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, pagination, dry-run/digest/confirm, and hubspot history recovery live there. Reshape patterns live in bulk-operations/resources/json-patterns.md.

hubspot_owner_id is a string field on contacts, companies, deals, and tickets. Owners are CRM users — hubspot owners list returns them; there is no teams object, so team-level views are client-side groupings by hubspot_owner_id.

1. Resolve email → owner ID

Never hardcode IDs — they are portal-specific. Resolve, then cache:

FROM_ID=$(hubspot owners list | jq -r 'select(.email=="sarah@company.com") | .id')
TO_ID=$(hubspot owners list | jq -r 'select(.email=="mike@company.com")  | .id')

2. Find records for an owner

Same filter across all four object types. Add object-specific --properties for context. Unowned records use the !property form.

Details

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

Questions

What does the team-ownership skill do?

The team-ownership skill assigns and reassigns CRM record ownership, audits who owns which records across contacts, companies, deals and tickets, and handles rep transitions. It is built on the bulk-operations skill, which supplies the JSONL piping and dry-run safety patterns it relies on.

How do I install the team-ownership skill?

Run npx -y skills add hubspot/agent-cli-skills --skill team-ownership -y in a project to install it. Once installed, the agent can resolve owner emails to owner IDs and search records by owner for bulk reassignment.

Does the team-ownership skill reassign records safely?

Yes, reassignment is irreversible, so the skill runs a dry-run first that emits a digest and a confirm value. You then re-run the update with that digest and confirm. If a record is reassigned by mistake, the hubspot history command can list the affected IDs from the last hour.

Where does the team-ownership skill rank in the Sales & CRM category?

The team-ownership skill ranks in the top 100 on the Sales & CRM category page. It covers ownership work that the other skills in the category, such as cold-email and revops, do not cover, namely assigning, reassigning and auditing owners across object types.

More from hubspot/agent-cli-skills

All 15

Similar to Team Ownership

More Sales & CRM