Score customer segments for churn risk from behavioral signals — email engagement decline, purchase recency, usage drops, support sentiment — producing a 0-100 risk scorecard with four tiers, per-tier intervention playbooks (actions, timing windows, channels, messaging), LTV-at-risk totals, and retention-ROI prioritization. Assesses and recommends; it does not send outreach or launch campaigns. Triggers on \"/digital-marketing-pro:churn-risk\", \"which customers are about to churn\", \"score our
git clone https://github.com/indranilbanerjee/digital-marketing-pro.git--- name: churn-risk description: "Score customer segments for churn risk from behavioral signals — email engagement decline, purchase recency, usage drops, support sentiment — producing a 0-100 risk scorecard with four tiers, per-tier intervention playbooks (actions, timing windows, channels, messaging), LTV-at-risk totals, and retention-ROI prioritization. Assesses and recommends; it does not send outreach or launch campaigns. Triggers on \"/digital-marketing-pro:churn-risk\", \"which customers are about to churn\", \"score our segments for churn risk\", \"email engagement is dropping, who is at risk\", \"build a retention intervention plan\". Pulls behavioral data from a connected CRM MCP (Salesforce or HubSpot) or user-provided exports, runs scripts/churn-predictor.py, and reads the brand profile for lifecycle context." --- # /digital-marketing-pro:churn-risk ## Purpose Assess churn risk across customer segments and generate intervention strategies. Score segments using behavioral signals — email engagement decline, purchase frequency drops, login pattern changes, support ticket escalations — to categorize each segment into risk tiers and produce actionable intervention playbooks. This command bridges the gap between knowing customers are churning and knowing what to do about it. Instead of reactive "win-back" campaigns after customers have already left, it identifies at-risk segments early enough to intervene while the relationship is still recoverable. Each intervention playbook includes specific actions, timing windows, channel recommendations, and messaging approaches calibrated to the risk tier and customer value. ## Input Required The user must provide (or will be prompted for): - **Customer segments to score**: The segments to evaluate — can be predefined CRM segments (e.g., "Enterprise accounts," "Monthly subscribers," "First-time buyers") or behavioral cohorts (e.g., "Users who haven't purchased in 60 days," "Users with declining email opens"). Each segment should include available behavioral signals: email engagement trends (open rate, click rate, unsubscribe rate over time), purchase frequency and recency, login or product usage patterns, support ticket volume and sentiment, and any other engagement indicators tracked in the CRM - **CRM data source**: Which CRM system holds the customer data — Salesforce, HubSpot, or another connected CRM MCP. The command will pull behavioral data directly from the CRM if connected, or the user can provide exported data - **Intervention budget (optional)**: Total budget available for retention interventions — used to prioritize which segments and actions to focus on based on LTV-at-risk versus intervention cost. If not provided, all recommendations are generated without budget filtering - **Lookback period (optional)**: How far back to analyze behavioral trends — defaults to 90 days. Shorter windows catch rapid deterioration, longer windows identify slow-burn churn patterns - **Custom churn signals (optional)**: Brand-specific behavioral indicators beyond the defaults — e.g., "stopped using feature X," "downgraded plan tier," "removed payment method," "decreased order size" — that have historically preceded churn for this brand ## Process 1. **Load brand context**: Read `~/.claude-marketing/brands/_active-brand.json` for the active slug, then load `~/.claude-marketing/brands/{slug}/profile.json`. Apply customer lifecycle data, historical churn rates, known retention patterns, and industry benchmarks. Also check for guidelines at `~/.claude-marketing/brands/{slug}/guidelines/_manifest.json` — if present, load any communication frequency limits or channel restrictions that constrain intervention options. Check for agency SOPs at `~/.claude-marketing/sops/`. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with industry defaults. 2. **Gather customer behavioral data**: Connect to the CRM MCP (Salesforce or HubSpot) and pull behavioral signal data for each segment — email engagement metrics over the lookback period, purchase history with frequency and recency calculations, product usage or login patterns, support interactions with sentiment indicators, and any custom churn signals the user specified. If CRM MCP is not connected, prompt the user to provide exported segment data or configure the integration. 3. **Score each segment for churn risk**: Execute `python "${CLAUDE_PLUGIN_ROOT}/scripts/churn-predictor.py" --brand {slug} --action score-segment --segment-name {name} --signals '{...behavioral signals...}'` with the behavioral signal data. The scoring model applies weighted signals — recent engagement decline is weighted more heavily than historical patterns, and signals are combined using a composite risk score. Each signal contributes based on its predictive strength: purchase frequency (highest weight, 0.25), engagement trend direction and velocity, support sentiment trajectory, and usage pattern breaks. Scores are normalized to 0-100 for comparability across segments. 4. **Categorize into risk tiers**: Map composite scores to four risk tiers — Low (0-25, stable engagement, no intervention needed beyond standard nurture), Medium (26-50, early warning signals present, proactive engagement recommended), High (51-75, multiple deteriorating signals, targeted intervention required within 2 weeks), and Critical (76-100, imminent churn risk, immediate high-touch intervention needed within 48 hours). **These cutoffs are fixed heuristic bands, not learned from your data** — the script computes the 0-100 score and these bands map score→tier. Recalibrate the band edges against your own realized churn before treating a tier as predictive; apply brand-specific thresholds where historical data suggests different cutoffs. 5. **Generate intervention playbook per tier**: For each risk tier with active segments, create a specific intervention playbook — the actions to take (personalized outreach, special offer, product education, account review, executive touch), timing window (how quickly to act and how long the intervention sequence runs), channels to use (email, phone, in-app, direct mail based on segment preferences and tier urgency), messaging approach (tone, value proposition emphasis, urgency level), and escalation path if the initial intervention doesn't shift engagement within the defined window. 6. **Calculate LTV at risk**: For each segment, estimate the lifetime value at risk if churn occurs — based on segment average LTV, segment size, and churn probability from the risk score. Aggregate to show total LTV at risk across all segments and per tier. This quantifies the business case for intervention investment. 7. **Prioritize interventions by LTV impact**: Rank all interventions by the ratio of LTV-at-risk to intervention cost — high-value segments in Critical and High tiers that can be retained with relatively low-cost interventions rank highest. If the user provided an intervention budget, apply it as a constraint and show which interventions fit within budget and which require additional investment, ordered by expected retention ROI. ## Output A comprehensive churn risk assessment containing: - **Churn risk scorecard**: All segments ranked by composite risk score — showing segment name, size, risk score (0-100), risk tier (Low/Medium/High/Critical), primary churn signals driving the score, and trend direction (improving, stable, or deteriorating) - **Risk tier distribution**: Summary view showing how many customers and what percentage of total base fall into each tier — with comparison to industry benchmarks and the brand's historical distribution if available - **Contributing factors per segment**: For each scored segment, the specific behavioral signals driving the risk assessment — which signals are deteriorating, how fast, and how they compare to the segment's historical baseline and to healthy-segment benchmarks - **Intervention playbook per tier**: Detailed action plans for Medium, High, and Critical tiers — each with specific actions (what to do), timing (when to act and sequence duration), channels (where to reach them), messaging framework (what to say and how to say it), success metrics (what improvement looks like), and escalation triggers (when to escalate to the next intensity level) - **LTV at risk calculation**: Total lifetime value at risk across all segments, broken down by tier — quantifying the business impact of inaction and the maximum justifiable investment in retention for each tier - **ROI estimate for intervention programs**: Projected retention lift and revenue saved per intervention, based on industry retention benchmarks and the brand's historical win-back rates — showing expected ROI for each playbook to justify budget allocation ## Agents Used - **marketing-scientist** — Churn scoring model design with weighted behavioral signal analysis, composite risk score calculation and tier threshold calibration, LTV-at-risk estimation using segment value and churn probability, intervention prioritization by retention ROI, and statistical validation of signal predictive strength against historical churn outcomes - **crm-manager** — CRM data extraction from Salesforce or HubSpot via connected MCP servers, customer segment definition and behavioral data structuring, engagement metric aggregation over lookback periods, and data quality validation to ensure scoring inputs are complete and reliable
[{"step":"Gather customer data. Export the last 6 months of customer activity, support tickets, payment history, and engagement metrics from your CRM (e.g., Salesforce) or analytics platform (e.g., HubSpot, Mixpanel). Ensure the data includes fields like customer ID, subscription status, last login date, support ticket count, and revenue.","tip":"Use a CSV export or API to pull clean, structured data. Include metadata like customer tenure, product tier, and any recent changes in their account."},{"step":"Define churn risk criteria. Adjust the risk threshold (e.g., 70/100) and contributing factors (e.g., inactivity periods, support volume) based on your business model. For SaaS, focus on product usage and engagement; for subscription services, prioritize payment issues.","tip":"Start with a conservative threshold (e.g., 80) and refine it after reviewing the first few reports. Validate the model by checking if flagged customers actually churned in the past 3 months."},{"step":"Run the churn risk analysis. Use the prompt template to generate a report, either by pasting it into an AI tool (e.g., Claude, ChatGPT) or automating it with a script (e.g., Python + Pandas). For automation, use tools like Zapier or Make to trigger the analysis weekly.","tip":"If using an AI tool, upload the customer data as a CSV file and ask the AI to analyze it directly. For scripts, ensure you handle missing data (e.g., impute averages for inactive customers)."},{"step":"Prioritize and act. Sort high-risk customers by revenue at risk and expected impact of interventions. Assign owners (e.g., account managers) and set deadlines for interventions. Track progress in your CRM or a spreadsheet.","tip":"For large datasets, use a tool like Tableau or Power BI to visualize risk scores and segment customers. Share the report with stakeholders in a weekly churn review meeting."},{"step":"Iterate and improve. After 30 days, compare the churn risk predictions with actual churn events. Refine the risk model by adjusting weights for contributing factors or adding new signals (e.g., feature adoption rates).","tip":"Collaborate with your data team to build a predictive model if you have the resources. For smaller teams, start with a rule-based approach and gradually introduce machine learning."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/indranilbanerjee/digital-marketing-pro/tree/main/skills/churn-riskCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Analyze the customer dataset for [COMPANY] and calculate churn risk scores for each active customer. Flag customers with a risk score above [THRESHOLD, e.g., 70] as high-risk. For each high-risk customer, identify the top 3 contributing factors (e.g., low engagement, payment issues, support tickets) and suggest tailored retention interventions, such as personalized offers, proactive outreach, or account reviews. Prioritize the list by expected revenue impact.
### Churn Risk Assessment Report for Acme Corp (June 2024)
**High-Risk Customers (Risk Score ≥ 70):**
1. **Customer ID: C-4582**
- **Risk Score:** 87
- **Revenue at Risk:** $12,450 (Annual Contract Value)
- **Top Contributing Factors:**
- 30-day inactivity in product usage (last login: May 15, 2024)
- 2 unresolved support tickets (open since April 28, 2024)
- Recent downgrade in subscription tier (March 2024)
- **Recommended Interventions:**
- **Week 1:** Send a personalized email from the account manager with a 15% discount on the next renewal if they re-engage within 7 days.
- **Week 2:** Schedule a 30-minute call with the customer success team to address support tickets and discuss their evolving needs.
- **Week 3:** Offer a free 1:1 training session on advanced features to increase product stickiness.
2. **Customer ID: C-7891**
- **Risk Score:** 79
- **Revenue at Risk:** $8,900
- **Top Contributing Factors:**
- Payment failure on May 10, 2024 (resolved after 3 days)
- Low NPS score (3/10) in the latest survey
- Competitor product demo scheduled for June 5, 2024
- **Recommended Interventions:**
- **Immediate:** Waive the late fee and send a conciliatory email acknowledging the payment issue.
- **Week 1:** Assign a dedicated success manager to conduct a value realization call.
- **Week 2:** Invite the customer to an exclusive webinar featuring customer success stories.
3. **Customer ID: C-1123**
- **Risk Score:** 74
- **Revenue at Risk:** $6,200
- **Top Contributing Factors:**
- Reduced usage of key features (40% drop in API calls since March 2024)
- No recent interactions with the product team
- Budget cuts announced in their organization (from internal sources)
- **Recommended Interventions:**
- **Week 1:** Schedule a business review meeting to align on their goals and identify cost-saving opportunities.
- **Week 2:** Offer a flexible payment plan or a temporary discount to ease budget constraints.
**Next Steps:**
- Share this report with the customer success and sales teams by EOD Friday.
- Assign owners for each high-risk customer and track intervention progress in the CRM.
- Re-run the churn risk analysis weekly to monitor changes in risk scores.skills-collection
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan