Skip to content
Skillpedia
Deploy & cloud (DevOps)41k Β· #6867

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.md

Copy 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

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 _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
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills