hubspot avatar

Customer Retention

Finds customers who haven't been contacted in X days (or ever) and bulk-creates follow-up tasks so they don't slip through the cracks. You filter contacts by `notes_last_contacted` or `hs_last_sales_activity_date`, pipe the results through jq to build task payloads, then associate each task back to its contact. The associations are the annoying part since there's no batch endpoint, so you're running one CLI call per pair. It leans hard on the bulk-operations patterns for pagination and dry-run digests. If you're staring at a renewals report and need to spin up 200 check-in tasks before end of quarter, this is the playbook.

skills.sh installs
1.8K
GitHub stars
29
last updated
Aug 21, 2026

Install

$ npx -y skills add hubspot/agent-cli-skills --skill customer-retention --agent claude-code

Installs into .claude/skills of the current project.

Files

Resources

FileWhen to use
resources/customer-health-signals.mdFilter cookbook of churn signals — --filter expressions for notes_last_contacted, hs_last_sales_activity_date, hs_email_optout, stale tickets, subscription status.

Prereqs

Read bulk-operations/SKILL.md first — every read/write below uses its JSONL pipe, pagination, and dry-run/digest patterns. Activity-property tables and association rules live in sales-execution/SKILL.md.

Schema is portal-specific. Verify each property before filtering — e.g. hubspot properties get --type contacts notes_last_contacted, ... hs_last_sales_activity_date, ... --type subscriptions hs_subscription_status. If subscriptions returns 403, your token lacks subscriptions-read — use a private-app token with that scope.

1 — Find inactive customers

CUTOFF=$(date -v-60d +%Y-%m-%d 2>/dev/null || date -d '60 days ago' +%Y-%m-%d)

# No outreach in 60d (calls/notes/meetings update notes_last_contacted)
hubspot objects search --type contacts \
  --filter "lifecyclestage=customer AND notes_last_contacted<$CUTOFF" \
  --properties email,firstname,notes_last_contacted,hubspot_owner_id

Sponsors

Details

Repository
github.com/hubspot/agent-cli-skills
Categories
AI & Agent Building, Sales & Marketing, CLI & Terminal
First seen
Jul 14, 2026

More from hubspot/agent-cli-skills

All 15
1github avatarcreating-oracle-to-postgres-migration-bug-reportgithub/awesome-copilotCreates structured bug reports for defects found during Oracle-to-PostgreSQL migration. Use when documenting behavioral differences between Oracle and PostgreSQ1.8Kskills.sh installs
2liangdabiao avatarstock-research-executorliangdabiao/claude-code-stock-deep-research-agent股票投资调研执行引擎,执行8阶段投资尽调流程。接收stock-question-refiner生成的结构化调研指令,部署多智能体并行研究,生成带引用的投资尽调报告。覆盖:公司事实底座、行业周期、业务拆解、财务质量、股权治理、市场分歧、估值护城河、综合报告。当用户需要进行股票投资研究、基本面分析、投资尽调时使用此技能。1.8Kskills.sh installs
3hubspot avatarteam-ownershiphubspot/agent-cli-skillsAssign and reassign CRM record ownership, audit who-owns-what across object types, and handle rep transitions. Built on `bulk-operations`.1.8Kskills.sh installs
4hubspot avataraudience-targetinghubspot/agent-cli-skillsBuild a targeted contact segment by filtering on lifecycle, engagement, jobtitle, geography, or firmographics — then export it as JSONL for a campaign or downst1.8Kskills.sh installs
5k-dense-ai avatarxlsxk-dense-ai/scientific-agent-skillsCreate, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, fin1.8Kskills.sh installs
6github avataroo-component-documentationgithub/awesome-copilotCreate or update standardized object-oriented component documentation using a shared template plus mode-specific guidance for new and existing docs.1.8Kskills.sh installs