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

investigating-error-issue

Ce qu’il fait

Cette skill rassemble le contexte d'un ticket d'erreur, y compris les personnes touchées, le moment où il a commencé et si une version, un navigateur ou un feature flag est impliqué. Elle s'adresse aux développeurs et au support qui doivent comprendre un bug précis.

Quand l’utiliser

  • ✓Quand quelqu'un vous envoie un lien vers un ticket d'erreur PostHog et demande ce qui se passe.
  • ✓Quand vous devez savoir combien d'utilisateurs une erreur touche et depuis quand.
  • ✓Quand vous voulez voir si une erreur est liée à une version, un navigateur ou un feature flag.

Lien du skill

https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/investigating-error-issue/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/investigating-error-issue/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

“Regarde ce lien de ticket d'erreur et dis-moi qui est touché et si cela a commencé avec une version récente.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill récupère le résumé du ticket, des exemples d'événements d'erreur, des répartitions par navigateur et par version, ainsi que les replays de session liés. Elle combine ces éléments en une courte explication et une prochaine étape.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Investigating an error tracking issue

When a user asks "what's going on with this error?" or pastes an issue URL, gather the context they would otherwise have to assemble manually: who is hitting it, what changed, where it happens, and whether a replay shows the cause.

Available tools

Tool Purpose
posthog:query-error-tracking-issue Compact issue details (status, assignee, top frame, release, aggregates)
posthog:query-error-tracking-issue-events Sampled $exception events with stack, URL, browser, $session_id
posthog:execute-sql Breakdowns, release / flag correlations, surrounding events + console logs around the error
posthog:query-logs OTEL log entries around the error timestamp for server-side issues
posthog:query-session-recordings-list Linked replays (delegate ranking to finding-replay-for-issue)
posthog:read-data-schema Confirm property keys before filtering on them

Workflow

Step 1 — Establish the issue baseline

Fetch the issue record with its compact aggregates and a sparkline:

posthog:query-error-tracking-issue
{
  "issueId": "<issue_id>",
  "dateRange": { "date_from": "-30d" },
  "includeSparkline": true,
  "volumeResolution": 12
}

Capture: name, description, status, first_seen, last_seen, assignee, total occurrences / users / sessions, top in-app frame, latest release metadata, and the volume buckets.

The sparkline tells you the shape — flat, spike, ramp, or recurring — and that shape drives the rest of the investigation. If the user only asked a status question, skip includeSparkline to save tokens.

Step 2 — Pull a sample exception event

A captured event has the stack frames, URL, browser, and properties needed to reason about cause. Pull a recent sample first, then an early one to compare.

posthog:query-error-tracking-issue-events
{
  "issueId": "<issue_id>",
  "limit": 1,
  "include": ["exception", "stacktrace", "environment", "navigation", "correlation"]
}

The tool defaults to onlyAppFrames: true, which strips vendor frames; flip to false when the bug appears to live in a third-party library — or when the response comes back with stacktrace.type: "resolved" but no frames at all (common for minified bundles where every frame looks vendor-y to the resolver, e.g. React production builds).

For the earliest sample, narrow dateRange to a tight window around the issue's first_seen (e.g. set date_from slightly before and date_to slightly after) and pass orderDirection: "ASC" so you get the earliest event in the window rather than the latest — the tool defaults to DESC, which would return a recent event and silently duplicate the first call. If recent and earliest events look materially different — different stack root, different URL pattern — the issue may be a grouping mistake. Flag for grouping-noisy-errors instead of continuing as if it were one bug.

Step 3 — Run breakdowns to isolate the cause

Breakdowns aren't a typed tool — drop into execute-sql. Run only the breakdowns the issue's shape suggests; each one costs a query and clutters the synthesis.

Sparkline shape First breakdown to try
Spike from zero By app version / release — almost always a deploy regression (see below)
Steady-state high By browser / OS — rendering or platform-specific bug
Ramp By geography or feature flag — gradual rollout exposure
Bursts then quiet By time of day or $current_url — scheduled job or specific page

Picking the right version property

PostHog emits three version-shaped fields. They mean different things and only one of them answers "what version of the user's app introduced this?":

| Property | What it is

Questions fréquentes

Dois-je lui donner l'identifiant du ticket ?

Vous pouvez coller le lien du ticket ou donner l'identifiant, et la skill le retrouvera.

Peut-elle me montrer un replay de session ?

Oui. Elle peut trouver les replays liés des utilisateurs touchés par l'erreur, pour voir ce qui s'est passé.

Fonctionne-t-elle aussi pour les erreurs côté serveur ?

Oui. Elle peut aussi examiner les journaux OpenTelemetry autour du moment de l'erreur.

Détails

Description originale de l’auteur

Investigates a single PostHog error tracking issue end-to-end. Use when the user provides an issue ID or pastes an issue URL (`/error-tracking/<id>`) and wants to understand the error — who it affects, what triggers it, when it started, whether it correlates with a release, browser, OS, or feature flag, and what the next step should be. Pulls aggregated metrics, sample exception events, segment breakdowns, linked replays, and synthesizes a hypothesis-grade summary in one pass.

repo: PostHog/posthog

Popularité

Étoiles GitHub
41k
Position au classement
#6870
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