grouping-noisy-errors
O que ela faz
Esta skill combina relatórios de erro que descrevem o mesmo bug, mas foram divididos em muitas issues. É para quem tem a lista de erros cheia de entradas quase idênticas.
Quando usar
- ✓Quando você tem muitas issues de erro parecidas e quer manter apenas uma entrada.
- ✓Quando o mesmo erro continua criando novas issues em vez de se juntar a uma existente.
- ✓Quando você precisa limpar issues de erro cujas mensagens contêm IDs ou caminhos de arquivo que mudam.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Por que tenho dezenas de issues de TypeError parecidas? Por favor, una as duplicadas.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela primeiro verifica quais issues realmente têm a mesma causa e depois as une em um único alvo. Também define uma regra de agrupamento para que eventos futuros do mesmo ponto do código continuem juntos.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela vai juntar erros de partes diferentes do meu app?
Não. Erros de caminhos de código, SDKs ou runtimes diferentes continuam separados, mesmo que as mensagens sejam parecidas.
O que torna dois erros iguais?
A skill só agrupa erros que vêm da mesma causa subjacente, e não erros que apenas usam palavras parecidas.
Por que não juntar apenas pelo texto da mensagem?
Dois bugs diferentes podem compartilhar uma palavra comum, como undefined, então agrupar só pelo texto esconderia problemas reais.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6869
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.