authoring-error-tracking-alerts
Skill này làm gì
Skill này thiết lập thông báo kích hoạt khi một lỗi được tạo, mở lại hoặc bắt đầu tăng đột biến, rồi gửi đến một đích như Slack, webhook hoặc công cụ theo dõi vấn đề. Nó dành cho các nhóm muốn biết ngay về lỗi mới.
Khi nào nên dùng
- ✓Khi bạn muốn được báo trên Slack mỗi khi một lỗi mới xuất hiện trong ứng dụng.
- ✓Khi bạn muốn một lỗi cụ thể cảnh báo bạn mỗi lần nó quay lại.
- ✓Khi bạn muốn chuyển thông báo lỗi đến webhook hoặc công cụ theo dõi vấn đề như Linear.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thông báo cho tôi trên Slack mỗi khi một lỗi mới xuất hiện trong ứng dụng hoặc một lỗi cũ quay lại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chọn đúng trình kích hoạt cho mục tiêu của bạn, kiểm tra các cảnh báo đã có để tránh trùng lặp, rồi thiết lập đích bạn chọn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có tạo cảnh báo trùng lặp không?
Không. Skill kiểm tra các cảnh báo bạn đã có trước khi thêm mới.
Có thể cảnh báo khi số lượng lỗi vượt ngưỡng trong một giờ không?
Không với skill này. Cảnh báo ngưỡng khối lượng nằm ngoài phạm vi, nên nó dùng các sự kiện vòng đời lỗi.
Tôi có thể điều chỉnh độ nhạy của cảnh báo tăng đột biến không?
Không thể qua skill này, vì cài đặt của bộ phát hiện đột biến không có sẵn ở đây.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6867
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.