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

setting-up-warehouse-properties

O que ela faz

Esta skill mapeia uma tabela ou view inteira do warehouse para pessoas ou grupos no PostHog, no mesmo cronograma em que a tabela já sincroniza. É para equipes que hoje rodam um script para enviar dados de usuários ao PostHog.

Quando usar

  • ✓Quando você tem um script diário que envia traits de usuários ao PostHog e quer que o PostHog os puxe.
  • ✓Quando você quer mapear uma tabela larga de atributos de clientes para pessoas de uma só vez.
  • ✓Quando você está na área de propriedades do warehouse e quer configurar um mapeamento completo de tabela.

Link da skill

https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/setting-up-warehouse-properties/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/customer_analytics/skills/setting-up-warehouse-properties/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

“Substitua nosso script diário de identify mapeando nossa tabela de atributos de clientes para propriedades de pessoa no PostHog.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A IA escolhe quais colunas viram propriedades e como elas se chamam, depois salva o mapeamento inteiro em uma única requisição. Depois disso, o PostHog atualiza as pessoas a partir da tabela em cada sincronização.

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

Texto original do autor, em inglês, direto do GitHub.

Setting up warehouse properties

Warehouse properties write columns from a warehouse table or materialized view onto matching people or groups, on the schedule that table already syncs on. They replace a cron that sends $set identify events.

The mapping is the whole job. Most tables worth mapping are wide, so the work is deciding which columns become properties and what they are called — not making many API calls. One source carries the entire mapping: custom-property-sources-create takes the complete column_property_map in a single request, so never loop per column.

When to use this skill

  • "Sync my postgres.customer_attributes columns to person properties"
  • "We send a daily identify job from our warehouse, can PostHog pull it instead?"
  • "Map this table to people" / "reverse ETL into PostHog"
  • The user is looking at Data → Warehouse properties and wants a whole table mapped

Use setting-up-a-data-warehouse-source instead when the table is not in the warehouse yet. This skill starts once the data is syncing.

Tools

Tool Purpose
external-data-schemas-list Find a synced table and its schema id (the external_data_schema binding); columns are omitted here
external-data-schemas-retrieve Read one synced table's columns and types by schema id
view-list Find a materialized view and its column schema (the saved_query binding)
view-get Read one materialized view's columns and types by id
custom-property-definitions-list See what warehouse properties already exist for the team
custom-property-definitions-create Create the definition the source attaches to (target_type: person or group)
custom-property-sources-create Bind the definition to the table, carrying the whole column_property_map
custom-property-sources-backfill Populate historical rows after creating the mapping
custom-property-sources-runs-list Check the run funnel after a sync or backfill
custom-property-sources-sync Run the underlying table now

Person and group targets need the warehouse-person-properties feature. A group target additionally needs the group:write scope; without it, custom-property-sources-create refuses the group definition.

The flow

1. Find the table and its columns

For a synced table, external-data-schemas-list gives you the schema id (the external_data_schema binding), and external-data-schemas-retrieve returns that schema's columns and types.

For a materialized view, view-list finds the view and its column schema, and view-get returns one view's columns by id; a view binds by saved_query instead, and must already be materialized, since an unmaterialized view has no data to read and the create call rejects it.

2. Pick the identifier column, and say why it matters

Ask which column holds the PostHog distinct ID (person targets) or the group key (group targets). This is the single most common reason a mapping silently does nothing, so do not guess it from a name like id or user_id without confirming.

Two properties of the sync are worth stating plainly before the user commits:

  • It only updates people or groups that already exist in PostHog. Rows that match nobody are skipped, and the run reports them as skipped_missing_person. It does not create people.
  • Null values are skipped, not written. A column that is null for a row leaves that property as it was. If the user expects a null to clear a property, warehouse properties will not do it.

3. Propose the mapping before creating anything

Build the full column_property_map — {warehouse_column: property_name} — and show it to the user for approval. Default to **the same name on both side

Perguntas frequentes

Preciso configurar cada coluna separadamente?

Não. O mapeamento completo de colunas é salvo em uma só requisição.

A tabela precisa já estar no warehouse?

Sim. A tabela precisa já estar sincronizando. Conectá-la é uma etapa de configuração separada.

Como as pessoas são associadas às linhas?

Cada linha precisa corresponder a uma pessoa ou grupo por meio de uma coluna de ID único ou de chave de grupo.

Detalhes

Descrição original do autor

Populate person or group properties from a data warehouse table or materialized view, so warehouse columns become properties usable in feature flags, cohorts, and insights. Use when the user wants to "sync my Postgres columns to person properties", "map a warehouse table to people", "replace our daily identify cron", "update person properties from the warehouse", or asks for reverse ETL into PostHog. Covers picking the table and the identifier column, proposing a whole-table column mapping in one call, excluding identity and reserved properties, checking collisions with properties that already

repo: PostHog/posthog

Popularidade

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

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas