GitHub Copilot 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 GitHub Copilot 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.
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 - Files involved: [list the files, or reference them in the chat] - How I build and test: [e.g. npm test]
How to use this prompt
- 1
Open GitHub Copilot
Open Copilot Chat in your editor and paste the prompt.
- 2
Give it context
Select the relevant code first, or reference files in the chat, so Copilot answers about your code rather than in general.
- 3
Review and iterate
Ask follow-ups in the same thread, and copy or insert the suggestion only after you have read it.
- 4
Save what you repeat
Keep repository-wide guidance in a .github/copilot-instructions.md file so it applies to every chat in that repo.
Working in GitHub Copilot
- •Inline suggestions only see the file you are in. Use Copilot Chat for anything that spans several files.
- •Copilot Chat has built-in slash commands such as /explain, /fix and /tests. The prompt here gives more control when you need a specific format.
- •Short, concrete requests work best: name the function, the input and the expected result.
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.
- •Select the relevant code first, or reference files in the chat, so Copilot answers about your code rather than in general.
- •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-copilot in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.
- Click Add to Retext. The prompt installs as a snippet with the trigger ;tech-copilot.
- Change the trigger in Retext if you prefer a different one.
- 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.
Does this prompt work with inline suggestions or only chat?
Use it in Copilot Chat. Inline suggestions complete code as you type and don't take long instructions like this.
How do I give Copilot project conventions once?
Add them to .github/copilot-instructions.md in the repository. Copilot Chat includes that file with your requests in that repo.
How do I reuse this prompt without copying it every time?
Click Add to Retext to save it as a snippet. Then type ;tech-copilot 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.