OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add nimrodfisher/data-analytics-skills --skill cohort-analysis
Time-based cohort analysis with retention and behaviour tracking. Activate when you need to measure how groups of users/customers behave over time — retention rates, revenue by cohort, or feature adoption curves.
npx skills add nimrodfisher/data-analytics-skills --skill cohort-analysis
scripts/cohort_query.sql as the starting point. Adapt the cohort_date and activity_date columns to your schema.scripts/cohort_builder.py to produce a cohort × period membership table from event data. Output is a CSV with user_id, cohort_period, activity_period.scripts/retention_matrix.py on the cohort table to generate the period-over-period retention rates. Output is an N×M matrix (cohort × period).scripts/cohort_visualizer.py to render a heatmap of the retention matrix and a time-series of retention curves per cohort.references/retention_metrics_glossary.md for metric definitions and references/cohort_definition_patterns.md for pattern recognition.assets/cohort_report_template.md. For a visual deliverable, fill in the assets/retention_matrix.html heatmap template.user_id, cohort_date (e.g. signup_date), activity_dateassets/cohort_report_template.md (filled) — narrative interpretation and retention figuresassets/retention_matrix.html (filled) — colour-coded retention heatmapscripts/retention_matrix.py output CSV — raw retention rates for downstream use