A prompt has five components. You don't need all five every time, but the more you include, the better the output.
Role + Context: Who Claude should act as, and the situation
Task: What you specifically want
Constraints: What limits the output (length, scope, style, what to avoid)
Format: How the output should be structured
Examples / Anti-examples: What good looks like, or what to avoid
You don't need to label these. Just include them.
Example: Weak prompt vs. structured prompt
❌ Weak:
✅ Structured: