adding-warehouse-perso…
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable…
Set up PostHog in a user's GitHub repository from a chat, without a terminal. Wizard, PostHog's setup agent, runs in the cloud, adds the SDK and first events, and opens a pull request. Use when a user in ChatGPT, Claude, or another chat client asks to install, add, or set up
$ npx -y skills add PostHog/ai-plugin --skill installing-posthog-from-chat --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/installing-posthog-from-chatContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up PostHog in a user's GitHub repository from a chat, without a terminal. Wizard, PostHog's setup agent, runs in the cloud, adds the SDK and first events, and opens a pull request. Use when a user in ChatGPT, Claude, or another chat client asks to install, add, or set up
name: installing-posthog-from-chat description: >- Set up PostHog in a user's GitHub repository from a chat, without a terminal. Wizard, PostHog's setup agent, runs in the cloud, adds the SDK and first events, and opens a pull request. Use when a user in ChatGPT, Claude, or another chat client asks to install, add, or set up PostHog in their app or repository, or asks for a pull request that adds PostHog. Covers connecting GitHub, picking the repository, starting the run, polling it, and sharing the pull request.
Wizard is PostHog's setup agent. With `wizard-install-start` it runs in a cloud workspace on a GitHub repository, makes the code changes, and opens a pull request. The user reviews and merges that pull request. Nothing changes on their default branch until they do.
Work through the steps in order. Skip a step when its outcome is already known from the conversation.
The run uses the project's GitHub connection, so the project needs one.
1. Call `integrations-list` and look for an integration with kind `github`. 2. When there is none, give the user this link, built from the base URL and project ID in your context: `<base URL>/integrations/connect/github/?project_id=<project id>&connect_from=mcp`. They install the PostHog GitHub App and choose which repositories it can access. Wait until they say they are done, then call `integrations-list` again.
Call `integrations-github-repos-retrieve` with the GitHub integration's ID. Use `search` when the user named the repository, and page with `offset` when `has_more` is true.
Pass the repository as `full_name` (`owner/name`).
The setup agent works at the repository root. If the user describes a monorepo where the app lives in a subdirectory, tell them the run may not find it, and offer to try anyway.
Call `wizard-install-start` with:
Errors the user can act on:
| Error code | What to do | | --------------------------- | -------------------------------------------------------------------------------------------------------- | | `github_not_connected` | Go back to step 1. | | `repository_not_accessible` | Ask the user to add the repository to the PostHog GitHub App, then retry with a new `idempotency_key`. | | `run_already_active` | The user already has a run in progress in this project. Ask them to wait for it, or check it in PostHog. | | HTTP 429 | The user reached the hourly or daily limit for setup runs. Relay the message. Don't retry right away. |
Tell the user the run started and share the `url` from the response, where they can follow it in PostHog.
Call `wizard-install-status` with the `run_id` about every 30 seconds while `status` is `created` or `running`. A run usually takes several minutes.
When the client cannot wait that long in one turn, tell the user the run is in progress and check again when they come back.
Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable…
Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top…
Analyze session replay patterns across experiment variants to understand user behavior differences. Use when the user wants to…
Find the events and person properties that correlate with funnel conversion or drop-off. Use when the user asks why people…
Inspect and compare offline AI evaluation experiments, diagnose case-level regressions, and follow scorer history across…
Split a completed PostHog task run into activity records — what the agent tried, whether it worked, what blocked it — and record…