19copied

The 'list it and stop' prompt that keeps Bolt and Lovable in scope

Change only [file]. Do not modify any other file.
If you believe another file must change for this to work, list the file and the reason, then STOP and wait for my answer.
Promptboltprompting
shared by leo_prompts14 this week
19copied

RLS policy template for owner-only tables

alter table your_table enable row level security;
Snippetcursorsupabasesecuritypostgres
shared by mira_dev10 this week
15copied

Prompt that makes Cursor write tests that test something

Write a test for [component/hook]. Before writing code, list in one line each:
1. What the user does (render, click, type, wait).
Promptcursortestingreact
shared by dev_ana10 this week
9copied

Prompt for asking 'why' before 'fix' in Windsurf

Do not change any code yet.
Here is the error: [paste].
Promptwindsurfpromptingstuck-loop
shared by dana_ships9 this week
18copied

CLAUDE.md security section for anything that touches the database

## Data access rules
CLAUDE.mdcursorsecuritysupabasedatabase
shared by mira_dev8 this week
12copied

Keep the Supabase service role key out of the browser bundle

// lib/supabase/admin.ts
import "server-only";
Snippetcursorsupabasesecuritynextjs
shared by mira_dev8 this week
8copied

One-line Lovable prompt that adds RLS to every table

For every table in the public schema that has a user_id or owner_id column: enable Row Level Security and add policies so a signed-in user can only select, insert, update and delete rows where that column equals auth.uid
Promptlovablesupabasesecurity
shared by noor_builds8 this week
17copied

When the agent loops: reset the context instead of prompting harder

1. Notice it: the same file changed three times and the error is unchanged.
2. Stop. Do not send another prompt in this session.
Workflowclaude-codecontext-windowprompting
shared by felix_codes7 this week
16copied

CLAUDE.md section that keeps sessions short and cheap

## Keep the session small
CLAUDE.mdclaude-codecontext-windowcosts
shared by leo_prompts7 this week
16copied

Test mode to live mode: the Stripe switch list that cost me a weekend

1. Swap all four at once: secret key, publishable key, webhook signing secret, price IDs. Live price IDs are not the test ones.
2. Create the webhook endpoint again in live mode. The test signing secret does not verify l
Workflowlovablestripepaymentsdeployment
shared by priya_ships7 this week
15copied

Refactor prompt with an acceptance test the agent has to show you

Refactor [target] so that [goal].
Promptclaude-coderefactoringtesting
shared by felix_codes7 this week
14copied

Handoff note prompt for when the context window is nearly full

We are nearly out of context. Do not write code.
Promptclaude-codecontext-windowprompting
shared by felix_codes7 this week
12copied

Glossary-first CONTEXT.md template

# CONTEXT
CLAUDE.mdwindsurfcontext-windowprompting
shared by leo_prompts7 this week
10copied

An updated_at column that is always correct

alter table posts
  add column if not exists updated_at timestamptz not null default now();
Snippetchatgptpostgresdatabase
shared by ines_data7 this week
9copied

Fail the boot when an environment variable is missing

// lib/env.ts
import { z } from "zod";
Snippetwindsurfnextjsdeploymentsecurity
shared by lena_ops7 this week
7copied

Cursor rule: no new packages without asking

# .cursorrules
- Never add a dependency. If you think one is needed, name it, link its npm page, and ask.
CLAUDE.mdcursorpromptingnode
shared by rosa_m7 this week
13copied

Query to find tables without RLS in Supabase

select schemaname, tablename
from pg_tables
Snippetcursorsupabasesecuritydatabase
shared by olu_backend6 this week
11copied

Verify a Supabase token in FastAPI as a dependency

# auth.py
import os
Snippetcursorfastapipythonauth
shared by olu_backend6 this week
8copied

Find the missing index behind a slow list query

-- 1. Find the slow ones (enable the pg_stat_statements extension first)
select calls, round(mean_exec_time::numeric, 1) as avg_ms, query
Snippetcursorpostgresperformancedatabase
shared by olu_backend6 this week
6copied

Bug report template that gets a useful answer from any AI tool

Here is what is broken. Do not change code yet.
Promptchatgptprompting
shared by leo_prompts6 this week
Load more