Prompt & Context Engineering·Question 5 of 68Basic

What are the most common prompt anti-patterns you'd flag in a code review?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

The big four:

Negation-heavy instructions. "Don't mention pricing. Never apologise. Do not use bullet points." Each negation plants the concept it forbids (attention doesn't have a NOT gate), and models follow positive behavioural specs far more reliably. Rewrite as the desired behaviour: "If asked about pricing, redirect to the sales team." Keep the occasional hard prohibition, but if a prompt is 40% "don't," it's fighting itself.

Full worked answer

The big four:

Negation-heavy instructions. "Don't mention pricing. Never apologise. Do not use bullet points." Each negation plants the concept it forbids (attention doesn't have a NOT gate), and models follow positive behavioural specs far more reliably. Rewrite as the desired behaviour: "If asked about pricing, redirect to the sales team." Keep the occasional hard prohibition, but if a prompt is 40% "don't," it's fighting itself.

Contradictory constraints. "Be comprehensive and detailed. Keep responses under 100 words." "Always answer from the provided context. Be maximally helpful even when context is missing." The model resolves contradictions arbitrarily and inconsistently per request - which surfaces as "flaky" behaviour people misattribute to the model. Prompts need the same consistency review as requirements docs, and an explicit precedence rule when tensions are real ("when brevity and completeness conflict, prefer brevity").

Mega-prompts. A 4,000-token system prompt with 60 numbered rules accumulated over months of incident-driven patching. Instruction-following degrades as rule count grows; rules in the middle get lost; nobody knows which rules are load-bearing. Fixes: prune against an eval set (delete a rule, re-run, keep the deletion if nothing regresses), move per-situation guidance into tool descriptions or retrieved instruction snippets, split distinct jobs into distinct prompts/agents.

Prompt-as-database. Pasting the product catalogue, the full policy manual, or org charts into the system prompt. It bloats every request, goes stale silently, invites lost-in-the-middle failures, and turns content updates into prompt deployments. Facts belong in retrieval or tools; the prompt should hold behaviour, not data. (Caveat: a small, genuinely stable fact set can live in a cached prefix deliberately - the anti-pattern is doing it by default.)

Honourable mentions: vague quality adjectives ("be helpful and accurate") that carry no information, few-shot examples that contradict the written rules, and role-play framing doing work that explicit instructions should do.

What a good answer covers

  • Do not use bullet points." Each negation plants the concept it forbids (attention doesn't have a NOT…
  • Rewrite as the desired behaviour
  • Keep responses under 100 words." "Always answer from the provided context
  • Be maximally helpful even when context is missing." The model resolves contradictions arbitrarily and…
  • Prompts need the same consistency review as requirements docs, and an explicit precedence rule when…

Key terms: Negation-heavy instructions · Contradictory constraints · Mega-prompts · Prompt-as-database

Interviewer follow-ups to expect

  1. How would you refactor a 60-rule mega-prompt without regressing behaviour?

  2. Why do negations sometimes work fine - when is "never do X" appropriate?

  3. How do you detect contradictions in a prompt systematically?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep