triaging-error-issues
できること
このスキルは、新しいエラーや多くのユーザーに影響するエラーなど、最も注意すべき課題の短い一覧を出します。毎日のレビューを行う開発者や当番の担当者向けです。
使う場面
- ✓今日何が壊れているか尋ね、優先度の短い一覧がほしいとき。
- ✓直近1〜2日の新しいエラーを見たいとき。
- ✓一日の始まりに、最初に見るべき課題を知りたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/triaging-error-issues/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“今日の新しいエラーは何ですか?影響を受けるユーザーが最も多いのはどれですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
時間枠を選び、影響を受けるユーザー数と新しさで課題を順位付けし、関連するリプレイを示します。その後、重要な課題ごとに次の手順を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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 SDKsposthog-edge— Cloudflare Workers / edge runtimeposthog-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_seeninside the window → new, worth attentionfirst_seenweeks ago but spiking now → regression worth attentionfirst_seenweeks 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
よくある質問
いくつの課題を表示しますか?
アクティブな課題をすべて表示するのではなく、優先度の付いた短い一覧を表示します。多くのプロジェクトには数百の課題があるためです。
どんな課題が優先度が高いのですか?
直近1〜2日の新しい課題、急増している課題、多くの異なるユーザーに影響する課題です。
ユーザーが何をしたかを見られますか?
はい。各課題に遭遇したユーザーのセッションのリプレイを見つけられます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 41k
- ランキング
- #6873
- ライセンス
- —
- 更新日
- 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一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。