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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
_reopenedwith 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-issueandposthog:query-error-tracking-issue-eventsinstead of authoring more alerts mid-fire. - Configuring volume-threshold alerts (count of
$exceptionevents 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
_spikingand 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
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。