auditing-warehouse-source-health
它能做什么
这项技能让智能体对输入 PostHog 数据仓库的所有数据源进行全面检查。适合想在深入排查任何单个问题之前,先得到一份清晰故障清单的人。
适用场景
- ✓当你询问为什么数据导入失败或过期的时候。
- ✓当你的数据仓库数据看起来过期,而你不知道是哪个数据源导致的时候。
- ✓当你希望定期检查所有数据源的健康状况的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/auditing-warehouse-source-health/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为什么我的数据仓库数据过期了?请检查我所有的数据源,告诉我哪里出了问题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会对数据源、同步表和 webhook 渠道运行一次全项目健康检查。然后它会把问题分组,并把最紧急的放在最前面,让你知道接下来该看哪里。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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-healthdestination(batch export) → owned by the batch exports / data pipelines producttransformation(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 indata-health-issues— check per-source withwebhook-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
- Sources in Error first. A source fa
常见问题
这项技能会修复损坏的导入吗?
不会。它只负责找出问题并排序,单个故障的深入排查由另一项技能完成。
它也检查物化视图吗?
物化视图由另一项审计技能负责,不过如果出现在结果中,这次检查也会显示。
目标端和数据转换呢?
这些属于其他团队负责,所以智能体会指出它们并转交,而不会在这里诊断。
详情
作者的原始描述
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`.
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6966
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。