diagnosing-missing-recordings
できること
このスキルは、セッションにリプレイがない理由、またはプロジェクトに録画が表示されない理由を調べます。セッションの録画に欠けがあるのを見ている開発者やプロダクトチーム向けです。
使う場面
- ✓特定のセッションにリプレイがなく、その理由を知りたいとき。
- ✓プロジェクトにまったく録画が表示されないとき。
- ✓広告ブロッカーやサンプリングの設定が、録画を止めていると疑うとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/replay/skills/diagnosing-missing-recordings/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このユーザーのセッションに録画がないのはなぜですか?原因を確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
セッションのイベントに付いているSDKの診断プロパティ(録画の状態やトリガーの状態など)を読み、プロジェクトの設定を確認します。その後、最も可能性の高い原因を示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
診断のシグナルとは何ですか?
SDKがイベントに付ける、録画が開始されたか、サンプリングされたか、ブロックされたかを示すプロパティです。
広告ブロッカーは録画を止めますか?
はい。レコーダーのスクリプトがブロックされることがあるため、スキルはそのシグナルを探します。
課金やクォータも確認しますか?
はい。クォータと課金のケースも、考えられる原因の1つとして確認します。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 41k
- ランキング
- #6906
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。