auditing-warehouse-view-health
하는 일
이 스킬은 구체화된 뷰 전체에 대한 프로젝트 차원의 점검을 제공합니다. 어떤 뷰가 실패하는지, 쓰이지 않으면서 비용을 쓰는 뷰가 무엇인지 보여 줍니다. PostHog 데이터 웨어하우스를 관리하는 사람을 위한 것입니다.
사용하는 경우
- ✓구체화된 뷰 중 어떤 것이 고장 났는지 알고 싶을 때.
- ✓쓸모없는 저장소나 컴퓨팅을 쓰는 뷰가 있을 것 같을 때.
- ✓구체화된 뷰 위에 만든 대시보드가 오래되었거나 오류를 보일 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/data_warehouse/skills/auditing-warehouse-view-health/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 구체화된 뷰 중 고장 난 것은 무엇이고, 그중 컴퓨팅을 낭비하는 것이 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
파이프라인 전체에서 실패하거나 저하된 항목을 모두 모은 목록 하나를 가져온 뒤, 구체화되었지만 사용되지 않거나 오래된 뷰를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Auditing data warehouse view health
This skill produces a project-wide audit of materialized views (materialized saved queries) in the data warehouse — which ones are failing, and which are materialized but unused. Use it when the user wants a summary of view health, not a deep-dive on one failure.
The same underlying endpoint (data-warehouse-data-health-issues-retrieve) also reports source, sync, batch-export,
and transformation issues. Source and sync health is covered by auditing-warehouse-source-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
- "Which of my views are broken?" / "Why is this materialized view failing?"
- "Are any of my materialized views wasting compute?"
- Reviewing view health after a HogQL or schema change
- Dashboards backed by materialized views are stale or erroring
Available tools
| Tool | Purpose |
|---|---|
data-warehouse-data-health-issues-retrieve |
One-shot: all failed/degraded items across the whole pipeline |
view-list |
All saved queries / materialized views with status and latest_error |
view-run-history |
Run history for a specific materialized view |
warehouse-suggestions-list |
PostHog's open deprecate / materialize / certify suggestions, if any |
Filter the data-health-issues results to the materialized_view type for this audit. Use view-list when you need
more than the active-failure summary (non-failing views, materialization flags, last-queried info) and
view-run-history to see the run trail for a specific view.
What counts as a view "issue"
From the data-health endpoint, this audit cares about one of the five categories:
type |
Trigger | Typical urgency |
|---|---|---|
materialized_view |
DataWarehouseSavedQuery.is_materialized=true, status=Failed |
Medium |
Each entry includes id, name, type, status, error, failed_at, and url.
The other categories the endpoint returns are out of scope for this skill:
source/external_data_sync→auditing-warehouse-source-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 views it doesn't flag:
- Non-materialized views with errors (only materialized views are reported)
- Materialized views that are healthy but unused (costing compute every run) — see Step 4
Workflow
Step 1 — One-shot pull
Call data-warehouse-data-health-issues-retrieve and keep the materialized_view entries.
If there are no view issues, tell the user their materialized views are healthy and stop. Don't invent problems.
Step 2 — Triage failures
Materialized view failures are usually independent of sources — a view failure is a HogQL or data issue in the view
itself (syntax error, missing table reference, type mismatch). For each failing view, surface the error and point
at the offending query. Use view-run-history if the user wants the failure trail.
An error that starts with Not published: is not a query problem. The view's data quality checks failed and the
refresh was held back. Hand off to debugging-failed-data-quality-checks.
Step 3 — Present the audit
Render a prioritized report. Don't dump the raw JSON — human-readable:
## Materialized view health — 2 issues
### 🟠 Materialized views (2)
- monthly_revenue — view failed (syntax error in HogQL: 'FORM' instead of 'FROM')
- active_users_30d — view failed (missing table reference)
Both are HogQL issues in the view definitions — independent of your sources. Want me to open one?
Step 4 — Go beyond active failures (when asked)
Start from PostHog's suggestions if the warehouse-suggestions-* tools are available. Call
warehouse-suggestions-list with status=proposed. Pos
자주 묻는 질문
이 스킬이 뷰를 고치나요?
아니요. 다음에 무엇을 할지 정할 수 있도록 실패하거나 사용되지 않는 뷰에 대한 감사 결과를 만듭니다.
소스 동기화 문제는 어떻게 하나요?
소스와 동기화 상태는 별도의 감사 스킬이 다루므로, 이 스킬은 구체화된 뷰에 집중합니다.
구체화된 뷰란 무엇인가요?
결과가 물리적 테이블에 저장되는 저장 쿼리입니다. 읽기는 빠를 수 있지만 저장소를 씁니다.
상세 정보
작성자의 원본 설명
Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks "which of my views are broken?", "why is this materialized view failing?", "are any of my views wasting compute?", or wants a one-shot triage of view health. For source/sync health use `auditing-warehouse-source-health`.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6856
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
clickhouse-io
280k에이전트가 ClickHouse 데이터베이스의 쿼리와 스키마를 최적화하도록 돕습니다. 고성능 분석 작업의 모범 사례를 적용합니다. 분석 쿼리가 느릴 때 씁니다.
scientific-db-pubmed-database
280k생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.