Omnibus
Skill 134 of 200
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.
4 minutes · 985 words · 2 sections
Install
npx skills add PostHog/skills --skill setting-up-supabase-auth-emailsnpx skills add PostHog/skills/plugin marketplace add PostHog/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
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.
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.supabase.com/dashboard/project/<project-ref>).building-workflows skill’s onboarding reference.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.hook_url and these steps:
hook_secret out to keep it, and ask before you replace it. Never send it blank, because a blank value clears it.
supabase-auth-emails-settings-update. Don’t repeat it back in your reply./workflows/channels?setup=supabase in their PostHog app. It opens the Supabase setup. They paste the secret and click Save connection. Then call supabase-auth-emails-settings-get and confirm has_hook_secret is true.supabase-auth-emails-starter-templates-create. It creates and maps a template for each email type with has_starter_template that has no usable one yet. If it fails for want of a verified sender, go back to step 3. To change a template’s copy or styling, use the designing-email-templates skill.workflows-list-email-templates, keep the ones that are transactional and marked sensitive, and ask the user which one sends each email. A template that is neither can’t be mapped yet. Ask before you make one transactional, because that can’t be undone. Send the mapping with supabase-auth-emails-settings-update. Build templates from the step 1 mapping with your changes merged in, because the field replaces the whole mapping. Ask before you unmap a template that already sends.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.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 can’t see them.
| What Supabase shows | Cause | Fix |
|---|---|---|
| “email rate limit exceeded” | Supabase’s own hourly limit. PostHog never got the call. | Raise the limit (step 10). |
| Supabase’s generic hook error, with a 401 from the hook | The hook secret doesn’t match. | Have the user copy the full secret again and save it with supabase-auth-emails-settings-update. |
| “No PostHog template is set for the … email.” | A core email type has no template. | Map one (step 7). |
| “We couldn’t send your email. Try again in a few minutes.” | No project URL saved, a mapped template that is deleted or no longer transactional and sensitive, no verified sender, the email quota, or a slow send. | Check the settings and each mapped template. If they are fine, retry. |
| Links in the email go to the wrong place | The project URL is wrong. | Save the right URL. |
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.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 8 November 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: skills/omnibus/*/SKILL.md, skills/posthog/all/skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by PostHog, declaring 6 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./PostHog/skills.md, and each skill at its own .md URL.