cn-supabase-postgres-best-practices
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cn-supabase-postgres-best-practices" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-99916ecc35a4cc1d93539b26e5214ec6a9df7e0edb91daf402d4b7767fcbe6cf. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/cn-supabase-postgres-best-practices before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Postgres performance optimization and Supabase best practices: Provides methods for optimizing Postgres database performance and recommendations for applying best practices on the Supabase platform, helping improve query efficiency, indexing strategy, architectural adjustments, and operational processes.
Introduction source: third_party · org-02qudk26 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "supabase-postgres-best-practices"
description: "Postgres 性能优化和 Supabase 的最佳实践。在编写、审查或优化 Postgres 查询、模式设计或数据库配置时使用此技能。"
license: "\"MIT\""
metadata:
author: supabase
version: "1.1.1"
organization: Supabase
date: January 2026
abstract: Comprehensive Postgres performance optimization guide for developers using Supabase and Postgres. Contains performance rules across 8 categories, prioritized by impact from critical (query performance, connection management) to incremental (advanced features). Each rule includes detailed explanations, incorrect vs. correct SQL examples, query plan analysis, and specific performance metrics to guide automated optimization and code generation.
displayName: "Supabase Postgres 最佳实践"
summary: "Postgres 性能优化和 Supabase 的最佳实践"
version: 1.0.0
tags: [postgres, 表现, 优化, 最好的, Postgres, Supabase]Supabase Postgres 最佳实践
Postgres 综合性能优化指南,由 Supabase 维护。包含跨 8 个类别的规则,按影响进行优先级排序,以指导自动查询优化和架构设计。
何时申请
在以下情况下请参考这些指南:
- 编写 SQL 查询或设计模式
- 实施索引或查询优化
- 审查数据库性能问题
- 配置连接池或扩展
- 针对 Postgres 特定功能进行优化
- 使用行级安全性 (RLS)
按优先级规则类别
| 优先 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 查询性能 | 关键 | query- |
| 2 | 连接管理 | 关键 | conn- |
| 3 | 安全与 RLS | 关键 | security- |
| 4 | 架构设计 | 高 | schema- |
| 5 | 并发与锁定 | 中高 | lock- |
| 6 | 数据访问模式 | 中 | data- |
| 7 | 监控与诊断 | 低-中 | monitor- |
| 8 | 高级功能 | 低 | advanced- |
如何使用
阅读各个规则文件以获取详细说明和 SQL 示例:
块0块
每个规则文件包含:
- 简要解释为什么它很重要
- 不正确的 SQL 示例及解释
- 正确的 SQL 示例及解释
- 可选的 EXPLAIN 输出或指标
- 其他上下文和参考资料
- Supabase 特定注释(如适用)
参考文献
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Postgres 性能优化和 Supabase 最佳实践指南,对开发者具有明确实用价值
- 内容覆盖8个优先级类别,从关键查询性能到高级功能,结构完整
- 包含具体 SQL 示例和解释,指导性强
Highlights
- 触发词精准完整,覆盖多种使用场景(编写/审查/优化查询、模式设计、数据库配置等)
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 文档结构清晰,有明确的章节划分和使用说明
- frontmatter 完整,包含作者、版本、组织等信息
- 包含端到端示例和权威参考链接
Highlights
- 内容来源明确,由 Supabase 官方维护
- 引用权威文档(PostgreSQL 官方文档、Supabase 文档等)
- 示例和参数正确,覆盖主要异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- supabase.com
- wiki.postgresql.org
- www.postgresql.org
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.