investigating-replay
O que ela faz
Esta skill reúne tudo sobre uma gravação de sessão, incluindo quem era o usuário, o que ele fez e quaisquer erros. É para quem quer entender uma única sessão rapidamente.
Quando usar
- ✓Quando você tem uma gravação ou um ID de sessão e quer saber o que aconteceu nela.
- ✓Quando você quer saber quem era o usuário em uma sessão com problemas.
- ✓Quando você quer ver se uma sessão está vinculada a issues de error tracking.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/replay/skills/investigating-replay/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me conte o que aconteceu nesta gravação e se o usuário teve algum erro.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela reúne ao mesmo tempo os detalhes da gravação, o perfil do usuário, os eventos da sessão e as issues de erro vinculadas. Depois resume o que aconteceu na sessão.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Investigating a session recording
When a user asks "what happened in this session?" or provides a recording/session ID to investigate, gather all relevant context in parallel rather than making them ask for each piece.
Available tools
| Tool | Purpose |
|---|---|
posthog:session-recording-get |
Recording metadata (duration, counts, status) |
posthog:persons-retrieve |
Person profile (properties, distinct IDs) |
posthog:execute-sql |
Query events, errors, and page views in session |
posthog:query-error-tracking-issues-list |
Find error tracking issues linked to the session |
posthog:vision-observations-list |
Check for an existing Replay Vision AI summary |
posthog:vision-observations-get |
Read one observation in full (scanner_result) |
posthog:vision-scanners-inline-scan |
Generate an AI summary of the session (slow, optional) |
posthog:vision-scanners-list |
Find saved summarizer scanners (scanner_type=summarizer) |
posthog:vision-scanners-scan-session |
Run a saved summarizer scanner on the session (slow) |
Workflow
Step 1 — Get recording metadata and person profile
Start with the recording to get metadata and the person's distinct ID:
posthog:session-recording-get
{
"id": "<session_id>"
}
The recording id and the event $session_id are the same value. It selects the
recording here and the same-session events in Step 2. The response includes
distinct_id, person, start_time, end_time, duration, interaction counts,
console error counts, and viewing status. Use the distinct_id to fetch
the full person profile:
posthog:persons-retrieve
{
"id": "<person_uuid_from_recording>"
}
Step 2 — Query same-session events
Use the recording id from Step 1 as the $session_id value. Get the timeline
of what the user did during the session:
posthog:execute-sql
SELECT
timestamp,
event,
properties.$current_url AS url,
properties.$browser AS browser,
properties.$os AS os,
properties.$device_type AS device_type,
properties.$screen_width AS screen_width
FROM events
WHERE $session_id = '<session_id>'
ORDER BY timestamp ASC
LIMIT 200
For sessions with many events, focus on the most informative ones:
posthog:execute-sql
SELECT
timestamp,
event,
properties.$current_url AS url,
if(event = '$exception', properties.$exception_values[1], null) AS exception_message,
if(event = '$exception', properties.$exception_types[1], null) AS exception_type
FROM events
WHERE $session_id = '<session_id>'
AND event IN ('$pageview', '$pageleave', '$autocapture', '$exception', '$rageclick')
ORDER BY timestamp ASC
LIMIT 100
No rows? Recover the event session ID
The recording id is the session ID. No rows means the session's events were
ingested without it. Find candidates from the person's events in the recording
window, padded by 100 seconds like the replay events query. person_id covers
all of the person's distinct IDs:
posthog:execute-sql
SELECT
properties.$session_id AS session_id,
count() AS event_count,
min(timestamp) AS first_seen,
max(timestamp) AS last_seen
FROM events
WHERE person_id = '<person_uuid>'
AND timestamp >= toDateTime('<start_time>') - INTERVAL 100 SECOND
AND timestamp <= toDateTime('<end_time>') + INTERVAL 100 SECOND
AND properties.$session_id IS NOT NULL
GROUP BY session_id
ORDER BY event_count DESC
LIMIT 10
Continue only when one session ID clearly matches. Use it for the Step 2 and
Step 3 queries only. The replay URL and all Replay Vision calls take the
recording id.
Step 3 — Check for linked error tracking issues
If the recording has console errors or exceptions, find related error tracking issues:
posthog:execute-sql
SELECT DISTINCT
properties.$exception_fingerprint AS fingerprint,
properties.$exception_types[1] AS type,
properties.$exception_values[1] AS message,
count() AS occurrences
FROM events
WHERE $session_id = '<session_id>'
AND event = '$exception'
GROUP BY fingerprint, type, message
ORDER BY occurrences DE
Perguntas frequentes
Preciso buscar cada parte por conta própria?
Não. A skill reúne os detalhes em uma única passada, então você não precisa pedir cada parte.
Ela consegue mostrar o resumo de IA de uma gravação?
Sim. Ela pode ler um resumo de IA existente ou gerar um, o que leva mais tempo.
Ela encontra erros vinculados?
Sim. Ela procura issues de error tracking conectadas à sessão.
Detalhes
Descrição original do autor
Investigates a session recording by gathering metadata, person profile, same-session events, and linked error tracking issues in one pass. Use when a user provides a recording or session ID and wants to understand what happened — who the user was, what they did, what errors occurred, and whether there are related error tracking issues. Replaces the manual chain of session-recording-get, persons-retrieve, execute-sql, and query-error-tracking-issues-list.
repo: PostHog/posthog
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6909
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.