How to Write Better Prompts for Claude and ChatGPT
Most disappointing AI responses come from vague prompts, not weak models. Here’s a repeatable method for writing prompts that get useful answers on the first try.
๐ Related reading: Digital Nomad Lab ยท Home Tech Lab
In This Guide
Steps
Step 1: State the Goal, Not Just the Task
Instead of “write an email,” say “write a short email asking my landlord to fix a leaking faucet, polite but firm.” The goal and tone context change the output dramatically.
Step 2: Give the Model Relevant Context Up Front
Paste in the actual document, code, or background details you’re working with rather than describing them from memory โ models perform much better with source material directly in the prompt.
Step 3: Specify the Format You Want Back
If you want a table, bullet list, or specific word count, say so explicitly. Models default to prose unless told otherwise, which often isn’t what you actually need.
Step 4: Ask for One Task at a Time on Complex Requests
For multi-step work, break it into a sequence of prompts rather than one giant request โ this makes it easier to catch and correct errors early instead of discovering them at the end.
Step 5: Iterate Instead of Starting Over
If the first response is close but not quite right, tell the model specifically what to change rather than rewriting your original prompt from scratch โ this preserves useful context from the first attempt.
Tips
- โ Save prompt templates that work well for recurring tasks (emails, summaries, code reviews).
- โ Ask the model to explain its reasoning briefly if you need to verify a factual claim.
- โ Use explicit constraints (“under 150 words,” “no bullet points”) when format matters.
Warnings
โ ๏ธ Always verify factual claims, statistics, or citations an AI model provides โ models can generate plausible-sounding but incorrect information.
Q&A
Does prompt length matter?
Not directly โ a longer prompt with relevant context usually outperforms a short vague one, but padding with irrelevant detail doesn’t help.
Is there a difference in prompting Claude vs. ChatGPT?
The core principles (clear goal, context, format) apply to both, though each model has slightly different strengths worth testing for your specific use case.
Fact-checked based on public sources as of July 20, 2026.