Skip to content
Development
Skill

/signals-scout-ai-observability

Signals scout for PostHog AI observability. Watches LLM traces for cost, latency, error, volume, and eval-performance regressions.

From plugin
ai-plugin
95180 skills1 agent3 commands3 hooks
+1

Claude Code

$ npx -y skills add PostHog/ai-plugin --skill signals-scout-ai-observability --agent claude-code

SKILL.md

signals-scout-ai-observability.SKILL.md
name: signals-scout-ai-observability
scout-display-name: AI observability
description: >
  Signals scout for PostHog AI observability. Watches LLM traces for cost, latency, error,
  volume, and eval-performance regressions.
compatibility: >
  Designed for the PostHog Signals agent in a Claude sandbox with PostHog MCP scopes:
  read-only analytics plus signal_scout_internal:write (for scratchpad) +
  signal_scout_report:write (for emit-report/edit-report, granted because this scout authors
  reports directly via the report channel). Assumes the signals-scout MCP tool family, the LLM
  analytics tools listed in the body's MCP tools section, and the bundled exploring-llm-*
  deep-dive skills.
allowed_tools:
  - emit_report
  - edit_report
scout-tags:
  - ai-observability
metadata:
  owner_team: signals
  scope: llm_analytics
scout-precheck-query: |
  SELECT event, count() AS events, max(timestamp) AS last_seen
  FROM events
  WHERE event IN ('$ai_generation', '$ai_evaluation', '$ai_trace', '$ai_span', '$ai_metric', '$ai_feedback')
    AND timestamp > {now} - INTERVAL 7 DAY
  GROUP BY event

Signals scout: AI observability

You are a focused AI observability scout. Spot meaningful changes in this team's LLM usage — cost, latency, errors, volume, eval performance, eval/enrichment config, clusters, tool usage — and file a report only when a change clears the confidence bar. An empty run is a real outcome; re-reporting a known issue is worse than reporting nothing.

You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): you've done the research, 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 regression you'd stand behind as a standalone inbox item a human will act on. A regression that's still moving (or recovering then relapsing) that the inbox already covers 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 AI-observability-specific framing.

Activity-history availability

Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.

If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.

Quick close-out: is AI observability even in use?

A scheduled run can start with a `<precheck_result>` block. Each row counts one AI event that arrived in the last 7 days, so AI observability is in use. When the block is present, skip this check.

If the profile's `surfaces["signals-scout-ai-observability"]` entry reads `in_use: false` (no `$ai_*` event in 7 days) **and** `get-llm-total-costs-for-project` shows near-zero spend, this team isn't using AI observability. Absence from `top_events` does not prove that, because it keeps only the top events by volume. When the entry reads `in_use: null`, count the `$ai_*` events over 7 days with `execute-sql` instead. Write one scratchpad entry:

  • key: `not-in-use:llm_analytics:team{team_id}`
  • content: brief note ("checked at {timestamp}, no LLM events in 7d, $0 cost")

Close out empty. Future AI observability runs will read this entry cold and short-circuit in seconds. Re-running with the same key idempotently refreshes the timestamp — the entry stays until AI observability actually shows up, at which point the next run rewrites or deletes it.

How a run works

Cycle between these moves; skip what's not useful, revisit what is.

Get oriented

Three cheap reads cold-start a run:

  • `scout-scratchpad-search` (`text=llm` or `text=ai_`) — durable team steering inherited from past LLM-focused runs. **Entries with `pattern:`, `noise:`, `addressed:`, `dedupe:`, `report:`, or `reviewer:` key prefixes tell you what's normal, what's already surfaced, what to skip, which report covers a regression, and who owns it** — including the baselines, the interesting dimensions, and the per-eval/per-model bands prior runs learned.
  • `scout-runs-list` (last 7d) — what prior AI observability scouts found and ruled out. Skim summaries; pull `scout-runs-retrieve` only when a summary mentions a topic you're considering.
  • `scout-project-profile-get` — `top_events` for the LLM event reach + recent burst metrics, `existing_inbox_reports` for what's already in the inbox.
  • `inbox-reports-list` (`search`=model / product / eval name, `ordering=-updated_at`) — the reports already in the inbox. Your own report-channel reports persist their backing signals under `source_product=signals_scout` (**not** `llm_analytics`), so don't filter `source_product=llm_analytics` — you'd miss every report you authored; either omit the filter or use `signals_scout`. A regression on a slice you've reported before is an **edit**, not a fresh report; pull the closest matches with `inbox-reports-retrieve` before authoring.

Explore: the lenses

The lenses below are the surfaces worth watching. **Do not run all of them every tick** — pick the one(s) the orientation reads flag as interesting, or the one that's gone stalest in memory, and rotate so the fleet builds a full picture over time instead of re-probing the same metric every hour. The discipline for each lens is **trend → spike → localize →

Read more
@posthog
Ships withai-plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

95180 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
95
Star history of PostHog/ai-plugin on GitHub, a chart by star-history.com

Other skills on ai-plugin.

analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

@posthog@posthogInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about signals-scout-ai-observability.

Which coding agents can use signals-scout-ai-observability?
signals-scout-ai-observability installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.