Back to Prompt Library

Model Prompt Generation

A meta-prompt for generating stronger prompts from a rough task description, constraints, and expected output.

Reviewed: 2026-03-18

Use this when you know the task you want the model to do but want the model to draft the actual prompt more systematically.

Prompt Template

You are a prompt engineer.

Given the task below, write the best possible prompt for another language model.

Task:
{task}

Context:
- Audience: {audience}
- Output format: {output_format}
- Constraints: {constraints}
- Quality bar: {quality_bar}

Return:
1. The final prompt.
2. Why this prompt is structured this way.
3. Optional variants for stricter or faster output.

Customize the variables before using the template in production workflows.

Best for

  • Turning rough task ideas into reusable prompts
  • Building internal prompt libraries
  • Improving prompt quality before automation

Expected output

  • Final prompt
  • Reasoning for the structure
  • Variants for different tradeoffs

Variables to customize

task

What the downstream model should do

Example: Summarize support calls into CRM-ready notes

audience

Who the output is for

Example: sales operations team

output_format

Expected output shape

Example: bullet summary plus JSON fields

constraints

Non-negotiable limits

Example: No invented details; preserve customer quotes exactly

quality_bar

What good output looks like

Example: concise, accurate, ready to paste into a CRM

Optimization tips

  • Give the meta-prompt enough context to optimize for the right output.
  • State the quality bar explicitly so the generated prompt is not generic.
  • Ask for variants if you need a faster and a stricter version.

Example use case

Generate a prompt that turns bug reports into clean engineering triage notes.

Expected result

The model gives you a reusable prompt plus a rationale and variants you can test.

References