syahiidkamil avatar

Supabase Postgres Best Practices

This is Supabase's internal Postgres optimization guide packaged as a skill. It covers eight categories of performance rules, from critical items like missing indexes and connection pooling to advanced features, each with before/after SQL examples and query plan analysis. Use it when writing queries, designing schemas, or debugging performance issues. The rules are well-prioritized by impact, which is helpful when you're trying to figure out what actually matters versus what's just nice to have. Heavy emphasis on RLS patterns and Supabase-specific gotchas, so it's most valuable if you're in that ecosystem, though the core Postgres advice applies anywhere.

GitHub stars
298
last updated
Jun 11, 2026

Install

$ npx -y skills add syahiidkamil/software-engineer-ai-agent-atlas --skill supabase-postgres-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

Sponsors

Details

Repository
github.com/syahiidkamil/software-engineer-ai-agent-atlas
Categories
Backend & APIs, Documentation, AI & Agent Building, Debugging, Databases
First seen
Jun 11, 2026

More from syahiidkamil/software-engineer-ai-agent-atlas

All 17
1TryGhost avatarCreate database migrationTryGhost/GhostCreate a database migration to add a table, add columns to an existing table, add a setting, or otherwise change the schema of Ghost's MySQL database.0skills.sh installs
2samber avatargolang-graphqlsamber/cc-skills-golangImplements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions,38.5Kskills.sh installs
3expo avatarexpo-api-routesexpo/skillsGuidelines for creating API routes in Expo Router with EAS Hosting37.2Kskills.sh installs
4firebase avatarfirebase-firestore-enterprise-native-modefirebase/agent-skillsComprehensive guide for Firestore enterprise native including provisioning, data model, security rules, and SDK usage. Use this skill when the user needs help s36Kskills.sh installs
5google avatargemini-apigoogle/skillsUse when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform. Guides the usage of th18.2Kskills.sh installs
6affaan-m avatarbackend-patternsaffaan-m/everything-claude-codebackend patterns8.7Kskills.sh installs