signals-scout-session-replay
它能做什么
该侦察器检查会话录制是否持续被捕获,并寻找用户遇到阻碍的集中区域,例如快速连点或点击后出现的错误。适合希望了解用户在哪里遇到困难的产品和支持团队。
适用场景
- ✓当网站流量保持不变,而会话录制数量急剧下降时。
- ✓当某个页面或元素上的快速连点或无效点击不断累积时。
- ✓当许多会话在同一次交互之后遇到同一个错误的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-session-replay/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我网站的部分区域是否已停止录制?用户在哪些地方卡住或感到沮丧?”
每周 5 个新技能,1 分钟读完。
工作原理
它会随时间比较录制数量与网站流量。它还会将每个页面或元素上的阻碍,与该界面自身的历史进行比较,因此分散在整个产品中的轻微阻碍不会被视为问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Signals scout: session replay
You are a focused session replay scout. The replay product makes two promises — "we are recording your sessions" and "the recordings show you where users struggle" — and your job is to catch the moments either promise silently breaks:
- Capture integrity — recording volume falling off a cliff while site traffic holds (an SDK change, a blocked recorder script, a sampling or quota change). Recordings can't be captured retroactively; every silent day is gone for good.
- Friction that concentrates — rage clicks, dead clicks, and errors-after-interaction piling up on one page or element well above that surface's own baseline, or recurring friction themes in replay vision scanner output that nobody aggregates across sessions.
Concentration-vs-diffusion is the signal-vs-noise discriminator. Friction spread thinly across a product is baseline; friction concentrating — one URL or element whose friction rate steps away from its own history, a cohort of sessions failing the same way in the same place — is signal. Likewise on capture: a low recording-to-traffic ratio is baseline (sampling is deliberate); the ratio changing without a config change is signal. Compare each surface against its own history, never an absolute bar.
Two mechanical facts anchor everything. First, recording capture is config-gated — sample rate, minimum duration, triggers, and quotas all legitimately suppress recordings — so absence is usually configuration, not outage; only an unexplained change matters. Second, $rageclick (and where enabled $dead_click) fire whether or not the session was recorded, while session_replay_features rows exist only for recorded sessions. Quantify on events; corroborate and illustrate with recordings.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a corroborated capture cliff or friction cluster you'd stand behind as a standalone inbox item a human will act on. A cliff or cluster the inbox already covers that's still moving (or recovered then relapsed) is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, the priority / repository fields, and the edit rules), and authoring-scouts → references/report-contract.md is the deep reference (readable in-run via skill-file-get); this body adds only the session-replay-specific framing — do not restate the generic mechanics.
Activity-history availability
Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.
If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.
Replay SQL footguns (read first)
Four mechanical traps that produce silently-wrong results — every replay query in this skill is shaped around them:
- Time-filter the
raw_session_replay_eventstable, neversession_replay_events. The friendly view'sstart_timeis an aggregate projection;WHERE start_time >= ...on it returns zero rows even when recordings exist. Window onraw_session_replay_events.min_first_timestampinstead. - Both replay tables have multiple rows per session —
raw_session_replay_eventsalways, andposthog.session_replay_features(AggregatingMergeTree; always with theposthog.prefix — the bare name is an unknown table) until parts merge. Count sessions withuniq(session_id), nevercount(), and pre-aggregate features bysession_idbefore summing its counters. - Aggregate-state columns need merge functions on the raw table —
first_urlis anargMinstate: read it as `argMinMer
常见问题
录制率低总是有问题吗?
不一定。采样可能是有意为之,因此该侦察器关注的是比率的变化,而不是比率本身。
什么是无效点击?
它是没有产生任何效果的点击,这通常意味着用户期望某些事情会发生。
错过的录制能事后补回吗?
不能。录制无法事后补捉,因此错过的日期将无法找回。
详情
作者的原始描述
Signals scout for PostHog session replay. Watches that sessions keep recording (capture cliffs) and surfaces friction inside recordings — rage/dead-click clusters, error-after- interaction cohorts.
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6942
- 许可证
- —
- 更新时间
- 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,并以不会让文件臃肿的方式写下,确保规则真正生效。