A well-structured prompt has four core properties: a clear task definition, sufficient context for the model to ground its answer, explicit output constraints (format, length, tone), and any examples needed to close the gap between what you want and what the model naturally produces. When I inherit a bad prompt, I treat it like a failing test suite: I collect a representative eval set of ten to twenty input/output pairs, run the prompt, and categorize every failure by type (hallucination, wrong format, missing nuance, over-verbosity). From that taxonomy I fix the highest-frequency failure class first, usually by adding a single clarifying constraint or a well-chosen few-shot example, then re-run the eval before touching anything else. I version every edit in a prompt registry so I can compare metrics across iterations rather than relying on gut feel. The whole loop is: hypothesize a root cause, make one targeted change, measure against the eval set, and commit only if the metric improves.
Insider read
Really testing: Whether you treat prompt writing as an engineering discipline with measurement rather than a creative writing exercise. Interviewers want to see a feedback loop, not intuition.
The tell: Weak candidates describe prompt tweaks in isolation ("I just added more detail"). Strong candidates immediately mention an eval set and a versioning strategy.
Follow-up: "Walk me through a real prompt you improved. What metric moved and by how much?"
Say this"I always start with an eval set before touching the prompt itself. If I don't have a ground-truth benchmark, any change I make is just a guess. Once I have ten or twenty labeled examples, I can treat prompt iteration like a CI loop: one change, measure, commit or revert."