adding-warehouse-person-properties
Skill này làm gì
Skill này ánh xạ các cột từ một bảng kho dữ liệu đã đồng bộ thành thuộc tính người dùng hoặc nhóm trong PostHog. Nó dành cho các nhóm lưu thông tin khách hàng trong kho dữ liệu và muốn dùng chúng để nhắm mục tiêu và phân tích trong PostHog.
Khi nào nên dùng
- ✓Khi bạn muốn thêm cấp gói hoặc doanh thu từ các bảng thanh toán vào người dùng của mình.
- ✓Khi bạn muốn nhắm mục tiêu một feature flag hoặc cohort bằng dữ liệu nằm trong kho dữ liệu.
- ✓Khi giá trị từ kho dữ liệu không hiện trên người dùng và bạn cần tìm nguyên nhân.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/customer_analytics/skills/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thêm cột cấp gói từ bảng Stripe của tôi vào từng người dùng trong PostHog để tôi có thể nhắm mục tiêu họ bằng feature flag.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn chọn bảng nguồn, cột ID khớp và các cột cần sao chép. Sau đó, PostHog ghi các cột đó thành thuộc tính người dùng hoặc nhóm thông thường, hoạt động như mọi thuộc tính khác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Adding warehouse person and group properties
A warehouse property mapping reads a synced warehouse table and writes chosen columns onto people or groups.
Each row is matched to a person by a distinct ID column, or to a group by a group key column. The mapped
columns are then written as ordinary person properties ($set) or group properties ($groupidentify).
The result is not a separate kind of property. After the first sync the values behave like any other person or group property, so they work in feature flags, cohorts, insights, surveys, and replay filters. See references/where-they-can-be-used.md for the full surface list and the caveats that matter per surface.
In the UI this lives at Data > Warehouse properties, with a Persons tab and a Groups tab.
When to use this skill
- "Add plan tier from my Stripe table to my people"
- "I want to run a feature flag only for customers with ARR over 50k"
- "Sync my Postgres
accountstable onto organizations" - "Why isn't my warehouse property showing up on people?"
- "Backfill the warehouse property I just added"
Use a different skill when:
- The warehouse source does not exist yet. Connect it first with
setting-up-a-data-warehouse-source. - The user wants a Customer analytics account property. That target reads a materialized view, not a
synced table, and uses
saved_query+source_columninstead of the column map below. - The user only wants to query warehouse data. Join it in HogQL instead of writing properties onto people.
Prerequisites
Check these before you start. Each one produces a confusing failure later if it is missing.
| Requirement | Why | How it fails |
|---|---|---|
The warehouse-person-properties feature is enabled for the project |
Gates the whole feature | Definition create rejects a person or group target; sync and backfill return 400 |
| A synced warehouse table | Only tables imported by a data warehouse source carry the schema a source binds to | Views, saved queries, and materialized views cannot be used for person or group targets |
A column holding a real person distinct_id, or a real group key |
Rows are matched on this column | Runs complete with a high skipped_missing_person count and no properties change |
| The caller has warehouse source editor access | Mapping a table drives its billable source | Create is rejected even when the caller holds account:write |
For group targets: the groups paid feature, an existing group type, and group:read / group:write |
Group properties are keyed per group type | The Groups tab is hidden; group tools reject the call |
Tools
| Tool | Purpose |
|---|---|
external-data-schemas-list |
Find the table and its schema id. The schema id is what a source binds to |
query (HogQL) |
Inspect columns and sample the key column before you map anything |
custom-property-definitions-create |
Create the mapping's definition with target_type of person or group |
custom-property-sources-create |
Bind the definition to the warehouse table and column map |
custom-property-sources-list / -retrieve |
See sync status, schedule, and the latest run |
Câu hỏi thường gặp
Tôi có cần kết nối nguồn kho dữ liệu trước không?
Có. Nguồn phải đã tồn tại và đang đồng bộ. Kết nối nguồn là một bước thiết lập riêng.
Tôi có thể dùng các thuộc tính này ở đâu?
Bất cứ nơi nào thuộc tính người dùng và nhóm hoạt động, như feature flag, cohort, insight, khảo sát và workflow.
Các giá trị có tự động cập nhật không?
Chúng cập nhật theo lịch mà bảng nguồn đồng bộ.
Chi tiết
Mô tả gốc của tác giả
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties already work: feature flag targeting, cohorts, insight filters and breakdowns, surveys, session replay filters, workflows, and the person profile. Use when the user wants to "add a person property from my warehouse", "enrich people with Stripe/Postgres/Salesforce data", "put ARR or plan tier on my persons", "target a feature flag by a warehouse column", "sync warehouse columns onto groups or organizations", or wants to inspect, backfill,
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6844
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.