Prompt Engineering · Intermediate

Prompt Engineering Mastery

A deeper, practical course for anyone who wants prompting to stop being guesswork: repeatable frameworks, few-shot examples, chain-of-thought reasoning, structured output, and a system for testing and improving your own prompts.

Units
4
Lessons
20
Practice questions
67
Minutes
~300

Start learning today

Try every course free for 7 days. After that, this course is in Learnix Pro (KES 699/month).

Create free account Log in

What you'll learn

Apply a repeatable framework to any prompt instead of writing from scratch each time

Use examples (few-shot prompting) to control tone, format and quality

Use step-by-step reasoning prompts to improve accuracy on harder tasks

Get predictable, structured output (like JSON) you can actually use in a workflow

Systematically test and improve a prompt instead of guessing

Apply all of this to real tasks: writing, coding help, data analysis and support

How the lessons work

Clear explanations

Step-by-step lessons in plain language

61 in this course

Worked examples

Real code and examples you can copy and run

26 in this course

Quick checks

Test your understanding as you go

38 in this course

Fill the blank

Recall the key commands and syntax

20 in this course

Hands-on workspace

A practical task at the end of every lesson

20 in this course

Syllabus

  1. 1.1

    Why Prompt Engineering Is a Real Skill

    If you've ever gotten a vague, generic, or slightly-wrong answer from AI, the model probably wasn't the problem: the prompt was. This lesson reframes what a prompt actually is and why getting good at writing them is worth real practice.

  2. 1.2

    A Framework You Can Reuse on Any Prompt

    Instead of reinventing a prompt from scratch every time, use the same repeatable checklist: Role, Task, Context, Format. This lesson builds and applies that framework on several real examples.

  3. 1.3

    Audience, Tone & Length Control

    The same facts need different words for a CEO, a customer and a child. Learn to control audience, tone, reading level and length precisely.

  4. 1.4

    Showing, Not Just Telling: Examples & Step-by-Step Reasoning

    Two techniques that dramatically improve harder tasks: giving the AI a few examples of exactly what you want (few-shot prompting), and asking it to reason step by step instead of jumping straight to an answer.

  5. 1.5

    Getting Predictable, Structured Output

    When you need an AI's answer to slot into a spreadsheet, a form, or another program, free-form prose isn't good enough. This lesson covers asking for, and reliably getting, structured formats like JSON, tables and fixed templates.

  1. 2.1

    System Prompts: Designing an Assistant's Behaviour

    Write the instructions that shape every reply of a chatbot or AI feature: role, knowledge limits, style, and what to do when unsure.

  2. 2.2

    Working with Long Documents

    Get accurate answers from reports, contracts and transcripts: structure documents with tags, ask for quotes first, and put the question last.

  3. 2.3

    Multi-Turn Conversation Design

    Every example so far has been a single prompt, single response. Real usage is often a long back-and-forth, and keeping that conversation reliable over many turns is its own skill, distinct from writing any one individual prompt well.

  4. 2.4

    Chaining Prompts for Multi-Step Workflows

    The most powerful real-world AI workflows rarely rely on a single prompt. This capstone lesson covers chaining, using the output of one prompt as the input to the next, to break a complex task into focused, reliable stages.

  5. 2.5

    Building Reusable Prompt Templates

    The iteration lesson mentioned saving a perfected prompt for reuse. This lesson goes further: designing that saved prompt as a genuine template, with clearly marked placeholders, so anyone can fill it in reliably, not just re-editing a block of text by hand each time.

  1. 3.1

    Applying This at Work: Writing, Code, Data and Support

    The final lesson: pulling every technique from this course together across four common, real jobs prompt engineering gets used for, so you leave with templates you can adapt immediately, not just theory.

  2. 3.2

    Prompting for Code

    Get working, maintainable code from AI: give context, constraints and examples, ask for tests, and review everything.

  3. 3.3

    Prompting for Data: Formulas, SQL & Analysis

    Describe your data precisely to get correct Excel formulas, SQL queries and analysis, and check the numbers.

  4. 3.4

    Prompting for Images & Visual Content

    Describe images precisely (subject, style, composition, lighting) and iterate, while using image AI responsibly.

  5. 3.5

    Prompting Agents & Tool Use

    When AI can search, run code or take actions, prompts become instructions for a worker: goals, tools, limits and checkpoints.

  1. 4.1

    Iterating and Evaluating Your Prompts

    Your first attempt at a prompt is rarely your best one. This lesson covers a simple process for testing, comparing, and systematically improving a prompt, instead of just retyping it and hoping.

  2. 4.2

    Evaluating AI Output for Accuracy & Bias

    Every lesson so far has focused on getting a BETTER response. This one covers the equally important skill of not automatically trusting whatever comes back, no matter how confident and well-formatted it sounds.

  3. 4.3

    Reducing Hallucinations: Grounding & Verification

    Prompt patterns that make answers more truthful: provide sources, allow "I don't know", require citations, and verify.

  4. 4.4

    Prompt Injection: Why It Matters When You Build With AI

    The moment you build something on top of AI (a support bot, an internal tool, anything that feeds someone else's input into a prompt) a new problem appears: that input might not have your best interest in mind. This lesson covers prompt injection and how to defend against it.

  5. 4.5

    Capstone: Build and Evaluate a Prompt System

    Design a real AI workflow end to end: system prompt, templates, a test set, scoring and iteration, documented for your portfolio.

Earn a verifiable certificate

Finish every lesson and pass the 20-question final exam (70% to pass). Each certificate has a unique number anyone can check online.

Get started

Helping with:

🍪 We use essential cookies to keep you signed in, protect your account and remember your settings. We don't use advertising or tracking cookies. Read our Privacy Policy.