setting-up-supabase-auth-emails
Was er macht
Dieser Skill führt dich durch den Versand der Anmelde- und Registrierungs-E-Mails von Supabase über die E-Mail-Vorlagen von PostHog. Er ist für Entwickler gedacht, die ein Supabase-Projekt betreiben und diese E-Mails aus PostHog verwalten wollen.
Wann du ihn nutzt
- ✓Wenn die Registrierungs- oder Anmelde-E-Mails von Supabase über PostHog-Vorlagen laufen sollen.
- ✓Wenn Supabase ein E-Mail-Limit oder einen Fehler bei Authentifizierungs-E-Mails anzeigt.
- ✓Wenn du den E-Mail-Hook von Supabase testen oder reparieren willst.
Link zum Skill
https://github.com/PostHog/posthog/blob/master/products/workflows/skills/setting-up-supabase-auth-emails/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Bitte verbinde unser Supabase-Projekt so, dass seine Registrierungs-E-Mails über PostHog-Vorlagen laufen, ohne Registrierungen zu unterbrechen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest die aktuellen E-Mail-Einstellungen und stellt dir vorab ein paar Fragen zur Einrichtung. Dann führt er dich in einer festen Reihenfolge durch die Schritte in Supabase, denn diese Änderungen machst du selbst im Supabase-Dashboard.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Setting up Supabase auth emails
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.
The setup
- Read the current state. Call
supabase-auth-emails-settings-get. Keep thehook_url, theemail_typeslist and the currenttemplatesmapping. If the project is already set up, change only what the user asked for. - 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.
- Project: with no Supabase MCP, ask for the Supabase dashboard link of the project (
supabase.com/dashboard/project/<project-ref>). - Templates: create PostHog's starter templates, or use templates they already have.
- Hook secret: paste it into the chat, or enter it in PostHog themselves.
- Project: with no Supabase MCP, ask for the Supabase dashboard link of the project (
- Check the email sender. The templates need an email channel with a verified sending domain. Follow the setup check in the
building-workflowsskill's onboarding reference. - Save the project URL. With the Supabase MCP, call
get_project_url. Otherwise it ishttps://<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 withsupabase-auth-emails-settings-update. - 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_urland these steps:- Open Authentication > Hooks, add a Send Email hook, and choose HTTPS.
- Paste the hook URL as the endpoint.
- Click Generate secret and copy the whole value.
- Leave Enable Send Email hook off, and save.
- Save the hook secret. Never invent a hook secret. If a secret is already stored, leave
hook_secretout to keep it, and ask before you replace it. Never send it blank, because a blank value clears it.- In the chat: save it with
supabase-auth-emails-settings-update. Don't repeat it back in your reply. - In PostHog: give the user a link to
/workflows/channels?setup=supabasein their PostHog app. It opens the Supabase setup. They paste the secret and click Save connection. Then callsupabase-auth-emails-settings-getand confirmhas_hook_secretis true.
- In the chat: save it with
- Map the templates, as the user chose in step 2:
- Starter templates. Call
supabase-auth-emails-starter-templates-create. It creates and maps a template for each email type withhas_starter_templatethat 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 thedesigning-email-templatesskill. - Existing templates. List them with
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 withsupabase-auth-emails-settings-update. Buildtemplatesfrom 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.
- Starter templates. Call
- Check before the hook goes live. In the response of your last call, confirm
supabase_urlis set,has_hook_secretis true, and every core email type in theemail_typeslist 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. - 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.
- **Have the
Häufige Fragen
Kann der Agent den Supabase-Hook selbst ändern?
Nein. Diese Einstellungen überlässt er dir, weil sie jede Registrierungs-E-Mail betreffen.
Ist diese Funktion immer verfügbar?
Nicht immer. Sie liegt hinter einem Beta-Flag, und der Agent sagt dir Bescheid, wenn sie für dein Projekt nicht aktiviert ist.
Wie wird der Hook-Schlüssel weitergegeben?
Du kannst ihn in den Chat einfügen oder selbst in PostHog eintragen.
Details
Originalbeschreibung des Autors
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.
repo: PostHog/posthog
Beliebtheit
- GitHub-Sterne
- 41k
- Platz im Ranking
- #6983
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
depot-ci
41kBringt deinem Agenten bei, Depot-CI-Workflows einzurichten, bestehende Workflows zu migrieren und Laufprotokolle auszuwerten.
depot-container-builds
41kHilft deinem Agenten, Docker-Images auf Depot-Remote-Buildern zu bauen, mit Multi-Plattform-Images, Registry-Push und Fehlerbehebung.
depot-github-runners
41kLässt deinen Agenten GitHub-Actions-Jobs auf Depot-Runnern laufen, mit passender Runner-Größe und Labels, und hilft bei Einrichtungsfehlern.
editing-agents-md
41kHilft deinem Agenten zu entscheiden, ob eine Regel in AGENTS.md oder CLAUDE.md gehört, und sie so zu formulieren, dass sie hält.
Ähnliche Skills
api-connector-builder
280kLässt deinen Agenten neue API-Anbindungen nach dem bestehenden Muster bauen. Nutze es, wenn du eine weitere Integration ergänzen willst, ohne neue Wege einzuführen.
api-design
280kHilft deinem Agenten, REST-APIs nach Best Practices zu entwerfen. Nützlich für die Kommunikation, die Fehlerausgabe und die Organisation von Daten.
backend-patterns
280kHilft deinem Agenten bei Architekturmustern für die Serverseite und bei der Datenbankoptimierung. Nützlich zum Bauen und Prüfen von Server-Code.