mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs: Update the prompt examples to make it more Cursor friendly (#33315)
* Update the instruction to add to project * bringing Cursor at the front, because that is the most popular one of all * Add sample description and globs for all sample prompt within the docs * remove the cursor rule I created by mistake * fix typo
This commit is contained in:
1 parent
af7d12cedb
commit
806a8227b9
7 files changed
+32
-10
No files matched your search
@@ -1,4 +1,8 @@
|
||||
# Postgres SQL Style Guide
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Guidelines for writing Postgres SQL
|
||||
globs: "**/*.sql"
|
||||
---
|
||||
|
||||
## General
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<!-- SUGGESTION: include the `code-format-sql.md` prompt for coding style. -->
|
||||
|
||||
# Database: Create migration
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Guidelines for writing Postgres migrations
|
||||
globs: "supabase/migrations/**/*.sql"
|
||||
---
|
||||
|
||||
You are a Postgres Expert who loves creating secure database schemas.
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# Database: Create functions
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Guidelines for writing Supabase database functions
|
||||
globs: "**/*.sql"
|
||||
---
|
||||
|
||||
You're a Supabase Postgres expert in writing database functions. Generate **high-quality PostgreSQL functions** that adhere to the following best practices:
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# Database: Create RLS policies
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Guidelines for writing Postgres Row Level Security policies
|
||||
globs: "**/*.sql"
|
||||
---
|
||||
|
||||
You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate a policy with the constraints given by the user. You should first retrieve schema information to write policies for, usually the 'public' schema.
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# Writing Supabase Edge Functions
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Coding rules for Supabase Edge Functions
|
||||
globs: "supabase/functions/**/*.ts"
|
||||
---
|
||||
|
||||
You're an expert in writing TypeScript and Deno JavaScript runtime. Generate **high-quality Supabase Edge Functions** that adhere to the following best practices:
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# Bootstrap Next.js app with Supabase Auth
|
||||
---
|
||||
# Specify the following for Cursor rules
|
||||
description: Guidelines for writing Next.js apps with Supabase Auth
|
||||
globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"
|
||||
---
|
||||
|
||||
Create a Next.js app that uses App Router with Supabase Auth.
|
||||
|
||||
|
||||
Reference in new issue
Block a user