跳到正文
Skillpedia
数据库41k · #6969

setting-up-a-data-warehouse-source

它能做什么

这项技能指导你第一次把外部数据源连接到 PostHog 数据仓库。适合希望把付款或客户记录等业务数据与产品数据放在一起的人。

适用场景

  • ✓当你第一次想把 Stripe、Postgres、HubSpot 或其他数据源连接到 PostHog 的时候。
  • ✓当你想选择导入哪些表以及多久同步一次的时候。
  • ✓当你不确定 PostHog 支持哪些类型的数据源的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/setting-up-a-data-warehouse-source/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/setting-up-a-data-warehouse-source/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把 Stripe 账户连接到 PostHog,并用合理的同步设置导入主要的表。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会通过安全链接核对你的登录信息,找到相关的表,并在一步之内以合适的同步设置将其开启。如果你想更精细地控制,它也可以一步步引导你逐个选择表。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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)
常见问题

我需要把密码粘贴到聊天里吗?

不需要。智能体会给你一个安全的浏览器链接,由你在其中输入凭据。

我可以选择同步哪些表吗?

可以。手动设置可以让你选择表,并为每张表设置不同的同步类型。

智能体如何选择同步设置?

只要可行,它就会使用增量同步,只获取新增或变化的行。

详情

作者的原始描述

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

热度

GitHub 星标
41k
排名
#6969
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能