Prompt Engineering

Prompt Engineering 101: Write Prompts That Work Every Time

The five building blocks behind every good prompt, with templates you can reuse.

Prompt Engineering 101: Write Prompts That Work Every Time

The five building blocks

Role, task, context, format and constraints. Most weak prompts are missing two of the five.

Reusable template
Role: You are a [role].
Task: [what to do].
Context: [background].
Format: [bullets / table / 3 paragraphs].
Constraints: [length, tone, things to avoid].

Show an example

One good example beats a paragraph of description. Paste a sample of the output you want and ask the model to match it.

Iterate in small steps

Change one thing at a time and keep the winners. A tiny library of proven prompts is worth more than a thousand untested ones.

About the Author

Sophia Lee

Portrait & beauty prompt designer

I design Midjourney and Flux prompts for portrait and editorial work. Every pack is tested on at least 40 generations before it ships.

Share This Article

0Shares

Comments & Discussion (2)

Your rating (optional)

  1. Lina Chen
    ★★★★★

    Great explanation of the differences. The comparison really helped me decide.

    Reply
  2. Daniel Kim
    ★★★★★

    Bookmarked. I have been looking for a clear walkthrough like this.

    Reply

Recommended Articles

View All Articles