Writing Better Prompts
How to talk to AI so it actually does what you want.
Lesson Notes
Prompt quality is the single biggest factor in output quality. A good prompt includes: (1) context โ what language/framework you are using, (2) the goal โ what you want built or fixed, (3) constraints โ what it should NOT do, and (4) output format โ should it be a function, a component, a SQL query? The more specific you are, the less you have to edit.
Quick Check
0/5 answered ยท 60% to passQ1.Which prompt is most likely to produce useful output from an AI coding tool?
Q2.What does including "context" in a prompt mean?
Q3.What is a "constraint" in a prompt?
Q4.If the AI produces a wrong answer, the best next step is:
Q5.Specifying the output format in a prompt (e.g., "return a function") is useful because:
Your Challenge
+10 XPTake a vague prompt like "make a login form" and rewrite it as a specific, detailed prompt. Then paste both into your AI tool and compare the output quality.