adding-warehouse-perso…
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
Triage PostHog error tracking issues during a daily or on-call review. Use when the user asks "what's broken?", "what new errors do we have?", "show me top errors today", "what should I look at this morning", or wants a prioritized list of active issues to work on. Surfaces new
$ npx -y skills add PostHog/ai-plugin --skill triaging-error-issues --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/triaging-error-issuesContext preview
The summary Claude sees to decide when to auto-load this skill.
Triage PostHog error tracking issues during a daily or on-call review. Use when the user asks "what's broken?", "what new errors do we have?", "show me top errors today", "what should I look at this morning", or wants a prioritized list of active issues to work on. Surfaces new
name: triaging-error-issues description: > Triage PostHog error tracking issues during a daily or on-call review. Use when the user asks "what's broken?", "what new errors do we have?", "show me top errors today", "what should I look at this morning", or wants a prioritized list of active issues to work on. Surfaces new and high-impact issues, ranks by users affected and recency, points at linked replays, and proposes next actions (investigate, assign, suppress, merge).
When a user asks "what's broken?" or wants a daily error review, the goal is a short prioritized list of issues worth a human's attention — not a dump of every active issue. Most projects have hundreds of active issues; the few that matter are usually new (first seen in the last 24-48h), spiking, or affecting many distinct users.
| Tool | Purpose | | ------------------------------------------- | ------------------------------------------------------------------------- | | `posthog:query-error-tracking-issues-list` | List + rank issues with aggregate metrics (occurrences, users, sessions) | | `posthog:query-error-tracking-issue` | Compact details for a single issue (status, assignee, top frame, release) | | `posthog:query-error-tracking-issue-events` | Sampled `$exception` events with stack, URL, browser, and `$session_id` | | `posthog:query-session-recordings-list` | Find replays of users hitting an issue | | `posthog:inbox-reports-list` | Pre-curated actionable signals if the project uses Inbox |
Read the time window from the user's wording. Defaults if unspecified:
Pick what "matters" means:
Catches regressions introduced by recent deploys.
raw occurrences for severity (one bot loop produces many occurrences but one user).
to spot spikes.
Start narrow and widen if too few issues come back:
posthog:query-error-tracking-issues-list
{
"status": "active",
"orderBy": "users",
"orderDirection": "DESC",
"dateRange": { "date_from": "-24h" },
"limit": 20,
"volumeResolution": 24
}Match `volumeResolution` to the window (24 buckets for `-24h`, 14 for `-14d`, etc.) so each row's sparkline has enough resolution to show a spike vs flat steady state. A single bucket only gives a total, not a shape.
For new-issues-only, run a parallel query with `orderBy: "first_seen"`:
{
"status": "active",
"orderBy": "first_seen",
"orderDirection": "DESC",
"dateRange": { "date_from": "-24h" },
"limit": 10
}If a project mixes browser and server SDKs, the top-by-users list is usually drowned by server-side errors (each invocation often gets a fresh `distinct_id`). Narrow with the `library` filter — values match the SDK's `$lib`, not the npm package name, examples:
The list will include known noise. Before presenting, drop or call out:
lives with them. Surface them only if they're in the top by users.
flag for suppression (`suppressing-noisy-errors`) instead of triage.
If unsure whether an issue is new vs. recurring, compare `first_seen` to the start of the window:
For the top 3-5 candidates, pull a sample exception so the summary includes a stack frame and URL, not just a title. Use `posthog:query-error-tracking-issue-events` rather than raw SQL — it returns normalized fields (`$exception_types`, `$exception_values`, `$current_url`, browser/OS, `$session_id`) and defaults to `onlyAppFrames: true` to strip vendor noise from the stack:
posthog:query-error-tracking-issue-events
{
"issueId": "<issue_id>",
"limit": 1,
"include": ["exception", "stacktrace", "environment", "navigation", "correlation"]
}If the user wants to see what users were doing, hand off to `finding-replay-for-issue` to pick the best linked recording. Don't fetch replays for every triaged issue — only the ones the user asks to dig into.
Lead with a one-line headline ("3 new issues in last 24h, 1 spike, 5 active high-impact"). Then a short table sorted by your chosen signal:
| Issue | First seen | Users | Sessions | Sample message | Suggested action | | ----- | ---------- | ----- | -------- | --------------------------------- | -------------------------- | | ... | 2h ago | 142 | 198 | `TypeError ... at checkout.js:42` | Investigate | | ... | spike | 67 | 89 | `Network request failed` | Watch — likely transient | | ... | 3d ago | 12 | 12 | `chrome-extension:// timeout` | Suppress (extension noise) |
Fo
Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.
Repo: PostHog/ai-plugin
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user…
Analyze session replay patterns across experiment variants to understand user behavior differences. Use when the user wants to see how users interact with…
Split a completed PostHog task run into activity records — what the agent tried, whether it worked, what blocked it — and record each one through the…
Assesses what a page's heatmap is telling you and recommends concrete changes. Pulls click / rageclick / scroll-depth data for a URL, names the hot elements by…
Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks "what endpoints can…