Prompt guides
How to write better AI prompts
Practical, honest guides to writing prompts that get better results — clarity, examples, step-by-step reasoning, structured output, system prompts, and fixing a bad answer. No invented statistics, no overselling what a prompt can fix.
Last reviewed:
Pick a guide
- How to write a clear, specific AI promptThe fundamentals: context, constraints, format, and examples.
- Few-shot prompting: giving a model examplesShowing a model what you want by giving it examples.
- Chain-of-thought prompting: asking a model to reason step by stepAsking a model to work through steps before it answers.
- How to write a prompt that asks for structured outputWriting the prompt that asks for JSON, a table, or another fixed shape.
- System prompts vs user prompts: what each one doesWhat a system prompt does differently from what you type in chat.
- What to do when the first AI answer is not rightWhat to change when the first answer is not right.
- How prompting differs for code, writing, and analysisHow the right approach shifts between code, writing, and analysis.