supabase-automation
自动化 Supabase 操作
通过 Rube MCP 集成自动化 Supabase 数据库查询、架构检查、项目管理和 SQL 执行,实现无缝的数据库管理。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“supabase-automation”。 List all tables in my Supabase project
预期结果:
找到 5 个表:users、products、orders、inventory、analytics。每个表都包含行数估计和大小信息。
正在使用“supabase-automation”。 Get the schema for the users table
预期结果:
Users 表列:id (uuid)、email (text)、created_at (timestamp)、status (text)。外键:无。索引:id (主键)、email (唯一)。
正在使用“supabase-automation”。 Check service health for my project
预期结果:
所有服务健康:auth (运行正常)、db (运行正常)、rest (运行正常)、storage (运行正常)、realtime (运行正常)。
安全审计
安全All 203 static findings are false positives. The skill uses Rube MCP (a legitimate Model Context Protocol server) to interact with Supabase APIs. The flagged patterns are: (1) Backtick syntax in markdown documentation for code examples - not actual shell execution; (2) Reference to rube.app/mcp endpoint - legitimate service URL; (3) Documentation about handling API keys - not actual secret access; (4) SQL query examples - not crypto or reconnaissance. This is a genuine Supabase automation skill with no malicious intent.
质量评分
你能构建什么
数据库开发者工作流
在 AI 助手内查询表、检查架构和执行 SQL 进行数据操作,无需离开
项目管理
通过 AI 命令管理 Supabase 项目、组织和监控服务健康状况
架构探索和类型生成
发现数据库结构并自动生成 TypeScript 类型,实现类型安全的应用
试试这些提示
List all tables in my Supabase project. First find the project reference, then list tables in the public schema.
Query the users table to find all records where the status equals 'active', ordered by created_at descending, limit 10.
Run a SQL query to count users by status and return the results in a readable format.
Generate TypeScript types for all tables in the public schema of my Supabase project.
最佳实践
- 开始工作流前先调用 RUBE_SEARCH_TOOLS 获取当前工具架构
- 对 SELECT 查询使用 read_only: true 以防止意外修改
- 运行任何 Supabase 操作前验证连接状态显示为 ACTIVE
避免
- 不要对 PostgreSQL 数组列使用 JSON 数组语法 - 使用 ARRAY['item1', 'item2']
- 不要省略大小写敏感表名的架构前缀 - 使用 "public"."MyTable"
- 检查服务健康状态时不要将 services 数组留空