/auditing-warehouse-source-health
Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks "why are my imports failing?", "what's broken with my sources?", "why is my warehouse data
$ npx -y skills add posthog/posthog --skill auditing-warehouse-source-health --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/auditing-warehouse-source-health
Context preview
The summary Claude sees to decide when to auto-load this skill.
Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks "why are my imports failing?", "what's broken with my sources?", "why is my warehouse data
SKILL.md
auditing-warehouse-source-health.SKILL.mdname: auditing-warehouse-source-health
description: >
Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source
connection, sync schema, and webhook channel. Use when the user asks "why are my imports failing?", "what's broken
with my sources?", "why is my warehouse data stale?", or wants a one-shot triage of source/sync health before
deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For
materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use
`diagnosing-failed-warehouse-syncs`.
Auditing data warehouse source health
This skill produces a project-wide audit of the **source and sync** side of the data warehouse pipeline — source connections, sync schemas, and webhook push channels. Use it when the user wants a **summary of what's broken with their imports**, not a deep-dive on one sync. The deep-dive on individual failures is `diagnosing-failed-warehouse-syncs`; this skill is the scan that tells them where to look first.
The same underlying endpoint (`data-warehouse-data-health-issues-retrieve`) also reports materialized-view, batch-export-destination, and transformation issues. Materialized views are covered by `auditing-warehouse-view-health`. Destinations (batch exports) and transformations are owned by other products — surface them if they appear, but route them to the relevant team rather than diagnosing here.
When to use this skill
- "Why are my imports failing?" / "What's broken with my sources?"
- "Why is my warehouse data stale?"
- The user is new to a project and wants to know which sources they've inherited and whether they're healthy
- Weekly or monthly review of source/sync health
- Dashboards are stale and the user isn't sure which source is at fault
Available tools
| Tool | Purpose | | --------------------------------------------- | ------------------------------------------------------------------ | | `data-warehouse-data-health-issues-retrieve` | One-shot: all failed/degraded items across the whole pipeline | | `external-data-sources-list` | All sources with status and latest error | | `external-data-schemas-list` | All schemas with status, last_synced_at, latest_error | | `external-data-sources-webhook-info-retrieve` | Check per-source webhook state (not covered by data-health-issues) |
The `data-health-issues` endpoint aggregates across the whole pipeline — it's the fastest path to a summary. Filter its results to the `source` and `external_data_sync` types for this audit. Use the list endpoints when you need more context than the summary provides (row counts, non-failing items, schema-level detail).
What counts as a source/sync "issue"
From the data-health endpoint, this audit cares about two of the five categories:
| `type` | Trigger | Typical urgency | | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | | `source` | `ExternalDataSource.status = Error` — whole source connection broken | High | | `external_data_sync` | schema in Failed or BillingLimitReached state (the data-health endpoint returns `status: "failed"` or `status: "billing_limit"` respectively) | Medium–High |
Each entry includes `id`, `name`, `type`, `status`, `error`, `failed_at`, `url`, and `source_type`.
The other categories the endpoint returns are out of scope for this skill:
- `materialized_view` → `auditing-warehouse-view-health`
- `destination` (batch export) → owned by the batch exports / data pipelines product
- `transformation` (HogFunction) → owned by the CDP / ingestion side
Note the data-health endpoint only reports _active failures_. For source/sync health it doesn't flag:
- Schemas paused by the user (`should_sync = false`)
- Schemas that are slow or stale but technically `Completed`
- **Webhook problems on `sync_type: "webhook"` schemas.** The bulk-sync safety net can succeed while the webhook
push channel is silently broken (deregistered, disabled on the remote side, failing signature verification). These don't surface in `data-health-issues` — check per-source with `webhook-info-retrieve`.
If the user asks about staleness or unused items, reach beyond this endpoint — see Step 4.
Workflow
Step 1 — One-shot pull
Call `data-warehouse-data-health-issues-retrieve` and keep the `source` and `external_data_sync` entries.
If there are no source/sync issues, tell the user their sources are healthy and stop. Don't invent problems.
Step 2 — Group and prioritize
1. **Sources in Error first.** A source failure cascades — every schema under it is effectively dead until the source reconnects. Fix these first. 2. **Sync schemas next**, in this order:
- `status: "billing_limit"` entries (billing issue, non-technical — flag and route to billing)
- `Failed` on heavily-used tables (user asks / check row counts via schemas-list if needed)
- `Failed` on less-used tables
Step 3 — Present the audit
Render a prioritized report. Don't dump the raw JSON — human-readable table per category:
## Data warehouse source health — 4 issues
### 🔴 Sources (1)
- Stripe — authentication failed (failed 2h ago). All 8 tables under it are currently dead.
→ `diagnosing-failed-warehouse-syncs` on this source
### 🟠 Sync schemas (3)
- postgres_prod.orders (Failed 6h ago) — column "updated_at" does not exist
- postgres_prod.invoices (Fai
Read more
name: auditing-warehouse-source-health description: > Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks "why are my imports failing?", "what's broken with my sources?", "why is my warehouse data stale?", or wants a one-shot triage of source/sync health before deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use `diagnosing-failed-warehouse-syncs`.
Auditing data warehouse source health
This skill produces a project-wide audit of the **source and sync** side of the data warehouse pipeline — source connections, sync schemas, and webhook push channels. Use it when the user wants a **summary of what's broken with their imports**, not a deep-dive on one sync. The deep-dive on individual failures is `diagnosing-failed-warehouse-syncs`; this skill is the scan that tells them where to look first.
The same underlying endpoint (`data-warehouse-data-health-issues-retrieve`) also reports materialized-view, batch-export-destination, and transformation issues. Materialized views are covered by `auditing-warehouse-view-health`. Destinations (batch exports) and transformations are owned by other products — surface them if they appear, but route them to the relevant team rather than diagnosing here.
When to use this skill
- "Why are my imports failing?" / "What's broken with my sources?"
- "Why is my warehouse data stale?"
- The user is new to a project and wants to know which sources they've inherited and whether they're healthy
- Weekly or monthly review of source/sync health
- Dashboards are stale and the user isn't sure which source is at fault
Available tools
| Tool | Purpose | | --------------------------------------------- | ------------------------------------------------------------------ | | `data-warehouse-data-health-issues-retrieve` | One-shot: all failed/degraded items across the whole pipeline | | `external-data-sources-list` | All sources with status and latest error | | `external-data-schemas-list` | All schemas with status, last_synced_at, latest_error | | `external-data-sources-webhook-info-retrieve` | Check per-source webhook state (not covered by data-health-issues) |
The `data-health-issues` endpoint aggregates across the whole pipeline — it's the fastest path to a summary. Filter its results to the `source` and `external_data_sync` types for this audit. Use the list endpoints when you need more context than the summary provides (row counts, non-failing items, schema-level detail).
What counts as a source/sync "issue"
From the data-health endpoint, this audit cares about two of the five categories:
| `type` | Trigger | Typical urgency | | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | | `source` | `ExternalDataSource.status = Error` — whole source connection broken | High | | `external_data_sync` | schema in Failed or BillingLimitReached state (the data-health endpoint returns `status: "failed"` or `status: "billing_limit"` respectively) | Medium–High |
Each entry includes `id`, `name`, `type`, `status`, `error`, `failed_at`, `url`, and `source_type`.
The other categories the endpoint returns are out of scope for this skill:
- `materialized_view` → `auditing-warehouse-view-health`
- `destination` (batch export) → owned by the batch exports / data pipelines product
- `transformation` (HogFunction) → owned by the CDP / ingestion side
Note the data-health endpoint only reports _active failures_. For source/sync health it doesn't flag:
- Schemas paused by the user (`should_sync = false`)
- Schemas that are slow or stale but technically `Completed`
- **Webhook problems on `sync_type: "webhook"` schemas.** The bulk-sync safety net can succeed while the webhook
push channel is silently broken (deregistered, disabled on the remote side, failing signature verification). These don't surface in `data-health-issues` — check per-source with `webhook-info-retrieve`.
If the user asks about staleness or unused items, reach beyond this endpoint — see Step 4.
Workflow
Step 1 — One-shot pull
Call `data-warehouse-data-health-issues-retrieve` and keep the `source` and `external_data_sync` entries.
If there are no source/sync issues, tell the user their sources are healthy and stop. Don't invent problems.
Step 2 — Group and prioritize
1. **Sources in Error first.** A source failure cascades — every schema under it is effectively dead until the source reconnects. Fix these first. 2. **Sync schemas next**, in this order:
- `status: "billing_limit"` entries (billing issue, non-technical — flag and route to billing)
- `Failed` on heavily-used tables (user asks / check row counts via schemas-list if needed)
- `Failed` on less-used tables
Step 3 — Present the audit
Render a prioritized report. Don't dump the raw JSON — human-readable table per category:
## Data warehouse source health — 4 issues ### 🔴 Sources (1) - Stripe — authentication failed (failed 2h ago). All 8 tables under it are currently dead. → `diagnosing-failed-warehouse-syncs` on this source ### 🟠 Sync schemas (3) - postgres_prod.orders (Failed 6h ago) — column "updated_at" does not exist - postgres_prod.invoices (Fai
: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.
Repo: posthog/posthog
Other skills on posthog.
- /analyzing-expensive-users
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 LLM cost, user-level cost drivers, or patterns behind high AI observability spend.
Open skill - /creating-online-evaluations
Author continuously-running online evaluations in PostHog AI observability, grounded in real failure modes you've identified. Use when the user wants evaluations that automatically score new generations or whole traces going forward — "create an eval to catch X", "continuously
Open skill - /exploring-ai-failures
Find where an AI/LLM application is failing in production and surface the failure patterns, working from real traces. Use when someone wants to understand what's going wrong with an AI feature, find and categorize failure modes, triage errors, or investigate quality issues
Open skill - /exploring-llm-clusters
Investigate AI observability clusters — understand usage patterns in AI/LLM traffic, compare cluster behavior, compute cost/latency metrics, and drill into individual traces within clusters.
Open skill - /exploring-llm-costs
Investigate LLM spend in PostHog — total cost over time, cost by model, provider, user, trace, or custom dimension, token and cache-hit economics, and cost regressions. Use when the user asks "how much are we spending on LLMs?", "which model / user / feature is most expensive?",
Open skill - /exploring-llm-evaluations
Investigate AI observability evaluations — `hog` (deterministic code-based), `llm_judge` (LLM-prompt-based), and `sentiment` (user-message sentiment). Find existing evaluations, inspect their configuration, run them against specific generations, query individual results, and
Open skill

