1. What makes a good prompt? Walk me through how you would write one for a new task.
A strong answer covers:
- Clear goal, audience and context
- Specific instructions and constraints
- Defined output format, often with an example
- Test on varied inputs and iterate
Show model answer
A good prompt is clear enough that a smart new colleague with no background could do the task. I start by understanding the goal: who will read the output and what it should achieve. Then I write the prompt in parts: the role and context, the task in plain words, important constraints like length, tone and what to avoid, and the exact output format. If the format or style is tricky, I add one or two examples. I separate any input text with clear delimiters. After that, I test it on a varied set of real inputs, not just one, and look at where it fails. Then I adjust the instruction that caused the failure and test again. I keep versions so I can compare and roll back.