🦀 ClawHub
Volcengine Supabase
by @techstylex
Manage Volcengine Supabase workspaces, branches, SQL queries, migrations, Edge Functions, Storage, and TypeScript type generation via a local CLI. Run uv run...
TERMINAL
clawhub install volcengine-supabase📖 About This Skill
name: volcengine-supabase description: Manage Volcengine Supabase workspaces, branches, SQL queries, migrations, Edge Functions, Storage, and TypeScript type generation via a local CLI. Run uv run ./scripts/call_volcengine_supabase.py to get real-time results. metadata: {"clawdbot":{"emoji":"🧩","homepage":"https://www.volcengine.com/","requires":{"bins":["uv"]},"os":["darwin","linux"]},"openclaw":{"emoji":"🧩","homepage":"https://www.volcengine.com/","requires":{"bins":["uv"]},"os":["darwin","linux"]},"moltbot":{"emoji":"🧩","homepage":"https://www.volcengine.com/","requires":{"bins":["uv"]},"os":["darwin","linux"]}}
火山引擎 Supabase
本 Skill 用于在对话中充当火山引擎 Supabase 的智能运维与开发代理。
它会:
scripts/call_volcengine_supabase.py 获取实时结果运行方式
# 方式 1:使用 uv(推荐)
uv run ./scripts/call_volcengine_supabase.py [options]方式 2:使用 python(需预装依赖)
python ./scripts/call_volcengine_supabase.py [options]
前置条件
VOLCENGINE_ACCESS_KEY、VOLCENGINE_SECRET_KEY(如果在沙箱环境/vefaas IAM 环境下运行,将自动获取临时凭证,可不配置环境变量)VOLCENGINE_REGION、DEFAULT_WORKSPACE_ID、READ_ONLY、SUPABASE_WORKSPACE_SLUG、SUPABASE_ENDPOINT_SCHEMEuv pip install -r requirements.txt 或 pip install -r requirements.txt标准使用流程
1. 先确认目标资源:workspace_id 或 branch_id
2. 优先执行只读查询,确认现状
3. 需要变更时,再执行写操作
4. 变更后再次查询,确认结果已生效
常用命令示例
# 查看可访问的 workspace
uv run ./scripts/call_volcengine_supabase.py list-workspaces查看 workspace 详情
uv run ./scripts/call_volcengine_supabase.py describe-workspace --workspace-id ws-xxxx获取 workspace URL
uv run ./scripts/call_volcengine_supabase.py get-workspace-url --workspace-id ws-xxxx查看分支
uv run ./scripts/call_volcengine_supabase.py list-branches --workspace-id ws-xxxx执行 SQL
uv run ./scripts/call_volcengine_supabase.py execute-sql --workspace-id ws-xxxx --query "SELECT * FROM pg_tables LIMIT 5"从文件执行 migration
uv run ./scripts/call_volcengine_supabase.py apply-migration --workspace-id ws-xxxx --name create_todos_table --query-file ./migration.sql部署 Edge Function
uv run ./scripts/call_volcengine_supabase.py deploy-edge-function --workspace-id ws-xxxx --function-name hello --source-file ./index.ts创建 Storage bucket
uv run ./scripts/call_volcengine_supabase.py create-storage-bucket --workspace-id ws-xxxx --bucket-name uploads --public
能力范围
工作区与分支
list-workspacesdescribe-workspacecreate-workspacepause-workspacerestore-workspaceget-workspace-urlget-keyslist-branchescreate-branchdelete-branchreset-branch数据库
execute-sqllist-tableslist-migrationslist-extensionsapply-migrationgenerate-typescript-typesEdge Functions / Storage
list-edge-functionsget-edge-functiondeploy-edge-functiondelete-edge-functionlist-storage-bucketscreate-storage-bucketdelete-storage-bucketget-storage-config应用开发参考
在使用本 Skill 管理 Supabase 资源的同时,以下文档提供应用开发场景的指导:
| 需求 | 文档 |
|------|------|
| 将 Supabase 接入 TS/Python 应用(SDK 初始化 + CRUD) | references/app-integration-guide.md |
| 数据库表结构设计与迁移规范 | references/schema-guide.md |
| 行级安全策略(RLS)配置 | references/rls-guide.md |
| Edge Function 编写与部署 | references/edge-function-dev-guide.md |
> 💡 典型工作流:先用 CLI 创建 workspace / 建表 / 配置 RLS,再参考应用开发文档在业务代码中集成 Supabase SDK。
注意事项
get-keys 默认脱敏,只有明确需要时才加 --revealreset-branch 会丢失未追踪变更,且后端当前会忽略 migration_versionREAD_ONLY=true 时,所有写操作会被拒绝参考资料
references/tool-reference.mdreferences/workflows.mdreferences/sql-playbook.mdreferences/app-integration-guide.mdreferences/schema-guide.mdreferences/rls-guide.mdreferences/edge-function-dev-guide.md