Skip to content

feat: add data-warehouse-source-setup skill#157

Open
Gilbert09 wants to merge 2 commits into
mainfrom
feat/data-warehouse-source-skill
Open

feat: add data-warehouse-source-setup skill#157
Gilbert09 wants to merge 2 commits into
mainfrom
feat/data-warehouse-source-skill

Conversation

@Gilbert09
Copy link
Copy Markdown
Member

Summary

Adds the data-warehouse-source-setup skill that powers the PostHog wizard's new warehouse program (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-cli sources (databases, API-key SaaS): discover required fields via the PostHog MCP external-data-sources-wizard, collect credentials in a single batched wizard_ask (never reads .env values), validate/list tables via external-data-sources-db-schema, then create with external-data-sources-create.
  • deep-link sources (OAuth): emit the pre-filled new-source?kind= URL for the user to finish in the app.
  • CI / non-interactive: falls back to deep-link for everything.
  • [ABORT] reasons (No data source detected, Source creation failed) match the wizard's abort-case handling.

docs-only skill; bundles the Postgres/MySQL/Snowflake/BigQuery/Stripe + sources-overview reference docs. Generates to skill id data-warehouse-source-setup.

Test plan

  • pnpm test:skills — 38/38 pass
  • Skill generates cleanly (id resolves to data-warehouse-source-setup, all template placeholders resolved, reference docs fetched)
  • scan-prompt-injection.sh — PASSED

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

🧙 Wizard CI

Run 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:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

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`.
@Gilbert09 Gilbert09 force-pushed the feat/data-warehouse-source-skill branch from 038f280 to e454275 Compare May 28, 2026 13:56
Copy link
Copy Markdown
Collaborator

@gewenyu99 gewenyu99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread transformation-config/skills/data-warehouse-source/config.yaml
Comment thread transformation-config/skills/data-warehouse-source/description.md Outdated
Comment thread transformation-config/skills/data-warehouse-source/description.md Outdated
Comment thread transformation-config/skills/data-warehouse-source/description.md
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants