Cursor 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 Cursor 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 Cursor
Open the chat panel in Cursor and paste the prompt as a new message.
- 2
Give it context
Use @ to attach the files or folders the prompt is about, so Cursor reads them instead of guessing.
- 3
Review and iterate
Review each proposed diff before you accept it, then reply in the same chat to adjust.
- 4
Save what you repeat
Put rules you repeat (stack, style, test command) in a project rules file so every chat starts with them.
Working in Cursor
- •Cursor works on files in your open project, so name the files and functions you mean.
- •For a small, local change, select the code and use the inline edit command instead of the chat panel.
- •Long chats drift. Start a new chat for a new task and re-attach only the files it needs.
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.
- •Use @ to attach the files or folders the prompt is about, so Cursor reads them instead of guessing.
- •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-cursor 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-cursor.
- 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.
Should I paste code into Cursor or reference the file?
Reference the file with @. Cursor reads the current version from your project, which avoids pasting stale code and keeps the prompt short.
Where do I keep instructions Cursor should always follow?
In a project rules file. Keep the prompt on this page for the task itself, and keep stable conventions (framework, naming, test command) in rules.
How do I reuse this prompt without copying it every time?
Click Add to Retext to save it as a snippet. Then type ;tech-cursor 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.