diagnosing-missing-recordings
What it does
This skill investigates why a session did not get a replay, or why no recordings show up. It is for developers and product teams who see gaps in their session recordings.
When to use it
- βWhen a specific session has no replay and you want to know why.
- βWhen no recordings are appearing in your project at all.
- βWhen you suspect an ad blocker or a sampling setting is stopping recordings.
Skill link
https://github.com/PostHog/posthog/blob/master/products/replay/skills/diagnosing-missing-recordings/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhy does this user's session have no recording? Check the cause for me.β
5 new skills a week. 1 minute to read.
How it works
It reads the SDK's diagnostic properties on the session's events, such as recording status and trigger states, and checks the project settings. Then it points to the most likely cause.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Diagnosing missing session recordings
When a user asks "why wasn't this session recorded?" or "why don't I have any recordings?", follow this workflow to systematically diagnose the cause.
Available tools
| Tool | Purpose |
|---|---|
posthog:execute-sql |
Query session event properties for diagnostic signals |
posthog:session-recording-get |
Check if a recording actually exists for the session |
posthog:query-session-recordings-list |
Search for recordings matching criteria |
Diagnostic signals
The PostHog SDK emits diagnostic properties on every event that explain the recording state. See the diagnostic signals reference for the full list.
The key signals are:
$has_recordingβ whether PostHog has a stored recording for this session$recording_statusβ SDK state:active,buffering,disabled,sampled,paused$session_recording_start_reasonβ why recording started or didn't$sdk_debug_recording_script_not_loadedβ recorder script blocked (ad blocker)$sdk_debug_replay_*_trigger_statusβ trigger states (URL, event, linked flag)$replay_sample_rateβ configured sample rate at capture time
Workflow
Step 1 β Check if the recording exists
If the user provides a session ID, first check whether a recording actually exists:
posthog:session-recording-get
{
"id": "<session_id>"
}
If it returns found: false with reason recording_not_found, no recording exists for this session in the active project.
Proceed to Step 2 to diagnose why.
If it returns recording metadata, the recording exists β the issue is likely UI/filtering, not capture.
Any other error (for example, a missing project or a permission error) is not evidence about the recording.
Fix that error first.
Step 2 β Query diagnostic signals from events
Query the most recent event for the session to get SDK diagnostic properties:
posthog:execute-sql
SELECT
properties.$has_recording AS has_recording,
properties.$recording_status AS recording_status,
properties.$session_recording_start_reason AS start_reason,
properties.$sdk_debug_recording_script_not_loaded AS script_not_loaded,
properties.$sdk_debug_replay_url_trigger_status AS url_trigger,
properties.$sdk_debug_replay_event_trigger_status AS event_trigger,
properties.$sdk_debug_replay_linked_flag_trigger_status AS flag_trigger,
properties.$replay_sample_rate AS sample_rate,
properties.$sdk_debug_replay_internal_buffer_length AS buffer_length,
properties.$sdk_debug_replay_flushed_size AS flushed_size,
properties.$lib AS sdk_library,
properties.$lib_version AS sdk_version
FROM events
WHERE $session_id = '<session_id>'
ORDER BY timestamp DESC
LIMIT 1
Step 3 β Diagnose the verdict
Use the diagnosis logic reference to interpret the signals. The verdicts in priority order:
- Recording exists (
$has_recording = true) β recording is captured, issue is elsewhere - Ad blocked (script) (
$sdk_debug_recording_script_not_loaded = true) β browser extension blocking the recorder script from loading - Disabled (
$recording_status = 'disabled') β replay turned off in settings or SDK config - Trigger pending (trigger statuses are
trigger_pending, none matched) β recording gated on trigger that never fired - Sampled out (
$session_recording_start_reason = 'sampled_out') β excluded by sample rate - Buffering empty (
$recording_status = 'buffering', buffer length = 0, nothing flushed) β initialized but no snapshots produced - Flush blocked (buffer length climbs across events while
flushed_sizestays at 0) β snapshots are produced but the/s/ingestion endpoint is blocked by an ad blocker or misconfigured reverse proxy. Detecting this requires querying the trend across the session's events β see example 3 in examples.md - Unknown β signals don't match a known pattern
Step 4 β Check project-level settings (if no session ID)
When the user asks about recordings missing project-wide (no specific session), query for recent sessions to check the pattern:
posthog:execute-sql
SELECT
$session_id,
properties.$recordi
FAQ
What is a diagnostic signal?
It is a property the PostHog SDK adds to events to say whether recording started, was sampled or was blocked.
Can an ad blocker stop recordings?
Yes. The recorder script can be blocked, and the skill looks for that signal.
Does it check billing or quota?
Yes. Quota and billing cases are among the possible causes it checks.
Details
Original description by the author
Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling, triggers, ad blockers, and quota/billing scenarios.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6906
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.