跳到正文
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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-error-tracking/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 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
常见问题

为什么不同用户数很重要?

单个用户可能多次触发同一错误,统计用户数可以显示真正受影响的人数。

它会重复我已有的报告吗?

不会。若报告已存在,侦察器只在出现实质变化时才会更新它。

它会设置优先级和代码仓库吗?

会。报告中包含优先级,以及在可识别时的代码仓库。

详情

作者的原始描述

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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能