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.
把用户按同一批/同一类分组,比较各群体后续表现。触发条件:对话涉及同期群分析、分群后表现对比、用户生命周期分群跟踪等任务时触发,如出现「同期群」「cohort」「按起始特征分群后表现如何」「不同客群后续转化/留存对比」「注册周/获客渠道分群跟踪」等相似问题时触发。
$ npx skills add agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-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/agentscope-ai/QwenPaw-Data.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis .claude/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .claude/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-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 agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-cohort-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-cohort-analysis .agents/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .agents/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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 agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-cohort-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-cohort-analysis .cursor/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .cursor/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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/agentscope-ai/QwenPaw-Data.git --path packages/qwenpaw-data-skills/skills/workflows/bi-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 agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install agentscope-ai/QwenPaw-Data bi-cohort-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-cohort-analysis .gemini/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .gemini/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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 agentscope-ai/QwenPaw-Data bi-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 agentscope-ai/QwenPaw-Data --skill bi-cohort-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-cohort-analysis .github/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .github/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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 agentscope-ai/QwenPaw-Data --skill bi-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 agentscope-ai/QwenPaw-Data bi-cohort-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-cohort-analysis .opencode/skills/bi-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 "bi-cohort-analysis" agent skill from https://github.com/agentscope-ai/QwenPaw-Data/tree/main/packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis into .opencode/skills/bi-cohort-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bi-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.
bi-cohort-analysis把用户按同一批/同一类分组,比较各群体后续表现。触发条件:对话涉及同期群分析、分群后表现对比、用户生命周期分群跟踪等任务时触发,如出现「同期群」「cohort」「按起始特征分群后表现如何」「不同客群后续转化/留存对比」「注册周/获客渠道分群跟踪」等相似问题时触发。
Bi Cohort Analysis is an agent skill from agentscope-ai/QwenPaw-Data. 把用户按同一批/同一类分组,比较各群体后续表现。触发条件:对话涉及同期群分析、分群后表现对比、用户生命周期分群跟踪等任务时触发,如出现「同期群」「cohort」「按起始特征分群后表现如何」「不同客群后续转化/留存对比」「注册周/获客渠道分群跟踪」等相似问题时触发。
Its SKILL.md is about 870 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 Cohort Analysis loads about 871 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 296 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). 296 words, ~871 tokens.
.claude/skills/bi-cohort-analysis/SKILL.md (or your agent's skills folder).把用户按同一批/同一类分组,比较各群体后续表现:定义 cohort 规则 → 取数 → 划分 cohort → 按 cohort 汇总后续表现 → 跨 cohort 对比 → 解读与输出。
开始执行前,确认以下信息已就绪:
user_id)若 cohort 规则或跟踪指标不明确,需先回到规划阶段补充,或向用户确认后再开始执行。
同期群(cohort)指在相同时点或具备相同起始特征的用户集合。本 workflow 通过 cohort 规则分群 定义 cohort,再比较各 cohort 在 后续时间窗口 内的指标表现。
| 步骤 | 用途 | 是否必选 |
|---|---|---|
| 定义 cohort 规则 | 确定分群依据与跟踪指标 | 必选,见步骤 1 |
| 取数 | 取用户 ID、起始特征、后续行为/指标 | 必选,见步骤 2 |
| 划分 cohort | 将每个用户分到对应群体 | 必选,见步骤 3 |
| 汇总后续表现 | 按 cohort 聚合跟踪指标 | 必选,见步骤 4 |
| 跨 cohort 对比 | 对比各群差异、幅度与显著性 | 必选,见步骤 5 |
| 解读 & 输出 | cohort 画像、表现对比、业务建议 | 必选,见步骤 6 |
典型产出:cohort 矩阵、群间对比表、cohort 留存曲线(多条线对比)等。
最短路径:定义分群规则 → 划 cohort → 跟踪各群指标 → 跨群对比(即步骤 1 → 3 → 4 → 5,取数随分群展开)。
本 workflow 主要提供 cohort 场景下的编排与数据衔接逻辑,各步骤的具体执行按相应分析方法的标准流程进行。
明确「按什么分群」与「跟踪什么指标」,这是后续取数与划分的基础:
| 要素 | 含义 | 常见取值 |
|---|---|---|
| 分群依据 | 划分 cohort 所依据的起始特征 | 注册周/注册月、获客渠道、首单金额档、首日关键行为、获客活动等 |
| 跟踪指标 | cohort 形成后要比较的后续指标 | 留存率、转化率、LTV、复购次数等 |
| 时间窗口 | 在哪些 dayn 观测跟踪指标 | D1/D7/D30 留存、30 日内 LTV、首周转化率等 |
要点:
按步骤 1 的规则取数,准备划分 cohort 与汇总后续表现所需的数据。
整理 CSV,包含:
user_id)示例:
user_id,注册周,获客渠道,D7是否留存,30日LTV
u001,2025-W01,自然量,1,128.0
u002,2025-W01,广告,0,0.0后续指标若来自另一张表,可仅取用户 ID + 起始特征,待步骤 3 划分后再按 user_id 关联后续指标表。
以步骤 1 的规则为输入,将每个用户分到对应群体。
分群结果保存为 JSON,键为 cohort 标识(如 "2025-W01"、"cluster 1"),值为该 cohort 内的用户 ID 列表(供步骤 4 按 user_id 关联)。
基于步骤 3 的划分结果,为每个 cohort 汇总跟踪指标:
user_id 关联示例(三群 D7 留存率对比):
指标,cohort_1,cohort_2,cohort_3
D7留存率,0.42,0.38,0.51若需绘制 cohort 留存曲线,按 dayn 逐行整理多群留存率(每列一群、每行一个 dayn),供步骤 6 多线对比。若需与总体或某一基准 cohort 对比,在 CSV 中一并纳入参照列。
对步骤 4 整理的数据执行对比分析,判断哪个群体最好/最差、差异幅度与显著性。
保存对比分析结果。
完成以上步骤后,围绕各群体后续表现差异汇总并输出。
| 字段 | 说明 |
|---|---|
| 执行内容 | 本步骤做了什么 |
| 取数文件 | 起始特征数据、后续表现数据路径 |
| 中间产物 | 分群 JSON、对比用 CSV 路径 |
| 计算结果 | 对比分析结果路径 |
| 结论 | 各 cohort 的起始画像、后续表现差异及显著性 |
汇总结构建议:
© 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-cohort-analysis of agentscope-ai/QwenPaw-Data.
Open the folder on GitHubat commit e0bae36
Bi 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 |
|---|---|---|---|---|---|---|
| Bi Cohort Analysis this skillagentscope-ai/QwenPaw-Data | 127 | — | ~871 | 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
把用户按同一批/同一类分组,比较各群体后续表现。触发条件:对话涉及同期群分析、分群后表现对比、用户生命周期分群跟踪等任务时触发,如出现「同期群」「cohort」「按起始特征分群后表现如何」「不同客群后续转化/留存对比」「注册周/获客渠道分群跟踪」等相似问题时触发。. Bi Cohort Analysis is an agent skill from agentscope-ai/QwenPaw-Data.
Bi Cohort Analysis fits situations like: tasks that involve Product analytics.
Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a claude-code`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis in agentscope-ai/QwenPaw-Data) into .claude/skills/bi-cohort-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add agentscope-ai/QwenPaw-Data --skill bi-cohort-analysis -a codex`. Or copy the skill folder (packages/qwenpaw-data-skills/skills/workflows/bi-cohort-analysis in agentscope-ai/QwenPaw-Data) into .agents/skills/bi-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 agentscope-ai/QwenPaw-Data --skill bi-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/bi-cohort-analysis, .gemini/skills/bi-cohort-analysis, .github/skills/bi-cohort-analysis and .opencode/skills/bi-cohort-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Bi Cohort 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 Cohort 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 871 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 Bi Cohort 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.