adding-warehouse-perso…
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable…
Connect a Supabase project so its auth emails send through PostHog email templates via the Supabase Send Email Hook, in an order that never breaks a sign-up. Use when asked to set up, connect, test, or fix Supabase auth emails, Supabase email templates, or the Supabase Send
Claude Code
$ npx -y skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails --agent claude-code
Codex
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a codex -y
Cursor
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a cursor -y
Gemini CLI
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a gemini-cli -y
GitHub Copilot
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a github-copilot -y
OpenCode
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a opencode -y
Windsurf
$ npx skills add PostHog/ai-plugin --skill setting-up-supabase-auth-emails -a windsurf -y
name: setting-up-supabase-auth-emails description: 'Connect a Supabase project so its auth emails send through PostHog email templates via the Supabase Send Email Hook, in an order that never breaks a sign-up. Use when asked to set up, connect, test, or fix Supabase auth emails, Supabase email templates, or the Supabase Send Email Hook, or when Supabase shows "email rate limit exceeded" or an auth email error.'
Supabase calls PostHog's Send Email Hook for each auth email. The user does the Supabase steps by hand, so tell them exactly what to click, and keep the order below.
If the Supabase MCP server is connected, use it to read the project URL (step 4) and the logs (when a hook call fails). It has no tools for Auth settings. Leave the hook and the rate limit to the user even if you have other Supabase access, because those settings send every sign-up email.
The tools are behind a beta flag. If `supabase-auth-emails-settings-get` isn't available, tell the user the feature isn't enabled for their project yet and stop.
1. **Read the current state.** Call `supabase-auth-emails-settings-get`. Keep the `hook_url`, the `email_types` list and the current `templates` mapping. If the project is already set up, change only what the user asked for. 2. **Ask the user's choices in one go.** Ask these together, before any change. Use the client's multiple-choice question tool if it has one. Skip any question the state from step 1 already answers.
3. **Check the email sender.** The templates need an email channel with a verified sending domain. Follow the setup check in the `building-workflows` skill's onboarding reference. 4. **Save the project URL.** With the Supabase MCP, call `get_project_url`. Otherwise it is `https://<project-ref>.supabase.co`. For a self-hosted project or a custom domain, ask the user for the URL their app uses to reach Supabase Auth. Save it with `supabase-auth-emails-settings-update`. 5. **Have the user create the hook in Supabase, switched off.** While the hook is on, any hook failure fails the user's sign-up or password reset. Give them the `hook_url` and these steps:
6. **Save the hook secret.** Never invent a hook secret. If a secret is already stored, leave `hook_secret` out to keep it, and ask before you replace it. Never send it blank, because a blank value clears it.
7. **Map the templates**, as the user chose in step 2:
8. **Check before the hook goes live.** In the response of your last call, confirm `supabase_url` is set, `has_hook_secret` is true, and every core email type in the `email_types` list from step 1 has a template. The write responses leave that list out. Core types are the ones that don't end in `_notification`. A core type with no template fails the user's action. A notification with no template is skipped. 9. **Have the user turn the hook on.** In Supabase, edit the Send Email hook, switch on **Enable Send Email hook**, and save. PostHog can't see whether the hook is on, so the **Connected** status on the Supabase card only means the connection is saved. 10. **Have the user raise Supabase's email rate limit.** Supabase checks its own hourly email limit before it calls PostHog. The built-in mailer allows 2 per hour. Once the hook sends the emails, the user can raise the limit under **Authentication** > **Rate Limits**. Ask them to check the value there. 11. **Test it.** Ask the user to invite a user (**Authentication** > **Users** > **Add user** > **Send invitation**) or request a password reset, to an address they can read. The email should arrive from the mapped template.
Report done only after the user confirms a test email arrived. Name any email type you left without a template.
To disconnect, the user turns the hook off in Supabase first, then clicks **Disconnect** in the PostHog setup window. In the other order, every auth email fails in between.
The user sees these in Supabase, in the app's error or under **Logs** > **Auth**. With the Supabase MCP, find the failed call yourself with its `query_logs` tool before you ask the user. That tool reads Supabase's logs. PostHog's `query-logs` tool
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…
Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…
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…
Ask which skill or flow fits your situation. A router over the skills in this repo.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…