YANGMAO.AI · PROMPT ENGINEERING
AI Prompt Guides
Model-specific prompt techniques, copy-ready templates, and open-source prompt library entry points.
10 models · 42 principles · 25 templates
🎨 Image model prompt guides
🧠 Universal prompt engineering rules
1. Set the role
Define expertise and context before the task.
You are a senior [role]...2. Provide examples
Few-shot examples help models copy your desired structure and tone.
Example input → example output3. Specify format
Ask for table, JSON, Markdown, bullets, or code explicitly.
Output format: Markdown table4. Add constraints
Tell the model what to avoid, not just what to do.
Do not use vague business jargon.5. Iterate
Improve one section at a time instead of rewriting the whole prompt.
Keep the structure, make section 2 more concrete.6. Match model to task
Prompts work better when paired with the right model and cost profile.
Compare API cost before scaling.Prompt → model → API cost
After choosing a prompt workflow, pick the right free API or paid model path.