본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6909

investigating-replay

하는 일

이 스킬은 한 세션 녹화에 대한 모든 정보를 모읍니다. 사용자가 누구였는지, 무엇을 했는지, 오류가 있었는지 포함합니다. 단일 세션을 빨리 이해하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓녹화나 세션 ID가 있고 그 안에서 무슨 일이 있었는지 알고 싶을 때.
  • ✓문제가 있었던 세션의 사용자가 누구였는지 알고 싶을 때.
  • ✓세션이 오류 추적 이슈와 연결되어 있는지 보고 싶을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/replay/skills/investigating-replay/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/replay/skills/investigating-replay/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬