investigating-replay
하는 일
이 스킬은 한 세션 녹화에 대한 모든 정보를 모읍니다. 사용자가 누구였는지, 무엇을 했는지, 오류가 있었는지 포함합니다. 단일 세션을 빨리 이해하려는 사람을 위한 것입니다.
사용하는 경우
- ✓녹화나 세션 ID가 있고 그 안에서 무슨 일이 있었는지 알고 싶을 때.
- ✓문제가 있었던 세션의 사용자가 누구였는지 알고 싶을 때.
- ✓세션이 오류 추적 이슈와 연결되어 있는지 보고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/replay/skills/investigating-replay/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 녹화에서 무슨 일이 있었는지, 사용자가 오류를 만났는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
녹화 세부 정보, 사용자 프로필, 세션 안의 이벤트, 연결된 오류 이슈를 한 번에 모읍니다. 그다음 세션에서 무슨 일이 있었는지 요약합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
각 부분을 직접 모아야 하나요?
아니요. 스킬이 한 번에 세부 사항을 모으므로, 부분마다 요청할 필요가 없습니다.
녹화의 AI 요약을 보여 줄 수 있나요?
네. 기존 AI 요약을 읽거나 새로 생성할 수 있는데, 생성에는 시간이 더 걸립니다.
연결된 오류를 찾나요?
네. 세션에 연결된 오류 추적 이슈를 찾습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6909
- 라이선스
- —
- 업데이트
- 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.