Have AI list the impact scope before changing code

A ready-to-use “Programming” AI prompt template, designed and tested with Zed. Replace the (bracketed) parts below with your own needs.

Prompt template
I want to change this code: (paste the code, or the file path and requirement). Before you touch anything, do just one thing — list the impact scope: 1) which files and functions this change touches; 2) what places call it that might break after the change; 3) whether tests cover this logic, and if not which cases to add; 4) whether there's a smaller, lower-risk alternative approach. **Don't write any code yet** — wait until I confirm the scope. If you need to see certain files to judge, just tell me which — don't guess. Answer in Traditional Chinese with Taiwan usage.

How to use this prompt

  1. Copy the whole prompt above and paste it into Zed or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Zed — High-performance, AI-powered code editor.