Prompt Engineering Roadmap | Resources by Shumbul Arifa

โœจ Prompt Engineering Roadmap

AI tools are only as good as what you ask them. This is a practical, zero-jargon guide to writing prompts that actually work, from your very first one to advanced patterns used in production.

๐ŸŒฑ Beginner-friendly ๐Ÿ†“ All free resources ๐Ÿชœ 4-step plan ๐Ÿ”„ Updated 2026

Your journey at a glance

Four steps, start to finish. Hover or tap any stop to see what happens there.

Step 1

Foundations

Understand what an LLM actually does, learn the vocabulary, and master the five-part prompt structure: role, task, context, format, constraints.

You will have: a personal cheat sheet of five prompt templates you actually use.

Step 2

Core techniques

Zero-shot, few-shot, chain of thought, role prompting, delimiters and structured output. Solve a real problem with each one and compare results.

You will have: a prompt that reliably returns valid JSON you could feed into code.

Step 3

Build something

Automate a task you genuinely repeat, using prompt chaining. Call the API from a script instead of a chat window. Meet Semantic Kernel and RAG.

You will have: a working script or notebook doing something useful with an LLM.

Step 4

Go deeper

Function calling and a tiny agent. Build an evaluation set so you can measure prompts instead of guessing. Learn prompt injection and safety basics.

You will have: a GitHub repo and a short write-up worth showing in an interview.

Tap a numbered stop to jump between steps

Why prompt engineering matters

Two people use the same AI model. One gets vague, generic output. The other gets exactly what they need, first try. The difference is not the tool, it is how they ask.

This is now a real, paid skill. It shows up in job descriptions across engineering, product, marketing, and support. More importantly, it makes everything else you do faster: writing code, debugging, research, drafting, learning.

Vague prompt write about databases
Result: a generic textbook paragraph you could have googled.
Clear prompt Explain the difference between SQL and NoSQL to a final-year CS student preparing for interviews. Use a real example of when each one is the right choice. Keep it under 200 words. End with one question an interviewer might ask.
Result: something you can actually use tonight.

Same model. Same cost. Completely different value. That gap is what this page closes.

Understand what you are talking to

You do not need the maths, but a rough mental model makes you dramatically better at prompting. Here is the honest version.

What an LLM actually does

A large language model predicts the next most likely chunk of text, over and over, based on everything it has seen so far. That is genuinely it. Everything impressive it does comes from doing that extremely well at massive scale.

Three consequences you should internalise:

The vocabulary you will keep hearing

TermWhat it actually means
LLMLarge Language Model. The engine, for example GPT, Claude, Gemini, Llama.
GPTGenerative Pre-trained Transformer. OpenAI's family of models.
TokenA chunk of text, roughly 4 characters. Models read and bill in tokens, not words.
Context windowHow much text the model can hold at once. Go over it and the earliest parts fall away.
TemperatureRandomness dial. Low (0 to 0.3) for facts and code. Higher (0.7+) for creative work.
System promptInstructions that set the model's role and rules before the conversation starts.
HallucinationWhen the model invents something false but says it confidently.
RAGRetrieval Augmented Generation. Feeding the model your own documents so it answers from real sources.
Fine-tuningFurther training a model on your data. Expensive. Usually good prompting is enough.
AgentAn LLM given tools and a goal, so it can take actions in a loop, not just reply.

Start here (free)

The anatomy of a good prompt

Almost every strong prompt has some combination of these five parts. You will not always need all five, but knowing them means you always know what to add when the output is not right.

๐ŸŽญ

1. Role

Tell it who to be. This shapes vocabulary, depth, and assumptions.

You are a senior backend engineer reviewing code for a junior developer.

๐ŸŽฏ

2. Task

Say exactly what you want done. Use a clear action verb.

Review this function and list the three most serious issues.

๐Ÿ“‹

3. Context

Give the background it cannot guess: audience, constraints, what you already tried.

This runs in production handling 10k requests a minute. We cannot add dependencies.

๐Ÿ“

4. Format

Describe the shape of the answer you want. This one saves the most time.

Answer as a markdown table with columns: Issue, Severity, Fix.

๐Ÿšง

5. Constraints

Set the boundaries: length, tone, what to avoid, what to assume.

Under 150 words. No code snippets. If you are unsure, say so rather than guessing.

๐Ÿ’ก

Putting it together

You rarely write these as labelled sections. You just make sure each one is present somewhere.

Missing output not right? Ask yourself which of the five is missing.

A full example

You are an experienced technical interviewer at a product company.

I am a final-year CS student preparing for backend interviews.
I understand basic SQL but have never designed a schema from scratch.

Design a database schema for a food delivery app.

Walk me through your thinking step by step, then show the final
tables with columns and relationships.

Keep it to 5 tables maximum. Explain each design decision in one
sentence. End with two follow-up questions an interviewer would
likely ask about this schema.

Every one of the five parts is in there: role, context, task, format, constraints. That is the whole trick.

The techniques that matter

These are the named patterns you will see referenced everywhere. Learn the first four properly and you will handle 90% of real situations.

0๏ธโƒฃ

Zero-shot prompting

๐ŸŒฑ Beginner

Just ask, with no examples. The default way most people use AI.

Use when: the task is common and well understood. Classify this review as positive or negative.

๐Ÿ”ข

Few-shot prompting

๐ŸŒฑ Beginner

Show 2 to 5 examples of input and desired output, then give your real input. The single highest-leverage technique.

Use when: you need a specific format or style. Examples teach far better than descriptions.

๐Ÿง 

Chain of thought

๐ŸŒฑ Beginner

Ask it to reason step by step before answering. Dramatically improves accuracy on logic, maths, and multi-step problems.

Use when: the answer requires reasoning. Add: Think through this step by step before answering.

๐ŸŽญ

Role prompting

๐ŸŒฑ Beginner

Assign an identity and expertise level. Changes vocabulary, depth, and what it assumes you already know.

Use when: you want a specific perspective or level of detail.

๐Ÿ“ค

Output formatting

๐Ÿ“ˆ Intermediate

Specify the exact structure: JSON, markdown table, bullet list, numbered steps. Essential when feeding output into code.

Use when: you need machine-readable or consistently structured output.

โ›“๏ธ

Prompt chaining

๐Ÿ“ˆ Intermediate

Break a big task into several prompts, feeding each output into the next. Far more reliable than one giant prompt.

Use when: the task has distinct stages. Research, then outline, then draft, then edit.

๐Ÿ”€

Delimiters

๐Ÿ“ˆ Intermediate

Wrap different parts in clear markers so the model knows what is instruction and what is data.

Use when: passing in text to process. Use triple quotes, XML-style tags, or markdown headings.

๐Ÿชž

Self-critique

๐Ÿ“ˆ Intermediate

Ask it to review and improve its own answer. Often catches real errors on the second pass.

Use when: quality matters. Add: Now critique your answer and give an improved version.

๐ŸŒณ

Tree of thought

๐Ÿš€ Advanced

Ask it to generate several distinct approaches, evaluate each, then pick and develop the best.

Use when: there are genuinely multiple valid strategies and the choice matters.

๐Ÿ“š

RAG (grounding)

๐Ÿš€ Advanced

Supply your own documents in the prompt so answers come from real sources instead of memory. The main cure for hallucination.

Use when: you need accuracy on private, recent, or domain-specific information.

๐Ÿ› ๏ธ

Tool and function calling

๐Ÿš€ Advanced

Let the model call real functions: search, database queries, APIs, calculations. The foundation of AI agents.

Use when: the model needs live data or must take actions in the world.

๐Ÿงช

Evaluation

๐Ÿš€ Advanced

Build a small test set of inputs with expected outputs, then measure prompt changes against it instead of guessing.

Use when: a prompt goes into production. This is what separates hobby from professional.

See the difference

Three real situations, weak prompt versus strong prompt. Try both in any free chatbot and compare.

Debugging code

Weak my code doesn't work, fix it
No code, no error, no context. It has to guess everything.
Strong This Python function should return unique users sorted by signup date, but it returns duplicates. Here is the function and the actual output versus expected output. Explain the root cause first, then give the corrected code with a comment on the line that changed.
Now it can actually diagnose rather than guess.

Learning something new

Weak explain kubernetes
You get a Wikipedia-style dump at an unknown difficulty level.
Strong I know Docker but have never used Kubernetes. Explain Kubernetes by building on what I already understand about containers. Use one running analogy throughout. Cover only pods, services, and deployments. Then give me one small thing I can build this weekend to make it click.
Tailored to your actual starting point, with a next action.

Getting feedback on your work

Weak is my resume good?
You will get polite, generic praise. Useless.
Strong You are a hiring manager at a product company who screens 200 resumes a week. Here is my resume and the job description I am targeting. Be blunt. List the three things that would make you reject it in the first 10 seconds, then the three highest-impact changes. Do not be encouraging, be useful.
Explicitly asking for bluntness is what unlocks honest feedback.

Common mistakes to avoid

Being polite instead of specific "Could you please help me a bit with this?" wastes tokens. Clear and direct beats courteous every time.
Asking for everything at once One giant prompt with six unrelated requests produces six mediocre answers. Chain them instead.
Trusting output without checking Confident tone is not accuracy. Verify anything factual, especially numbers, citations, and APIs.
Giving up after one try The first prompt is a draft. Good results usually come from two or three rounds of refining.
Saying what not to do "Do not be boring" is weak. "Use concrete examples and short sentences" is what you actually want.
Pasting private data anywhere Never put passwords, keys, customer data, or confidential work into a public AI tool. Check your company policy first.

Your 4-step plan

Go at your own pace. Each step takes a few days of focused practice. By the end you will have a small portfolio of prompts that solve real problems, which is genuinely worth showing in an interview.

Step 1 Foundations

  • Read the Microsoft Learn and Google Cloud guides linked above
  • Learn the vocabulary table until the terms feel obvious
  • Practise the five-part structure: role, task, context, format, constraints
  • Rewrite 10 lazy prompts you have used before into strong ones
  • Deliverable: a personal cheat sheet of your five best prompt templates

Step 2 Core techniques

  • Practise zero-shot, few-shot, chain of thought, and role prompting
  • For each one, solve a real problem from your own work or study
  • Learn delimiters and structured output (JSON, markdown tables)
  • Try the same task with each technique and compare quality
  • Deliverable: one prompt that reliably produces valid JSON you could feed into code

Step 3 Build something

  • Pick a repetitive task you actually do and automate it with prompt chaining
  • Try the OpenAI or Azure OpenAI API from a script, not just the chat window
  • Explore Semantic Kernel or LangChain to see how prompts work inside applications
  • Learn what RAG is and why grounding beats fine-tuning for most cases
  • Deliverable: a small working script or notebook that uses an LLM to do something useful

Step 4 Go deeper

  • Learn function and tool calling, then build a tiny agent
  • Create a small evaluation set and measure your prompts objectively
  • Read about prompt injection and basic AI safety
  • Write up what you built and share it publicly
  • Deliverable: a GitHub repo plus a short post explaining what you learned

Free resources

Everything here is genuinely free. Start with the official guides, they are better than most paid courses.

Prompt quality checklist

Not getting what you want? Run through this before rewriting from scratch.

Where to go next

Prompt engineering pairs well with these:

One last thing. The people who get the most out of AI are not the ones who memorised the most techniques. They are the ones who think clearly about what they actually want before they start typing. Prompting is mostly just that skill, written down.

12
techniques covered
4
step plan
30+
free resources
0โ‚น
cost to start
๐ŸŒฑ New here? Read this first

You do not need a machine learning degree for this. Prompt engineering is mostly clear thinking plus a handful of patterns you can learn in an afternoon. Read the first two sections, try the examples in any free chatbot, and you will already be ahead of most people. Everything linked here is free.