All Infographics
Common Prompt Mistakes and Fixes infographic - Vague Instructions, Missing Context, and Format Omissions

Click image to open full size

Computer Science

Common Prompt Mistakes and Fixes

Vague Instructions, Missing Context, and Format Omissions

Prompting is the process of telling an AI system what task to do, what output to produce, and what constraints to follow. Small wording changes can strongly affect the quality, accuracy, and usefulness of the response. Students and developers often get poor results not because the model is weak, but because the prompt is too vague, too broad, or missing key details. Learning common prompt mistakes helps people get faster, clearer, and more reliable outputs.

A strong prompt usually includes a goal, relevant context, output format, and any limits or success criteria. For example, asking for a summary in 5 bullet points for a 10th grade audience gives the model more structure than simply saying summarize this. Good prompting is an iterative process where you test, revise, and narrow the request based on the result. This makes prompt engineering a practical computer science skill connected to human computer interaction, information design, and problem solving.

Key Facts

  • Better prompts often follow: task + context + constraints + output format.
  • Specificity reduces ambiguity and usually improves response quality.
  • A useful pattern is Input + Instruction + Output format = stronger prompt.
  • Adding constraints such as length = 150 words or items = 5 can make results easier to evaluate.
  • Iterative refinement can be modeled as Prompt_2 = Prompt_1 + clarification + feedback.
  • Examples in the prompt can improve consistency, especially for classification, style, and formatting tasks.

Vocabulary

Prompt
A prompt is the text or instruction given to an AI system to tell it what task to perform.
Context
Context is the background information the model needs in order to give a relevant answer.
Constraint
A constraint is a rule or limit such as length, format, tone, or allowed sources.
Output format
Output format is the required structure of the response, such as bullets, a table, or a paragraph.
Iteration
Iteration is the process of improving a prompt step by step after reviewing the model's response.

Common Mistakes to Avoid

  • Using a vague prompt like explain physics, which is too broad and gives the model no audience, topic scope, or format to target. Add a specific topic, audience level, and desired output.
  • Leaving out constraints, which often leads to answers that are too long, too short, or in the wrong style. State limits such as word count, number of examples, or required tone.
  • Asking for multiple unrelated tasks in one prompt, which can produce disorganized or incomplete results. Break the request into ordered steps or separate prompts.
  • Not checking and revising the first output, which treats prompting like a one shot process even though refinement usually improves quality. Use follow up prompts to clarify errors, missing details, or formatting problems.

Practice Questions

  1. 1 A student writes this prompt: write about climate change. Rewrite it so the AI gives a 120 word explanation for 8th grade students in 3 bullet points with one real world example.
  2. 2 You need exactly 4 study tips in a numbered list, each tip 1 sentence long, for a college calculus student before an exam. Write a complete prompt that includes the task, audience, constraints, and output format.
  3. 3 A prompt says: make this better. Explain why this prompt is weak and identify at least three pieces of missing information that would make the response more useful.