Postgres Best Practices
作成者: Supabase
SupabaseによるPostgresのパフォーマンス最適化とベストプラクティス。Postgresのクエリ、スキーマ設計、データベース設定の作成、レビュー、最適化を行う際にこのスキルを使用してください。
npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practicesSupabase 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/query-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
関連スキル
scvi-tools
anthropic
scvi-toolsを用いたシングルセル解析のための深層学習。このスキルは、ユーザーが(1) scVI/scANVIによるデータ統合とバッチ補正を必要とする場合に使用されるべきです。…
official
otel-semantic-conventions
dash0hq
OpenTelemetry Semantic Conventionsの専門家。テレメトリー属性の選択、適用、レビューを行う際に使用します。属性選択を含むタスクで起動します。
official
csharp-docs
github
C#の公開APIとメンバー向けのXMLドキュメント標準とパターン。<summary>は現在形の動詞で始まる一文の説明に使用し、<remarks>は実装の詳細、使用上の注意、追加のコンテキストに使用します。メンバーの種類に応じて特定のタグを使用します:メソッドには<param>と<returns>、プロパティには<value>、ジェネリックには<typeparam>、スローされる例外には<exception cref>。ブールパラメータと戻り値、列挙型には所定の表現パターンに従います...
official
db-migrate
medusajs
Run database migrations in Medusa
official
firecrawl-download
firecrawl
Experimental. Convenience command that combines map + scrape to save an entire site as local files.
official
web-design-guidelines
vercel
UIコードをWebインターフェースガイドラインに準拠しているかレビューします。「UIをレビューして」「アクセシビリティを確認して」「デザインを監査して」「UXをレビューして」「サイトをチェックして」と依頼された場合に使用します。
official
azure-resource-lookup
microsoft
サブスクリプション全体のAzureリソースをResource Graphクエリで高速に検出・インベントリ化します。単一のコマンドでサブスクリプションやリソースグループを横断し、あらゆるAzureリソースタイプ(VM、ストレージアカウント、Webアプリ、コンテナアプリ、Key Vaultなど)をクエリ可能。孤立リソース、欠落タグ、異常状態、リソースインベントリ数のクロスカット検索をサポート。利用可能な場合は単一リソースタイプのクエリを専用MCPツールにルーティングし、それ以外はAzure Resource Graphにフォールバックします。
official
mastra-best-practices
mastra-ai
Mastraの規約に関するクイックリファレンス。エージェントとワークフローの使い分け、必要なTypeScript設定、プロジェクト構造、一般的なコードパターン。
official