Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu41k · #6969

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/setting-up-a-data-warehouse-source/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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 schemas payload
  • 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự