AI Prompts
Prompts for working with Supabase using AI-powered IDE tools
We've curated a selection of prompts to help you work with Supabase using your favorite AI-powered IDE tools, such as Cursor or GitHub Copilot.
How to use#
Copy the prompt to a file in your repo.
Use the "include file" feature from your AI tool to include the prompt when chatting with your AI assistant. For example, in Cursor, add them as project rules, with GitHub Copilot, use #<filename>, and in Zed, use /file.
Prompts#
[
Supabase Realtime AI Assistant Guide
](/docs/guides/getting-started/ai-prompts/use-realtime)[
Bootstrap Next.js v16 app with Supabase Auth
](/docs/guides/getting-started/ai-prompts/nextjs-supabase-auth)[
Writing Supabase Edge Functions
](/docs/guides/getting-started/ai-prompts/edge-functions)[
Database: Declarative Database Schema
](/docs/guides/getting-started/ai-prompts/declarative-database-schema)[
Database: Create RLS policies
](/docs/guides/getting-started/ai-prompts/database-rls-policies)[
Database: Create functions
](/docs/guides/getting-started/ai-prompts/database-functions)[
Database: Create migration
](/docs/guides/getting-started/ai-prompts/database-create-migration)[
Postgres SQL Style Guide
](/docs/guides/getting-started/ai-prompts/code-format-sql)
Use in different environments#
You can load these prompts into various tools. Here are common options and where to place the prompt:
Environment
Where to put prompt
Installation instructions
Cursor
Project rules (.cursor/rules/*.md or .mdx)
GitHub Copilot
.github/copilot-instructions.md
Custom instructions in Copilot
JetBrains IDEs
guidelines.md
Gemini CLI
GEMINI.md
VS Code
.instructions.md
Configure .instructions.md
Windsurf
guidelines.md
Configure guidelines.md