360 Secure SkillHub
360 安全技能中心

Supabase Tool

面向 Supabase 数据库的命令行技能,支持执行 SQL、按表查询、统计行数、插入记录、检查 API 健康状态并审计 RLS 策略;依赖 bash、curl 和 python3,使用前需配置 Supabase 凭据。

loutai0307-prog
loutai0307-prog
热度 47.14
最近更新 2026-05-11 17:43:55
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / 数据处理 / DevOps / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add supabase-tool
Metadata
name
supabase-tool
description
Generate Supabase API curl commands and SQL query helpers. Use when querying tables, counting rows, inserting records, checking database health, auditing RLS policies, or listing tables. No credentials stored — commands are generated for you to run.

supabase-tool

Triggers on

supabase query, database health, count rows, insert record, rls policy, sql query, supabase table, postgresql

What This Skill Does

Query, inspect, and manage Supabase databases. Run SQL, count rows, insert records, check health, and audit RLS policies.

Commands

query

Run a raw SQL query.

bash scripts/script.sh query "SELECT COUNT(*) FROM skills WHERE is_ours=true"

select

Query a table with optional filters and limit.

bash scripts/script.sh select <table> [--limit N] [--filter col=eq.val]

count

Count rows — all tables or a specific one.

bash scripts/script.sh count
bash scripts/script.sh count skills

insert

Insert a record into a table.

bash scripts/script.sh insert <table> '<json>'

health

Check API health and response time with row counts.

bash scripts/script.sh health

rls

Audit RLS policy issues using Supabase Security Advisor.

bash scripts/script.sh rls

help

Show all available commands.

bash scripts/script.sh help

Requirements

  • bash 4+
  • curl
  • python3

Powered by BytesAgain | bytesagain.com