
Supabase Postgres Best Practices
作者 supabasec9be0e931b79MIT2.7K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6天前更新
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
仅公开文件列表。将技能安装到工作区后即可查看文件内容。
| 路径 | 大小 | 类型 |
|---|---|---|
| CHANGELOG.md | 5.6 KB | text/markdown |
| references/advanced-full-text-search.md | 1.4 KB | text/markdown |
| references/advanced-jsonb-indexing.md | 1.4 KB | text/markdown |
| references/conn-idle-timeout.md | 1.3 KB | text/markdown |
| references/conn-limits.md | 1.3 KB | text/markdown |
| references/conn-pooling.md | 1.3 KB | text/markdown |
| references/conn-prepared-statements.md | 1.5 KB | text/markdown |
| references/_contributing.md | 4 KB | text/markdown |
| references/data-batch-inserts.md | 1.3 KB | text/markdown |
| references/data-n-plus-one.md | 1.3 KB | text/markdown |
| references/data-pagination.md | 1.3 KB | text/markdown |
| references/data-upsert.md | 1.4 KB | text/markdown |
| references/lock-advisory.md | 1.5 KB | text/markdown |
| references/lock-deadlock-prevention.md | 1.8 KB | text/markdown |
| references/lock-short-transactions.md | 1.3 KB | text/markdown |
| references/lock-skip-locked.md | 1.3 KB | text/markdown |
| references/monitor-explain-analyze.md | 1.4 KB | text/markdown |
| references/monitor-pg-stat-statements.md | 1.4 KB | text/markdown |
| references/monitor-vacuum-analyze.md | 1.5 KB | text/markdown |
| references/query-composite-indexes.md | 1.4 KB | text/markdown |
| references/query-covering-indexes.md | 1.3 KB | text/markdown |
| references/query-index-types.md | 1.5 KB | text/markdown |
| references/query-missing-indexes.md | 1.2 KB | text/markdown |
| references/query-partial-indexes.md | 1.3 KB | text/markdown |
| references/schema-constraints.md | 1.8 KB | text/markdown |
| references/schema-data-types.md | 1.4 KB | text/markdown |
| references/schema-foreign-key-indexes.md | 1.6 KB | text/markdown |
| references/schema-lowercase-identifiers.md | 1.7 KB | text/markdown |
| references/schema-partitioning.md | 1.5 KB | text/markdown |
| references/schema-primary-keys.md | 1.8 KB | text/markdown |
| references/_sections.md | 1.6 KB | text/markdown |
| references/security-privileges.md | 1.5 KB | text/markdown |
| references/security-rls-basics.md | 1.3 KB | text/markdown |
| references/security-rls-performance.md | 2.1 KB | text/markdown |
| references/_template.md | 1 KB | text/markdown |
| SKILL.md | 3.2 KB | text/markdown |
来源与署名
来源:supabase/agent-skills位于skills/supabase-postgres-best-practices提交c9be0e9
许可证: MIT
内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。
更多来自 supabase/agent-skills 的技能
更多Software Development技能

Playground
anthropics
构建自包含的交互式 HTML 演练场,包含控件、实时预览和可复制的提示词输出。

M5 Onboard
anthropics
通过 USB 检测 M5Stack ESP32 开发板,刷写 UIFlow 2.0 固件并安装 MicroPython 应用包。

Cardputer Buddy
anthropics
指导迭代 Cardputer-Adv 的 MicroPython 应用包:添加应用、通过 USB 串口推送文件、查看日志并运行 REPL 命令。

Web Design Guidelines
vercel-labs
依据从远程来源获取的 Web Interface Guidelines 审查 UI 代码,并以 file:line 形式报告问题。

Vercel React Native Skills
vercel-labs
React Native 与 Expo 最佳实践规则,涵盖列表性能、动画、导航、UI 模式、状态与 monorepo 配置。

Vercel React Best Practices
vercel-labs
Vercel 的 React 与 Next.js 性能指南,以 70 条规则的形式用于编写、审查和重构代码。