Quick Takeaways
- When you are unsure how to structure a task, ask the model: "Before answering, ask me 3 questions to clarify the requirements."
- Break complex workflows into two steps: Step 1 (Outline & Fact Extraction) and Step 2 (Drafting from the approved outline).
Task Objective & Prerequisites
To write stronger AI prompts, include five clear components: (1) Task Objective (what to produce), (2) Audience & Context (who will read it and why), (3) Grounded Input Data (the exact facts or documents to use), (4) Negative Constraints (what words, assumptions, or formats to avoid), and (5) Output Format & Few-Shot Example (the exact structure to return).
What You Need Before Starting
- •Any major AI assistant (ChatGPT, Claude, or Gemini).
- •Your raw notes, data points, or reference text to ground the response.
- •1 short example of the tone or structure you expect.
Step-by-Step Implementation Guide
State the Concrete Task and Deliverable First
Open with an action verb and specify the exact deliverable length and structure (for example: "Draft a 400-word technical comparison" or "Extract a 5-column Markdown table").
Task: Write a 300-word troubleshooting section explaining how to fix CORS errors in an Express API proxy.
Supply Grounded Source Facts Inside Delimiters
Paste the exact facts, logs, or transcript excerpts inside clear XML tags or markdown headings (such as `<source_notes>...</source_notes>`) so the model does not confuse your reference material with your instructions.
Use only the facts inside <release_notes>...</release_notes>. If a detail is not mentioned there, do not invent it.
Add Explicit Negative Constraints
Tell the model what NOT to do. Specify words to ban, sections to skip, and assumptions to avoid.
Constraints: Do not include a generic introduction or conclusion summary. Do not use exaggerated promotional adjectives or filler superlatives. Keep sentences under 25 words.
Include 1–2 Few-Shot Examples of the Target Style
Show a single sample row or paragraph demonstrating the exact rhythm and formatting you want.
Match the style of this example: "**Symptom:** Build fails with code 127. **Cause:** Node binary path is missing from CI environment. **Fix:** Export PATH before running npm ci."
Ask the Model to Critique or Verify Its Draft
For important deliverables, add a final instruction asking the assistant to check its output against your constraints before finishing.
After drafting the table, verify that every row contains a concrete verification command and zero placeholder values.
Common Mistakes & How to Fix Them
Mistake: Prompt is 1,500 words of conflicting instructions
Fix: Prune redundant adjectives and organize instructions into bulleted sections: Task, Source Data, Constraints, and Output Format.
Mistake: Model ignores constraints placed in the middle of a huge text dump
Fix: Place your reference documents at the top inside `<context>` tags, and put your Task and Constraints at the very end of the prompt.
Frequently Asked Questions
Do XML tags like <context> really help in prompts?
Yes. Clear delimiters help language models—especially Claude and GPT models—distinguish where reference material ends and where your instructions begin.
Should I be polite or concise in prompts?
Clarity and explicit structure matter far more than conversational filler. Direct bulleted requirements and concrete examples produce the most consistent results.