authoring-error-tracking-alerts
What it does
This skill sets up notifications that fire when an error is created, reopened or starts spiking, and sends them to a destination such as Slack, a webhook or an issue tracker. It is for teams who want to hear about new bugs quickly.
When to use it
- βWhen you want to be told in Slack when a new error appears in your app.
- βWhen you want a specific error to alert you each time it comes back.
- βWhen you want to route error notifications to a webhook or an issue tracker such as Linear.
Skill link
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βNotify me in Slack whenever a new error shows up in my app or an old one comes back.β
5 new skills a week. 1 minute to read.
How it works
It chooses the right trigger for your goal, checks for alerts that already exist to avoid duplicates, and sets up the destination you choose.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Will it create duplicate alerts?
No. It checks the alerts you already have before adding new ones.
Can it alert on a count of errors over an hour?
Not with this skill. Volume threshold alerts are outside its scope, so it uses error lifecycle events instead.
Can I tune how sensitive the spike alert is?
Not through this skill, because the spike detector settings are not available here.
Details
Original description by the author
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
Popularity
- GitHub stars
- 41k
- Ranking position
- #6867
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.