setting-up-a-data-warehouse-source
Skill này làm gì
Skill này hướng dẫn bạn kết nối một nguồn dữ liệu bên ngoài với kho dữ liệu của PostHog lần đầu. Skill dành cho người muốn dữ liệu kinh doanh như thanh toán hoặc hồ sơ khách hàng nằm cạnh dữ liệu sản phẩm.
Khi nào nên dùng
- ✓Khi bạn muốn kết nối Stripe, Postgres, HubSpot hoặc một nguồn khác với PostHog lần đầu.
- ✓Khi bạn muốn chọn bảng nào cần nhập và chúng đồng bộ bao lâu một lần.
- ✓Khi bạn không chắc PostHog hỗ trợ những loại nguồn dữ liệu nào.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/setting-up-a-data-warehouse-source/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
“Hãy kết nối tài khoản Stripe của tôi với PostHog và nhập các bảng chính với cài đặt đồng bộ hợp lý.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra thông tin đăng nhập của bạn qua một liên kết bảo mật, tìm các bảng và bật chúng với cài đặt đồng bộ phù hợp trong một bước. Nếu muốn kiểm soát nhiều hơn, nó có thể hướng dẫn bạn chọn từng bảng một.
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.
Setting up a data warehouse source
Use this skill when the user wants to connect an external data source to PostHog's data warehouse for the first time.
Default to the one-step flow: data-warehouse-source-setup validates credentials, discovers every table, enables
them with sensible sync defaults (incremental where possible), and creates the source in a single call — no
schemas array to assemble. For credentials, hand the user a secure browser link with data-warehouse-source-connect-link
instead of collecting secrets in chat. Only drop to the manual wizard → db-schema → create flow when the user wants to
hand-pick which tables sync or set non-default sync types per table.
When to use this skill
- The user wants to connect a new source: "connect Stripe", "import my Postgres orders table", "sync Hubspot contacts"
- The user isn't sure what source types PostHog supports
- The user has credentials but doesn't know how to structure the
schemaspayload - The user wants guidance on which sync method to pick per table
Available tools
| Tool | Purpose |
|---|---|
data-warehouse-source-connect-link |
Preferred for credentials — get a secure browser/OAuth link so the user authenticates without pasting secrets in chat |
data-warehouse-source-setup |
Preferred to create — one call: validate creds, discover tables, apply sync defaults, create the source |
external-data-sources-wizard |
Discover which source types exist and what fields each needs (advanced flow) |
external-data-sources-db-schema |
Validate credentials and list tables with available sync methods per table (advanced flow) |
external-data-sources-create |
Advanced create — requires a schemas array built from the db-schema response |
external-data-sources-check-cdc-prerequisites-create |
Postgres CDC pre-flight check (optional, only for Postgres CDC) |
external-data-sources-webhook-info-retrieve |
Check if a source supports webhooks and whether one has been registered |
external-data-sources-create-webhook-create |
Register a webhook with the external service after source creation |
external-data-sources-update-webhook-inputs-create |
Supply the signing secret manually when auto-registration failed |
external-data-sources-list |
After creation, confirm the source is listed and see its initial status |
external-data-schemas-list |
See per-table sync status once the source is created |
external-data-destinations-list |
See existing destinations, including the PostHog warehouse |
external-data-destinations-connect-link |
Secure browser link where the user enters a destination's credentials; returns nothing secret |
external-data-destinations-create |
Create a destination from the integration the connect page saved |
external-data-destinations-add-sources |
Attach existing sources to a destination |
external-data-sources-destinations-update |
Set a source's full destination list, for example to keep the PostHog warehouse before attaching |
external-data-destinations-test-connection |
Diagnose a destination that is failing or paused (does not resume it) |
Câu hỏi thường gặp
Tôi có phải dán mật khẩu vào khung chat không?
Không. Agent gửi bạn một liên kết trình duyệt bảo mật để nhập thông tin đăng nhập.
Tôi có thể chọn bảng nào để đồng bộ không?
Có. Thiết lập thủ công cho phép bạn chọn bảng và đặt kiểu đồng bộ khác nhau cho từng bảng.
Agent chọn cài đặt đồng bộ như thế nào?
Nó dùng đồng bộ gia tăng khi có thể, chỉ lấy các hàng mới hoặc đã thay đổi.
Chi tiết
Mô tả gốc của tác giả
Guide the user through connecting a new data warehouse source — Postgres, MySQL, Stripe, Hubspot, MongoDB, Salesforce, BigQuery, Snowflake, and so on. Use when the user wants to "connect Stripe", "import data from Postgres", "add a new data source", "sync my warehouse tables", or wants to pick sync methods for each table. Walks through source-type discovery, credential validation, table discovery, per-table sync_type selection, and the final create call. Also covers picking a good prefix, what to do right after creation, and sending a source's tables to the user's own warehouse (Snowflake, Big
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6969
- 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ể.