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…

Установить cohort-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to use
- A stakeholder asks "are we retaining users better than last quarter?"
- You need to measure N-day, weekly, or monthly retention for a product or feature
- You want to compare how different acquisition cohorts (by channel, plan, or signup date) perform over their lifetime
- You're investigating churn and need to identify at which period users typically leave
Process
- Define the cohort and activity — clarify: cohort grouping (signup month, first purchase date, etc.) and retention event (login, purchase, feature use). Document in the report header.
- Pull or build the data — if starting from a database, use
scripts/cohort_query.sqlas the starting point. Adapt thecohort_dateandactivity_datecolumns to your schema. - Build the cohort table — run
scripts/cohort_builder.pyto produce a cohort × period membership table from event data. Output is a CSV withuser_id,cohort_period,activity_period. - Compute the retention matrix — run
scripts/retention_matrix.pyon the cohort table to generate the period-over-period retention rates. Output is an N×M matrix (cohort × period). - Visualise — run
scripts/cohort_visualizer.pyto render a heatmap of the retention matrix and a time-series of retention curves per cohort. - Interpret findings — consult
references/retention_metrics_glossary.mdfor metric definitions andreferences/cohort_definition_patterns.mdfor pattern recognition. - Write the report — fill
assets/cohort_report_template.md. For a visual deliverable, fill in theassets/retention_matrix.htmlheatmap template.
Inputs the skill needs
- Required: event data with
user_id,cohort_date(e.g.signup_date),activity_date - Required: cohort grouping granularity (daily / weekly / monthly)
- Required: retention event definition — what counts as "active" or "retained"?
- Optional: minimum cohort size (recommend ≥ 100 users; smaller cohorts have noisy rates)
- Optional: number of periods to track (e.g. 12 months)
- Optional: cohort attributes to segment by (acquisition channel, plan tier, geography)
Output
assets/cohort_report_template.md(filled) — narrative interpretation and retention figuresassets/retention_matrix.html(filled) — colour-coded retention heatmapscripts/retention_matrix.pyoutput CSV — raw retention rates for downstream use
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/cohort_report_template.md
- assets/retention_matrix.html
- references/cohort_definition_patterns.md
- references/retention_metrics_glossary.md
- scripts/cohort_builder.py
- scripts/cohort_query.sql
- scripts/cohort_visualizer.py
- scripts/retention_matrix.py
FAQ
Что делает скилл 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.
Как установить скилл cohort-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cohort-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
