Skip to content
Prompt engineering

Prompt engineering · · 7 min read

Prompt engineering for beginners: from zero to prompts that work

What a prompt is, the anatomy of a good one, common mistakes and a simple routine to improve.

If you have just started using ChatGPT or Claude and you feel like you sometimes get brilliant answers and sometimes complete nonsense — relax, you are not the problem. The problem is how you ask. The good news: writing good prompts is something you can learn in one afternoon. You do not need to be a programmer or know any “secret tricks”. You need to understand one thing: how the model thinks and what it needs from you.

What a prompt really is

A prompt is simply what you type to the model — a question, an instruction, a description of a task. But to write good prompts you need the right mental model. Here it is:imagine you are talking to a very fast but very literal junior assistant. This junior has read half the internet, writes instantly and never gets tired. But they have three traits you must keep in mind.

  • They are literal. They do exactly what you write — not what you meant.
  • They do not know any context you do not give them. They do not know who you write for, your goal, or what came before.
  • They will not ask if something is unclear. They will guess and move on — sometimes right, sometimes completely off.

The whole art of prompt engineering comes down to this: give that junior enough context and a precise enough instruction so their guessing is accurate. The better you brief them, the better the result. That really is all the “magic” there is.

The anatomy of a good prompt

A good prompt has five elements. You do not need all of them every time, but it helps to know what you can reach for:

  • Context — who you are, who this is for, what the situation is. Example: I own a small coffee shop and I am writing to regular customers.
  • Task — exactly what the model should do, in one clear instruction. Example: Write an Instagram post about our new seasonal latte.
  • Constraints — the boundaries to stay within: length, tone, language, what to avoid. Example: Maximum 3 sentences, warm tone, no emoji, in English.
  • Format — what the answer should look like: a list, a table, a paragraph, bullet points. Example: Give me 3 options as a numbered list.
  • Examples — if you have a sample, show it. One good example tells the model more than a paragraph of description.

Put it together and a vague “write something about coffee” becomes a brief that even a human could act on. That is exactly the level of precision you are aiming for.

The most common beginner mistakes

Before we get to good habits, let us look at three traps almost everyone falls into early on. If you recognize even one in yourself — congratulations, you have just found your biggest room for improvement.

Mistake 1: too vague

Write an email. About what? To whom? In what tone? The model has to guess everything, so you get generic mush that fits nothing. The more general the question, the more average the answer.

Mistake 2: no context

You ask Is this a good idea? — but the model does not know what idea, in what industry, on what budget, or what worries you. Without context you get vague “it depends” answers. Context is the fuel for accurate responses.

Mistake 3: everything at once

“Plan my wedding, write the invitations, design the menu, calculate the budget and suggest a playlist” in a single prompt. The model will try, but every part comes out shallow. Better to break it into steps and do them one by one — just as you would delegate to a person.

Iterate instead of expecting one-shot magic

The most important shift in thinking: the first answer is a draft, not a verdict. Beginners often type a prompt, get something other than what they wanted, shrug and conclude that “AI is weak”. Professionals treat it like a conversation: they refine, clarify, ask for changes.

You do not have to write the perfect prompt on the first try. Just start and steer: Too long, cut it in half. Too formal, make it more casual. The second point is unclear, expand it with an example. Each such correction is another piece of context that moves you closer to the goal. Three iterations almost always beat one “perfect” shot.

Three rewrites: bad prompt to good

Theory is theory, but concrete examples teach the most. Here are three pairs — the version a beginner writes, and the version after applying the rules from this article.

Example 1: email

Bad: Write an apology email.

Good: I run an online store. A customer waited 2 weeks for a parcel because of our mistake. Write a short apology email, warm but professional, max 4 sentences, and offer a 15% discount on their next order.

Example 2: learning

Bad: Explain inflation to me.

Good: Explain what inflation is as if you were explaining it to a 15-year-old. Use one everyday example, avoid economic jargon, maximum 150 words.

Example 3: a plan

Bad: Help me lose weight.

Good: I am 35, I have a desk job and I train twice a week. Suggest a realistic one-day meal plan (breakfast, lunch, dinner, snack) at around 1800 kcal, common ingredients, nothing exotic. Give it as a list.

See the pattern? The good version always adds context, narrows the task and says what the result should look like. This is not longer writing for its own sake — every sentence takes one wrong guess away from the model.

Chat versus coding tools

If you use AI only for writing, translation and ideas — the rules above are 100% enough. But it helps to know there is a second family of tools: coding assistants (like Cursor, GitHub Copilot or Claude Code). They play by slightly different rules, even if you are not a programmer yourself.

  • In chat you provide context in words. The model only knows what you typed into the conversation box.
  • In coding tools the model can see your files and project. It often pulls context from its surroundings, so a precise instruction matters even more — “change this” is not enough when “this” could mean ten things.
  • In code, small, concrete steps are prized: “add a button here” instead of “build me the whole app”. The same rule as in chat, only more important, because code bugs are harder to spot at a glance.

The takeaway is encouraging: the habits you practice in plain chat — context, precision, small steps — carry over one to one into more advanced tools. Learn it once, use it everywhere.

A simple routine to improve

You do not need a course. You just need to practice deliberately for two weeks. Here is a routine that works:

  1. Before you type a prompt, ask yourself one question: “Would a stranger understand what I want from this?”. If not — add context.
  2. Deliberately add at least two of the five anatomy elements: usually context and format.
  3. Never accept the first answer as final. Force yourself to make one revision, even if it was good.
  4. Save the prompts that worked. Build a private “cheat sheet” — you will quickly notice that good prompts follow a repeatable shape.
  5. Once a week, take your worst result of the week and rewrite the prompt from scratch. That single exercise teaches the most.

After two weeks of this training, writing good prompts becomes a reflex. You stop thinking about it, and the quality of the answers simply jumps.

TL;DR

Treat the model like a fast but literal junior: give it a good brief. A good prompt has context, task, constraints, format and — if you can — an example. The three most common mistakes are too vague, no context, and everything at once. The first answer is a draft, so iterate instead of expecting one-shot magic. The same habits work in chat and in coding tools. Practice deliberately for two weeks and good prompts become a reflex.

Prompt engineering for beginners: from zero to prompts that work | vibecoding.pl