跳到正文
Skillpedia
部署与云(DevOps)41k · #6867

authoring-error-tracking-alerts

它能做什么

本技能设置在错误被创建、重新打开或开始激增时触发的通知,并将其发送到 Slack、webhook 或问题追踪工具等目的地。适合希望快速了解新缺陷的团队。

适用场景

  • ✓当你希望在新错误出现在应用中时,通过 Slack 收到通知时。
  • ✓当你希望某个特定错误每次重新出现时都提醒你的时候。
  • ✓当你想把错误通知发送到 webhook 或 Linear 等问题追踪工具的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的应用中出现新错误或旧错误重新出现时,通过 Slack 通知我。”

每周 5 个新技能,1 分钟读完。

工作原理

它会为你的目标选择合适的触发器,检查是否已有相同的提醒以避免重复,然后设置你选定的目的地。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Authoring error tracking alerts

Authoring an error tracking alert is a routing problem, not a measurement problem. The trigger events already exist and fire on real conditions in the ingestion pipeline — your job is to pick the right trigger for the user's intent, dedupe against what's already configured, and wire a destination they can actually act on.

When to use this skill

  • The user asks to set up alerts / notifications for errors or exceptions in their project.
  • The user wants a starter set of alerts after enabling error tracking.
  • The user pastes an issue link and asks "notify me when this happens again" — usually _reopened with a per-issue property filter.

When not to use this skill

  • Tuning the spike detector itself (multiplier, window, threshold). That lives behind the spike detection config endpoint and is not exposed via MCP today.
  • Investigating an active incident — query the issue / its events directly via posthog:query-error-tracking-issue and posthog:query-error-tracking-issue-events instead of authoring more alerts mid-fire.
  • Configuring volume-threshold alerts (count of $exception events over a window). That's a logs-style alert and is not in scope here — error tracking alerts ride the lifecycle events instead.

Tools

Tool Job Where it fits
posthog:error-tracking-alerts-list List existing alerts (paginated); dedupe before creating. Step 2 — dedupe.
posthog:integrations-list Find the user's Slack workspace id (filter by kind=slack). Step 3 — pick channel.
posthog:integrations-channels-retrieve List Slack channels for a workspace. Step 3 — pick channel.
posthog:error-tracking-alerts-create Create the alert (HogFunction with type=internal_destination). Step 4 — ship.
posthog:error-tracking-alerts-partial-update Toggle, rename, or modify an existing alert. When tuning, not authoring.
posthog:error-tracking-alerts-delete Soft-delete an alert. When the user says "remove".

Trigger events — pick exactly one per alert

There are three lifecycle events. Each has a different "noise vs urgency" trade-off — picking the wrong one is the most common cause of alert fatigue here.

Event Fires when Use when
$error_tracking_issue_created A brand-new issue first appears. Small projects, or projects where every new error type is genuinely worth a look. Floods large/noisy projects.
$error_tracking_issue_reopened A previously resolved issue starts emitting again. Catch regressions on issues someone already triaged. The safest "I want to know if this comes back" trigger.
$error_tracking_issue_spiking The spike detector flags abnormal volume on an issue. Production projects with high baseline volume. Threshold/multiplier is shared across the project — check spike config before using.

If the user is vague ("alert me on errors"), default to _spiking. It's the most signal-dense trigger and the least likely to cause alert fatigue. Confirm explicitly before proceeding.

Workflow

1. Confirm intent

You need three things from the user before creating anything:

  • Which trigger event. If unspecified, recommend _spiking and ask for confirmation. Do not silently pick one.
  • Which channel. Slack channel name, webhook URL, Linear team, etc. Never hardcode a production channel. If the user says "the dev channel", ask for the exact channel id or name.
  • Which scope. All issues (most common), or scoped to a specific issue / ex
常见问题

它会创建重复的提醒吗?

不会。在添加新提醒之前,它会检查你已有的提醒。

它能对一小时内的错误数量设置提醒吗?

本技能无法做到。数量阈值提醒不在其范围内,因此它使用错误生命周期事件。

我能调整激增提醒的灵敏度吗?

无法通过本技能调整,因为此处不提供激增检测器的设置。

详情

作者的原始描述

Author error tracking alerts that fire when an issue is created, reopened, or starts spiking. Use when the user asks to set up error notifications, route exceptions to Slack/webhook/Linear, or evaluate which error events are worth alerting on. Covers trigger-event selection, integration choice, dedup against existing alerts, and shipping with the canonical message body shape.

repo: PostHog/posthog

热度

GitHub 星标
41k
排名
#6867
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能