Agent skill
supabase-rest
Inspect Supabase database schemas and data. Use when the user asks to "check table", "list columns", or "query data" in Supabase. READ-ONLY.
Install this agent skill to your Project
npx add-skill https://github.com/lollipopkit/cc-skills/tree/main/supabase-rest
SKILL.md
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):
bash
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:
bash
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:
bash
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"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gh-cli
Interact with GitHub repositories, PRs, and issues using the `gh` CLI. Use when the user asks to "list PRs", "check out PR", "view issue", or "create release".
use-zfeats
Plan and execute complex features using markdown checklists. Use when the user asks to "plan a feature", "create a checklist", or "break down a task".
use-fllib
Use fl_lib stores, widgets, utils, and extensions in Flutter apps. Use when requests mention fl_lib APIs or integration.
flutter-std
Build and debug Flutter/Dart apps with Riverpod (codegen), Freezed, and GoRouter. Use when implementing Flutter features, running apps, hot reload/restart, or debugging UI.
context7-mcp
Retrieve official library documentation and API references. Use when the user asks for "docs", "API signature", "usage examples", or "how to use" a specific package.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?