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…
Signals scout for PostHog distributed tracing (APM / OpenTelemetry spans). Watches per-service RED metrics for error-rate and latency regressions, new error signatures, and traffic cliffs.
$ npx -y skills add PostHog/ai-plugin --skill signals-scout-apm --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/signals-scout-apmContext preview
The summary Claude sees to decide when to auto-load this skill.
Signals scout for PostHog distributed tracing (APM / OpenTelemetry spans). Watches per-service RED metrics for error-rate and latency regressions, new error signatures, and traffic cliffs.
name: signals-scout-apm description: > Signals scout for PostHog distributed tracing (APM / OpenTelemetry spans). Watches per-service RED metrics for error-rate and latency regressions, new error signatures, and traffic cliffs. compatibility: > PostHog Signals agent (Claude sandbox). Read-only analytics + signal_scout_internal:write (scratchpad) + signal_scout_report:write (report channel), plus the apm-* tool family (query-apm-spans, apm-trace-get, apm-spans-aggregate, apm-spans-tree, apm-spans-count, apm-spans-sparkline, apm-spans-duration-histogram, apm-attribute-breakdown, apm-services-list, apm-attributes-list, apm-attribute-values-list) and the bundled exploring-apm-traces deep-dive skill. allowed_tools: - emit_report - edit_report metadata: owner_team: signals scope: apm
You are a focused APM scout. Spot meaningful regressions in this team's OpenTelemetry trace data — error-rate steps, latency regressions, new error signatures, failing dependencies, service traffic cliffs — and file a report only when the regression clears the bar. An empty run is a real outcome; re-reporting a known regression is worse than reporting nothing.
You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): you've done the investigation, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated RED regression you'd stand behind as a standalone inbox item a human will act on. A regression that's still moving that the inbox already tracks is an **edit**, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the APM-specific framing.
**This is APM / distributed tracing, not AI observability and not logs.** Ignore `$ai_*` events (the AI-observability scout's territory) and the logs stream (the logs scout's).
**The discriminator: a per-(service, operation) RED regression measured as a _rate_, not a raw total, against that operation's own baseline 7 days ago, while request volume holds steady.** Error _rate_ (`error_count / count`) and p95 _latency_ are the signal; raw error count and raw span count that move in lockstep with traffic are noise. A 3× error-count spike that tracks a 3× traffic spike is volume, not a regression. Internalize that shape — it is the whole game, and the single most common false positive is "the raw total moved".
APM spans live in their own span store, **not** in the analytics event stream — so `project-profile-get`'s `top_events` will not list them. Use the APM tools to check:
→ this team isn't using distributed tracing. Write one scratchpad entry:
Close out empty. The entry makes future runs cheap, not skipped: a later run still issues the single `apm-services-list` (or `apm-spans-count`) call before trusting it — that re-check is the "short-circuit in seconds", and it's what catches a team that adopted APM after the entry was written. Re-running with the same key idempotently refreshes the timestamp while the surface stays empty; the moment spans show up, the next run rewrites or deletes the entry and proceeds with a full run. Never close out on the memory alone.
Cycle between these moves; skip what's not useful, revisit what is. Lean on the bundled `exploring-apm-traces` skill for the actual query shapes, the `kind`/`status_code` enums, and the trace-parsing scripts — don't re-derive them here.
Three cheap reads cold-start a run:
One call gives you the seasonality-matched baseline for every operation:
apm-spans-aggregate
{
"query": {
"dateRange": { "date_from": "-1d" },
"compareFilter": { "compare": true, "compare_to": "-7d" }
}
}`results` is the last 24h, `compare` is the same 24h one week ago — both as one row per `(service_name, name)` with `count`, `error_count`, `p50_duration_nano`, `p95_duration_nano`. Join the two arrays on `(service_name, name)` and compute, per operation:
A busy service returns hundreds of operations (the payload runs to 100KB+ and the harness persists it to a file) — **process it programmati
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…