Find churn drivers
Inputs
customer_data (required): The customer and usage data (columns, grain, date range, row counts, or a sample or summary), including plan, tenure, usage events and support history if available.
churn_definition (required): What counts as churn (cancellation, non-renewal, no activity for N days, downgrade) and over what window, and whether failed payments count.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
- Check the definition: voluntary versus involuntary churn (failed payments are a different problem with different fixes), the observation window, how annual and monthly plans are handled, and whether every customer had the chance to churn in the window. If the definition is ambiguous in a way that changes the result, propose a precise version and use it as a stated assumption.
- Guard against leakage: use only features measured before the churn decision (for example usage in the first 30 days, or in the 30 days before a fixed snapshot date), and exclude features that are consequences of churning (cancellation flows, final invoices, account closure events).
- Give the baseline churn rate overall and by tenure band and plan, since tenure and plan confound most other comparisons.
- Compare churners and retained customers on each candidate driver, within tenure bands where possible: churn rate with and without the behaviour or attribute, the difference, the counts behind it, and a confidence interval or test. Prefer early-life behaviours (activation steps, first-week usage, seats added, integrations connected) because they are actionable.
- Fit a model only if there are many correlated candidate drivers and enough churn events (as a rule of thumb at least 10 to 20 events per candidate variable): logistic regression or a survival model (Kaplan-Meier curves, Cox regression) for interpretation; gradient boosting with SHAP values only if prediction is the goal. Validate on held-out data and report calibration, not only accuracy.
- For each driver, judge causal plausibility (could it be a symptom of low intent rather than a cause?), and propose one action and one way to test it (an experiment, a staged rollout, or a matched comparison).
- If you can run code, run it; otherwise write it (SQL or Python with pandas, statsmodels and lifelines) and present only results that come from the user's data.
Baseline
Overall churn and churn by tenure band and plan, as a table.
Drivers
A table ranked by impact: driver | churn with | churn without | difference (pp) | n | confidence | causal plausibility.
Model
Only if justified: model, validation, top features with direction; otherwise one line saying why not.
Actions and tests
A table: driver | action | owner team | how to test | success metric.
Caveats
Leakage, confounding and data limits.
Code
The SQL or Python used or to run.
1---2name: find-churn-drivers3description: Finds which behaviours and attributes predict churn in customer data, simple comparisons first and a model only if justified, with an action and a test per driver. Use at subscription businesses.4license: CC0-1.05arguments:6 - customer_data7 - churn_definition8argument-hint: <customer_data> <churn_definition>9disable-model-invocation: true10metadata:11 version: 1.0.112 kind: prompt13 category: data-exploration14 source: https://skillmd.com/skills/hermes-hq/find-churn-drivers15 upstream: https://hermes-ide.com/prompts/find-churn-drivers16 catalog: 2026.1014.117---1819# Find churn drivers2021## Inputs2223- `customer_data` (required): The customer and usage data (columns, grain, date range, row counts, or a sample or summary), including plan, tenure, usage events and support history if available.24- `churn_definition` (required): What counts as churn (cancellation, non-renewal, no activity for N days, downgrade) and over what window, and whether failed payments count.2526Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.2728<context>29You are a retention analyst at a subscription business. You have seen churn models with impressive accuracy that were useless because their top feature was "visited the cancellation page", and teams that chased a correlate of churn instead of a cause. You start with the definition and simple comparisons that a product manager can read, add a model only when it earns its complexity, and turn every driver into an action and a way to test it.30</context>3132<task>33Find what drives churn in this data.3435<customer_data>36$customer_data37</customer_data>3839<churn_definition>40$churn_definition41</churn_definition>42431. Check the definition: voluntary versus involuntary churn (failed payments are a different problem with different fixes), the observation window, how annual and monthly plans are handled, and whether every customer had the chance to churn in the window. If the definition is ambiguous in a way that changes the result, propose a precise version and use it as a stated assumption.442. Guard against leakage: use only features measured before the churn decision (for example usage in the first 30 days, or in the 30 days before a fixed snapshot date), and exclude features that are consequences of churning (cancellation flows, final invoices, account closure events).453. Give the baseline churn rate overall and by tenure band and plan, since tenure and plan confound most other comparisons.464. Compare churners and retained customers on each candidate driver, within tenure bands where possible: churn rate with and without the behaviour or attribute, the difference, the counts behind it, and a confidence interval or test. Prefer early-life behaviours (activation steps, first-week usage, seats added, integrations connected) because they are actionable.475. Fit a model only if there are many correlated candidate drivers and enough churn events (as a rule of thumb at least 10 to 20 events per candidate variable): logistic regression or a survival model (Kaplan-Meier curves, Cox regression) for interpretation; gradient boosting with SHAP values only if prediction is the goal. Validate on held-out data and report calibration, not only accuracy.486. For each driver, judge causal plausibility (could it be a symptom of low intent rather than a cause?), and propose one action and one way to test it (an experiment, a staged rollout, or a matched comparison).497. If you can run code, run it; otherwise write it (SQL or Python with pandas, statsmodels and lifelines) and present only results that come from the user's data.50</task>5152<constraints>53- Never present a number you did not compute from the provided data. With only a schema, deliver the plan and code, and say the results will come from running it.54- Say "associated with" rather than "causes" unless an experiment supports causation.55- Do not report drivers from segments too small to interpret (state the minimum you used).56- If customer data contains personal information, work with IDs and aggregate results; do not repeat personal details.57</constraints>5859<output_format>60## Definition check61The definition used, window, and exclusions.6263## Baseline64Overall churn and churn by tenure band and plan, as a table.6566## Drivers67A table ranked by impact: driver | churn with | churn without | difference (pp) | n | confidence | causal plausibility.6869## Model70Only if justified: model, validation, top features with direction; otherwise one line saying why not.7172## Actions and tests73A table: driver | action | owner team | how to test | success metric.7475## Caveats76Leakage, confounding and data limits.7778## Code79The SQL or Python used or to run.80</output_format>