Original source guide

Module 1 · Mindset, Foundations & Prompt Engineering

Where each lesson comes from, what was not supplied, and the places where the material needs a careful reading.

The sources

This module is built from three supplied PDFs: the Module 1 lecture notes (15 pages, seven parts, the last being the hands-on session in Parts A, B and C), the Module 1 prompt library (18 pages, twenty prompts: P0–P5, A1–A4, B1–B3, C1–C3, D1 and E1–E3, with an end-of-module checklist) and the Module 1 additional readings (4 pages: five core, two practical and seven optional items). The notes say they are a guide to be read alongside the Module 1 videos, not a transcript. The videos, any slides, and the finished project tour they describe were not supplied, and nothing here is attributed to them. One caution in Lesson 8 and one in Lesson 9 mention the author’s own Module 1 work as an illustration; no lesson depends on it.

Listening

Every page in this course is read aloud by your device’s own voice. No recorded narration was generated for it. Back to the lessons

Lessons and their source pages
LessonLecture notesPrompt libraryReadings
1 · Mindsetpp. 1-4p. 1 (key mindset)Core 3, Optional 4
2 · How AI coding assistants workpp. 5-7pp. 17-18 (E3)Core 3, Optional 4
3 · Prompts as specificationspp. 7-8pp. 3-4 (P2)Core 1-2, Practical 2, Optional 2
4 · Patterns and the looppp. 8-11pp. 4-6 (P3-P5)Core 1-2, Practical 2, Optional 7
5 · Task Trackerpp. 11-12pp. 2, 6-8 (P0, A1, A2)—
6 · Tools and contextpp. 12-13pp. 2-3 (P0, P1)Practical 1, Optional 3, Optional 5
7 · Hands-on A: requirementspp. 13-14pp. 6-9 (A1-A4)Core 4, Optional 6
8 · Hands-on B: architecturepp. 14-15pp. 10-12 (B1-B3)Core 5, Optional 1
9 · Hands-on C: scaffoldpp. 3, 15pp. 12-18 (C1-C3, D1, E1-E3, checklist)—

Lesson 01

Mindset: AI as a junior collaborator

Module 1 starts with mindset, not tools or syntax. AI is a fast junior collaborator that doesn’t own the work. You are the senior developer who gives context, reviews every line, runs and tests the output, and takes responsibility for the result.

Open the lesson
Module snapshot and how to use the notes

The loop, the four outputs, and the note that these are a guide to the videos, not a transcript.

Lecture notes p. 1
Learning outcomes

Ten outcomes, from the pattern-completion model to scaffolding a FastAPI skeleton.

Lecture notes pp. 1-2
Module outputs

The four deliverables with their contents and purpose.

Lecture notes p. 3
Part 1 — Mindset and course context

Junior versus senior behavior, casual versus disciplined use.

Lecture notes p. 3
The skill gap and the audience

Why outcomes differ on the same model; who the course is for.

Lecture notes p. 4
Responsible use

AI output as a draft you review, test and correct.

Readings pp. 1-2 (Core 3)

Lesson 02

How AI coding assistants work

An assistant completes patterns; it doesn’t verify code at runtime. That explains its strengths, scaffolding, recall and explanation, and its three common failure modes: hallucinated APIs, missing non-functional requirements and shallow business logic.

Open the lesson
Part 2 — How AI coding assistants work

Pattern completion, strengths and limitations.

Lecture notes p. 5
Failure modes 1-3

The hallucinated Pydantic method, the vague POST /tasks, and the status-update questions.

Lecture notes pp. 5-6
Exercise: spot the flaw

Three snippets and the question to ask about each.

Lecture notes p. 7
Pydantic version risk

The optional diagnostic for v1/v2 syntax mismatches.

Prompt library pp. 17-18 (E3)
Reviewing and testing generated code

Limitations and review habits.

Readings pp. 1-2 (Core 3)

Lesson 03

Prompts as specifications

A prompt is a compact technical specification, not a search query. Give it four parts, role or context, task, constraints and output format, avoid four common mistakes, and treat the first response as a draft you improve with a targeted follow-up.

Open the lesson
Part 3 — Prompts as specifications

The four-part anatomy and the login rewrite.

Lecture notes p. 7
Mistakes, iteration and the rewrite exercise

Four mistakes, the targeted follow-up, two weak prompts to rewrite.

Lecture notes p. 8
P2 — Rewrite a vague debugging prompt

The filtering bug prompt with expected and observed behavior.

Prompt library pp. 3-4
Clear instructions

OpenAI’s and Anthropic’s guidance on clarity, roles and output structure.

Readings p. 1 (Core 1 and 2)
Interactive tutorial

Practice turning weak prompts into structured ones.

Readings pp. 2-3 (Practical 2)

Lesson 04

Prompt patterns and the AI interaction loop

Three reusable patterns, role, few-shot and constraint-based prompting, cover most practical work, and you combine them when the stakes rise. Around every prompt runs one loop: ask, inspect, run, test, refine.

Open the lesson
Part 4 — Patterns

Role, few-shot and constraint-based prompting with their printed prompts.

Lecture notes pp. 8-10
When to use each pattern and the loop

The pattern table and the five-step loop.

Lecture notes p. 10
Loop example and exercise

The validation-function walk-through and the three-prompt exercise.

Lecture notes p. 11
P3, P4 and P5

Library versions of role, constraint and few-shot prompts.

Prompt library pp. 4-6
Examples, roles and output structure

Vendor guidance on the same patterns; the GPT-4.1 guide as an optional model-specific extension.

Readings pp. 1, 4 (Core 2, Optional 7)

Lesson 05

The project: Task Tracker

The course project is deliberately simple: a task board on a FastAPI API with a simple web frontend. Module 1 doesn’t build it; it gets the foundation running. The exclusions are as important as the features.

Open the lesson
Part 5 — Define the project

The project tour and the purpose of a simple project.

Lecture notes p. 11
Task Tracker scope

Included and explicitly excluded features, and why.

Lecture notes pp. 11-12
Scope in the prompt library

The exclusion list as it appears in P0, A1 and A2.

Prompt library pp. 2, 6-8

Lesson 06

The tools: ChatGPT, Claude and transferable habits

The tool changes; the habits don’t. The module compares ChatGPT and Claude in the browser, builds the stateless mental model and a reusable context block, and gives a practical rule for deeper reasoning: judgment means think, recall means skip.

Open the lesson
Part 6 — Define the tool

ChatGPT and Claude, why compare, the stateless model and the context block.

Lecture notes p. 12
Interface, reasoning modes and First Contact

Interface elements, the judgment/recall rule and the comparison exercise.

Lecture notes p. 13
P0 and P1

The full context block and the constrained first-contact prompt.

Prompt library pp. 2-3
Projects and Custom Instructions

Persistent setup as a helper, not a substitute.

Readings p. 2 (Practical 1)
Context and other tools

Context engineering and Gemini’s prompting strategies as optional extensions.

Readings pp. 3-4 (Optional 3 and 5)

Lesson 07

Hands-on A: requirements

The hands-on session chains three activities: requirements, architecture, scaffold. In Part A, AI removes the blank page by drafting user stories, and you review, correct and own them, using prompts A1 to A4.

Open the lesson
Part 7 — Hands-on session

The chained workflow and the three activities.

Lecture notes pp. 13-14
Part A — AI-assisted requirements

Why an idea isn’t a spec, the expected story areas and the review focus.

Lecture notes p. 14
A1–A4

Draft, scope fix, edge cases and status rules, testability review.

Prompt library pp. 6-9
User stories

Story format, the 3 Cs and acceptance criteria.

Readings p. 2 (Core 4)
Research on LLM-drafted requirements

Three papers in a suggested reading order.

Readings p. 4 (Optional 6)

Lesson 08

Hands-on B: architecture and the ADR

With reviewed stories as context, AI explores architecture options quickly, but it doesn’t decide. You compare two lightweight options against four criteria, reject the assumptions it slipped in, and write a one-paragraph ADR in your own words.

Open the lesson
Part B — Architecture and tech stack

AI as explorer, the two options and their trade-offs.

Lecture notes p. 14
Criteria, assumptions and the ADR

Four criteria, the assumptions to catch and the ADR requirement.

Lecture notes p. 15
B1–B3

Two proposals, a criteria comparison and a non-rewriting ADR check.

Prompt library pp. 10-12
Architecture Decision Records

Fowler on what an ADR is and why it stays short; Nygard’s original framing as an optional read.

Readings pp. 2-3 (Core 5, Optional 1)

Lesson 09

Hands-on C: scaffold, run and reflect

The first real code you run is a minimal FastAPI skeleton with one endpoint. Ask for it with your ADR as context, inspect every file, run the server, test /health and /docs, and refine with exact errors. Then write the reflection log from your own notes.

Open the lesson
Part C — Scaffold the project skeleton

Include and not-yet lists, the loop on the scaffold, and the run commands.

Lecture notes p. 15
C1–C3

Scaffold, inspect and diagnose prompts.

Prompt library pp. 12-15
D1 — Reflection log

Organize your own notes without inventing.

Prompt library p. 15
E1–E3 — Optional diagnostics

Missing dependency, import path, Pydantic version.

Prompt library pp. 15-18
End-of-module checklist

The four deliverables and what to check in each.

Prompt library p. 18
Module outputs

The reflection log’s three-part format.

Lecture notes p. 3

Source appendix

Where the material needs a careful reading

Read with care

The videos were not supplied

The notes describe themselves as a guide to read alongside the Module 1 videos. Only the notes, prompt library and readings were supplied, so the finished project tour and any live demos appear here only as the notes describe them.

Tool descriptions are dated to the documents

ChatGPT’s and Claude’s strengths, Claude as the reference tool for the scaffold demo, the model selector, reasoning modes and Custom Instructions or Projects are described as the notes present them. They are not claims about what those tools do today.

Code indentation restored

The PDF’s text layer flattens indentation. In the hallucinated-API snippet the field line under class Task(BaseModel) is shown indented, as Python requires. The snippet is a teaching example, not a full program.

Status codes differ by example

The login anatomy example returns 400 for missing fields, while the Task Tracker examples return 422 for invalid input. Both are decisions the prompt states; neither is presented as a universal rule.

Only one transition rule is given

Done cannot move back to ToDo or InProgress. The other questions the notes raise, such as a missing task or the same update sent twice, are left for you to decide and record, or to label as assumptions.

Small differences between notes and library

The notes ask for at least one documented correction to the stories; the library’s checklist asks for at least one scope correction and one edge-case correction. The notes ask for one risk in the ADR; B3 checks for one or two. The library’s P1 adds constraints and a table format to the notes’ First Contact prompt, and P2’s heading names a “vague debugging prompt” where the quick reference says “vague prompt.”

Storage in a skeleton without storage

The skeleton’s folder list includes app/storage/, while persistence behavior is excluded for Module 1. The lessons read the folder as structure only. Likewise, the SQLite option is a local database, distinct from the excluded production database.

Reading list details

Optional 6’s main link carries a generic anchor; the list doesn’t say which paper it opens, though its suggested order starts with “Can LLMs Generate User Stories and Assess Their Quality?”. One arXiv link is split across two anchor lines in the PDF and is listed once. Optional 7 is model-specific and dated. The readings PDF has no link-rot caveat, so the one shown is the library’s.

The author’s work is illustration only

Two cautions mention what the author recorded while doing Module 1. They are examples of the habits in action, not part of the course documents, and no personal details are used.

Checked against the supplied documents cited in each note.

What not to take away

The lessons actively work against these misreadings:

  • If code looks clean and the assistant sounds confident, it probably works.
  • The assistant ran or checked the code before answering.
  • A new chat remembers yesterday’s project, decisions and corrections.
  • Prompt engineering is about finding the right magic words.
  • If I don’t mention auth or a database, the assistant won’t add them.
  • The first answer is either accepted or thrown away.
  • Custom Instructions or Projects replace a task-specific context block.
  • The AI’s draft user stories are the deliverable.
  • AI can write the ADR as long as I read it afterwards.
  • “Production-aware” means Module 1 ships production software.
  • Deeper reasoning modes should be switched on for every task.
  • Mastering one tool’s interface is the skill that matters.

Study-guide synthesis; each item is addressed in the lessons.