
Error Tracking Alerts
FreeSet up alerts for error tracking events effortlessly.
Free · Opens the source repo
What Error Tracking Alerts does
The Error Tracking Alerts skill is designed to help developers and teams manage error notifications effectively. By leveraging existing trigger events in the ingestion pipeline, this skill allows users to create alerts that notify them when specific issues arise in their projects. Users can choose from three main trigger events: when a new error is created, when a previously resolved error reoccurs, or when an error spikes in volume. This flexibility ensures that alerts are tailored to the specific needs of the project, reducing the risk of alert fatigue.
To use this skill, users need to confirm their intent regarding the type of alert they wish to set up, the channel for notifications (such as Slack or webhooks), and the scope of the alert (whether it applies to all issues or specific ones). The skill also includes a deduplication process to prevent multiple alerts for the same event being sent to the same channel, which is crucial for maintaining a clear and manageable alert system.
This skill is particularly useful for teams that want to stay informed about critical issues without being overwhelmed by notifications. It streamlines the process of setting up alerts and integrates seamlessly with popular communication tools, making it easy for teams to respond to errors as they arise. Whether you are managing a small project or a large production environment, this skill can help ensure that you are alerted to the most important issues in a timely manner.
When to use it
Use this skill when you need to establish error notifications for your project or want a starter set of alerts after enabling error tracking.
When not to use it
Avoid this skill for tuning spike detection settings or investigating active incidents, as those require different tools and approaches.
What you can build with it
Setting Up Initial Alerts
After enabling error tracking, a user can quickly set up initial alerts to monitor for new issues.
Responding to Reopened Issues
A developer can create alerts that notify them when previously resolved issues are reopened, ensuring they can address regressions promptly.
Monitoring Error Spikes
In a production environment, teams can set up alerts for when error volumes spike, allowing for proactive management of potential issues.
How to install Error Tracking Alerts
View source1. Install with the skills CLI
npx skills add posthog/posthog/authoring-error-tracking-alerts --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by posthogAuthoring 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; 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 / exception type / assignee.
2. Dedupe against existing alerts
Call posthog:error-tracking-alerts-list. Filter the response client-side by filters.events[].id.
- If an alert exists for the same event delivering to the same channel, stop. Tell the user it
already exists and ask whether they want to change anything (in which case use
error-tracking-alerts-partial-update) or skip. - Multiple alerts on the same event for the same channel produce duplicate Slack messages — the user almost never wants this.
- Multiple alerts on the same event for different channels (e.g. one for
#oncall, one for the oncall webhook) is fine and sometimes intentional. Confirm.
PostHog's "alerts configured" recommendation only inspects filters.events — adding per-issue
filters.properties does not affect the status the recommendations card reports.
3. Pick the integration
For Slack:
posthog:integrations-listwithkind=slack→ pick the integrationid(an integer).posthog:integrations-channels-retrievewith that id → pick the channel id (e.g.C0123ABC). Channel names like"#oncall"are accepted but channel ids are preferred — they survive renames.
For webhook: the user supplies a single https:// URL. Refuse http:// URLs.
For Linear / GitHub / GitLab: confirm the integration is connected via posthog:integrations-list first,
then ask the user which project / repository / team to file issues into.
4. Create the alert
Call posthog:error-tracking-alerts-create with:
{
"type": "internal_destination",
"template_id": "template-slack",
"name": "<short, channel-attributed name>",
"enabled": true,
"filters": {
"events": [{ "id": "$error_tracking_issue_created", "type": "events" }]
},
"inputs": {
"slack_workspace": { "value": <slack_integration_id_int> },
"channel": { "value": "<channel_id>" },
"text": { "value": "..." },
"blocks": { "value": [...] }
}
}
The canonical Slack blocks payload for each event lives in
references/block-templates.md. Copy the matching block verbatim — it
matches the in-product alert wizard, so agent-created alerts look identical to UI-created ones.
For per-issue scoping — created / reopened only, spiking events carry no exception properties — add
to filters:
"properties": [
{ "key": "$exception_issue_id", "value": "<issue_uuid>", "operator": "exact", "type": "event" }
]
Other useful property filters: $exception_types (exception class names, an array), name (issue
title). See references/event-triggers.md for the full property surface
per event.
5. Verify
Echo the alert back to the user with: name, trigger event (human-readable), destination, and a one-line
preview of the message body. Do not echo Slack workspace ids or webhook URLs — those are sensitive. Tell
the user how to disable: "you can pause this alert by setting enabled: false via
error-tracking-alerts-partial-update or by toggling it in the destinations UI."
Naming convention
Use <trigger> · <channel> (auto) so the user can scan their alert list and spot agent-created entries.
Examples:
Issue spiking · #oncall (auto)Issue reopened · #regressions-webhook (auto)Issue created · Linear/Eng (auto)
Do not use the issue title in the name — alerts can match many issues, and the title becomes stale once the issue evolves.
Token-economy rules
- One
posthog:error-tracking-alerts-listcall up front, not per candidate. - Reuse a single integration lookup for multiple alerts going to the same workspace.
- Confirm the channel / URL with the user before creating each alert. Never batch-create alerts to a destination the user has not explicitly named.
- Cap iteration at 1 round per alert. If the user wants three alerts, that's three create calls — not three create calls per alert.
Output
Report what you did, in this shape:
- For each shipped alert: name, trigger event, destination (channel name or webhook host — never the full URL), enabled state.
- For each skipped alert: trigger + channel + why (already exists, user declined, missing integration).
- Anything the user should do next: enable the spike detection config (if they picked
_spikingand the detector hasn't been turned on), wire up source maps (so the alert's stack trace links resolve), or tune the alert filters after watching it for a day.
Frequently asked questions about Error Tracking Alerts
Similar skills
Turborepo
Optimized build system for JavaScript/TypeScript monorepos.
Azure Pipelines Validation
Streamline your Azure DevOps pipeline changes locally.
Azure Developer CLI
Streamline your Azure project workflows with best practices.
Azure Container Registry CLI
Manage Azure Container Registry resources with ease.
Aspire
Build and orchestrate polyglot distributed applications seamlessly.
Vercel CLI
Manage and deploy Vercel projects from the command line.
