Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

analyzing-experiment-session-replays分析实验会话回放

Agent Skill

analyzing-experiment-session-replays 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

906

周安装

37

GitHub Stars

26

下载量

290
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:analyzing-experiment-session-replays(分析实验会话回放)
来源仓库:https://github.com/posthog/ai-plugin
仓库路径:skills/analyzing-experiment-session-replays
安装命令:
npx skills add https://github.com/posthog/ai-plugin --skill analyzing-experiment-session-replays
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/posthog/ai-plugin --skill analyzing-experiment-session-replays

简介

用于分析实验会话回放,理解用户在不同变体间的行为差异。

  • 对比控制组与测试组的交互路径和停留时长。
  • 提供定性洞察以补充定量实验指标。analyzing-experiment-session-replays 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需 PostHog 平台权限和实验数据访问许可。
  • 适用于 A/B 测试后期深度归因分析。

SKILL.md

Analyzing experiment session replays

This skill guides you through analyzing session recordings for experiment variants to understand behavioral differences between control and test groups.

When to use this skill

Use this skill when:

  • The user asks to analyze session replays for an experiment
  • The user wants to understand how users behave differently across experiment variants
  • The user asks to compare user behavior between control and test variants
  • The user wants qualitative insights to complement experiment metrics
  • The user asks questions like "How are users behaving in my experiment?" or "Show me session replays for variant X"

Prerequisites

Before analyzing session replays:

  1. The experiment must be launched (not in draft state)
  2. Session replay must be enabled for the project
  3. Users must have been exposed to the experiment variants
  4. The experiment must have a start date

Workflow

1. Get experiment details and feature flag variants

First, retrieve the experiment information and the feature flag variants (source of truth).

Step 1a: Get experiment metadata

You can either:

  • Option A: Use the experiment_results_summary tool if you already have the experiment ID from context
  • Option B: Query the experiments table via HogQL:
SELECT
    id,
    name,
    feature_flag_key,
    start_date,
    end_date
FROM system.experiments
WHERE id = <experiment_id>
  AND team_id = <team_id>

From the experiment data, extract:

  • feature_flag_key: The feature flag controlling the experiment
  • start_date and end_date: The experiment's time range

Step 1b: Get variants from the feature flag

IMPORTANT: Always get variants from the feature flag, NOT from experiment.parameters.feature_flag_variants. The parameters can be out of sync or deprecated. The feature flag is the source of truth.

Query the feature flag to get the current variants:

SELECT
    key,
    filters
FROM system.feature_flags
WHERE key = '<feature_flag_key>'
  AND team_id = <team_id>

Extract the variant keys from filters.multivariate.variants array. Example structure: [{"key": "control", "name": "Control", "rollout_percentage": 50}, {"key": "test",...}]

The variant key values (e.g., "control", "test", "variant_a") are what you'll use to filter session recordings.

2. Build session recording filters for each variant

For each variant in the experiment, construct recording filters that match users exposed to that variant.

Filter structure for a variant:

{
  "date_from": "<experiment.start_date>",
  "date_to": "<experiment.end_date or current time>",
  "filter_test_accounts": true,
  "events": [
    {
      "id": "$feature_flag_called",
      "type": "events",
      "properties": [
        {
          "key": "$feature_flag",
          "value": ["<feature_flag_key>"],
          "operator": "exact",
          "type": "event"
        },
        {
          "key": "$feature/<feature_flag_key>",
          "value": ["<variant_key>"],
          "operator": "exact",
          "type": "event"
        }
      ]
    }
  ]
}

Key points:

  • Filter by $feature_flag_called events where the flag matches the experiment's feature flag
  • Use $feature/<flag_key> property to filter for the specific variant value
  • Set the date range to the experiment's start and end dates
  • Enable filter_test_accounts: true to exclude test users

3. Retrieve recordings for each variant

Use the filter_session_recordings tool with the filters constructed in step 2.

Call the tool once per variant to get recordings for each group:

  • Variant "control" → recordings for control group
  • Variant "test" → recordings for test variant
  • Additional variants if the experiment has more than 2

The tool returns a list of recordings with metadata including:

  • User/distinct_id
  • Session duration
  • Activity metrics (clicks, keypresses)
  • Console errors
  • First URL visited
  • Start time

4. Compare and analyze

Compare the recordings between variants by looking for:

Quantitative patterns:

  • Session duration differences
  • Activity levels (clicks, keypresses)
  • Console error rates
  • Bounce rates

Qualitative insights:

  • User confusion or frustration indicators
  • Different navigation paths
  • Feature discovery patterns
  • Error recovery behavior

5. Present findings

Summarize the behavioral differences between variants, highlighting:

  • Total recordings per variant
  • Notable behavior patterns unique to each variant
  • Usability issues or friction points observed
  • Recommendations based on the qualitative data

Example interaction

User: "How are users behaving in my checkout experiment?"
Agent steps:
1. Query experiment details (ID: 123, feature_flag_key: "checkout-flow-test", date range: 2025-01-01 to 2025-01-31)
2. Query feature flag "checkout-flow-test" to get variants from filters.multivariate.variants
3. Extract variant keys: "control" and "new-checkout"
4. Build filters for control variant:
   - Events: $feature_flag_called with $feature_flag="checkout-flow-test" and $feature/checkout-flow-test="control"
   - Date range: 2025-01-01 to 2025-01-31
5. Call filter_session_recordings with control filters → 147 recordings found
6. Build filters for new-checkout variant and call filter_session_recordings → 152 recordings found
7. Compare patterns:
   - Control: Average 3m 45s session duration, 12% console errors
   - New-checkout: Average 2m 30s session duration, 5% console errors
8. Present findings:
   "I analyzed session replays for your checkout experiment. The new checkout flow shows:
   - 33% faster completion (2m 30s vs 3m 45s)
   - 58% fewer console errors (5% vs 12%)
   - Users in the new variant navigate directly to payment, while control users often backtrack to review cart
   - Recommendation: The new checkout flow reduces friction and errors"

Important notes

Do not make assumptions:

  • Always verify the experiment has recordings before analyzing
  • Check that the experiment is launched (has a start_date)
  • If no recordings are found, inform the user clearly

Filter construction:

  • The $feature/<flag_key> property is how PostHog tracks which variant a user saw
  • Always use $feature_flag_called as the event type
  • Both $feature_flag and $feature/<flag_key> properties are required

Error handling:

  • If the experiment is in draft state, tell the user it hasn't started yet
  • If no recordings exist, suggest enabling session replay or waiting for user traffic
  • If the variant count is unexpected, double-check the experiment configuration

Related tools

  • filter_session_recordings: Core tool for retrieving session recordings with filters
  • experiment_results_summary: Get experiment metadata and statistical results
  • execute_sql: Query experiments table for details via HogQL

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.84%
按下载量换算101

Claude

30.74%
按下载量换算89

Cursor

21.33%
按下载量换算62

Gemini CLI

9.37%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills