本文へスキップ
Skillpedia
データベース48k · #5883

supabase-postgres-best-practices

できること

このツールは、Supabaseが推奨するベストプラクティスに従って、PostgreSQLデータベースのパフォーマンスを最適化する手助けをします。より速いクエリの書き方、データの整理方法、データベースを安全かつ効率的に設定する方法についてアドバイスを提供します。

使う場面

  • ✓新しいクエリを書くときや、テーブルを整理するとき。
  • ✓データベースの動作が遅いとき。
  • ✓データベースのセキュリティを設定するとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/supabase-postgres-best-practices/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/supabase-postgres-best-practices/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“SQLクエリをもっと速くするには、どうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、包括的な最適化ガイドを参照して動作します。クエリ、テーブル設計、データベースの設定を分析し、改善案を提示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Supabase Postgres Best Practices

When to Use

Use this skill when you need postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

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

Limitations

  • Use this skill only when the task clearly matches its upstream product or API scope.
  • Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
  • Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
よくある質問

「インデックス」とは何ですか?

インデックスは、本の索引のようなものです。データベースがすべてを読まなくても、必要な情報をすばやく見つけられるようにします。

「Row-Level Security(RLS)」とは何ですか?

RLSは、データベース内の各行ごとに、誰がどのデータを閲覧または変更できるかを制御する仕組みです。

このツールは自動で変更を加えますか?

いいえ。推奨事項と例を提示するだけです。変更は、ご自身でデータベースに適用する必要があります。

詳細

作者による元の説明

Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5883
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル