cohort-analysis

cohort-analysis is a skill for Claude Code, Codex from guia-matthieu/clawfu-skills. It costs 33 tokens per session (883 once invoked), scanned A, original, MIT.

A way to study user behavior by grouping people who joined or started at the same time into cohorts. It compares how those groups return, engage, purchase, or stop using a product over later weeks or months.

In plain words
What is it for?
Use it to measure retention, compare acquisition cohorts, assess product changes, identify churn risks, estimate customer lifetime value, and create retention charts from CSV data.
Why use it?
Overall averages can hide differences between customer groups and acquisition channels. Cohort views reveal retention changes, lifecycle patterns, product effects, and groups at risk of churning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to measure retention, compare acquisition cohorts, assess product changes, identify churn risks, estimate customer lifetime value, and create retention charts from CSV data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guia-matthieu/clawfu-skills/cohort-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis
Clone the repo
git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cohort-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/cohort-analysis/github.svg)](https://agentmods.dev/skills/guia-matthieu/clawfu-skills/cohort-analysis)
Your own site
<a href="https://agentmods.dev/skills/guia-matthieu/clawfu-skills/cohort-analysis"><img src="https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/cohort-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cohort-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/guia-matthieu/clawfu-skills/cohort-analysis"><img src="https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/cohort-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00883
Opus 5 $0.00016 $0.00441
Sonnet 5 $0.00007 $0.00177
Haiku 4.5 $0.00003 $0.00088

Measured 12d ago against content hash 7f4d784df9cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cohort-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/main.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analytics/cohort-analysis/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cohort Analysis

Analyze retention and behavior patterns by grouping users into cohorts - understand how different customer groups behave over time.

When to Use This Skill

  • Retention tracking - Measure how users stick around over time
  • Acquisition analysis - Compare cohorts from different channels
  • Product changes - Measure impact on user behavior
  • Churn prediction - Identify at-risk cohorts
  • LTV estimation - Project customer lifetime value

What Claude Does vs What You Decide

Claude Does You Decide
Structures analysis frameworks Metric definitions
Identifies patterns in data Business interpretation
Creates visualization templates Dashboard design
Suggests optimization areas Action priorities
Calculates statistical measures Decision thresholds

Dependencies

pip install pandas plotly click

Commands

Retention Analysis

python scripts/main.py retention data.csv --date-col signup --event-col purchase
python scripts/main.py retention data.csv --date-col signup --periods week

Visualize Cohorts

python scripts/main.py visualize cohorts.csv --output retention_chart.html

Export Report

python scripts/main.py report data.csv --date-col signup --event-col active --output report.html

Examples

Example 1: Analyze User Retention

python scripts/main.py retention users.csv --date-col signup_date --event-col last_active

# Output:
# Cohort Retention Analysis
# ──────────────────────────────────
# Cohort     Users    M1     M2     M3     M4
# Jan 2024   1,234    65%    48%    42%    38%
# Feb 2024   1,456    62%    45%    41%    --
# Mar 2024   1,321    68%    52%    --     --
# Apr 2024   1,567    64%    --     --     --
#
# Avg Retention: 65% → 48% → 42% → 38%
# Best Cohort: Mar 2024 (68% M1)

Example 2: Generate Visual Report

python scripts/main.py report transactions.csv \
  --date-col signup \
  --event-col purchase_date \
  --output retention_report.html

# Generates interactive HTML with:
# - Retention heatmap
# - Cohort size chart
# - Trend analysis

Read the full file on GitHub · 128 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 128 lines · 33 tokens per session scan A 7f4d784df9cd

Subscribe to this mod's changes

cohort-analysis is a skill published in the GitHub repository guia-matthieu/clawfu-skills (149 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 883 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ads-performance-analytics

How to read paid media dashboards without fooling yourself. Attribution models, platform reporting quirks, multi-platform reconciliation, ROAS vs LTV horizon traps, statistical noise in performance metrics, incrementality testing, and the failure modes that produce expensive lessons. Triggers on read paid media…

rampstackco/claude-skills · 147 tokens

ads-creative-development

How to produce ad creative that converts at performance scale. Hook patterns, format selection, video pacing, variation systems, sequential testing methodology, fatigue detection, brand-voice alignment without conversion dilution, and platform-specific creative norms. Triggers on ad creative, ad design, hook patterns…

rampstackco/claude-skills · 124 tokens

paid-media-strategy

A discipline for running paid media that does not light money on fire. Hypothesis writing for paid spend, channel selection, budget allocation, audience targeting, bid strategy, campaign types, what NOT to spend on, attribution reality, and the failure modes that produce expensive lessons. Triggers on paid media…

rampstackco/claude-skills · 142 tokens

community-outreach

Systemneutrale Automatisierung für lösungsorientierten Community Outreach und Repo-Recommender in Foren, Reddit und Plattformen nach dem Human-in-the-Loop-Prinzip (EU AI Act konform).

ellmos-ai/skills · 48 tokens

error-log

Apply when learning from a mistake. Central memory of past errors and derived rules; consult before logging a new error to avoid duplicates.

sordi-ai/skill-everything · 29 tokens

react

Apply when writing React components. Hook discipline, state placement, performance, async cleanup, and list keys.

sordi-ai/skill-everything · 23 tokens