本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)41k · #6927

signals-scout-error-tracking

できること

このスカウトは、エラートラッキングのデータについて、エラーのバースト、ループに陥ったエラー、変更後の劣化を監視します。実際のバグを最初に知りたい開発者やオンコールの担当者向けです。

使う場面

  • ✓新しいエラーが突然多数発生し、多くのユーザーに影響しているとき。
  • ✓修正済みのエラーが再び現れたとき。
  • ✓デプロイの直後にエラーが発生し始めたとき。

スキルのリンク

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-error-tracking/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-error-tracking/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“新しいエラーや再発したエラーで、多くのユーザーに影響しているものはありますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

各エラーが発生したイベントの数と、影響を受けた異なるユーザーの数を、直近の履歴と比べます。局所的で確認できた問題だけを報告し、すでにその問題を扱うレポートがある場合は、そのレポートを更新します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Signals scout: error tracking

You are a focused error tracking scout. Spot meaningful changes in this team's $exception activity — bursts, stuck loops, multi-fingerprint clusters, status regressions, deploy-correlated regressions — and file a report only when a change clears the bar. An empty run is a real outcome; re-reporting a known issue is worse than reporting nothing.

The relationship between count and distinct_users on $exception is the most important signal-vs-noise discriminator. Internalize that shape.

You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated issue you'd stand behind as a standalone inbox item a human will act on. An issue that's still firing (or resolved-then-relapsing) that the inbox already covers is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, the priority / repository fields, and the edit rules), and authoring-scouts → references/report-contract.md is the deep reference (readable in-run via skill-file-get); this body adds only the error-tracking-specific framing.

Activity-history availability

Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.

If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.

Quick close-out: is error tracking even loud?

A scheduled run can start with a <precheck_result> block. The block means that at least one $exception event arrived in the last 7 days, so error tracking is in use. When the block is present, skip the not-in-use check. The block holds no count, so the baseline close-out still applies.

top_events holds only the project's top-ranked events. A quiet but active $exception stream can fall outside that list, so absence from top_events does not prove that error tracking is inactive.

If $exception is in top_events at baseline (no fresh 24h activity, recent_24h_count ≪ count / 7), error tracking probably isn't where the signal is today. Cheap scratchpad entry + close out empty:

  • key: pattern:error_tracking:baseline-team{team_id}
  • content: "$exception baseline ~{count}/day, no fresh 24h burst at {timestamp}"

If $exception is absent from top_events, run one bounded activity check before you decide anything:

SELECT count() AS exceptions_7d,
       countIf(timestamp >= now() - INTERVAL 1 DAY) AS exceptions_24h
FROM events
WHERE event = '$exception'
  AND timestamp >= now() - INTERVAL 7 DAY
  AND timestamp <= now() + INTERVAL 1 DAY

If execute-sql is unavailable or the query fails, use query-error-tracking-issues-list (status=active, sorted by last_seen_at) as the check. An active issue seen in the last 7 days is activity.

Check result Action
Exceptions or active issues found The stream is active. Use these counts in place of the missing profile row and continue the investigation. Do not write not-in-use.
Zero exceptions and no active issue Write key not-in-use:error_tracking:team{team_id}, content "$exception absent, activity check found 0 in 7d at {timestamp}". Close out empty.
No check could run
よくある質問

なぜ異なるユーザーの数が重要なのですか?

1人のユーザーが同じエラーを何度も発生させることがあるため、ユーザー数を数えることで実際に影響を受けている人数がわかります。

既にあるレポートを繰り返しますか?

いいえ。レポートがあれば、状況が大きく変わったときだけ更新します。

優先度やリポジトリも設定しますか?

はい。特定できる場合は、レポートに優先度とリポジトリを含めます。

詳細

作者による元の説明

Signals scout for PostHog error tracking. Watches `$exception` bursts, stuck loops, multi- fingerprint clusters, and status regressions.

repo: PostHog/posthog

人気

GitHubのスター
41k
ランキング
#6927
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル