Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)41k · #6873

triaging-error-issues

Skill này làm gì

Skill này đưa ra một danh sách ngắn gồm các vấn đề lỗi đáng xem nhất, chẳng hạn những vấn đề mới hoặc những vấn đề ảnh hưởng đến nhiều người dùng. Nó dành cho lập trình viên hoặc nhân viên trực đang rà soát hằng ngày.

Khi nào nên dùng

  • ✓Khi bạn hỏi hôm nay có gì bị hỏng và muốn một danh sách ưu tiên ngắn.
  • ✓Khi bạn muốn xem các lỗi mới trong một hoặc hai ngày gần đây.
  • ✓Khi bạn bắt đầu buổi sáng và muốn biết nên xem vấn đề nào trước.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/triaging-error-issues/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hôm nay chúng ta có những lỗi mới nào, và lỗi nào ảnh hưởng đến nhiều người dùng nhất?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chọn một khoảng thời gian, xếp hạng các vấn đề theo số người dùng bị ảnh hưởng và mức độ gần đây, rồi chỉ đến các replay liên kết. Sau đó, skill gợi ý bước tiếp theo cho từng vấn đề quan trọng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Tool Purpose
posthog:query-error-tracking-issues-list List + rank issues with aggregate metrics (occurrences, users, sessions)
posthog:query-error-tracking-issue Compact details for a single issue (status, assignee, top frame, release)
posthog:query-error-tracking-issue-events Sampled $exception events with stack, URL, browser, and $session_id
posthog:query-session-recordings-list Find replays of users hitting an issue
posthog:inbox-reports-list Pre-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:

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":

{
  "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:

posthog:query-error-tracking-issue-events
{
  "issueId": "<issue_id>",
  "limit": 1,
  "include": ["ex
Câu hỏi thường gặp

Skill hiển thị bao nhiêu vấn đề?

Nó hiển thị một danh sách ngắn đã được ưu tiên, không phải mọi vấn đề đang hoạt động, vì hầu hết dự án có hàng trăm vấn đề.

Điều gì làm một vấn đề có ưu tiên cao?

Các vấn đề mới trong một hoặc hai ngày gần đây, các đợt tăng đột biến đột ngột và các vấn đề ảnh hưởng đến nhiều người dùng khác nhau.

Skill có cho tôi xem người dùng đã làm gì không?

Có. Skill có thể tìm các session replay của người dùng gặp từng vấn đề.

Chi tiết

Mô tả gốc của tác giả

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).

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6873
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự