diagnosing-failed-warehouse-syncs
Fungsinya
Skill ini mengajarkan agent memecahkan masalah satu sinkronisasi data yang gagal di data warehouse PostHog, seperti impor dari Stripe atau Postgres. Skill ini untuk orang yang datanya berhenti diperbarui atau terlihat keliru.
Kapan dipakai
- βSaat sinkronisasi data tertentu, seperti Stripe atau Postgres, gagal atau menampilkan error.
- βSaat sebuah tabel macet dalam status berjalan selama berjam-jam.
- βSaat data di warehouse Anda terlihat salah atau baris datanya hilang.
Link skill
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/diagnosing-failed-warehouse-syncs/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSinkronisasi Stripe saya sudah macet berjam-jam dan datanya terlihat lama. Tolong cari tahu penyebabnya dan beri tahu saya cara perbaikan paling aman.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa masalah dari atas ke bawah, dimulai dari sumber, lalu tabel, lalu pilihan pemulihan. Agent menghindari reset penuh kecuali benar-benar diperlukan, karena reset akan membuang data yang sudah tersinkronisasi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah skill ini akan menghapus data yang sudah tersinkronisasi?
Tidak sebagai langkah pertama. Skill ini merekomendasikan perbaikan yang paling sedikit merusak, karena sinkronisasi ulang penuh membuang data yang sudah diimpor.
Masalah apa saja yang dicakup?
Kegagalan di tingkat sumber atau tabel, tabel yang macet dalam status berjalan, masalah kredensial, dan perubahan struktur tabel.
Bisakah skill ini mulai dari pemeriksaan kesehatan?
Bisa. Jika pemeriksaan kesehatan sudah menemukan sumber yang gagal, skill ini bisa melanjutkan dari item tersebut.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6967
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
discrawl
394kMemungkinkan agent Anda mencari dan merangkum arsip pesan Discord lokal yang tersimpan, memeriksa seberapa baru arsipnya, dan membaca pesan langsung.
clickhouse-io
280kMembantu agent Anda mengoptimalkan query dan skema di database ClickHouse dengan praktik terbaik analitik berperforma tinggi. Gunakan saat query analitik terlalu lambat.
scientific-db-pubmed-database
280kMembantu agent Anda mencari artikel ilmiah di bidang biomedis. Berguna untuk riset yang membutuhkan informasi medis spesifik.