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.19copied
RLS policy template for owner-only tables
alter table your_table enable row level security;
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).9copied
Prompt for asking 'why' before 'fix' in Windsurf
Do not change any code yet.
Here is the error: [paste].18copied
CLAUDE.md security section for anything that touches the database
## Data access rules
12copied
Keep the Supabase service role key out of the browser bundle
// lib/supabase/admin.ts
import "server-only";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.uid17copied
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.16copied
CLAUDE.md section that keeps sessions short and cheap
## Keep the session small
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 l15copied
Refactor prompt with an acceptance test the agent has to show you
Refactor [target] so that [goal].
14copied
Handoff note prompt for when the context window is nearly full
We are nearly out of context. Do not write code.
12copied
Glossary-first CONTEXT.md template
# CONTEXT
10copied
An updated_at column that is always correct
alter table posts
add column if not exists updated_at timestamptz not null default now();9copied
Fail the boot when an environment variable is missing
// lib/env.ts
import { z } from "zod";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.13copied
Query to find tables without RLS in Supabase
select schemaname, tablename
from pg_tables11copied
Verify a Supabase token in FastAPI as a dependency
# auth.py
import os8copied
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, query6copied
Bug report template that gets a useful answer from any AI tool
Here is what is broken. Do not change code yet.