3copied

How I shrink a bug down to something worth asking about

1. Write the one sentence: "When I [action], I expect [x], I get [y]."
2. Find the smallest screen that still shows it. Drop the rest of the steps.
Workflowchatgptpromptingtesting
shared by sam_builds3 this week
3copied

Prompt that turns a bug report into a failing test first

Here is a bug: [what I did] leads to [what happened], I expected [what should happen].
Promptcopilottestingpython
shared by marco_py3 this week
3copied

Scope file for Bolt projects

# SCOPE
CLAUDE.mdboltprompting
shared by tomvibes3 this week
10copied

CLAUDE.md testing section that stops the agent from deleting failing tests

## Tests
CLAUDE.mdcursortesting
shared by marco_py2 this week
10copied

Firestore rules: owner-only documents

rules_version = '2';
service cloud.firestore {
Snippetcopilotfirebasesecurity
shared by sven_fire2 this week
6copied

Prompt that makes the agent write the rollback with the migration

Write migration [number] that [change].
Promptcursordatabasepostgres
shared by ines_data2 this week
5copied

Triage order when production is down and an agent wrote the code

1. Is it you or everyone? Open the site in a private window on mobile data.
2. Status pages: your host, your database, your auth provider. Two minutes, saves an hour.
Workflowcopilotdeploymentvercel
shared by jonas_k2 this week
5copied

Storage bucket policies so users only reach their own files

insert into storage.buckets (id, name, public)
values ('avatars', 'avatars', false)
Snippetcursorsupabasesecurity
shared by olu_backend2 this week
2copied

Prompt that gives you three options instead of one confident answer

I need to [goal]. Do not write code.
Promptchatgptprompting
shared by dana_ships2 this week
2copied

File and folder conventions section so the tool stops inventing directories

## Where things go
CLAUDE.mdboltpromptingnextjs
shared by tomvibes2 this week
11copied

Vercel deploy checklist for Next.js + Supabase

1. Env vars in BOTH Production and Preview on Vercel, exact same names as .env.local.
2. NEXT_PUBLIC_SITE_URL set to the production URL.
Workflowclaude-codevercelnextjsdeployment
shared by jonas_k1 this week
6copied

ruff config that blocks swallowed exceptions

# pyproject.toml
[tool.ruff.lint]
Snippetcopilotpythontesting
shared by marco_py1 this week
4copied

Cold-start warmer as a Vercel cron

// vercel.json
{ "crons": [{ "path": "/api/warm", "schedule": "*/10 * * * *" }] }
Snippetclaude-codedeploymentperformancevercel
shared by jonas_k1 this week
4copied

Upgrading dependencies with an agent without a two-day debug session

1. `npm outdated`, then split the list: patch and minor in one branch, each major in its own.
2. Read the release notes yourself for anything major.
Workflowcopilotnodetesting
shared by sven_fire1 this week
1copied

v0 prompt that respects the design tokens you already have

Build [component] using only what is already in this project:
- Colours, radii and shadows: the CSS variables in globals.css. No hex values.
Promptv0reacttailwind
shared by yuki_builds1 this week
1copied

Screenshot prompt that fixes the layout without rewriting the component

Screenshot attached. Only the [element] is wrong: I see [what it does] instead of [what I want].
Promptv0reacttailwindmobile
shared by rosa_m1 this week
7copied

Migration review checklist before letting an agent run SQL

Before running any AI-written migration:
- [ ] Contains DROP or ALTER TYPE? Requires a written reason in a comment.
Workflowcursordatabasepostgres
shared by ines_data
5copied

Prompt for a bug that only happens on a real phone

This works in the desktop browser and fails on my phone. Do not change code yet.
Promptclaude-codemobileperformance
shared by ben_mobile
0copied

Keeping the monthly API bill under control in an AI feature

1. Log every call: model, input tokens, output tokens, cents, user. One row per call.
2. Cap the input. Truncate user text to a length you have tested, and never send a whole document by default.
Workflowboltcostsapi
shared by amara_v
0copied

Prompt for a screen that got slow and you do not know when

[Screen] used to load quickly and now feels slow. Do not change code.
Promptclaude-codeperformancereact
shared by ben_mobile