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.
对留存执行完整的分析流程,算清楚用户留不留、留多少、有没有变化,含口径定义、取数、留存率计算,及可选的维度拆分与对比/归因。触发条件:对话涉及留存率分析、留存表现评估、留存变化归因等任务时触发,如出现「留存表现情况如何」「访问留存和使用留存对比怎么样」「不同国家的访问留存是否存在差异」「分维度后留存情况」「次日/第七日留存率变化」等相似问题时触发。
$ npx skills add agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-retention-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/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .claude/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .claude/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-retention-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .agents/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .agents/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-retention-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .cursor/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .cursor/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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/agentscope-ai/QwenPaw-Data.git --path packages/qwenpaw-data-skills/skills/workflows/bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-retention-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .gemini/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .gemini/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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 agentscope-ai/QwenPaw-Data bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .github/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .github/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-retention-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 agentscope-ai/QwenPaw-Data bi-retention-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis .opencode/skills/bi-retention-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 "bi-retention-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis into .opencode/skills/bi-retention-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-retention-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.
bi-retention-analysis对留存执行完整的分析流程,算清楚用户留不留、留多少、有没有变化,含口径定义、取数、留存率计算,及可选的维度拆分与对比/归因。触发条件:对话涉及留存率分析、留存表现评估、留存变化归因等任务时触发,如出现「留存表现情况如何」「访问留存和使用留存对比怎么样」「不同国家的访问留存是否存在差异」「分维度后留存情况」「次日/第七日留存率变化」等相似问题时触发。
Bi Retention Analysis is an agent skill from agentscope-ai/QwenPaw-Data. 对留存执行完整的分析流程,算清楚用户留不留、留多少、有没有变化,含口径定义、取数、留存率计算,及可选的维度拆分与对比/归因。触发条件:对话涉及留存率分析、留存表现评估、留存变化归因等任务时触发,如出现「留存表现情况如何」「访问留存和使用留存对比怎么样」「不同国家的访问留存是否存在差异」「分维度后留存情况」「次日/第七日留存率变化」等相似问题时触发。
Its SKILL.md is about 980 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering Product analytics. The repository describes itself as: Agentic enterprise data analytics: governed facts (DataBridge), reusable methodology (Skill-Hub), and controllable execution (Host). The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e0bae36. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are csv).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Bi Retention Analysis loads about 978 tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 286 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); files beside SKILL.md are not scanned.
The full file from agentscope-ai/QwenPaw-Data at commit e0bae36, republished under its Apache-2.0 licence (© agentscope-ai). 286 words, ~978 tokens.
.claude/skills/bi-retention-analysis/SKILL.md (or your agent's skills folder).对留存执行完整的分析流程,核心目标是算清楚用户留不留、留多少、有没有变化:定义口径 → 取数 → 计算留存率 →(可选)拆分维度 →(可选)对比/归因 → 解读与输出。
开始执行前,确认以下信息已就绪:
若留存锚点、留存事件或留存窗口不明确,需先回到规划阶段补充,或向用户确认后再开始执行。
| 步骤 | 用途 | 是否必选 |
|---|---|---|
| 定义口径 | 确定锚点、留存事件、留存窗口 | 必选,见步骤 1 |
| 取数 | 按口径取 day0 / dayn 数据 | 必选,见步骤 2 |
| 计算留存率 | 计算 day0 用户在 dayn 的留存率 | 必选,见步骤 3 |
| 拆分维度 | 按渠道、端、国家、版本等分别计算 | 可选,见步骤 4 |
| 对比/归因 | 跨时间、群体等维度对比留存差异 | 可选,见步骤 5 |
| 解读 & 输出 | 留存曲线、关键节点、变化趋势、差异结论 | 必选,见步骤 6 |
典型产出:留存率表、留存曲线、分维度留存对比。
最短路径:定义口径 → 取数 → 算留存率 → 看曲线 / 报数字(即步骤 1 → 2 → 3 → 6,跳过步骤 4、5)。
本 workflow 主要提供留存分析场景下的编排与数据衔接逻辑,各步骤的具体执行按相应分析方法的标准流程进行。
明确留存分析的三要素,这是后续取数与计算的基础:
| 要素 | 含义 | 常见取值 |
|---|---|---|
| 锚点(day0) | 用户被纳入留存统计的起算时间点 | 注册日、首次访问、首次付费等 |
| 留存事件 | 衡量「留下来」的目标行为 | 再次访问、再次使用、再次付费等 |
| 留存窗口 | 在锚点后第几天考察留存 | 次日(D1)、7 日(D7)、30 日(D30)等 |
要点:
按步骤 1 确定的口径取数,准备留存率计算所需的数据。
整理 CSV,包含:
示例:
date,当日新增用户数,次日访问用户数,7日访问用户数
2025-01-01,10000,3000,1500
2025-01-02,10500,3200,1600若计划在步骤 4 拆分维度,取数时一并带出维度列(如渠道、端、国家、版本),或按维度分别取数。
计算 day0 用户在后续第 n 天的留存率。
若已规划拆分维度,可在此步先算整体留存率,维度拆分在步骤 4 展开。
根据分析要求,判断是否需要按维度分别计算留存率:
需要拆分 → 按维度分别计算,完成后进入步骤 5 无需拆分 → 跳过本步骤,直接进入步骤 5(最短路径在此跳过)
| 信号 | 示例 |
|---|---|
| 按已有维度拆分 | 「按渠道/端/国家/版本看留存」(维度已在数据中,直接分组计算) |
| 需发现未知用户子结构 | 「哪些用户群体留存更高」「用户自然分群后的留存差异」(走聚类分群) |
| 多维特征综合分群 | 需结合多个用户属性(消费、活跃、渠道等)划分群体再算留存(走聚类分群) |
| 信号 | 示例 |
|---|---|
| 仅看整体 | 「整体次日留存如何」 |
| 仅关注时间趋势 | 「最近一周留存率变化」(走步骤 5 时间对比,无需拆分维度) |
根据分析要求,判断是否需对不同时间、群体、地区等进行留存率对比:
需要对比 → 进行对比分析,完成后进入步骤 6 不需要对比 → 跳过本步骤,直接进入步骤 6
| 信号 | 示例 |
|---|---|
| 时间维度对比 | 「环比/同比变化」「最近 vs 历史」「留存率是否下降」 |
| 群体/空间维度对比 | 「不同国家/渠道/端/版本/实验组留存差异」「访问留存 vs 使用留存」「A 群 vs B 群」 |
| 显式对比/差异/优劣 | 「对比」「差异」「哪个更高/更低」「是否显著」 |
| 信号 | 示例 |
|---|---|
| 仅报告当前水平 | 「当前次日留存是多少」「整体留存表现如何」(步骤 3 结果已足够) |
| 单一对象无参照 | 只有一个时间点、一个群体,无对比参照物 |
示例(不同国家次日留存对比):
业务日期,中国次日留存率,美国次日留存率
20251101,0.3856,0.4343
20251102,0.4288,0.4122完成以上步骤后,围绕留不留、留多少、有没有变化汇总并输出。
| 字段 | 说明 |
|---|---|
| 执行内容 | 本步骤做了什么(含跳过的可选步骤及原因) |
| 取数文件 | 原始数据路径 |
| 中间产物 | 分群 JSON(若执行)、对比用 CSV(若执行) |
| 计算结果 | 留存率及对比分析结果路径 |
| 结论 | 留存率水平、关键节点、变化趋势、群体差异及显著性 |
汇总结构建议:
© agentscope-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis of agentscope-ai/QwenPaw-Data.
Open the folder on GitHubat commit e0bae36
Bi 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bi Retention Analysis this skillagentscope-ai/QwenPaw-Data | 127 | — | ~978 | Automated safety check: Pass | Apache-2.0 | |
| PostHog CLI Queriesdebugtheworldbot/keyStats | 1.5k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Retentioneering Contributingretentioneering/retentioneering-tools | 927 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Retentioneering Product Analyticsretentioneering/retentioneering-tools | 927 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Feature Analytics Instrumentation Plannermistralai/mistral-vibe | 5.1k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Funnel Analysisliangdabiao/claude-data-analysis-ultra-main | 290 | 1 repos | ~781 | Automated safety check: Notes | None |
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…
retentioneering/retentioneering-tools
Analyze event logs, clickstreams, user paths, product funnels, retention, behavioral segments, transition graphs, step matrices, sequence patterns, and customer journeys using Retentioneering.
mistralai/mistral-vibe
Plans which analytics events and properties a new feature needs, checks them against the existing event registry, and verifies them per environment.
liangdabiao/claude-data-analysis-ultra-main
Analyze user conversion funnels, calculate step-by-step conversion rates, create interactive visualizations, and identify optimization opportunities.
linuxfoundation/insights
Add event tracking calls to Vue/Nuxt components in the Insights app using the useTrackEvent composable.
agentscope-ai/QwenPaw-Data
将 BI 数据分析结果组织成可视化 HTML 报告。当分析完成、需要生成报告时调用. An agent skill from agentscope-ai/QwenPaw-Data.
agentscope-ai/QwenPaw-Data
取数 / 查数据 / 拉数据 / 跑 SQL。把自然语言取数需求转为 SQL,经数据湖仓执行后返回查询结果供下游分析。任何需要业务数据的任务在工作区缺少对应文件时都必须先调用此技能——覆盖 BI 业务分析、留存 / 转化 / 同期群分析、数据探索 EDA、统计建模、定量计算、元数据查询、数据查询。命中任一即触发:(1) 直接索要指标或记录,如「DAU 多少」「上月销售额」「3…
agentscope-ai/QwenPaw-Data
通过量化历史数据的自然波动幅度,自适应计算判定阈值。当需要从数据本身确定阈值(如波动阈值、影响度阈值等)、而非使用固定值时调用。仅适用于日/周粒度阈值确定。
agentscope-ai/QwenPaw-Data
基于阈值检测时间序列中的显著异常波动点。当需要找出指标异常波动日期、识别数据异动时调用. An agent skill from agentscope-ai/QwenPaw-Data.
agentscope-ai/QwenPaw-Data
计算各维度(组)值对指标变动的贡献度,支持可加型量值指标和加权平均型/率值指标。当需要计算贡献度、解释指标"为什么涨/跌"时调用。
agentscope-ai/QwenPaw-Data
从运营周报、活动文档、对话输入或文档工具 API 中提取业务事件,与指标异常时间窗口对齐,生成有证据支撑的因果归因假设并排序。当已知指标存在异常波动、需要从外部文档证据中解释"为什么"时调用。
Categories
对留存执行完整的分析流程,算清楚用户留不留、留多少、有没有变化,含口径定义、取数、留存率计算,及可选的维度拆分与对比/归因。触发条件:对话涉及留存率分析、留存表现评估、留存变化归因等任务时触发,如出现「留存表现情况如何」「访问留存和使用留存对比怎么样」「不同国家的访问留存是否存在差异」「分维度后留存情况」「次日/第七日留存率变化」等相似问题时触发。. Bi Retention Analysis is an agent skill from agentscope-ai/QwenPaw-Data.
Bi Retention Analysis fits situations like: tasks that involve Product analytics.
Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a claude-code`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis in agentscope-ai/QwenPaw-Data) into .claude/skills/bi-retention-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-retention-analysis -a codex`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/workflows/bi-retention-analysis in agentscope-ai/QwenPaw-Data) into .agents/skills/bi-retention-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 agentscope-ai/QwenPaw-Data --skill bi-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/bi-retention-analysis, .gemini/skills/bi-retention-analysis, .github/skills/bi-retention-analysis and .opencode/skills/bi-retention-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Bi Retention Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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. Review the folder before installing.
Bi Retention Analysis is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 978 tokens (SKILL.md is roughly 3.9k 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 Bi Retention Analysis: PostHog CLI Queries (debugtheworldbot/keyStats, 1.5k stars), Retentioneering Contributing (retentioneering/retentioneering-tools, 927 stars), Retentioneering Product Analytics (retentioneering/retentioneering-tools, 927 stars) and Feature Analytics Instrumentation Planner (mistralai/mistral-vibe, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
agentscope-ai (a GitHub organization) maintains it in agentscope-ai/QwenPaw-Data, which has 127 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 5, 2026.
Source: agentscope-ai/QwenPaw-Data on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.