Agent skill

Retention Analysis

by liangdabiao in liangdabiao/claude-data-analysis-ultra-main

Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.

No licenceAuto-check: notesData & Analytics

Install Retention Analysis

skills CLI
$ npx skills add liangdabiao/claude-data-analysis-ultra-main --skill retention-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install liangdabiao/claude-data-analysis-ultra-main retention-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/liangdabiao/claude-data-analysis-ultra-main.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/retention-analysis .claude/skills/retention-analysis && rm -rf skills-src

Use ~/.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/

Facts

Skill name
retention-analysis
GitHub stars
290
Token cost
~1.3k tokens
SKILL.md length
488 words
Files
13 (incl. scripts)
Skills in repo
19
Repo updated
First seen
Licence
None found

At a glance

Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.

  • Works in 3 steps: Data Preparation → Analysis Process → Output Deliverables
  • Working with user subscription data
  • SKILL.md covers Quick Start, When to Use, Key Requirements and Core Workflow, plus 6 more sections
  • Runs Python scripts from its folder; calls pip

What it does

Retention Analysis is an agent skill from liangdabiao/claude-data-analysis-ultra-main. Analyze user retention and churn using survival analysis, cohort analysis, and machine learning. Calculate retention rates, build survival curves, predict churn risk, and generate retention optimization strategies. Use when working with user subscription data, membership information, or when user mentions retention, churn, survival analysis, or customer lifetime value.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts (for example `README.md`, `examples/basic_retention.py` and `examples/sample_data/README.md`).

It sits in Data & Analytics, covering Product analytics, Machine learning and Customer success. The repository describes itself as: 让小白都可以一键进行数据分析,搞互联网的,搞电商的,搞各种各样的,那么其实就会用到 互联网的数据分析, 例如互联网会关心 拉新,留存,促活,推荐,转化,A/B test, 用户分析 等等很多有用的数据分析。

When your agent uses it

  • Working with user subscription data
  • Membership information
  • User mentions retention
  • Survival analysis

Example prompts

  • “/retention-analysis”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Grep, Glob

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Data Preparation
  2. Analysis Process
  3. Output Deliverables

What it can do on your machine

Read from SKILL.md and the folder at commit 6b52856. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Retention Analysis loads about 1.3k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 488 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Grep, Glob

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.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 488 words (~1,311 tokens).

“Analyze user retention patterns, predict customer churn, and optimize retention strategies using advanced statistical methods and machine learning techniques.”

— opening of SKILL.md by liangdabiao
name
retention-analysis
allowed-tools
Read, Write, Edit, Bash, Grep, Glob

Read the full SKILL.md on GitHub

Files

SKILL.md and 12 other files (scripts) in .claude/skills/retention-analysis of liangdabiao/claude-data-analysis-ultra-main.

  • SKILL.md
  • README.md
  • examples/basic_retention.py
  • examples/churn_prediction_results.png
  • examples/comprehensive_retention_report.html
  • examples/cox_coefficients.png
  • examples/sample_data/README.md
  • examples/survival_analysis_report.html
  • examples/survival_by_subscription.png
  • examples/survival_curve.png
  • scripts/retention_analyzer.py
  • scripts/survival_analyzer.py
  • scripts/visualizer.py

Open the folder on GitHubat commit 6b52856

Compare with similar skills

Retention 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.

Retention Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Retention Analysis this skillliangdabiao/claude-data-analysis-ultra-main290—~1.3kAutomated safety check: NotesNone
Cohort Analysisguia-matthieu/clawfu-skills150—~864Automated safety check: PassMIT
Product Adoptionmagnus919/agent-skills116—~1.7kAutomated safety check: PassMIT
Scikit LearnzLanqing/codex-claude-academic-skills4.7k16 repos~3.9kAutomated safety check: PassBSD-3-Clause
PostHog CLI Queriesdebugtheworldbot/keyStats1.5k—~1.2kAutomated safety check: PassMIT
Retentioneering Contributingretentioneering/retentioneering-tools925—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Cohort Analysis

    guia-matthieu/clawfu-skills

    Analyze user retention by cohort. An agent skill from guia-matthieu/clawfu-skills.

    150 GitHub stars~864 tokensUpdated 8 days ago
    Data & AnalyticsAuto-check passed
  • Product Adoption

    magnus919/agent-skills

    Diagnose and design product adoption for onboarding, activation, behavior change, feature discovery, rollout, and sustained use after launch.

    116 GitHub stars~1.7k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Scikit Learn

    zLanqing/codex-claude-academic-skills

    Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 16 repos~3.9k tokens
    Data & AnalyticsAuto-check passed
  • PostHog CLI Queries

    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.

    1.5k GitHub stars~1.2k tokensUpdated 7 days ago
    Data & AnalyticsAuto-check passed
  • Retentioneering Contributing

    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…

    925 GitHub stars~1.8k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Agentic Kaggle Workflow

    FrankS-IntelLab/agentic-kaggle-skill

    Takes a Kaggle competition from rules and validation design through baselines, ensembling and notebook architecture to a scored submission.

    188 GitHub stars~4k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed

More from liangdabiao/claude-data-analysis-ultra-main

All 19 skills in this repo
  • Funnel Analysis

    liangdabiao/claude-data-analysis-ultra-main

    Analyze user conversion funnels, calculate step-by-step conversion rates, create interactive visualizations, and identify optimization opportunities.

    290 GitHub starsUsed in 1 repo~781 tokens
    Auto-check: notes
  • Attribution Analysis Modeling

    liangdabiao/claude-data-analysis-ultra-main

    Perform multi-touch attribution analysis using Markov chains, Shapley values, and custom attribution models.

    290 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check: notes
  • Code Generator

    liangdabiao/claude-data-analysis-ultra-main

    Generates production-ready analysis code in Python, R, SQL. An agent skill from liangdabiao/claude-data-analysis-ultra-main.

    290 GitHub stars~513 tokensUpdated 5 mo ago
    Auto-check passed
  • Content Analysis

    liangdabiao/claude-data-analysis-ultra-main

    Analyze text content using both traditional NLP and LLM-enhanced methods.

    290 GitHub stars~1.7k tokensUpdated 5 mo ago
    Auto-check: notes
  • Data Explorer

    liangdabiao/claude-data-analysis-ultra-main

    Performs exploratory data analysis, statistical analysis, and pattern discovery.

    290 GitHub stars~2.1k tokensUpdated 5 mo ago
    Auto-check passed
  • Hypothesis Generator

    liangdabiao/claude-data-analysis-ultra-main

    Generates testable research hypotheses and experimental designs.

    290 GitHub stars~903 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Retention Analysis

What does Retention Analysis do?

Analyze user retention and churn using survival analysis, cohort analysis, and machine learning. Retention Analysis is an agent skill from liangdabiao/claude-data-analysis-ultra-main. Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.

When should I use Retention Analysis?

Retention Analysis fits situations like: working with user subscription data; membership information; user mentions retention; survival analysis.

How do I install Retention Analysis in Claude Code?

Run `npx skills add liangdabiao/claude-data-analysis-ultra-main --skill retention-analysis -a claude-code`. Or copy the skill folder (.claude/skills/retention-analysis in liangdabiao/claude-data-analysis-ultra-main) into .claude/skills/retention-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Retention Analysis in Codex?

Run `npx skills add liangdabiao/claude-data-analysis-ultra-main --skill retention-analysis -a codex`. Or copy the skill folder (.claude/skills/retention-analysis in liangdabiao/claude-data-analysis-ultra-main) into .agents/skills/retention-analysis in your project. Codex loads it when a task matches its description.

Can I use Retention Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add liangdabiao/claude-data-analysis-ultra-main --skill retention-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/retention-analysis, .gemini/skills/retention-analysis, .github/skills/retention-analysis and .opencode/skills/retention-analysis in your project.

What does Retention Analysis need to run?

Going by SKILL.md and its folder, Retention Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Grep, Glob.

Does Retention Analysis access the network?

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.

Is Retention Analysis safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. 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.

What licence does Retention Analysis use?

No licence was found for Retention Analysis or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Retention Analysis use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Retention Analysis?

Skills that share tags, products or a category with Retention Analysis: Cohort Analysis (guia-matthieu/clawfu-skills, 150 stars), Product Adoption (magnus919/agent-skills, 116 stars), Scikit Learn (zLanqing/codex-claude-academic-skills, 4.7k stars) and PostHog CLI Queries (debugtheworldbot/keyStats, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Retention Analysis?

liangdabiao (a GitHub user) maintains it in liangdabiao/claude-data-analysis-ultra-main, which has 290 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on May 10, 2026.

Source: liangdabiao/claude-data-analysis-ultra-main on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.