Skip to content
Skillpedia
Databases41k · #6969

setting-up-a-data-warehouse-source

What it does

This skill guides you through connecting an outside data source to PostHog's data warehouse for the first time. It is for people who want business data such as payments or customer records next to their product data.

When to use it

  • ✓When you want to connect Stripe, Postgres, HubSpot or another source to PostHog for the first time.
  • ✓When you want to choose which tables to import and how often they sync.
  • ✓When you are not sure which kinds of data sources PostHog supports.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/setting-up-a-data-warehouse-source/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Please connect my Stripe account to PostHog and import the main tables with sensible sync settings.”

5 new skills a week. 1 minute to read.

How it works

The agent checks your login details through a secure link, finds the tables, and turns them on with suitable sync settings in one step. For more control, it can instead walk you through choosing tables one by one.

Technical content (original SKILL.md)

Original text by the author, straight from 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)
FAQ

Do I have to paste my passwords into the chat?

No. The agent gives you a secure browser link to enter your credentials.

Can I pick which tables to sync?

Yes. A manual setup lets you choose tables and set a different sync type for each one.

How does the agent choose sync settings?

It uses incremental sync where it can, which picks up only new or changed rows.

Details

Original description by the author

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

Popularity

GitHub stars
41k
Ranking position
#6969
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills