:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): teach general scout to discover project surfaces (#65335)
Andrew Maguire10cf87f939c0
diff --git a/products/signals/skills/signals-scout-general/SKILL.md b/products/signals/skills/signals-scout-general/SKILL.mdindex 1148db5c45e8..b63d8940691c 100644--- a/products/signals/skills/signals-scout-general/SKILL.md+++ b/products/signals/skills/signals-scout-general/SKILL.md@@ -24,31 +24,59 @@ a real outcome — re-emitting a known issue is worse than emitting nothing.## Orient-Three cheap reads cold-start a run:+Cheap reads cold-start a run:- `signals-scout-project-profile-get` — deterministic snapshot of products in use,recent activity, integrations, top events with reach + burst metrics, inbox- report counts.-- `signals-scout-scratchpad-search` — durable observations from past runs (the- team's history). Search with `text=<keyword>` (ILIKE on key + content).+ report counts. A fast hint, not the whole truth: it leans toward configured+ entities (dashboards, flags, experiments, pipelines…) and lags products that+ shipped recently, so treat it as a starting point, not a complete map.+- `signals-scout-scratchpad-search` — durable observations from past runs. Read+ `pattern:general:coverage-map` first (see "Map the project") — it's your running+ inventory of which products actually have live data on this team. Search with+ `text=<keyword>` (ILIKE on key + content).- `signals-scout-runs-list` — recent summaries from this scout and siblings. Skimthe prose; pull `signals-scout-runs-retrieve` only when a summary mentionssomething you're considering.+## Map the project++The profile and `top_events` only see so much — they're blind to whole products+(session replay, logs, tracing, revenue, the _state_ of error tracking) whose data+the profile doesn't enumerate, and they lag products that shipped recently. Don't+trust them to be complete. Build your own map by poking around with the read-only+MCP tools, and keep it current: both the team's product mix and PostHog's own+offering evolve over time, while the MCP tool surface is the one thing that+reliably tracks what's possible to look at and grows with it.++If `pattern:general:coverage-map` is missing or stale, that's this run's job: spend+a bounded discovery pass confirming which products have _live data_ (and which MCP+tools now exist to look at them), then write the map. `references/discovery.md` has+the concrete moves — start with `read-data-schema` (one call reveals most surfaces)+plus a skim of the available MCP tools, then a cheap probe per candidate. Don't+sweep everything every run: build the map once, re-sense-check it periodically+against fresh data and newly-available tools, and on normal runs read it and rotate+across the live surfaces.++If `signals-scout-runs-list` shows no sibling specialists running, you are the only+scout on this project — the map should cover every live product, not just the gaps+between specialists.+## Explore-Pick what looks interesting and follow it. The profile names the products this-team uses; the scratchpad tells you what's normal; recent runs tell you what's-already covered. Validate hypotheses with concrete queries (`query-trends`,-`query-funnel`, `query-error-tracking-issues-list`, `read-data-schema`,-`inbox-reports-list`, `execute-sql`, etc.) before emitting.--If a sibling specialist already covers a surface in depth, leave the deep dive to it-on a future tick — the `skill_name`s on recent runs in `signals-scout-runs-list` show-the live roster (specialists exist for most product surfaces: error tracking, logs, AI-observability, experiments, feature flags, session replay, web analytics, surveys, and-more). Spend your time on **cross-product correlations** or on **surfaces no-specialist covers**.+Pick what looks interesting and follow it. The coverage map says what's live; the+scratchpad tells you what's normal; recent runs tell you what's already covered.+Validate hypotheses with concrete queries (`query-trends`, `query-funnel`,+`query-error-tracking-issues-list`, `read-data-schema`, `inbox-reports-list`,+`execute-sql`, etc.) before emitting.++When sibling specialists are running, leave a surface they cover in depth to them on+a future tick — the `skill_name`s on recent runs in `signals-scout-runs-list` show+the live roster (specialists exist for most product surfaces: error tracking, logs,+AI observability, experiments, feature flags, session replay, web analytics, surveys,+and more) — and spend your time on **cross-product correlations** or **surfaces no+specialist covers**. When no specialists are running, the whole coverage map is your+beat: work across it instead of narrowing to one corner.## Decidediff --git a/products/signals/skills/signals-scout-general/references/discovery.md b/products/signals/skills/signals-scout-general/references/discovery.mdnew file mode 100644index 000000000000..e1814e136795--- /dev/null+++ b/products/signals/skills/signals-scout-general/references/discovery.md@@ -0,0 +1,100 @@+# Discovery: mapping what a project actually uses++The profile and `top_events` are a starting point, not the whole picture. They+enumerate configured entities and the busiest events, but whole products are+invisible to them — session replay, logs, tracing/APM, revenue, and the _state_ of+error tracking all live in data the profile doesn't carry — and the profile lags+products that shipped recently. On a project with no specialist scouts, you're the+only thing watching those surfaces, so confirm what's live yourself.++Two things evolve under you: the **team's** product mix (they adopt new products,+turn others off) and **PostHog's** own offering (new products ship with new MCP+tools). The reliable substrate through both is the **MCP tool surface** — it tracks+what's possible to look at and grows over time. Lean on it: a tool family that+wasn't there last time is a strong hint of a product worth folding into the map.++## One cheap pass, then a durable map you keep current++Discovery is amortized, not repeated every run:++- **No `pattern:general:coverage-map` yet (early runs):** spend this run building+ it. Run the breadth pass below, then write the map.+- **Map exists and is recent:** skip discovery. Read it, pick a live surface, and+ investigate — rotating across surfaces over successive runs.+- **Map is stale (~weekly, or the project clearly changed):** re-sense-check it.+ Re-run the breadth pass, skim the MCP tools for capabilities new since last time,+ and update the parts that drifted. Don't assume last week's map is still complete+ — products appear on both sides.++Stay bounded — discovery is orientation, not investigation. A handful of cheap reads+is enough; you have future runs to go deep.++## Breadth pass: event taxonomy + tool surface++Two cheap reads do most of the work.++**1. The event taxonomy.** `read-data-schema` (events) returns the event names this+team captures — and the names alone reveal which products are live:++| Signal in the event taxonomy | Product that's live |+| ------------------------------------------ | -------------------------------- |+| `$exception` | Error tracking |+| `$ai_generation` / `$ai_span` / `$ai_*` | LLM analytics (AI observability) |+| `$pageview` / `$pageleave` / `$web_vitals` | Web analytics |+| `$snapshot` / session activity | Session replay |+| `$feature_flag_called` | Feature flags |+| `$csp_violation` | CSP reporting |+| high-volume custom events | Product analytics |++**2. The MCP tool surface.** Skim the available tools (the MCP's own `search` /+`tools` discovery). New `query-*` or product tool families that weren't there before+are how you notice PostHog shipped a product you don't yet have a lens for — pick it+up and probe whether this team uses it.++Pair both with the profile's configured-entity sections (dashboards, flags,+experiments, surveys, pipelines, warehouse sources, cohorts): together they tell you+what's "configured," what's "emitting," and what's "now possible to query."++## Confirm the surfaces the taxonomy can't show++A few products don't announce themselves cleanly in the event list — probe them+directly when the breadth pass hints they might be present, one cheap read each:++- **Error tracking** — `query-error-tracking-issues-list` (issue count + recent+ activity; `$exception` volume alone doesn't tell you issue state).+- **Session replay** — `query-session-recordings-list` (are sessions recording, and+ how recently?).+- **Logs** — `query-logs` (any volume, by service / severity).+- **Tracing / APM** — `query-apm-spans` (OTel spans present?).+- **LLM analytics** — `query-llm-traces-list` (live traces, not just `$ai_*` counts).+- **Revenue** — revenue events in the taxonomy, or warehouse Stripe sources in the+ profile.+- **Data warehouse** — the profile's `external_data_sources`; deeper structure via+ `read-data-warehouse-schema`.++When you hit a surface no tool seems to cover, that's worth a `mcp-gap:` scratchpad+note (see [conventions.md](conventions.md)) — a capability the fleet may want later.++## Write the coverage map++Persist what you found as a single durable entry, overwriting it in place+(`pattern:general:coverage-map`). Make it future-run actionable: each live product+with a rough volume / last-seen and a one-line "what's worth watching here," an+explicit list of products that are _absent_ so future runs don't re-probe them, and+the date you last sense-checked it. Example shape:++```text+key: pattern:general:coverage-map+content: "2026-06-22 discovery (team has NO specialist scouts — general owns all).+ LIVE: error_tracking (~12k $exception/day, 40 issues, watch new-issue+ bursts); web_analytics ($pageview ~80k/day, 3 channels); session_replay+ (recording, ~1.5k/day); feature_flags (22 active). ABSENT (skip until a+ refresh): llm_analytics (no $ai_*), apm (no spans), revenue (no Stripe+ source), surveys, csp. Last full sense-check 2026-06-22; re-check ~weekly+ or on a visible project change / new MCP tool family."+```++Future runs read this first, skip the absent products, and rotate attention across+the live ones — that's what turns a once-a-day generalist into something that covers+the whole project over a week instead of re-checking one corner, and keeps up as+both the team and PostHog change.