dingjun1028/esggo/oa-supabase-query

Claude Code and agent skill by dingjun1028/esggo

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the user needs to query or inspect the Supabase database. Executes REST API calls against the Supabase Data API to fetch ESG metrics, audit records, user data, or any database table. Use for data inspection, debugging, and verification — NOT for bulk data modification.

Install

npx vskill@latest install dingjun1028/esggo/oa-supabase-query

SKILL.md

The same SKILL.md was published earlier as dingjun1028/esggo/oa-supabase-query.

OA Supabase Query — Supabase 資料查詢器 v2

Overview

透過 Supabase REST API 查詢資料庫。用於資料檢查、除錯、驗證。嚴禁用於大量資料修改。

When to Use

  • 用戶說「查詢資料」、「查資料庫」、「Supabase 查詢」
  • 驗證報告數據來源
  • 除錯資料不一致

Don't use for: 大量寫入、Schema 變更、Migration

Core Workflow

Step 1: 環境變數檢查
bash
# 必要環境變數
SUPABASE_URL=https://<project>.supabase.co
SUPABASE_SERVICE_ROLE_KEY=<service_role_key>
Step 2: 執行查詢
bash
# 範例:查詢 ESG 指標
curl -X GET "$SUPABASE_URL/rest/v1/esg_metrics?company_id=eq.<id>&select=*" \
-H "apikey: $SUPABASE_SERVICE_ROLE_KEY" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY"
# 範例:查詢審計日誌
curl -X GET "$SUPABASE_URL/rest/v1/audit_logs?order=created_at.desc&limit=50" \
-H "apikey: $SUPABASE_SERVICE_ROLE_KEY" \
-H "Authorization: Bearer $SUPABASE_SERVICE_ROLE_KEY"
Step 3: 格式化輸出
json
{
"table": "esg_metrics",
"count": 42,
"data": [...],
"queried_at": "2026-07-01T00:00:00Z"
}

Common Queries

用途端點篩選條件
ESG 指標/esg_metricscompany_id=eq.<id>
審計日誌/audit_logsorder=created_at.desc
用戶資料/usersemail=eq.<email>
報告記錄/reportsstatus=eq.completed
記憶碎片/memory_shardsskill_id=eq.<id>

Common Pitfalls

  1. 使用 anon key — 查詢敏感資料必須用 service_role_key
  2. 未分頁 — 大量資料必須加 limit 和 offset
  3. 暴露金鑰 — 輸出中勿包含 API 金鑰
  4. 寫入操作 — 本技能僅供查詢,寫入請用 Supabase Dashboard 或 Migration

Verification Checklist

  • [ ] 環境變數正確
  • [ ] 查詢語法正確
  • [ ] 結果格式化完整
  • [ ] 未洩露敏感資訊
  • [ ] 僅執行 SELECT 操作

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dingjun1028/esggo/oa-supabase-query/badge)](https://verified-skill.com/skills/dingjun1028/esggo/oa-supabase-query)

Something wrong with this skill or its page? Tell us.