auditing-warehouse-source-health
Skill này làm gì
Skill này cung cấp cho agent một bước kiểm tra đầy đủ các nguồn dữ liệu đưa vào kho dữ liệu PostHog của bạn. Skill dành cho người muốn có một danh sách rõ ràng về những gì đang hỏng trước khi đi sâu vào từng vấn đề.
Khi nào nên dùng
- ✓Khi bạn hỏi vì sao các nhập dữ liệu của mình bị lỗi hoặc không cập nhật.
- ✓Khi dữ liệu kho của bạn có vẻ cũ và bạn chưa biết nguồn nào là nguyên nhân.
- ✓Khi bạn muốn rà soát định kỳ sức khỏe của tất cả nguồn dữ liệu.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/auditing-warehouse-source-health/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Vì sao dữ liệu kho của tôi không được cập nhật? Hãy kiểm tra tất cả nguồn dữ liệu và cho tôi biết cái nào đang hỏng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một kiểm tra sức khỏe trên toàn dự án cho các nguồn, bảng đồng bộ và kênh webhook. Sau đó nó nhóm các vấn đề và đặt những vấn đề khẩn cấp nhất lên đầu, để bạn biết nên xem gì tiếp theo.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill này có sửa các nhập dữ liệu bị hỏng không?
Không. Nó tìm và xếp hạng các vấn đề, còn một skill riêng sẽ đi sâu vào từng lỗi.
Nó có kiểm tra materialized view không?
Những thứ đó được bao quát bởi một skill kiểm tra khác, dù kiểm tra này có thể hiển thị chúng nếu chúng xuất hiện.
Còn đích đến và biến đổi dữ liệu thì sao?
Chúng thuộc về các nhóm khác, nên agent chỉ chỉ ra chúng và chuyển đến đúng nơi thay vì chẩn đoán ở đây.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6966
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.