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
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, andhs_subscription_status, plus aresources/customer-health-signals.mdcookbook of extra churn signals - Requires checking each property with
hubspot properties getfirst, since schemas are portal-specific, and a private-app token withsubscriptions-readscope - Designed for HubSpot admins and sales ops teams running retention campaigns, building on
bulk-operationsandsales-execution
Install
$ npx -y skills add hubspot/agent-cli-skills --skill customer-retention -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Resources
| File | When to use |
|---|---|
resources/customer-health-signals.md | Filter 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 15Similar to Customer Retention
More Sales & CRMcrm-data-qualityhubspot/agent-cli-skills2K installsFind and fix incomplete CRM records, normalize field values, dedupe contacts, and audit properties.
deal-managementhubspot/agent-cli-skills1.9K installsFull deal lifecycle from the CLI: discover pipelines, qualify MQLs, bulk-advance deals, hunt stalled ones, and close.
hubspotopenclaudia/openclaudia-skills459 installsManage HubSpot CRM records and CMS pages through the API with pipeline reporting and deal health checks.
crm-hygieneguia-matthieu/clawfu-skills240 installsAudit and fix CRM data quality by flagging missing fields, inconsistent values, duplicates, and stale records.