13 coding prompts
Code review, commit messages, tests, naming, migrations, and the debugging prompts that ask for a diagnosis instead of a guess.
Review this API surface
How it reads at the call site, and what it lets you do wrong.
Explain this code
What it does, why it might be written this way.
Explain this error
What it means, why it happened here, what to try first.
Find the edge cases
Where this breaks, before a user finds out.
Name this thing
Options that say what it is, with the trade-offs.
First look at a performance problem
What to measure before changing anything.
Refactor without changing behaviour
Smallest safe steps, each one verifiable.
Regex from a description
The pattern, plus what it deliberately excludes.
Review this diff
Correctness pass that insists on a test check.
Write a minimal reproduction
Strip it to the smallest thing that still fails.
Write a commit message from this diff
Imperative subject, a body that explains why.
Write a data migration
Forward path, failure path, and how to verify it.
Write tests for this
Cases that could actually fail, not coverage theatre.
Other categories
Keep these coding prompts a keystroke away
SnipTray puts the whole library behind one shortcut, turns each blank into a field, and pastes the finished prompt into whatever app you're in.