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:
Tyler authored and GitHub committed 2025-02-05 10:16:25 +09:00
1 parent af7d12cedb
commit 806a8227b9
7 files changed
+32 -10

No files matched your search

+5 -1
View File
@@ -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.
+5 -1
View File
@@ -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:
+5 -1
View File
@@ -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.
+5 -1
View File
@@ -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:
+5 -1
View File
@@ -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.