← Back to list

supabase-rest
by lollipopkit
Skills for Claude Code compatible agents.
⭐ 1🍴 0📅 Jan 11, 2026
SKILL.md
name: supabase-rest description: Inspect Supabase database schemas and data. Use when the user asks to "check table", "list columns", or "query data" in Supabase. READ-ONLY. allowed-tools: Bash
Use Supabase (read-only)
Instructions
- Load env vars (without printing secrets):
set -a; source .env; set +aor equivalent soSUPA_URLandSUPA_SERVICE_ROLE_KEYare set. - Never echo or log
SUPA_SERVICE_ROLE_KEY; only pass it via headers. - Base headers for REST calls:
-H "apikey: $SUPA_SERVICE_ROLE_KEY"-H "Authorization: Bearer $SUPA_SERVICE_ROLE_KEY"-H "Accept-Profile: ${SUPA_SCHEMA:-public}"- Optional: add
-H "Prefer: count=exact"when you need counts.
- List tables (scoped by schema):
curl -s "$SUPA_URL/rest/v1/pg_catalog.pg_tables?schemaname=eq.${SUPA_SCHEMA:-public}&select=schemaname,tablename,tableowner" \ -H "apikey: $SUPA_SERVICE_ROLE_KEY" -H "Authorization: Bearer $SUPA_SERVICE_ROLE_KEY" - Inspect columns for a table:
TABLE="your_table" curl -s "$SUPA_URL/rest/v1/information_schema.columns?table_schema=eq.${SUPA_SCHEMA:-public}&table_name=eq.${TABLE}&select=column_name,data_type,is_nullable,column_default,udt_name,character_maximum_length" \ -H "apikey: $SUPA_SERVICE_ROLE_KEY" -H "Authorization: Bearer $SUPA_SERVICE_ROLE_KEY" - Pull sample rows (read-only) with sane limits/ordering:
curl -s "$SUPA_URL/rest/v1/${TABLE}?select=*&limit=50&order=created_at.desc" \ -H "apikey: $SUPA_SERVICE_ROLE_KEY" -H "Authorization: Bearer $SUPA_SERVICE_ROLE_KEY" - For joins or filters, use PostgREST query params (e.g.,
?select=id,profile(id,name)&user_id=eq.123). Keep requests GET/HEAD for read-only. - If
SUPA_HOST,SUPA_ORIGIN, orSUPA_REFERERare set, include matching headers to satisfy Supabase CORS constraints. - Avoid writes (
POST/PATCH/DELETE) unless explicitly asked; this skill is for inspection.
Example prompts
- "Show the columns and types for table chat_logs in Supabase"
- "Fetch 20 newest rows from public.messages"
- "List all tables under the public schema"
Score
Total Score
35/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon