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.
Skill by PostHogOfficial
Chalk Labs
Need help deploying auditing-warehouse-source-health?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/posthog-auditing-warehouse-source-health-47849f
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, data, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill 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`.
- License
- MIT
- Instructions
- 160 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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:
```text
## 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 (Failed 6h ago) — column "updated_at" does not exist
- hubspot.contacts (BillingLimitReached) — team quota exceeded
Recommended order:
1. Stripe auth (everything under it is dead)
2. Schema-drift on postgres_prod.orders / invoices — looks like upstream renamed a column
3. Billing limit on hubspot
```
The exact format is less important than: prioritized, grouped, actionable, and hinting at the right next skill.
### Step 4 — Go beyond active failures (when asked)
If the user wants more than just "what's on fire" — e.g. "what else should I look at?" — cross-check:
**Stale but "Completed" schemas:**
Call `external-data-schemas-list` and look for schemas with old `last_synced_at` relative to their `sync_frequency`.
A schema on `1hour` frequency that last synced 3 days ago is effectively broken even if status says `Completed`.
**Sources with zero sync activity:**
Sources where every schema has `should_sync: false` or `status = Paused`. These were set up and then abandoned —
candidates for cleanup via `external-data-sources-destroy`.
**Broken webhooks on webhook-type schemas:**
Iterate the sources that have any schema with `sync_type: "webhook"` (visible via `external-data-schemas-list`). For
each, call `external-data-sources-webhook-info-retrieve({source_id})`:
- `exists: false` while a schema is `sync_type: "webhook"` → webhook was never registered, or was deleted. Push
channel is dead; only the bulk fallback is ingesting.From PostHog/skills, MIT.
Signals
- Stars
- 75
- Forks
- 8
- Open issues
- 2
- Last commit (this folder)
- Sep 3, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/PostHog/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.587score
auditing-warehouse-source-health
PostHogOfficial
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.
SkillCFreshness: C★ 95Claude Code +9 - 0.312score
auditing-warehouse-source-health
anny-co
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.
SkillBFreshness: BClaude Code +9
More from PostHog
- 0.759score
PostHog MCP Server
PostHogOfficial
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
ConnectorAFreshness: ARemote★ 40.4KClaude Code +3 - 0.754score
code-reviewer
PostHog
Subagent "code-reviewer" from PostHog/posthog: Use this agent when you need expert code review of recently written or modified code.
TemplateAFreshness: A★ 40.4KClaude Code - 0.683score
authoring-log-alerts
PostHogOfficial
Author useful, low-noise log alerts on services in a PostHog project.
SkillAFreshness: A★ 95Claude Code +9 - 0.683score
auditing-experiments-flags
PostHogOfficial
Audit PostHog experiments and feature flags for configuration issues, staleness, and best-practice violations.
SkillAFreshness: A★ 95Claude Code +9 - 0.683score
analyzing-offline-evaluations
PostHogOfficial
Inspect and compare offline AI evaluation experiments, diagnose case-level regressions, and follow scorer history across application, model, or prompt changes.
SkillAFreshness: A★ 95Claude Code +9 - 0.683score
authoring-error-tracking-alerts
PostHogOfficial
Author error tracking alerts that fire when an issue is created, reopened, or starts spiking.
SkillAFreshness: A★ 95Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get auditing-warehouse-source-health running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
auditing-warehouse-source-health skill. Agent Mart. https://agentmart.dev/skills/posthog-auditing-warehouse-source-health-47849f (last updated 2026-10-24)