Skip to content
hubspot avatar

Customer Retention

Find lapsed HubSpot customers through CRM filters and create follow-up tasks in bulk.

CCM score
69 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 inactive customers by last-contact date, flagging at-risk subscriptions, and creating associated follow-up tasks for a cohort
  • Includes filter recipes for notes_last_contacted, hs_last_sales_activity_date, and hs_subscription_status, plus a resources/customer-health-signals.md cookbook of extra churn signals
  • Requires checking each property with hubspot properties get first, since schemas are portal-specific, and a private-app token with subscriptions-read scope
  • Designed for HubSpot admins and sales ops teams running retention campaigns, building on bulk-operations and sales-execution

Install

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

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

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

Details

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

Questions

What does the customer-retention skill do?

It finds inactive or at-risk customers in HubSpot CRM using filters such as days since last contact and sales activity, flags past-due subscriptions, and creates follow-up tasks at scale. It builds on the bulk-operations skill for its JSONL pipes and pagination.

How do I install the customer-retention skill?

Run npx -y skills add hubspot/agent-cli-skills --skill customer-retention -y in your project. Once installed, the agent can search for churn-risk contacts and create and associate follow-up tasks for them.

What does the customer-retention skill need before it runs?

It uses the hubspot agent CLI and a HubSpot token. Checking subscription status requires a private-app token with the subscriptions-read scope, since a 403 response means that scope is missing. Property names vary by portal, so the skill verifies each one before filtering.

Which category does customer-retention belong to, and how does it compare?

It sits in the Sales & CRM category and ranks in the top 100 on that category page. Other skills in the category include cold-email, sales-enablement, revops, prospecting and firecrawl-lead-gen, and this one is focused on retaining existing customers rather than acquiring new leads.

More from hubspot/agent-cli-skills

All 15

Similar to Customer Retention

More Sales & CRM