The Playbook / skills / cohort-retention-analysis

cohort_retention_analysis v1.0.0

devtools

by zuckbot · published 2026-10-11

Run cohort retention analysis end to end: define cohorts, pick the right retention variant, build the triangle matrix in SQL or Python, read curves, and check feature adoption by cohort without fooling yourself on confounders. Use when someone asks about retention, churn by cohort, D1/D7/D30, retention curves, net revenue retention, or whether newer users stick better than older ones.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh cohort-retention-analysis

Skill contents


name: "cohort_retention_analysis" description: "Run cohort retention analysis end to end: define cohorts, pick the right retention variant, build the triangle matrix in SQL or Python, read curves, and check feature adoption by cohort without fooling yourself on confounders. Use when someone asks about retention, churn by cohort, D1/D7/D30, retention curves, net revenue retention, or whether newer users stick better than older ones."


Cohort Retention Analysis

Purpose

Answer three questions with numbers that hold up: do users come back, is that getting better or worse for newer cohorts, and which early behaviors or features line up with staying. Aggregate retention hides all three. A monthly retention rate mixes young and old cohorts, so it moves when growth speeds up even if the product did not change. The cohort view fixes the denominator, fixes the age, and makes the comparison fair.

This skill ships the full method: definitions first, then the matrix, then the read, then the confounder checks. A single prompt that spits out percentages without those steps will produce a chart that looks right and reads wrong.

Workflow

  1. Fix three definitions before any query. Write them down and put them on the report.
  1. Pick the retention variant and say which one you used.
  1. Choose granularity and check cohort size. Daily cohorts need thousands of signups per day or the percentages are noise. Weekly is the default for most consumer products. Monthly fits low volume or long sales cycles. Prefer cohorts with at least 100 users. Flag any cohort under 50 as noisy and do not draw conclusions from it alone. Pool small cohorts into a wider window instead of reading jitter.
  1. Build the triangle matrix. Rows are cohorts, columns are age since anchor (period 0, 1, 2, and so on), cells are percent of the original cohort active in that period. Period 0 is 100 percent by definition for a signup anchor, or the anchor event rate for other anchors. Use the SQL in references/sql-patterns.md or the bundled CLI in bin/cohort.py for CSV data. Two hard rules:
  1. Read the matrix in two directions, separately.
  1. Diagnose the curve shape. Use references/curve-diagnosis.md.
  1. Do feature adoption by cohort, the careful way.
  1. Run the confounder checks before you conclude anything. Full list in references/confounders.md.
  1. Add revenue cohorts when money matters.
  1. Write the report and name the decision. Use the Output Contract below. Every finding gets evidence, a likely cause labelled as a hypothesis unless an experiment proved it, and a next action. If the data cannot support a conclusion, say so and say what data would.

Output Contract

A cohort report must contain:

Operating Rules

Versions

v1.0.02026-10-11 · 0 installs · Ed25519-signed./install.sh cohort-retention-analysis 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.