본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #5884

supabase

하는 일

Supabase는 웹 및 모바일 앱을 만들도록 돕는 플랫폼입니다. 이 도구는 데이터베이스 설정, 사용자 관리, 함수 생성 같은 관련 작업을 도울 수 있습니다.

사용하는 경우

  • ✓Supabase에서 데이터베이스를 설정해야 할 때.
  • ✓사용자 로그인과 로그아웃을 어떻게 관리하는지 알고 싶을 때.
  • ✓테이블을 API에 노출하는 것에 대해 질문이 있는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/supabase/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/supabase/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Supabase에서 사용자 테이블에 RLS를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 공식 Supabase 문서와 최근 변경 사항에 대한 정보를 참고해 최선의 안내를 제공합니다. 작업에 영향을 줄 수 있는 중요한 업데이트나 변경을 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Supabase

When to Use

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout,...

Core Principles

1. Supabase changes frequently — verify against changelog and current docs before implementing. Do not rely on training data for Supabase features. Function signatures, config.toml settings, and API conventions change between versions.

First, fetch https://supabase.com/changelog.md (a lightweight summary index — not a heavy pull), scan for breaking-change tags relevant to your task, and follow the linked page for any that apply. Then look up the relevant topic using the documentation access methods below.

2. Verify your work. After implementing any fix, run a test query to confirm the change works. A fix without verification is incomplete.

3. Recover from errors, don't loop. If an approach fails after 2-3 attempts, stop and reconsider. Try a different method, check documentation, inspect the error more carefully, and review relevant logs when available. Supabase issues are not always solved by retrying the same command, and the answer is not always in the logs, but logs are often worth checking before proceeding.

4. Exposing tables to the Data API: Depending on the user's Data API settings, newly created tables may not be automatically exposed via the Data (REST) API. If this is the case, anon and authenticated roles will need to be explicitly granted access.

Note that this is separate from RLS, which controls which rows are visible once a table is accessible, not whether the table is accessible at all.

When a user reports a SQL-created table is unexpectedly inaccessible, check their Data API settings and whether the roles have been granted access via explicit GRANT SQL. When granting public (anon/authenticated) access, always enable RLS too. See Exposing a Table to the Data API for the full setup workflow.

5. RLS in exposed schemas. Enable RLS on every table in any exposed schema, which includes public by default. This is critical in Supabase because tables in exposed schemas can be reachable through the Data API when the anon/authenticated roles have access (see Exposing a Table to the Data API). For private schemas, prefer RLS as defense in depth. After enabling RLS, create policies that match the actual access model rather than defaulting every table to the same auth.uid() pattern.

6. Security checklist. When working on any Supabase task that touches auth, RLS, views, storage, or user data, run through this checklist. These are Supabase-specific security traps that silently create vulnerabilities:

  • Auth and session security

    • Never use user_metadata claims in JWT-based authorization decisions. In Supabase, raw_user_meta_data is user-editable and can appear in auth.jwt(), so it is unsafe for RLS policies or any other authorization logic. Store authorization data in raw_app_meta_data / app_metadata instead.
    • Deleting a user does not invalidate existing access tokens. Sign out or revoke sessions first, keep JWT expiry short for sensitive apps, and for strict guarantees validate session_id against auth.sessions on sensitive operations.
    • If you use app_metadata or auth.jwt() for authorization, remember JWT claims are not always fresh until the user's token is refreshed.
  • API key and client exposure

    • Never expose the service_role or secret key in public clients. Prefer publishable keys for frontend code. Legacy anon keys are only for compatibility. In Next.js, any NEXT_PUBLIC_ env var is sent to the browser.
  • RLS, views, and privileged database code

    • Views bypass RLS by default. In Postgres 15 and above, use CREATE VIEW ... WITH (security_invoker = true). In older versions of Postgres, protect your views by revoking access from the anon and authenticated roles, or by putting them in an unexposed schema.

…

자주 묻는 질문

RLS란 무엇인가요?

RLS는 Row Level Security의 약자입니다. 데이터베이스에서 누가 어떤 데이터를 보거나 수정할 수 있는지를 제어하는 Supabase 기능입니다.

Supabase 변경 사항을 왜 확인해야 하나요?

Supabase는 자주 바뀝니다. 업데이트를 확인하면 최신이고 올바른 설정과 명령을 사용하게 되어 문제를 막을 수 있습니다.

시도가 실패하면 어떻게 해야 하나요?

해결 방법을 몇 번 시도해도 작동하지 않으면 멈추고 다른 방법을 시도합니다. 문서를 참고하고, 오류를 주의 깊게 분석하며, 가능하면 로그를 확인합니다.

상세 정보

작성자의 원본 설명

Use when doing ANY task involving Supabase.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5884
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬