Prompts for code review, refactors, debugging, architecture decisions and writing tests that actually run.
What this collection does
Coding prompts work best when they're scoped: one file, one feature, one decision. This pack treats the model as a senior pair — give it the constraint, the code, and the format you want the answer in (diff, full file, list of suggestions). The prompts here cover the work engineers actually repeat: code review, targeted refactors, debugging from a stack trace, choosing between two architectures, and generating tests that hit real edge cases instead of trivial happy paths.
What you can ship in an hour
Code reviews that catch real issues, not just style nits
Targeted refactors with before/after diffs
Debug from a stack trace + minimal reproduction
Generate unit tests that cover edge cases first
Free starter prompts
Copy-and-paste starters for the most common developers jobs. No signup needed.
Targeted code review
You are a senior engineer doing a code review. The constraint: [CONSTRAINT — e.g. must run on Cloudflare Workers]. Review this code:
[CODE]
Return: (1) bugs or runtime errors, (2) violations of the constraint, (3) up-to-3 refactors with a one-line rationale each, in priority order. Skip style nits.