Prompt Builder
Assemble role, task, context, examples, format and constraints into a clean, reusable prompt.
Start from a template
Building blocks
Your prompt
Anatomy of a strong prompt
- Role sets expertise and voice. Task is one clear, specific instruction.
- Context gives the facts to work from — models can't read your mind or your files.
- Examples (few-shot) show the exact pattern you want, which beats long descriptions.
- Format tells the model what the answer should look like — essential if code will parse it.
- Constraints such as "answer only from the context" and "say I don't know" reduce hallucinations.