feat: add data-warehouse-source-setup skill#157
Open
Gilbert09 wants to merge 2 commits into
Open
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
Agent playbook for the wizard's `warehouse` program: discover source fields via the PostHog MCP, collect credentials interactively (never reading .env values), validate and create in-CLI sources, and emit deep-link URLs for OAuth sources. Generates to skill id `data-warehouse-source-setup`.
038f280 to
e454275
Compare
gewenyu99
approved these changes
May 28, 2026
Collaborator
gewenyu99
left a comment
There was a problem hiding this comment.
Ship it! But please do test and tweak this on some projects, I have some suggestions that are educated guesses, but you should try on real projects and analyze the /tmp/posthog-wizard.log with an LLM to find where it succeeds/struggles
Reference wizard tools as mcp__wizard-tools__* and PostHog MCP tools as mcp__posthog-wizard__* so the agent invokes them by their real fully-qualified names, and drop the exec-style `info` instruction in favour of following the create tool's input schema.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
data-warehouse-source-setupskill that powers the PostHog wizard's newwarehouseprogram (companion PR: PostHog/wizard#488).The wizard detects which data sources a project uses and passes them (kind + creation mode) into the agent prompt. This skill is the agent playbook for connecting them:
in-clisources (databases, API-key SaaS): discover required fields via the PostHog MCPexternal-data-sources-wizard, collect credentials in a single batchedwizard_ask(never reads.envvalues), validate/list tables viaexternal-data-sources-db-schema, then create withexternal-data-sources-create.deep-linksources (OAuth): emit the pre-fillednew-source?kind=URL for the user to finish in the app.[ABORT]reasons (No data source detected,Source creation failed) match the wizard's abort-case handling.docs-onlyskill; bundles the Postgres/MySQL/Snowflake/BigQuery/Stripe + sources-overview reference docs. Generates to skill iddata-warehouse-source-setup.Test plan
pnpm test:skills— 38/38 passdata-warehouse-source-setup, all template placeholders resolved, reference docs fetched)scan-prompt-injection.sh— PASSED🤖 Generated with Claude Code