# Cohort Analysis

Run cohort analysis: retention matrix and LTV by cohort.

- Repository: https://github.com/indranilbanerjee/digital-marketing-pro (921 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add indranilbanerjee/digital-marketing-pro --skill cohort-analysis -g -a claude-code -y`
Codex: `npx skills add indranilbanerjee/digital-marketing-pro --skill cohort-analysis -g -a codex -y`
Cursor: `npx skills add indranilbanerjee/digital-marketing-pro --skill cohort-analysis -g -a cursor -y`
Gemini CLI: `npx skills add indranilbanerjee/digital-marketing-pro --skill cohort-analysis -g -a gemini-cli -y`

## Description

Run cohort analysis: retention matrix and LTV by cohort. Churn scoring → churn-risk. \"build a retention matrix\

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /digital-marketing-pro:cohort-analysis

> **Script location.** If your host does not set `${CLAUDE_PLUGIN_ROOT}`, the scripts are in this plugin's `scripts/` folder, next to `skills/`. Run them with Python 3.10 or newer: `python`, or `python3` where `python` is not found (macOS, many Linux systems).

## Purpose

Perform customer cohort analysis to understand lifecycle patterns, retention, and value over time. Segment customers into cohorts by acquisition date, channel, behavior, or value tier, then track retention curves, compare cohort performance, and identify which acquisition sources produce the highest-value customers. This analysis reveals whether the business is acquiring better or worse customers over time, which channels drive long-term value versus one-time transactions, and where lifecycle interventions (onboarding improvements, re-engagement campaigns, loyalty programs) would have the greatest impact on retention and revenue.

## Input Required

The user must provide (or will be prompted for):

The rest: https://github.com/indranilbanerjee/digital-marketing-pro/blob/HEAD/skills/cohort-analysis/SKILL.md
