adding-warehouse-perso…
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
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
$ npx -y skills add PostHog/ai-plugin --skill setting-up-warehouse-properties --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/setting-up-warehouse-propertiesContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: setting-up-warehouse-properties description: > 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 exist, and running the first backfill.
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.
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.
| 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.
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.
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:
the run reports them as `skipped_missing_person`. It does not create people.
the user expects a null to clear a property, warehouse properties will not do it.
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 sides**; a rename is the user's call, not a guess worth making.
Exclude from the proposal, and say what you excluded:
writing them from the warehouse can overwrite what PostHog already knows.
anything the user would not want visible in the person profile UI. Flag them rather than dropping them silently, since only the user knows their schema.
Then check collisions: read the existing person properties and call out any mapped name that already exists, because the sync
Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.
Repo: PostHog/ai-plugin
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties…
Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user…
Analyze session replay patterns across experiment variants to understand user behavior differences. Use when the user wants to see how users interact with…
Split a completed PostHog task run into activity records — what the agent tried, whether it worked, what blocked it — and record each one through the…
Assesses what a page's heatmap is telling you and recommends concrete changes. Pulls click / rageclick / scroll-depth data for a URL, names the hot elements by…
Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks "what endpoints can…