grouping-noisy-errors
Fungsinya
Skill ini menggabungkan laporan error yang menggambarkan bug yang sama tetapi terpecah menjadi banyak isu. Ditujukan untuk orang yang daftar errornya penuh dengan entri yang hampir identik.
Kapan dipakai
- βSaat Anda memiliki banyak isu error yang tampak sama dan ingin menyimpan hanya satu entri.
- βSaat error yang sama terus membuat isu baru alih-alih bergabung dengan isu yang sudah ada.
- βSaat Anda perlu membersihkan isu error yang pesannya berisi ID atau jalur berkas yang berubah-ubah.
Link skill
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMengapa saya memiliki puluhan isu TypeError yang tampak sama? Tolong gabungkan duplikatnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill terlebih dahulu memeriksa isu mana yang benar-benar berbagi penyebab yang sama, lalu menggabungkannya menjadi satu target. Skill juga menetapkan aturan pengelompokan agar event berikutnya dari lokasi kode yang sama tetap berkumpul.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah error dari bagian aplikasi yang berbeda akan digabungkan?
Tidak. Error dari jalur kode, SDK, atau runtime yang berbeda tetap terpisah, meskipun pesannya tampak mirip.
Apa yang membuat dua error dianggap sama?
Skill hanya mengelompokkan error yang berasal dari penyebab dasar yang sama, bukan error yang sekadar menggunakan kata-kata serupa.
Mengapa tidak menggabungkan berdasarkan teks pesan saja?
Dua bug berbeda dapat memiliki kata umum seperti undefined, sehingga pengelompokan hanya berdasarkan teks akan menyembunyikan masalah nyata.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6869
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.