技能 supabase-automation
📦

supabase-automation

安全

自动化 Supabase 操作

通过 Rube MCP 集成自动化 Supabase 数据库查询、架构检查、项目管理和 SQL 执行,实现无缝的数据库管理。

支持: Claude Codex Code(CC)
🥉 74 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“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 (运行正常)。

安全审计

安全
v1 • 2/25/2026

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.

1
已扫描文件
242
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
100
安全
91
规范符合性

你能构建什么

数据库开发者工作流

在 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.
执行复杂 SQL
Run a SQL query to count users by status and return the results in a readable format.
生成 TypeScript 类型
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 数组留空

常见问题

什么是 Rube MCP?
Rube MCP 是一个模型上下文协议服务器,提供与 Supabase 交互的工具。它是来自 Composio 的合法服务。
使用此技能需要 API 密钥吗?
不需要。Rube MCP 不需要 API 密钥。您只需要在客户端将其配置为 MCP 服务器。
此技能可以修改我的数据库吗?
可以,但仅限于使用 RUN_SQL_QUERY 工具时。SELECT_FROM_TABLE 是只读的。为安全起见,始终使用 read_only: true。
项目引用有什么要求?
项目引用必须正好是 20 个小写字母 (a-z)。模式:^[a-z]{20}$
我可以用此技能创建边缘函数吗?
不可以。此技能仅提供只读工具,用于列出和检查边缘函数。
如何处理大小写敏感的表名?
在 SQL 中对大小写敏感的标识符使用双引号,如 SELECT * FROM "MyTable" 而非 SELECT * FROM MyTable。

开发者详情

文件结构

📄 SKILL.md