Retext
GeminiAI AssistantFor Tech Leads

Gemini Prompts for Tech Leads

Tech leads need help weighing architecture options, writing design docs and decision records, structuring code review feedback, and breaking large projects into plans a team can execute. These Gemini prompts start from that: fill in your situation once and reuse it. The worked example below is a architecture design task, one of the most common for tech leads.

Installs as a snippet — type ;tech-gemini to paste this prompt anywhere on your Mac.
Prompt Template
I'm a tech lead and need help with [task, e.g. architecture decisions].

What I have:
- [the material involved: code, draft, notes or data]

What a good result looks like:
- [the outcome and its format]

Ask me one clarifying question if something important is missing, then give the result.

About my work
- Team and system: [e.g. 6 engineers, Rails monolith, Postgres, 2M monthly users]
- Decision or problem: [e.g. whether to split out the billing service]
- Constraints: [e.g. ship in one quarter, no new infrastructure vendors]

Context
- Reference material: [paste it below, or attach the file]

How to use this prompt

  1. 1

    Open Gemini

    Start a new chat in Gemini and paste the prompt.

  2. 2

    Give it context

    Attach files or images the prompt refers to, or paste the text below the instructions.

  3. 3

    Review and iterate

    Reply in the same chat to refine the result.

  4. 4

    Save what you repeat

    For a prompt you run often, save it as a Gem with custom instructions.

Working in Gemini

  • •Gemini accepts images and files as well as text, so attach a screenshot when the task is visual.
  • •Ask for the exact output format; otherwise answers tend to come with extra headings and summaries.
  • •If you use Google Docs or Sheets, ask for output you can paste straight in, such as a table.

Example task: Architecture Design

What you give it

Building: an appointment booking app for small clinics. Patients book a slot, clinics manage calendars, patients get an SMS reminder 24 hours before.
Scale: 5,000 users, low traffic.
Team: 2 full-stack developers, no ops person.
Stack: Postgres required.
Hard part: reminders must go out reliably even if a server restarts.

What a good answer looks like (shortened)

1. Components
- One web app (monolith) serving the UI and API.
- Postgres for clinics, slots, bookings and a reminders table.
- A background job worker using a Postgres-backed queue, so there is nothing new to operate.
- An SMS provider called from the worker.

2. Data flow: booking
1. Patient picks a slot. The app inserts the booking and a reminder row due 24 hours before, in one transaction.
2. The worker polls for due reminders, sends the SMS, and marks the row sent.

3. Tradeoffs
- A monolith is simplest for two people. Split only if one part needs to scale on its own.
- Polling adds up to a minute of delay, which is fine for reminders. Use an idempotency key so a restart never sends twice.

4. Build first: booking with the transactional reminder row.

Tips for better results

  • •Ask the AI to argue against your preferred option before you commit. A good counterargument now is cheaper than a design doc rewrite after review.
  • •Attach files or images the prompt refers to, or paste the text below the instructions.
  • •Check this before you use the output: check that recommendations fit your team's actual size and operating capacity, since AI often defaults to patterns built for much larger organizations.

Check before you use it: Check that recommendations fit your team's actual size and operating capacity, since AI often defaults to patterns built for much larger organizations.

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Task

Architecture Design: Replace the first line with: Help me design the architecture for a system.

Review an existing design

Replace What we are building with: Here is our current architecture [paste diagram or description]. Find the weak points at [target scale].

Second task

Change the task line to: [Code review guidance].

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;tech-gemini in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;tech-gemini.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

Should tech leads use AI to write design docs?

It is useful for structure, listing alternatives and spotting missing sections like rollout and rollback. The tradeoffs and the final recommendation need to reflect what you know about your team and system.

Can I save this prompt in Gemini?

Yes, as a Gem with the prompt as its instructions. A Retext snippet also works if you switch between Gemini and other tools.

Does Gemini need the material pasted in?

Attach or paste anything the prompt refers to. It can't see your files unless you share them in the chat.

How do I reuse this prompt without copying it every time?

Click Add to Retext to save it as a snippet. Then type ;tech-gemini in any Mac app, including your AI tool, and the full prompt is pasted in.

Related Templates

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.