supabase-postgres-best-practices
Skill137 starsChanged 6 months agoMITView on GitHub
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
We split this skill into the rules it gives an agent
1 rule. 1 is common, 0 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 63 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 42
Read individual rule files for detailed explanations and SQL examples:
“Common” is measured: kept by at least 6 in 10 of the 63 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
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
| 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/schema-partial-indexes.md
references/_sections.mdEach 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
Other versions72 projects use a version of this.
Word for word · 8
- vobase/vobase★ 60100% same
- devcon-plus-member-platform/devconplusClaudeCode★ 1100% same
- Typeless-Git/skills★ 1100% same
- chriswestt/claude-skills★ 0100% same
- JukCattani/skills-claude-juk★ 0100% same
- kennyolofsson23-netizen/claude-code-config★ 0100% same
- matthull/my-skills★ 0100% same
- ramybarsoum/claude-skills★ 0100% same
Edited · 61
- openai/plugins★ 7.4k99% same
- supabase/agent-skills★ 2.8k66% same
- crbnos/carbon★ 2.8k97% same
- FidelusAleksander/ghcertified★ 97797% same
- imbhargav5/nextbase-nextjs-supabase-starter★ 82766% same
- syahiidkamil/Software-Engineer-AI-Agent-Atlas★ 40466% same
- JetBrains/skills★ 38691% same
- julianromli/ai-skills★ 21585% same
- Dimon94/dverity★ 10766% same
- Dimon94/skills★ 10766% same
51 more not listed
Wrote their own version · 3
- baekenough/oh-my-customcode★ 42same name
- drubleat/mobile-stack-skills★ 4same name
- ecocee/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use supabase, stripe-best-practices and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillsupabase
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector).
Also in 24 projects that use this
OpenAISkillstripe-best-practices
Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial accounts, integration surfaces (Checkout, Payment Element), and migrating from deprecated Stripe APIs. Use when building, modifying, or reviewing any Stripe integration — including accepting payments, building marketplaces, integrating Stripe, processing payments, setting up subscriptions, or creating connected accounts.
Also in 3 projects that use this
VercelSkillai-elements
Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.
Also in 3 projects that use this
studio-lgtmSkillmake-interfaces-feel-better
Apply design engineering best practices to polish UI components - use when reviewing or improving interfaces, animations, typography, or interaction details.
Also in 3 projects that use this
DatabricksSkillshadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
Also in 8 projects that use this
VercelSkillvercel-react-view-transitions
Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
Also in 3 projects that use this
In this repository59 other files it gives its agents.
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/CLAUDE.mdCLAUDE.md
- 360-panorama-viewerSkill
- 3d-web-experienceSkill
- acid-labels-pptxSkill
- ai-image-generationSkill
- ai-video-generationSkill
- apricot-ritual-pptxSkill
- azure-host-pptxSkill
- better-auth-best-practicesSkill
- botanical-blur-pptxSkill
- building-native-uiSkill
- canvas-designSkill
- capy-cortexSkill
- capy-video-gen-skillSkill
- claude-code-templatesSkill
- contract-first-agentsSkill
- coral-geyser-pptxSkill
- create-design-system-rulesSkill
- data-storytellingSkill
- film-creatorSkill
- find-skillsSkill
- frontend-slidesSkill
- gbro-collage-brollSkill
- generate-imageSkill
- goplacesSkill
- gradient-calendar-pptxSkill
- happycapy-feishuSkill
- happycapy-skill-creatorSkill
- happycapy-social-publisherSkill
- html-over-markdownSkill
- image-enhancerSkill
- latex-documentSkill
- llm-councilSkill
- mobile-app-developerSkill
- mobile-designSkill
- nano-banana-proSkill
- neon-motion-pptxSkill
- next-best-practicesSkill
- olive-rose-pptxSkill
- oss-contributor-swarmSkill
- pdfSkill
- pptxSkill
- prompt-improverSkill
- redbook-creator-publishSkill
- reddit-post-writerSkill
- reddit-post-writerSkill
- resume-assistantSkill
- signal-green-pptxSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- treatment-plansSkill
- video-downloaderSkill
- video-framesSkill
- weatherSkill
- world-class-carouselSkill
- writing-clearly-and-conciselySkill
- xiaohongshu-recruiterSkill
- youtube-musicSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

