Retention Analysis
liangdabiao/claude-data-analysis-ultra-main
Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.
Analyze user retention by cohort. An agent skill from guia-matthieu/clawfu-skills.
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analytics/cohort-analysis .claude/skills/cohort-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .claude/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/analytics/cohort-analysis .agents/skills/cohort-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .agents/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/analytics/cohort-analysis .cursor/skills/cohort-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .cursor/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/guia-matthieu/clawfu-skills.git --path skills/analytics/cohort-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/analytics/cohort-analysis .gemini/skills/cohort-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .gemini/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/analytics/cohort-analysis .github/skills/cohort-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .github/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install guia-matthieu/clawfu-skills cohort-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/analytics/cohort-analysis .opencode/skills/cohort-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cohort-analysis" agent skill from https://github.com/guia-matthieu/clawfu-skills/tree/main/skills/analytics/cohort-analysis into .opencode/skills/cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cohort-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cohort-analysisAnalyze user retention by cohort. An agent skill from guia-matthieu/clawfu-skills.
Cohort Analysis is an agent skill from guia-matthieu/clawfu-skills. Analyze user retention by cohort. Use when: measuring customer retention; understanding lifecycle patterns; comparing acquisition cohorts; tracking engagement over time; identifying churn risks
Its SKILL.md is about 860 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/main.py`).
It sits in Data & Analytics, covering Product analytics, Referral and retention marketing and Customer success. The repository describes itself as: 172 expert marketing skills for AI agents — ClawFu MCP Server. The licence is MIT.
Read from SKILL.md and the folder at commit 4108f5c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cohort Analysis loads about 864 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 195 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from guia-matthieu/clawfu-skills at commit 4108f5c, republished under its MIT licence (© guia-matthieu). 195 words, ~864 tokens.
.claude/skills/cohort-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Analyze retention and behavior patterns by grouping users into cohorts - understand how different customer groups behave over time.
| 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 |
pip install pandas plotly clickpython scripts/main.py retention data.csv --date-col signup --event-col purchase
python scripts/main.py retention data.csv --date-col signup --periods weekpython scripts/main.py visualize cohorts.csv --output retention_chart.htmlpython scripts/main.py report data.csv --date-col signup --event-col active --output report.htmlpython 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)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| Cohort | Size | Period 0 | Period 1 | Period 2 | Period 3 |
|---|---|---|---|---|---|
| 2024-01 | 1234 | 100% | 65% | 48% | 42% |
| 2024-02 | 1456 | 100% | 62% | 45% | - |
| 2024-03 | 1321 | 100% | 68% | - | - |
category: analytics
subcategory: retention
dependencies: [pandas, plotly]
difficulty: intermediate
time_saved: 4+ hours/week© guia-matthieu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts) in skills/analytics/cohort-analysis of guia-matthieu/clawfu-skills.
Open the folder on GitHubat commit 4108f5c
Cohort Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cohort Analysis this skillguia-matthieu/clawfu-skills | 150 | — | ~864 | Automated safety check: Pass | MIT | |
| Retention Analysisliangdabiao/claude-data-analysis-ultra-main | 290 | — | ~1.3k | Automated safety check: Notes | None | |
| Almost Paidnestyme/awesome-prompts | 151 | — | ~3.9k | Automated safety check: Pass | None | |
| Cohort Analysisindranilbanerjee/digital-marketing-pro | 862 | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Product Adoptionmagnus919/agent-skills | 115 | — | ~1.7k | Automated safety check: Pass | MIT | |
| PostHog CLI Queriesdebugtheworldbot/keyStats | 1.5k | — | ~1.2k | Automated safety check: Pass | MIT |
liangdabiao/claude-data-analysis-ultra-main
Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.
nestyme/awesome-prompts
Find the users who almost paid — saw the paywall, started checkout, ran out of free credits, let a trial lapse — size what they are worth, and turn them into a one-screen dashboard with a…
indranilbanerjee/digital-marketing-pro
Run cohort analysis: retention matrix and LTV by cohort. An agent skill from indranilbanerjee/digital-marketing-pro.
magnus919/agent-skills
Diagnose and design product adoption for onboarding, activation, behavior change, feature discovery, rollout, and sustained use after launch.
debugtheworldbot/keyStats
Runs HogQL queries against this project's PostHog data from the terminal using posthog-cli, with bundled scripts for dashboard metadata the CLI itself has no command for.
retentioneering/retentioneering-tools
Help the user turn their Retentioneering ideas, friction reports, bug findings, or feature needs into high-quality upstream contributions: from capturing and validating the idea, through minimal…
guia-matthieu/clawfu-skills
Calculate A/B test statistical significance. An agent skill from guia-matthieu/clawfu-skills.
guia-matthieu/clawfu-skills
Analyze your competitive landscape using Porter's Five Forces and modern frameworks—understand industry dynamics, identify strategic opportunities, and position your business for sustainable…
guia-matthieu/clawfu-skills
Monitor competitor websites for changes. An agent skill from guia-matthieu/clawfu-skills.
guia-matthieu/clawfu-skills
Transform long-form content into multiple short-form pieces.
guia-matthieu/clawfu-skills
Check email deliverability and DNS configuration. An agent skill from guia-matthieu/clawfu-skills.
guia-matthieu/clawfu-skills
Batch process images for marketing. An agent skill from guia-matthieu/clawfu-skills.
Categories
Analyze user retention by cohort. An agent skill from guia-matthieu/clawfu-skills. Cohort Analysis is an agent skill from guia-matthieu/clawfu-skills. Analyze user retention by cohort.
Cohort Analysis fits situations like: : measuring customer retention; understanding lifecycle patterns; comparing acquisition cohorts; tracking engagement over time.
Run `npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a claude-code`. Or copy the skill folder (skills/analytics/cohort-analysis in guia-matthieu/clawfu-skills) into .claude/skills/cohort-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a codex`. Or copy the skill folder (skills/analytics/cohort-analysis in guia-matthieu/clawfu-skills) into .agents/skills/cohort-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add guia-matthieu/clawfu-skills --skill cohort-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cohort-analysis, .gemini/skills/cohort-analysis, .github/skills/cohort-analysis and .opencode/skills/cohort-analysis in your project.
Going by SKILL.md and its folder, Cohort Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Cohort Analysis is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 864 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cohort Analysis: Retention Analysis (liangdabiao/claude-data-analysis-ultra-main, 290 stars), Almost Paid (nestyme/awesome-prompts, 151 stars), Cohort Analysis (indranilbanerjee/digital-marketing-pro, 862 stars) and Product Adoption (magnus919/agent-skills, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
guia-matthieu (a GitHub user) maintains it in guia-matthieu/clawfu-skills, which has 150 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 1, 2026.
Source: guia-matthieu/clawfu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.