grouping-noisy-errors
できること
このスキルは、同じバグを説明しているのに多数の課題に分かれてしまったエラーのレポートをまとめます。ほぼ同じ項目でエラー一覧が散らかっている人向けです。
使う場面
- ✓見た目が似ている多数のエラーの課題があり、1つだけ残したいとき。
- ✓同じエラーが既存の課題に入らず、新しい課題を作り続けるとき。
- ✓メッセージに変わるID やファイルパスを含むエラーの課題を整理する必要があるとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“TypeErrorの課題が何十件も似て見えるのはなぜですか?重複をまとめてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
まず、どの課題が本当に同じ原因を共有しているかを確認し、その後1つの統合先にまとめます。さらに、同じコードの場所から発生する今後のイベントがまとまるよう、グループ化のルールを設定します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Grouping noisy errors
The same error can be reported as dozens of separate issues when stack frames or messages contain volatile data — random IDs, dynamic file paths, build hashes, anonymous function names. The fix is two-step: merge the existing issues into one target, then create a grouping rule so future events from the same call site share a single canonical fingerprint instead of spawning new ones.
Important up front: "same error" here is narrow. Two issues that share a name or
a sentence of message text but came from different code paths, different SDKs,
or different runtimes are different errors and should stay separate, even if
the user thinks of them as "the same kind of bug". Grouping a frontend
TypeError together with a backend TypeError because both messages contain
"undefined" destroys the signal that lets the team find each one. The criteria
in step 1 exist to keep that from happening.
Available tools
| Tool | Purpose |
|---|---|
posthog:query-error-tracking-issues-list |
Find candidate duplicate issues |
posthog:query-error-tracking-issue |
Pull compact details for an individual issue |
posthog:query-error-tracking-issue-events |
Sampled $exception events with stack and message |
posthog:error-tracking-issues-merge-create |
Merge existing issues into a target |
posthog:error-tracking-issues-split-create |
Surgically split fingerprints back out if a merge errs |
posthog:error-tracking-grouping-rules-create |
Auto-group future events into one issue |
posthog:error-tracking-grouping-rules-list |
Check existing grouping rules before adding new ones |
posthog:error-tracking-issues-partial-update |
Rename or re-describe the target after a merge |
Merge vs grouping rule
The two tools solve different halves of the problem:
- Merge is one-shot. It collapses existing issues into a target and re-attaches their events. Future events still group by their original fingerprints — if the same noisy pattern keeps producing new fingerprints, merging is a treadmill.
- Grouping rule is durable. It rewrites the fingerprint of any matching
event to
custom-rule:<rule_id>at ingestion time, so all future matches share one canonical fingerprint rather than spawning new ones. The first match either creates a new issue keyed off that fingerprint, or routes to whatever issue is already bound to it.
Use both together when the issue is recurring: merge historical duplicates
into a target issue, then create the rule. The rule API does not accept a
target issue ID — once the rule starts firing, the resulting custom-rule:...
issue can be merged into the same target so the consolidation sticks. Use
merge alone for historical sprawl that you don't expect to recur. Use a
grouping rule alone for a brand-new pattern you're getting ahead of, when
you don't need to consolidate with an existing issue.
Workflow
Step 1 — Confirm the duplicates
Search by exception type or message to find candidates:
posthog:query-error-tracking-issues-list
{
"searchQuery": "TypeError: Cannot read property",
"status": "active",
"limit": 50,
"orderBy": "occurrences",
"dateRange": { "date_from": "-30d" }
}
For each candidate, pull one sampled exception event to compare stack, type, and message:
posthog:query-error-tracking-issue-events
{
"issueId": "<candidate_issue_id>",
"limit": 1,
"include": ["exception", "stacktrace", "environment"]
}
Run this once per candidate. The tool defaults to onlyAppFrames: true, which
makes the top in-app frame stand out at a glance. If two candidates share the
same top frame and same exception type, they're likely the same error — but
verify against the full checklist below before merging.
Are they the same error?
Treat two issues as duplicates only when every one of these matches:
$libis the same SDK. The browser/JS SDK captures$libasweb(notposthog-js); server SDKs useposthog-python,posthog-node, etc. Confirm the exact value withread-data-schema(event_property_valuesfor$libon$exception) rather than assuming — a wrong value silently matches nothing. Erro
よくある質問
アプリの異なる部分のエラーもまとめられますか?
いいえ。メッセージが似ていても、異なるコードの経路、SDK、ランタイムのエラーは別々のままにします。
2つのエラーが同じだと判断する基準は何ですか?
似た言葉を使っているだけではなく、同じ根本原因から来ているエラーだけをまとめます。
メッセージの文字列だけでまとめないのはなぜですか?
2つの異なるバグが undefined のような共通の単語を持つことがあるため、文字列だけでまとめると本当の問題を隠してしまうからです。
詳細
作者による元の説明
Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints. Use when the user asks "why do I have so many TypeError issues that look the same?", "merge these duplicates", "stop splitting this error into new issues", or wants to clean up fingerprint sprawl. Decides between a one-shot merge of existing issues and a durable grouping rule that keeps future events from creating new fingerprints. Does NOT group conceptually similar bugs across different runtimes, SDKs, or call sites.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6869
- ライセンス
- —
- 更新日
- 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一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。