DigitalRoks Icon
Promptingbeginner 3 min read

The anatomy of a prompt that works

How do I write a good AI prompt?

A prompt is a brief, not a wish. The five parts of a good brief are the same five parts that fix 80% of disappointing output.

The short answer

A strong prompt contains a role, a task, the context that matters, the constraints that bound it, and the output format you want back. Miss one and the model fills the gap with a guess.

The analogy

Hiring a freelancer for one hour

If you message a freelancer "write me something good about my business", you will get something generic, because that is all you gave them. If you say "you are a B2B copywriter; write a 60-word homepage intro for a family plumbing company in Palm Desert; audience is homeowners over 50; no exclamation marks; return three options" you will get usable work. The model is not less capable than the freelancer. It is exactly as dependent on the brief.

How it actually works
01

The five slots

Role: who is answering. Task: the one thing you want done. Context: the facts it cannot guess. Constraints: what to avoid, how long, what tone. Format: bullets, table, JSON, 60 words. Fill all five and you stop arguing with the output and start editing it.

02

Put the task before the context

State the job in the first sentence, then supply the background. A long preamble buries the request, and long-context models weight the opening and closing of a prompt more heavily than the middle. Front-load the verb.

03

Ask for the shape you will actually use

"Five bullet points" is a format instruction and it changes the output more than any adjective. If the answer goes into a spreadsheet, ask for columns. If it goes into an email, ask for a subject line and a body under 120 words.

Where it bites

“There are secret magic words that unlock better answers.”

There are useful structures, not magic. Specificity beats phrasing every time. "Be specific" is not a prompt; being specific is.

Try it now
10 minutes

Rebuild one bad prompt

  1. 1Find a prompt you have used that gave mediocre results. Copy it exactly.
  2. 2Rewrite it with the five slots labelled in your head: role, task, context, constraints, format.
  3. 3Run both versions. Compare side by side.
  4. 4Keep the winning version in a notes file with a name you will remember. That file is the beginning of your prompt library.
Where to go next

Free communities are the fastest place to see other operators' working prompts, then adapt the structure to your own brief.

Join Free on Skool →

Affiliate link. If you sign up through it, DigitalRoks may earn a commission at no extra cost to you. Recommendations are written the same way either way.

Common questions
How long should a prompt be?

As long as it takes to remove the guessing, and no longer. Most business prompts land between 60 and 200 words. Length is not the goal; missing information is the problem.

Does politeness matter?

Not for output quality. It matters for the habit — the same discipline that makes you write a clear brief makes you polite. Skip the flattery, keep the specifics.

What if I do not know the constraints yet?

Ask for three options with different trade-offs first, then constrain. Exploring before narrowing is a legitimate two-step prompt.

Keep going

Where this connects

Where this concept goes next.

You know the idea now. The next step is either wiring it up yourself (MCPHubz) or handing the build to someone (GoZealio).