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

investigating-error-issue

하는 일

이 스킬은 오류 이슈 하나의 맥락을 모읍니다. 누가 영향을 받는지, 언제 시작되었는지, 릴리스, 브라우저, 기능 플래그가 관련되어 있는지 포함합니다. 단일 버그를 이해해야 하는 개발자와 지원 담당자를 위한 것입니다.

사용하는 경우

  • ✓누군가 PostHog 오류 이슈 링크를 보내고 무슨 일인지 물을 때.
  • ✓오류가 몇 명의 사용자에게 영향을 주는지, 언제 시작했는지 알아야 할 때.
  • ✓오류가 최근 릴리스, 브라우저, 기능 플래그와 연결되어 있는지 보고 싶을 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/investigating-error-issue/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 an error tracking issue

When a user asks "what's going on with this error?" or pastes an issue URL, gather the context they would otherwise have to assemble manually: who is hitting it, what changed, where it happens, and whether a replay shows the cause.

Available tools

Tool Purpose
posthog:query-error-tracking-issue Compact issue details (status, assignee, top frame, release, aggregates)
posthog:query-error-tracking-issue-events Sampled $exception events with stack, URL, browser, $session_id
posthog:execute-sql Breakdowns, release / flag correlations, surrounding events + console logs around the error
posthog:query-logs OTEL log entries around the error timestamp for server-side issues
posthog:query-session-recordings-list Linked replays (delegate ranking to finding-replay-for-issue)
posthog:read-data-schema Confirm property keys before filtering on them

Workflow

Step 1 — Establish the issue baseline

Fetch the issue record with its compact aggregates and a sparkline:

posthog:query-error-tracking-issue
{
  "issueId": "<issue_id>",
  "dateRange": { "date_from": "-30d" },
  "includeSparkline": true,
  "volumeResolution": 12
}

Capture: name, description, status, first_seen, last_seen, assignee, total occurrences / users / sessions, top in-app frame, latest release metadata, and the volume buckets.

The sparkline tells you the shape — flat, spike, ramp, or recurring — and that shape drives the rest of the investigation. If the user only asked a status question, skip includeSparkline to save tokens.

Step 2 — Pull a sample exception event

A captured event has the stack frames, URL, browser, and properties needed to reason about cause. Pull a recent sample first, then an early one to compare.

posthog:query-error-tracking-issue-events
{
  "issueId": "<issue_id>",
  "limit": 1,
  "include": ["exception", "stacktrace", "environment", "navigation", "correlation"]
}

The tool defaults to onlyAppFrames: true, which strips vendor frames; flip to false when the bug appears to live in a third-party library — or when the response comes back with stacktrace.type: "resolved" but no frames at all (common for minified bundles where every frame looks vendor-y to the resolver, e.g. React production builds).

For the earliest sample, narrow dateRange to a tight window around the issue's first_seen (e.g. set date_from slightly before and date_to slightly after) and pass orderDirection: "ASC" so you get the earliest event in the window rather than the latest — the tool defaults to DESC, which would return a recent event and silently duplicate the first call. If recent and earliest events look materially different — different stack root, different URL pattern — the issue may be a grouping mistake. Flag for grouping-noisy-errors instead of continuing as if it were one bug.

Step 3 — Run breakdowns to isolate the cause

Breakdowns aren't a typed tool — drop into execute-sql. Run only the breakdowns the issue's shape suggests; each one costs a query and clutters the synthesis.

Sparkline shape First breakdown to try
Spike from zero By app version / release — almost always a deploy regression (see below)
Steady-state high By browser / OS — rendering or platform-specific bug
Ramp By geography or feature flag — gradual rollout exposure
Bursts then quiet By time of day or $current_url — scheduled job or specific page

Picking the right version property

PostHog emits three version-shaped fields. They mean different things and only one of them answers "what version of the user's app introduced this?":

| Property | What it is

자주 묻는 질문

이슈 ID를 줘야 하나요?

이슈 링크를 붙여 넣거나 ID를 줄 수 있으며, 스킬이 찾아봅니다.

세션 리플레이를 보여 줄 수 있나요?

네. 오류를 겪은 사용자의 연결된 리플레이를 찾아서 무슨 일이 있었는지 볼 수 있습니다.

서버 측 오류에도 작동하나요?

네. 오류 시점 주변의 OpenTelemetry 로그도 확인할 수 있습니다.

상세 정보

작성자의 원본 설명

Investigates a single PostHog error tracking issue end-to-end. Use when the user provides an issue ID or pastes an issue URL (`/error-tracking/<id>`) and wants to understand the error — who it affects, what triggers it, when it started, whether it correlates with a release, browser, OS, or feature flag, and what the next step should be. Pulls aggregated metrics, sample exception events, segment breakdowns, linked replays, and synthesizes a hypothesis-grade summary in one pass.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6870
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬