setting-up-supabase-auth-emails
하는 일
이 스킬은 Supabase의 로그인 및 가입 이메일을 PostHog 이메일 템플릿으로 보내는 과정을 안내합니다. Supabase 프로젝트를 운영하면서 그 이메일을 PostHog에서 관리하고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Supabase 가입 또는 로그인 이메일을 PostHog 템플릿으로 보내고 싶을 때.
- ✓Supabase가 이메일 속도 제한이나 인증 이메일 오류를 표시할 때.
- ✓Supabase 이메일 훅을 테스트하거나 고치고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/workflows/skills/setting-up-supabase-auth-emails/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 Supabase 프로젝트를 연결해서 가입 이메일이 PostHog 템플릿을 거치게 해 주세요. 가입이 깨지지 않게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 현재 이메일 설정을 읽고 먼저 몇 가지 설정 질문을 합니다. 그다음 Supabase의 대시보드에서 사용자가 직접 바꿔야 하는 단계를 정해진 순서대로 안내합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
에이전트가 Supabase 훅을 직접 바꿀 수 있나요?
아니요. 그 설정은 모든 가입 이메일에 영향을 주므로 사용자에게 남겨 둡니다.
이 기능은 항상 쓸 수 있나요?
항상은 아닙니다. 베타 플래그 뒤에 있으며, 프로젝트에서 켜져 있지 않으면 에이전트가 그렇다고 알려 줍니다.
훅 비밀 값은 어떻게 공유하나요?
채팅에 붙여 넣거나, PostHog에서 직접 입력할 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6983
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.