💡 摘要
该技能为在使用Supabase时的Postgres性能优化提供指导。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发)。以最小权限运行,并在生产环境启用前审计代码与依赖。

Supabase Agent Skills
Agent Skills to help developers using AI agents with Supabase. Agent Skills are folders of instructions, scripts, and resources that agents like Claude Code, Cursor, Github Copilot, etc... can discover and use to do things more accurately and efficiently.
The skills in this repo follow the Agent Skills format.
Installation
npx skills add supabase/agent-skills
Claude Code Plugin
You can also install the skills in this repo as Claude Code plugins
/plugin marketplace add supabase/agent-skills /plugin install postgres-best-practices@supabase-agent-skills
Available Skills
Postgres performance optimization guidelines from Supabase. Contains rules across 8 categories, prioritized by impact.
Use when:
- Writing SQL queries or designing schemas
- Implementing indexes or query optimization
- Reviewing database performance issues
- Configuring connection pooling or scaling
- Working with Row-Level Security (RLS)
Categories covered:
- Query Performance (Critical)
- Connection Management (Critical)
- Schema Design (High)
- Concurrency & Locking (Medium-High)
- Security & RLS (Medium-High)
- Data Access Patterns (Medium)
- Monitoring & Diagnostics (Low-Medium)
- Advanced Features (Low)
Usage
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Optimize this Postgres query
Review my schema for performance issues
Help me add proper indexes to this table
Skill Structure
Each skill contains:
SKILL.md- Instructions for the agentAGENTS.md- Compiled rules document (generated)rules/- Individual rule filesmetadata.json- Version and metadata
License
MIT
优点
- 全面的性能指导。
- 支持各种优化任务。
- 与AI代理的轻松集成。
缺点
- 仅限于Postgres优化。
- 可能需要熟悉SQL。
- 并非所有技能对每个用户都相关。
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 supabase.
