finding-sessions-to-watch
它能做什么
本技能帮助你找出与某个目标(例如注册、定价或结账)相关的少数会话录制。适合打开会话回放、却不知道该看哪些录制的人。
适用场景
- ✓当你想观看录制,却不知道哪些有用的时候。
- ✓当你有一个目标,例如注册人数为何下降,并希望找到能展示这一情况的回放时。
- ✓当你想查看出现快速连点或错误的会话的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/replay/skills/finding-sessions-to-watch/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请给我看几段在结账环节流失的用户的会话回放。”
每周 5 个新技能,1 分钟读完。
工作原理
它会把你的目标转化为一个有针对性的筛选条件,例如某个页面或某个事件,并返回一份信号最强的录制短名单。然后,它会询问你是否要深入查看其中一段。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Finding sessions to watch
Most people open session replay with a goal ("why are signups dropping?") but no idea which of thousands of recordings to watch. A raw, unfiltered list is the worst possible answer — it buries the useful sessions in noise. Your job is to turn their intent into a focused filter, return a handful of high-signal recordings, and offer to dig into one.
The starting points below are the same ones the product surfaces as "filter templates" — they encode the jobs people actually use replay for. Treat them as a menu, not a script.
The one rule
Never dump an unfiltered recording list. Always either (a) apply a goal-based filter, or (b) sort by a signal (activity, errors) so the first few rows are worth a click. If the user's goal is unclear, ask one short question or offer the menu before querying.
Available tools
| Tool | Purpose |
|---|---|
posthog:query-session-recordings-list |
Find/filter recordings (the workhorse). Returns metadata + id per row. |
posthog:read-data-schema |
Confirm real event names, URLs, and property values before filtering. |
posthog:execute-sql |
Collect $session_ids for sessions where a specific event happened. |
posthog:cohorts-list |
Resolve a cohort name → id when scoping to a user segment. |
posthog:session-recording-playlist-create |
Save the resulting filter as a saved filter view (type: 'filters'). |
Hand off to the investigating-replay skill once the user picks a recording to understand in depth.
Workflow
1. Pin down the goal
Map the request to one of the starting points below. If it's vague ("show me something interesting"), offer 3-4 options rather than guessing, or default to most active sessions (high signal, no setup).
2. Discover before you filter
Event names and URLs vary per project — never assume $pageview paths, a signup_completed event, or
a person property exists. Confirm with read-data-schema (event_properties,
event_property_values, entity_property_values) before putting a value in a filter. If the needed
event/property doesn't exist, say so and suggest the closest available signal.
3. Run a minimal query
Call query-session-recordings-list with only the filters that serve the goal. Recommended settings:
- set
filter_test_accounts: true(the tool defaults tofalse) to exclude internal users, unless the user is debugging their own session. date_fromof-7dto-30dfor goal-based searches;-3dfor "recent".- A deliberate
order—activity_scorefor "interesting",console_error_countfor "broken",start_timefor "recent". limit: 10— you want a shortlist, not a dump.
4. Triage and present
Don't relay raw rows. Pick the 3-5 most promising and say why each is worth watching (long active
duration, many errors, reached the key page, high activity score). Deep-link each as
{posthog_base_url}/replay/{id} — never /replay/home?sessionRecordingId={id}. Note total matches so
the user knows how much is behind the shortlist.
5. Offer the next step
- "Want me to walk through one?" →
investigating-replay. - "Want to keep watching these?" → save it as a saved filter view with
session-recording-playlist-create(type: 'filters'— a filter view, not a'collection', which is for manually curated recordings and can't carry filters).
Starting points → filters
Two filter shapes cover almost everything:
- Reached a page → recording metric
visited_page({ "type": "recording", "key": "visited_page", "operator": "icontains", "value": "/pricing" }). - Did a specific event (signup, search, rageclick, used a feature) → there is no event-name filter on
the recordings query, so first collect session IDs with
execute-sql, then pass them assession_ids(see the two-step pattern below).
| User goal | Approach |
|---|
常见问题
它会列出所有录制吗?
不会。它从不提供未经筛选的列表,因为这会让有用的会话淹没在噪音之中。
它了解哪些类型的目标?
它了解常见的目标,例如注册、定价、入职、结账、某项功能或快速连点。
如果我不知道该问什么怎么办?
本技能会提供一份常见目标的简短菜单,并在搜索前询问一个问题。
详情
作者的原始描述
Guides a user from "I want to watch recordings but don't know which ones" to a short, high-signal list of sessions worth watching. Use when the user asks which sessions or replays to watch, wants help finding interesting / useful recordings, says they don't know where to start in session replay, or wants to watch sessions about a goal (signup, pricing, onboarding, checkout, a feature, rageclicks, errors, mobile, a specific person) without naming exact filters. Turns a vague intent into a focused RecordingsQuery via `query-session-recordings-list`, then deep-links the best few and hands off to
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6908
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。