Triaging Error Issues

作者 PostHog469d1773e9cb无许可证收录于 2026年10月8日更新于 2026年10月8日

Triage PostHog error tracking issues during a daily or on-call review. Use when the user asks "what's broken?", "what new errors do we have?", "show me top errors today", "what should I look at this morning", or wants a prioritized list of active issues to work on. Surfaces new and high-impact issues, ranks by users affected and recency, points at linked replays, and proposes next actions (investigate, assign, suppress, merge).

仅含说明DevOps & Cloud
AI 生成的概览

将 PostHog 错误跟踪问题分诊为一份简短的优先级列表,并给出建议的后续操作。

功能
引导智能体对 PostHog 错误跟踪问题进行每日或值班审查。它会选择时间窗口和排序信号,拉取候选问题,过滤掉数量平稳或仅来自机器人的噪声,并为排名靠前的问题补充示例异常上下文。最终产出是一句摘要标题,以及一张简短表格,列出问题、受影响用户数、会话数、示例消息和建议操作,例如调查、指派、抑制、合并或解决。
适用场景
当有人询问哪里出问题了、有哪些新错误,或需要一份可着手处理的活跃问题优先级列表时使用。适用于每日错误审查和值班交接。
运行要求
需要访问 PostHog 错误跟踪相关工具(问题列表、问题详情、问题事件、会话录制,以及可选的 Inbox 报告)。不附带脚本,仅为说明性指令。

Triaging error tracking issues

When a user asks "what's broken?" or wants a daily error review, the goal is a short prioritized list of issues worth a human's attention — not a dump of every active issue. Most projects have hundreds of active issues; the few that matter are usually new (first seen in the last 24-48h), spiking, or affecting many distinct users.

Available tools

ToolPurpose
posthog:query-error-tracking-issues-listList + rank issues with aggregate metrics (occurrences, users, sessions)
posthog:query-error-tracking-issueCompact details for a single issue (status, assignee, top frame, release)
posthog:query-error-tracking-issue-eventsSampled $exception events with stack, URL, browser, and $session_id
posthog:query-session-recordings-listFind replays of users hitting an issue
posthog:inbox-reports-listPre-curated actionable signals if the project uses Inbox

Workflow

Step 1 — Pick a window and a signal

Read the time window from the user's wording. Defaults if unspecified:

  • "Today" / "this morning" / "right now" → dateRange: { date_from: "-24h" }
  • "This week" / "since Monday" → -7d
  • On-call shift handoff → -24h

Pick what "matters" means:

  • New issues — orderBy: "first_seen", orderDirection: "DESC", tight window. Catches regressions introduced by recent deploys.
  • High-impact — orderBy: "users" ranks by distinct users affected. Better than raw occurrences for severity (one bot loop produces many occurrences but one user).
  • Trending — orderBy: "occurrences" over a short window vs a longer baseline to spot spikes.

Step 2 — Pull the candidate list

Start narrow and widen if too few issues come back:

json
posthog:query-error-tracking-issues-list{  "status": "active",  "orderBy": "users",  "orderDirection": "DESC",  "dateRange": { "date_from": "-24h" },  "limit": 20,  "volumeResolution": 24}

Match volumeResolution to the window (24 buckets for -24h, 14 for -14d, etc.) so each row's sparkline has enough resolution to show a spike vs flat steady state. A single bucket only gives a total, not a shape.

For new-issues-only, run a parallel query with orderBy: "first_seen":

json
{  "status": "active",  "orderBy": "first_seen",  "orderDirection": "DESC",  "dateRange": { "date_from": "-24h" },  "limit": 10}

If a project mixes browser and server SDKs, the top-by-users list is usually drowned by server-side errors (each invocation often gets a fresh distinct_id). Narrow with the library filter — values match the SDK's $lib, not the npm package name, examples:

  • web — posthog-js (browser)
  • posthog-node, posthog-python, posthog-ruby, posthog-go, posthog-php, posthog-java, posthog-elixir — server SDKs
  • posthog-edge — Cloudflare Workers / edge runtime
  • posthog-ios, posthog-android, posthog-react-native, posthog-flutter — mobile

Step 3 — Filter the noise

The list will include known noise. Before presenting, drop or call out:

  • Issues whose volume is flat over the window — they're not new, the user already lives with them. Surface them only if they're in the top by users.
  • Bot-only issues — if all events come from headless browsers or crawler user agents, flag for suppression (suppressing-noisy-errors) instead of triage.

If unsure whether an issue is new vs. recurring, compare first_seen to the start of the window:

  • first_seen inside the window → new, worth attention
  • first_seen weeks ago but spiking now → regression worth attention
  • first_seen weeks ago, flat volume → background noise

Step 4 — Add context for the top items

For the top 3-5 candidates, pull a sample exception so the summary includes a stack frame and URL, not just a title. Use posthog:query-error-tracking-issue-events rather than raw SQL — it returns normalized fields ($exception_types, $exception_values, $current_url, browser/OS, $session_id) and defaults to onlyAppFrames: true to strip vendor noise from the stack:

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

If the user wants to see what users were doing, hand off to finding-replay-for-issue to pick the best linked recording. Don't fetch replays for every triaged issue — only the ones the user asks to dig into.

Step 5 — Present the triage list

Lead with a one-line headline ("3 new issues in last 24h, 1 spike, 5 active high-impact"). Then a short table sorted by your chosen signal:

IssueFirst seenUsersSessionsSample messageSuggested action
...2h ago142198TypeError ... at checkout.js:42Investigate
...spike6789Network request failedWatch — likely transient
...3d ago1212chrome-extension:// timeoutSuppress (extension noise)

For each, suggest one of: investigate (investigating-error-issue), assign (error-tracking-issues-partial-update), suppress (suppressing-noisy-errors), merge (grouping-noisy-errors), or resolve if it's already known fixed.

Tips

  • A single deploy often surfaces several related new issues. If multiple new issues share a properties.$lib_version (or properties.$exception_releases when the SDK is configured to populate it), present them grouped — a rollback decision rests on the cluster, not any one issue.
  • "Users" is the right severity proxy for user-facing apps. For backend services without a real distinct_id concept, fall back to sessions or occurrences.
  • Don't auto-assign or auto-resolve as part of triage. Present the list and let the user decide. Bulk actions belong in dedicated skills.
  • If the project uses Inbox (posthog:inbox-reports-list), check it first — PostHog may have already curated the most actionable issues so you avoid re-deriving them.
  • Provide each row's _posthogUrl (returned on every issue row) so the user can jump straight to the issue page if they want to drill down themselves. If you build the link yourself, use the full /project/<project_id>/error_tracking/<id> path, never a bare /error_tracking/<id>.

Related skills

  • investigating-error-issue — deep-dive a single issue off the triage list
  • grouping-noisy-errors — when triage is drowned by duplicate or over-split issues
  • suppressing-noisy-errors — mute known-noise fingerprints so future triage runs are cleaner
  • authoring-error-tracking-alerts — route the issues worth acting on to Slack or a webhook instead of re-triaging manually

来源与署名

来源:PostHog/ai-plugin位于skills/triaging-error-issues提交469d177

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 PostHog/ai-plugin 的技能

Writing Simplified Technical English

PostHog

应用 ASD-STE100 简化技术英语规则,让智能体撰写的文字含义明确、便于执行。

Writing & Content2026年10月8日

Working With Task Comments

PostHog

通过 PostHog MCP exec 调度器读取并解读 PostHog 任务、产物和画布上的评论。

Productivity & Workflow2026年10月8日

Working With Skills

PostHog

指导智能体使用 PostHog 的 skill-* MCP 工具来发现、读取、创建、更新和重构技能。

AI & Agents2026年10月8日

Working With Scouts

PostHog

关于如何把监控任务委派给 PostHog Signals 侦察代理、处理其报告并长期调校整个代理集群的操作手册。

AI & Agents2026年10月8日

Validating And Publishing Canvases

PostHog

Validate and publish a canvas source project safely: the source-project shape, declared capabilities, reading the current version pointer, iterating on validation diagnostics, guarded publishing with expected_current_version_id, staging a draft build and promoting it, waiting out the queued build, and recovering from a 409 version_conflict or a 429 capacity limit without overwriting concurrent work. Use whenever a canvas edit is ready to save, a draft build is wanted, a canvas publish or build returns diagnostics or a conflict, or a task needs to understand canvas version history.

待分类2026年10月8日

Understanding Billing Usage

PostHog

Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change alert, or whether a spike/drop alert was real or noisy. Also use before product-specific analytics skills when the user names a billable PostHog product metric such as events, recordings, feature flag requests, exceptions, survey responses, synced rows, logs, AI events, AI credits, or Inbox credits. Starts from Billing usage/spend tools, then routes to customer-visible product MCP surfaces for deeper investigation.

待分类2026年10月8日