Postgres Best Practices

द्वारा Supabase

Supabase से Postgres प्रदर्शन अनुकूलन और सर्वोत्तम अभ्यास। Postgres क्वेरी, स्कीमा डिज़ाइन या डेटाबेस कॉन्फ़िगरेशन लिखने, समीक्षा करने या अनुकूलित करते समय इस कौशल का उपयोग करें।

npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practices

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

PriorityCategoryImpactPrefix
1Query PerformanceCRITICALquery-
2Connection ManagementCRITICALconn-
3Security & RLSCRITICALsecurity-
4Schema DesignHIGHschema-
5Concurrency & LockingMEDIUM-HIGHlock-
6Data Access PatternsMEDIUMdata-
7Monitoring & DiagnosticsLOW-MEDIUMmonitor-
8Advanced FeaturesLOWadvanced-

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

संबंधित Skills

context7-cli
upstash
ctx7 CLI का उपयोग लाइब्रेरी दस्तावेज़ प्राप्त करने, AI कोडिंग कौशल प्रबंधित करने और Context7 MCP कॉन्फ़िगर करने के लिए करें। जब उपयोगकर्ता "ctx7" या "context7" का उल्लेख करे तो सक्रिय हो जाएँ,…
official
next
vercel
Next.js एडॉप्टर जो @emulators/adapter-next के माध्यम से एमुलेटर को सीधे Next.js ऐप में एम्बेड करने के लिए है। इसका उपयोग तब करें जब उपयोगकर्ता को Next.js में एमुलेटर एम्बेड करने की आवश्यकता हो, सेटअप…
official
dart-skills-lint-setup
flutter
इस कौशल का उपयोग तब करें जब आपको पहली बार किसी Dart प्रोजेक्ट में AI एजेंट कौशल के लिए सत्यापन सेट अप करने की आवश्यकता हो। लिंटर को dev_dependency के रूप में जोड़ता है, एक… बनाता है
official
copilot-review
github
Copilot को पुल रिक्वेस्ट रिव्यू फीडबैक की योजना बनाने, संबोधित करने और उस पर प्रतिक्रिया देने का तरीका सिखाएं।
official
n8n:design-system
n8n-io
n8n:design-system — AI एजेंटों के लिए एक इंस्टॉल करने योग्य कौशल, जो n8n-io/n8n द्वारा प्रकाशित है।
official
pre-submit-pr
huggingface
पुल रिक्वेस्ट सबमिट करने से पहले बदलावों को मान्य करें। लिंट, टेस्ट, संरेखण समीक्षा और आरएफसी विश्लेषण सहित व्यापक जांच चलाएं। इसका उपयोग बनाने से पहले करें...
official
image-annotations
github
स्क्रीनशॉट, आरेख और छवियों पर PIL का उपयोग करके कॉलआउट आयत, तीर, लेबल और रंग-कोडित हाइलाइट्स जोड़ें। एनिमेटेड GIF के लिए नियम शामिल हैं…
official
convex-db
convex-dev
Convex DB का उपयोग करें — एक लैटिस-समर्थित SQL डेटाबेस। उपयोग तब करें जब उपयोगकर्ताओं को क्वेरी लिखने, JDBC या PostgreSQL क्लाइंट के माध्यम से कनेक्ट करने, टेबल बनाने, डेटा डालने/क्वेरी करने में मदद कर रहे हों,…
official