Skip to content
Development
Skill

/signals-scout-session-replay

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.

From plugin
ai-plugin
95180 skills1 agent3 commands3 hooks
+1

Claude Code

$ npx -y skills add PostHog/ai-plugin --skill signals-scout-session-replay --agent claude-code

SKILL.md

signals-scout-session-replay.SKILL.md
name: signals-scout-session-replay
scout-display-name: Session replay
description: >
  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.
compatibility: >
  PostHog Signals agent (Claude sandbox). Read-only analytics + signal_scout_internal:write
  (scratchpad) + signal_scout_report:write (report channel), plus the session-replay tools in
  the MCP tools section (execute-sql over raw_session_replay_events / session_replay_features /
  events, read-data-schema, advanced-activity-logs-list, query-session-recordings-list, the
  feature-gated heatmaps and replay vision tools).
allowed_tools:
  - emit_report
  - edit_report
metadata:
  owner_team: signals
  scope: session_replay
scout-precheck-query: |
  SELECT 1 AS has_recordings
  FROM raw_session_replay_events
  WHERE min_first_timestamp > {now} - INTERVAL 30 DAY
    AND min_first_timestamp <= {now} + INTERVAL 1 DAY
  LIMIT 1

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:

1. **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. 2. **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:

1. **Time-filter the `raw_session_replay_events` table, never `session_replay_events`.** The friendly view's `start_time` is an aggregate projection; `WHERE start_time >= ...` on it returns zero rows even when recordings exist. Window on `raw_session_replay_events.min_first_timestamp` instead. 2. **Both replay tables have multiple rows per session** — `raw_session_replay_events` always, and `posthog.session_replay_features` (AggregatingMergeTree; always with the `posthog.` prefix — the bare name is an unknown table) until parts merge. Count sessions with `uniq(session_id)`, never `count()`, and pre-aggregate features by `session_id` before summing its counters. 3. **Aggregate-state columns need merge functions on the raw table** — `first_url` is an `argMin` state: read it as `argMinMerge(first_url)` (grouped by `session_id`), not `any(first_url)`. 4. **Client clocks lie** — real sessions and events arrive dated years into the future. Upper-bound every recency window (`<= now() + INTERVAL 1 DAY`, on `events.timestamp` too) and never trust `ORDER BY ... DESC LIMIT 1` to mean "latest" without it.

Quick close-out: is replay even in use?

A scheduled run can start with a `<precheck_result>` block. The block means that at least one

Read more
@posthog
Ships withai-plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

95180 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
95
Star history of PostHog/ai-plugin on GitHub, a chart by star-history.com

Other skills on ai-plugin.

analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

@posthog@posthogInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about signals-scout-session-replay.

Which coding agents can use signals-scout-session-replay?
signals-scout-session-replay installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.