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.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].
3copied
Scope file for Bolt projects
# SCOPE
10copied
CLAUDE.md testing section that stops the agent from deleting failing tests
## Tests
10copied
Firestore rules: owner-only documents
rules_version = '2';
service cloud.firestore {6copied
Prompt that makes the agent write the rollback with the migration
Write migration [number] that [change].
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.5copied
Storage bucket policies so users only reach their own files
insert into storage.buckets (id, name, public)
values ('avatars', 'avatars', false)2copied
Prompt that gives you three options instead of one confident answer
I need to [goal]. Do not write code.
2copied
File and folder conventions section so the tool stops inventing directories
## Where things go
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.6copied
ruff config that blocks swallowed exceptions
# pyproject.toml
[tool.ruff.lint]4copied
Cold-start warmer as a Vercel cron
// vercel.json
{ "crons": [{ "path": "/api/warm", "schedule": "*/10 * * * *" }] }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.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.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].
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.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.
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.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.