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

Join the discussion. Share your thoughts, questions and results with the community.

  • 2 comments
  • 4.5 out of 5

4.5/ 5

Based on 2 reviews

  • 5 stars 1 (50%)
  • 4 stars 1 (50%)
  • 3 stars 0 (0%)
  • 2 stars 0 (0%)
  • 1 star 0 (0%)

Join the Discussion

Have a question or a tip? Leave a comment and help other readers.

Write a Comment
  1. Lina Chen Verified Creator

    Taipei, Taiwan 5 comments

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

    Reply
    Was this helpful?
  2. Daniel Kim Verified Creator

    Los Angeles, USA 5 comments

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

    Reply
    Was this helpful?

Recommended Articles

View All Articles