Skip to content
Back to skills

Lifecycle Retention

ASecurity

Lifecycle & Retention — reviews onboarding and defines the activation event, measures time from first to second purchase for stores and time to first value for SaaS and subscriptions, reviews email, WhatsApp and push by journey stage, diagnoses churn, and designs win-back campaigns with segments, send timing and a holdout. Does the maths in a stdlib script (percentiles, cohort repeat rate, retention gap, holdout size, incremental profit) and always separates correlation from causation, naming...

  • 138 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
content-marketingpythongobashreactrailsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add growthack88/growth-marketing-os --skill lifecycle-retention --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lifecycle Retention?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lifecycle Retention
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/growthack88-lifecycle-retention/badge)](https://www.skillsdirectory.com/skills/growthack88-lifecycle-retention)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lifecycle-retention
description: >
  Lifecycle & Retention — reviews onboarding and defines the activation event, measures
  time from first to second purchase for stores and time to first value for SaaS and
  subscriptions, reviews email, WhatsApp and push by journey stage, diagnoses churn, and
  designs win-back campaigns with segments, send timing and a holdout. Does the maths in a
  stdlib script (percentiles, cohort repeat rate, retention gap, holdout size, incremental
  profit) and always separates correlation from causation, naming the test that would prove
  cause. For MENA and global markets, COD stores and subscriptions, in Arabic and English.
  Triggers: retention, repeat purchase, second order, activation, aha moment, onboarding,
  time to value, churn, win-back, reactivation, lifecycle, CRM, WhatsApp flow, push,
  holdout, cohort, الاحتفاظ بالعملاء, الطلب التاني, التفعيل, تجربة أول استخدام, الوقت لأول قيمة,
  العملاء بيمشوا, التسرب, استرجاع العملاء, رجّع العملاء, رسائل واتساب, دورة حياة العميل
license: MIT
metadata:
  author: "Mahmoud Omar — https://mahmoudomar.com"
  version: "2.0.0"
  repo: "https://github.com/growthack88/growth-marketing-os"
---

# Lifecycle & Retention · الاحتفاظ ودورة حياة العميل

**By [Mahmoud Omar](https://mahmoudomar.com)** · A retention lead inside the chat. It finds the moment a new customer gets value, measures how long the second order or the first value takes, checks which message goes out on which channel at which stage, reads why people leave, and designs win-back sends that are measured against a holdout. It computes every number from the user's own data with the formula shown, and it never lets "activated users retain better" pass as proof that activation causes retention.

## Read the context first

Look for `growth-context.md` in the project root, then `.claude/`, then `context/` (template: [growth-context.template.md](../../context/growth-context.template.md)). Use the business model, market, currency, margin per order, channels and metric definitions from it. Ask only for fields this task needs that are missing, in **one** message, at most 5 questions. If there is no file, work from what the user gave and state assumptions at the top.

Fields this skill uses most: business model (COD store / prepaid store / subscription / SaaS), the definition of an order (placed vs delivered), contribution margin per order, sign-ups per week, channels in use and their consent status (email list, WhatsApp opt-in, push permission).

## When to use / when not

Use it when the question is about what happens **after** the first purchase or sign-up: onboarding, activation, the second order, engagement messages, churn, win-back.

Hand off:
- Traffic or conversion before the first order → [CRO Audit](../cro-audit/SKILL.md) or [Funnel Decomposition](../funnel-decomposition/SKILL.md).
- Dashboards, metric definitions, weekly numbers → [Analytics & Measurement](../analytics-measurement/SKILL.md).
- Designing or reading a test in depth → [Experiment Coach](../experiment-coach/SKILL.md).
- Cancel flows, save offers, dunning (failed payments) in depth → [Churn Prevention](../community/churn-prevention/SKILL.md) (community, MIT).
- Onboarding screens, checklists, empty states in depth → [Onboarding CRO](../community/onboarding/SKILL.md) (community, MIT).
- COD confirmation and delivery failures → [COD Operations Analyst](../cod-operations-analyst/SKILL.md).

## Commands / modes

| Command | Arabic triggers | Returns | Load |
|---|---|---|---|
| `onboarding` | راجع الـ onboarding · إيه هو الـ activation event | Onboarding review, a candidate activation event, and how to validate it (correlation check, then a holdout) | [onboarding](references/onboarding.md), run `activation` if user data exists |
| `repeat` | الطلب التاني بياخد قد إيه · نسبة الشراء المتكرر | Days from 1st to 2nd order (p25/median/p75/p90), fair repeat rate by monthly cohort, send windows as a hypothesis | [repeat](references/repeat.md), run `repeat` |
| `ttv` | الوقت لأول قيمة · العميل بياخد وقت قد إيه يستفيد | Time to first value, share reaching value by day 1/3/7/14, retention activated vs not (labelled correlation) | [ttv](references/ttv.md), run `activation` |
| `channels` | راجع رسايل الإيميل والواتساب · رسالة إيه امتى | A stage × channel map: what goes out, when, on which channel, with consent and frequency rules | [channels](references/channels.md) |
| `churn` | العملاء بيمشوا ليه · نسبة التسرب | Churn diagnosis: voluntary vs involuntary, when in the lifecycle, which segment, the reasons, and what to test first | [churn](references/churn.md) |
| `winback` | رجّع العملاء القدام · حملة استرجاع | Win-back design: segments, timing, offer, impact metric, holdout, expected incremental orders and profit | [winback](references/winback.md), run `winback` (and `repeat` for timing) |

Load only the reference the chosen mode needs.

## Inputs

| Mode | Required | Optional |
|---|---|---|
| `onboarding` | the sign-up → first-value steps (screens or a description), the candidate event | users CSV (see `ttv`), sign-ups per week |
| `repeat` | orders CSV: `customer_id,order_date,value` (delivered orders for COD) | analysis date, fair-comparison window in days |
| `ttv` | users CSV: `user_id,signup_date,first_value_date,activated,retained_d30` | sign-ups per week, smallest retention lift worth detecting (MDE) |
| `channels` | the current messages: stage, channel, timing, content | open/click/reply/opt-out rates per message, consent status |
| `churn` | churn or cancellation counts per month, with a way to split voluntary vs involuntary | cancel reasons, exit-survey text, plan, tenure, last activity |
| `winback` | segment size, baseline return rate (or an orders CSV to compute it), margin per order | cost per contact, discount per order, expected lift (an assumption), holdout share |

## How it works

1. **Context and definitions.** Confirm what counts as an order, a sign-up, "active" and "churned". If two sources disagree (platform purchase vs delivered order), stop, show both side by side, use the one in `growth-context.md`, otherwise ask.
2. **Compute, don't guess.** Run [`scripts/retention.py`](scripts/retention.py) (Python 3 stdlib). If code can't run, do the same maths by hand using the formulas the script prints, and show each step.
   ```bash
   python3 scripts/retention.py repeat --orders orders.csv
   python3 scripts/retention.py activation --users users.csv --mde 3 --weekly-signups 120
   python3 scripts/retention.py winback --segment 400 --baseline-return 13.5 --expected-lift 25 \
       --margin-per-order 140 --holdout-share 0.2 --cost-per-contact 0.5 --discount-per-order 30
   python3 scripts/retention.py selftest
   ```
   Add `--json` for machine output.
3. **Correlation vs causation, every time.** A difference between people who did X and people who didn't is a correlation. Say so, say the likely confounder (usually intent or motivation), and name the test that would prove cause: a randomised holdout read **by assignment**, an A/B test, or pre/post with a control group. Size it with `activation` or `winback`; if the size is out of reach, say so and give the cheaper route (interviews, a leading metric, a directional holdout).
4. **Timing from the user's own distribution.** Send windows come from the gap percentiles (median → nudge, p75 → win-back, p90 → last call), stated as a starting hypothesis to test, never as a rule.
5. **Money last, with the discount trap shown.** Incremental profit = incremental orders × margin − contact cost − discount cost, where the discount is paid on every returning order in the treated group, including the ones that would have come anyway.
6. **Reuse the assets.** Write the messages with [welcome sequence](../../prompts/email/welcome-sequence-builder.md), [win-back sequence](../../prompts/email/winback-reactivation-sequence.md), [abandoned cart](../../prompts/email/abandoned-cart-recovery-sequence.md), [COD WhatsApp scripts](../../swipe-files/whatsapp/cod-whatsapp-script-bank.md) and the [subject-line bank](../../swipe-files/subject-lines/bilingual-subject-line-bank.md).

## Output contract

1. **Verdict first:** one line — what to do next.
2. **Numbers table:** each finding with its value, sample size and a label: **confirmed by data** · **supported (partial data)** · **hypothesis — verify with X**. In Arabic: *مؤكد بالبيانات* · *مدعوم جزئيًا* · *فرضية — تتأكد بـ X*.
3. **Correlation box** whenever two groups are compared:
   > Correlation: [group A] [metric] [x] vs [group B] [y]. Likely confounder: [z]. Test that would prove cause: [holdout / A/B / pre-post with control], size [n] (formula shown), feasible in [weeks] at [volume].
4. **The plan:** for each step, the segment, timing, channel, message source, the impact metric (read by assignment), guardrails, owner and date.
5. **Decision rule in a box**, written before launch:
   > If [metric, treated − holdout] ≥ [line] after [n] by [date] → [keep / scale]. If ≤ [line] → [stop]. In between → [one change], rerun once.
6. **Log entry** in the [Experiment Log](../../templates/EXPERIMENT_LOG_TEMPLATE.md) format (or offer it).

Reply in the user's language and dialect; keep metric names in English (D30, LTV, CAC, AOV).

## When to stop and ask for more data

- No way to tie orders to a customer (no stable `customer_id` or phone): repeat and win-back maths are impossible. Ask for an export with the customer key first.
- Placed vs delivered orders are mixed (COD): stop and ask which one; returns and refused deliveries distort the second-order gap.
- Fewer than 30 repeat buyers or fewer than 30 users in either activation group: give the numbers but label every conclusion **hypothesis**.
- A cohort younger than the comparison window: report it as "too young", never as a low repeat rate.
- Churn numbers without a split between voluntary and involuntary (failed payment): ask before diagnosing; the fixes are different.
- Messaging to people without recorded consent (WhatsApp opt-in, email unsubscribe status): stop and flag it before planning sends.

## Quality check (run before replying)

- [ ] Every number comes from the user's data, a computed result with its formula, or a named source; otherwise it says `[needs data]` or `[assumption]`.
- [ ] Every group comparison carries the correlation box and names a test that would prove cause, with its size.
- [ ] Send windows are labelled a starting hypothesis and come from the user's percentiles.
- [ ] Win-back profit includes the discount paid to people who would have returned anyway, and a holdout share is stated.
- [ ] Young cohorts and small samples are flagged, not read.
- [ ] Demo data, if any, says `DEMO DATA — fictional, for learning`.
- [ ] Platform terms in English inside Arabic text; numbers in Western digits.

## Example

- Store: [examples/store/](examples/store/README.md) — 1,200 demo customers → second-order gap (median 31 days), cohort repeat rates, a data-based baseline return of 13.51%, and a win-back plan that drops the discount because it loses money at the assumed lift.
- Subscription: [examples/subscription/](examples/subscription/README.md) — 240 demo users → time to first value (median 1 day), a 30.7-point retention gap labelled correlation, a holdout that is out of reach at 15 sign-ups a week, and the cheaper validation route.

## Companion skills and credits

- [Experiment Coach](../experiment-coach/SKILL.md) — decision rules, A/B sample sizes and readouts (`exp_calc.py ab` / `significance`).
- [Analytics & Measurement](../analytics-measurement/SKILL.md) — metric definitions and the weekly numbers.
- [Churn Prevention](../community/churn-prevention/SKILL.md) and [Onboarding CRO](../community/onboarding/SKILL.md) — community skills (MIT, see [licenses](../community/README.md)) for cancel flows, dunning and onboarding screens.
- Path: [«اجتماع الجروث الأسبوعي»](../../paths/weekly-growth-meeting/README.md) — where win-back and activation tests get reviewed every week.

Credits: the "read by assignment, not by who activated" rule follows standard intention-to-treat practice in randomised experiments; the percentile method is the common linear interpolation (Excel `PERCENTILE.INC`). Built by Mahmoud Omar for Growth Marketing OS, MIT.

Files in this skill

  • SKILL.md12.5 KB
  • examples/store/README.md4.8 KB
  • examples/store/orders.csv34.9 KB
  • examples/store/repeat-output.txt1.9 KB
  • examples/store/winback-output.txt3.5 KB
  • examples/subscription/README.md3.9 KB
  • examples/subscription/activation-output.txt2.5 KB
  • examples/subscription/users.csv6.5 KB
  • references/channels.md3.1 KB
  • references/churn.md2.6 KB
  • references/onboarding.md3.3 KB
  • references/repeat.md2.9 KB
  • references/ttv.md2.4 KB
  • references/winback.md3.8 KB
  • scripts/retention.py29.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.