setting-up-warehouse-properties
できること
このスキルは、ウェアハウスのテーブルやビュー全体を、テーブルの同期スケジュールに従って人やグループに対応させます。現在、ユーザーデータをPostHogに送るスクリプトを動かしているチーム向けです。
使う場面
- ✓ユーザーの特性を送る毎日のスクリプトがあり、PostHogに代わりに取得させたいとき。
- ✓多数の顧客属性を一度に、人のプロパティに対応させたいとき。
- ✓ウェアハウスのプロパティの設定画面で、テーブル全体の対応を設定したいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/setting-up-warehouse-properties/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“顧客属性テーブルを人のプロパティに対応させ、毎日のidentifyスクリプトを置き換えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、どの列をプロパティにするか、その名前を決め、列の対応全体を1回のリクエストで保存します。その後、PostHogは各同期のたびにテーブルから人を更新します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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_attributescolumns 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
よくある質問
列ごとに個別に設定する必要がありますか?
いいえ。列の対応全体を1回のリクエストで保存します。
テーブルはすでにウェアハウスにある必要がありますか?
はい。テーブルは既に同期されている必要があります。接続は別の設定の手順です。
人は行とどのように対応付けられますか?
各行は、一意のIDまたはグループキーの列によって、人またはグループと対応している必要があります。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 41k
- ランキング
- #6845
- ライセンス
- —
- 更新日
- 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エージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。