bi-retention-rate

bi-retention-rate is a skill for Claude Code, Codex from agentscope-ai/QwenPaw-Data. It costs 66 tokens per session (655 once invoked), scanned A, original, Apache-2.0.

A calculation of user retention: the share of people who first use a product or complete a key action and are still active after a chosen number of days.

In plain words
What is it for?
Use it to calculate measures such as next-day retention or seventh-day retention from user counts or equivalent data.
Why use it?
It answers whether users come back after their first interaction, instead of measuring only how many people arrived initially.

Skill for Claude CodeCodex

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

Good fit Use it to calculate measures such as next-day retention or seventh-day retention from user counts or equivalent data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/qwenpaw-data/bi-retention-rate
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 agentscope-ai/QwenPaw-Data --skill bi-retention-rate
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data

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 bi-retention-rate

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-retention-rate/github.svg)](https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-retention-rate)
Your own site
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-retention-rate"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-retention-rate/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 bi-retention-rate

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/qwenpaw-data/bi-retention-rate"><img src="https://agentmods.dev/badge/skills/agentscope-ai/qwenpaw-data/bi-retention-rate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 655 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.00655
Opus 5 $0.00033 $0.00328
Sonnet 5 $0.00013 $0.00131
Haiku 4.5 $0.00007 $0.00065

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

Security

Grade A, and why

bi-retention-rate 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compute_retention.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.

packages/qwenpaw-data-skills/skills/atomic/bi-retention-rate/SKILL.md · 54 lines

What it actually says

bi-retention-rate

计算用户首次进入产品或首次完成关键行为后,后续回访或持续活跃概率。

执行步骤

Step 0:检查数据以及确定计算指标

  1. 留存率计算涉及的指标以及数据列已经明确,如次日留存率计算考虑当日用户数与次日用户数,第七日留存率考虑当日留存用户数与第七日留存用户数;
  2. 数据已经保存为 CSV 文件,且包含留存率计算所需关键数据,如当日用户数、次日用户数等。如
date,当日访问用户数,次日访问用户数
2025-01-01,10000,3000
2025-01-02,10500,1000
2025-01-03,9800,100

Step 1:执行留存率计算

使用 <skill-dir>/scripts/compute_retention.py 脚本,计算用户在后续第 n 天的留存率(计算结果保留小数点后 5 位)。

python <skill-dir>/scripts/compute_retention.py --input_file "<输入数据文件路径 (CSV)>" --metric_name "<指标名称>" --day0_col "<第 0 天用户数列名>" --dayn_col "<第 n 天用户数列名>"

参数说明

参数 说明 默认值
--input_file 输入数据文件路径 (.csv) (必填)
--metric_name 计算指标名称(如次日留存率、第七日留存率等) 留存率
--day0_col 第 0 天用户数列名 (必填)
--dayn_col 第 n 天用户数列名 (必填)

对于所有需要计算的留存率指标都需调用该脚本计算,不能遗失任何必要的指标计算。

fallback(指引模式)

无脚本环境时按以下步骤手动计算:

  1. 给定留存率计算所需的初始时间点 day0 以及 n 日后的留存率计算时间点 dayn
  2. 计算 n 日留存率(保留小数点后 5 位): $\frac{|{用户 \mid day0新增用户\wedge 用户在dayn活跃 }|}{|{用户 \mid day0新增用户 }|}$

输出要求

输出所有需要计算的留存率指标结果,不要遗失任何计算结果,包括 NaN 值。

Files

What ships with it

1 file 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. 13d ago First seen · 54 lines · 66 tokens per session scan A 649573545f78

Subscribe to this mod's changes

bi-retention-rate is a skill published in the GitHub repository agentscope-ai/QwenPaw-Data (73 stars, last pushed 2d ago), licensed Apache-2.0. It adds 66 tokens to every session and 655 once invoked, about $0.0003 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

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens

pause

Pause Mem0 memory capture on this machine. Use when the user wants to stop memories being recorded, for example for private work or experiments.

mem0ai/mem0 · 30 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens