S
supabase-postgres-best-practices
by @supabasev
4.8(2,000)
Supabase Postgres性能优化专家,提供数据库架构设计、查询优化、索引策略等最佳实践指导,帮助开发者编写高效的SQL语句,提升应用性能,适合数据库管理员和后端工程师日常使用。
安装方式
npx skills add supabase/agent-skills --skill supabase-postgres-best-practicescompare_arrows
Before / After 效果对比
1 组使用前
在Supabase中使用Postgres时,缺乏性能优化和最佳实践指导,导致查询效率低下,数据库响应缓慢。开发人员难以编写高效代码。
使用后
提供Postgres性能优化和最佳实践,指导编写、审查和优化查询与架构。显著提升数据库性能,确保应用高效运行。
description SKILL.md
Supabase Postgres Best Practices
Comprehensive performance optimization guide for Postgres, maintained by Supabase. Contains rules across 8 categories, prioritized by impact to guide automated query optimization and schema design.
When to Apply
Reference these guidelines when:
- Writing SQL queries or designing schemas
- Implementing indexes or query optimization
- Reviewing database performance issues
- Configuring connection pooling or scaling
- Optimizing for Postgres-specific features
- Working with Row-Level Security (RLS)
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Query Performance | CRITICAL | query- |
| 2 | Connection Management | CRITICAL | conn- |
| 3 | Security & RLS | CRITICAL | security- |
| 4 | Schema Design | HIGH | schema- |
| 5 | Concurrency & Locking | MEDIUM-HIGH | lock- |
| 6 | Data Access Patterns | MEDIUM | data- |
| 7 | Monitoring & Diagnostics | LOW-MEDIUM | monitor- |
| 8 | Advanced Features | LOW | advanced- |
How to Use
Read individual rule files for detailed explanations and SQL examples:
references/query-missing-indexes.md
references/schema-partial-indexes.md
references/_sections.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect SQL example with explanation
- Correct SQL example with explanation
- Optional EXPLAIN output or metrics
- Additional context and references
- Supabase-specific notes (when applicable)
References
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量131.4K
评分4.8 / 5.0
版本
更新日期2026年4月30日
对比案例1 组
用户评分
4.8(2,000)
5
36%
4
49%
3
14%
2
1%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
时间线
创建2026年3月14日
最后更新2026年4月30日