Google ยท for Engineers, tech leads and indie hackers

Gemini prompts for developers

Curated Gemini prompts written for engineers, tech leads and indie hackers. Every prompt below is a copy-paste scaffold โ€” replace the brackets, run it in Gemini, and ship.

Why Gemini for developers

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'll ship

  • 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

Starter Gemini prompts

Copy any prompt, replace the brackets, paste into Gemini. No account, no gate.

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.

Packs to run in Gemini

All packs

Unlock the full Developers pack

Every prompt, model-specific variants, and weekly new drops.

See pricing