Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)41k · #6867

authoring-error-tracking-alerts

Ce qu’il fait

Cette skill met en place des notifications qui se déclenchent lorsqu'une erreur est créée, rouverte ou commence à augmenter fortement, et les envoie vers une destination comme Slack, un webhook ou un outil de suivi de tickets. Elle s'adresse aux équipes qui veulent être prévenues vite des nouveaux bugs.

Quand l’utiliser

  • ✓Quand vous voulez être prévenu dans Slack dès qu'une nouvelle erreur apparaît dans votre application.
  • ✓Quand vous voulez qu'une erreur précise vous alerte à chaque réapparition.
  • ✓Quand vous voulez envoyer les notifications d'erreur vers un webhook ou un outil de suivi comme Linear.

Lien du skill

https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/authoring-error-tracking-alerts/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Préviens-moi dans Slack chaque fois qu'une nouvelle erreur apparaît dans mon application, ou qu'une ancienne revient.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill choisit le déclencheur adapté à votre objectif, vérifie les alertes déjà existantes pour éviter les doublons, puis configure la destination que vous avez choisie.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes

Va-t-elle créer des alertes en double ?

Non. Elle vérifie d'abord les alertes que vous avez déjà avant d'en ajouter.

Peut-elle alerter sur un nombre d'erreurs par heure ?

Pas avec cette skill. Les alertes de seuil de volume sont hors de son périmètre, elle utilise donc les événements de cycle de vie des erreurs.

Puis-je régler la sensibilité de l'alerte de pic ?

Pas avec cette skill, car les paramètres du détecteur de pics ne sont pas disponibles ici.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
41k
Position au classement
#6867
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires