Prompt Patterns and Structure
Design prompts with clear structure to improve reliability and speed.
Core Structure
- Role: who is the assistant? (e.g., “You are a technical editor.”)
- Task: what to do, with constraints (e.g., “Edit for clarity; keep bullets.”)
- Inputs: provide data or examples.
- Output: format and quality bar (e.g., rubric or checklist).
Helpful Patterns
- Few-shot examples: show good and bad outputs.
- Chain-of-thought via steps or plan; ask for bullets not hidden reasoning.
- Self-critique: “Rate against this rubric; list fixes, then revise.”