Pular para o conteúdo
Skillpedia
Bancos de dados41 mil · #6967

diagnosing-failed-warehouse-syncs

O que ela faz

Esta skill ensina um agente a solucionar uma sincronização de dados com falha no warehouse do PostHog, como uma importação do Stripe ou do Postgres. É para quem teve os dados parados de atualizar ou com aparência errada.

Quando usar

  • ✓Quando uma sincronização específica, como Stripe ou Postgres, está falhando ou mostrando um erro.
  • ✓Quando uma tabela fica presa no estado de execução por horas.
  • ✓Quando os dados do seu warehouse parecem errados ou estão faltando linhas.

Link da skill

https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/diagnosing-failed-warehouse-syncs/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/diagnosing-failed-warehouse-syncs/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Minha sincronização do Stripe está travada há horas e os dados parecem antigos. Você pode descobrir por quê e me dizer a forma mais segura de corrigir?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica o problema de cima para baixo, começando pela fonte, depois pela tabela e depois pelas opções de recuperação. Evita um reset completo, a menos que seja realmente necessário, já que um reset descarta os dados já sincronizados.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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 Running state 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 for status values "Failed", "Billing limits", or "Billing limits too low". (The underlying model enum values are `BillingLimitReache
Perguntas frequentes

Esta skill vai apagar meus dados sincronizados?

Não como primeiro passo. Ela recomenda a correção menos destrutiva, porque uma ressincronização completa descarta dados já importados.

Quais problemas ela cobre?

Falhas no nível da fonte ou da tabela, tabelas presas em execução, problemas de credenciais e mudanças na estrutura da tabela.

Ela pode começar a partir de uma verificação de saúde?

Sim. Se uma verificação de saúde já encontrou uma fonte com falha, esta skill pode continuar a partir desse item.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
41 mil
Posição no ranking
#6967
Licença
—
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas