AI-Assisted Coding · Module 01

Mindset, Foundations & Prompt Engineering

AI drafts; you specify, inspect, run, test and own the result.

Nine short lessons on the habits behind reliable AI-assisted development: why plausible code can still be wrong, how to write a prompt as a compact specification, and the loop ask, inspect, run, test, refine, applied to Task Tracker requirements, an architecture decision and a running FastAPI skeleton.

  • Junior collaborator mindset
  • Pattern completion
  • Failure modes
  • Prompt anatomy
  • Prompt patterns
  • The interaction loop
  • Task Tracker scope
  • Context blocks
  • Requirements, ADR, scaffold

Module introduction

Start with the habit, not the tool

AI coding assistants are already part of modern software development, so the question this module asks is not whether to use them but how to use them well. You start with a mental model: the assistant completes patterns, it doesn’t run or check your code, and it sounds just as confident when it is wrong. From there you learn to write prompts as specifications, to use three practical patterns, and to run every answer through one loop. Then you use all of it on a deliberately simple Task Tracker, chaining requirements into an architecture decision and that decision into a FastAPI skeleton you have actually seen run.

Four outputs, each built on the last · Lecture notes p. 3
  1. Reviewed user stories6–8, with at least one correction
  2. One-paragraph ADRYour decision, your words
  3. Running skeleton/health returns 200, /docs opens
  4. Reflection logRight, corrected, assumed

Every step runs through the loop: ask, inspect, run, test, refine.

Your learning path

Your path through Module 1

Open source guide
01MindsetModule 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.10 min02How assistants workAn 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.12 min03Prompts as specsA 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.10 min04Patterns and the loopThree 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.14 min05Task TrackerThe 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.8 min06Tools and contextThe 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.11 min07Hands-on A: requirementsThe 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.11 min08Hands-on B: architectureWith 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.11 min09Hands-on C: scaffoldThe 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.13 minWhat you keep from Module 1Module 1 gives you a stance and a method. The stance: AI is a junior collaborator and you own the result. The method: write the prompt as a specification, run the loop, and let each reviewed output become the next prompt’s context.SummaryPrompt library20 prompts, each as a weak and an improved version: Practical prompts for AI-assisted requirements, architecture, and scaffolding.PromptsFurther reading5 core readings, 2 practical references and 7 optional deeper dives, each with the part to read and the lesson it supports.Reading