diagnosing-failed-warehouse-syncs
하는 일
이 스킬은 Stripe나 Postgres 가져오기처럼 PostHog 웨어하우스의 한 동기화 실패를 해결하도록 에이전트를 가르칩니다. 데이터 업데이트가 멈추었거나 잘못 보이는 사람을 위한 스킬입니다.
사용하는 경우
- ✓Stripe나 Postgres처럼 특정 데이터 동기화가 실패하거나 오류를 보일 때.
- ✓테이블이 몇 시간 동안 실행 중 상태에 멈춰 있을 때.
- ✓웨어하우스의 데이터가 잘못 보이거나 행이 빠져 있을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/diagnosing-failed-warehouse-syncs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 Stripe 동기화가 몇 시간째 멈춰 있고 데이터가 오래된 것 같습니다. 이유를 찾고 가장 안전한 해결 방법을 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 소스에서 시작해 테이블, 그다음 복구 옵션 순으로 위에서부터 문제를 확인합니다. 이미 가져온 데이터를 버리게 되므로, 꼭 필요하지 않으면 전체 재설정을 피합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Diagnosing failed data warehouse syncs
Work top-down when a data warehouse source or table is failing, stuck, or producing bad data: source → schema → recovery action. Do not jump straight to "resync from scratch" — that discards synced data and restarts from zero, which is rarely the right first step.
When to use this skill
- The user reports a specific sync is failing (e.g. "my Stripe source is red")
- A table has been in
Runningstate far longer than expected - Data in a warehouse table is stale, missing rows, or looks corrupt
- Latest rows aren't appearing despite the schema being marked
Completed - The user is choosing between cancel / reload / resync / delete-data and isn't sure which
- Another skill — typically
auditing-warehouse-source-health— has surfaced a failing source or schema and the user wants to dig into it
Both entry points (user-reported and audit-handoff) use the same workflow; the audit just means you already know which item to diagnose and can skip Step 1's discovery search.
Available tools
| Tool | Purpose |
|---|---|
external-data-sources-list |
List all sources with connection status and latest error |
external-data-sources-retrieve |
Full details for one source including all its schemas |
external-data-schemas-list |
All table schemas across all sources, with per-table status + latest_error |
external-data-schemas-retrieve |
Full details for one schema including sync_type_config |
external-data-schemas-cancel |
Cancel a sync currently in Running state |
external-data-schemas-reload |
Trigger a sync using the configured sync method (respects incremental) |
external-data-schemas-resync |
Full resync — wipes synced data and restarts. Destructive |
external-data-schemas-delete-data |
Delete the synced table but keep the schema entry |
external-data-schemas-partial-update |
Change sync_type / incremental_field / cdc_table_mode |
external-data-sources-partial-update |
Update a source's credentials (job_inputs) after rotation |
external-data-sources-reload |
Retrigger syncs for every enabled schema on a source |
external-data-sources-refresh-schemas |
Re-fetch the source's table list to pick up new tables |
external-data-sources-check-cdc-prerequisites-create |
Verify Postgres CDC setup for a source |
external-data-schemas-incremental-fields-create |
Refresh candidate incremental fields when the source schema has changed |
external-data-sources-webhook-info-retrieve |
Check webhook registration state and external service status |
external-data-sources-create-webhook-create |
Re-register a webhook that was lost or never registered |
external-data-sources-update-webhook-inputs-create |
Update the signing secret after rotation on the source side |
external-data-sources-delete-webhook-create |
Remove a broken webhook before re-registering |
Workflow
Step 1 — Locate the failing item
If the user named a source, go straight to external-data-sources-retrieve. Otherwise start with
external-data-sources-list and external-data-schemas-list to find what's red.
Two kinds of failure:
- Source-level (
ExternalDataSource.status = "Error"): the connection itself is broken — credentials expired, host unreachable, account disabled. Affects every table. - Schema-level — the source connects fine but one or more tables are failing. In the serialized API response
from
external-data-schemas-list, look forstatusvalues"Failed","Billing limits", or"Billing limits too low". (The underlying model enum values are `BillingLimitReache
자주 묻는 질문
이 스킬이 동기화된 데이터를 삭제하나요?
첫 단계로는 아닙니다. 이미 가져온 데이터를 버리는 전체 재동기화보다 가장 덜 파괴적인 해결책을 권합니다.
어떤 문제를 다루나요?
소스나 테이블 수준의 실패, 실행 중 상태에 멈춘 테이블, 자격 증명 문제, 테이블 구조 변경을 다룹니다.
상태 점검에서 시작할 수 있나요?
네. 상태 점검이 이미 실패한 소스를 찾았다면, 이 스킬이 그 항목부터 이어서 진행할 수 있습니다.
상세 정보
작성자의 원본 설명
Diagnose why a data warehouse sync is failing and recommend the right recovery action. Use when the user asks "why isn't my Stripe/Postgres/Hubspot sync working?", "this table has been stuck for hours", "the data in the warehouse looks wrong", or wants to troubleshoot a specific source or schema. Covers source-level vs schema-level failures, stuck Running states, credential and schema-drift errors, incremental-field misconfig, CDC prerequisite failures, and the cancel / reload / resync / delete-data recovery actions.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6967
- 라이선스
- —
- 업데이트
- 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생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.