Original source guide

Module 4 · DevOps, CI/CD, Documentation & Team Workflows with AI

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 4 Lecture Notes (14 pages: snapshot, ten learning outcomes, the outputs table and Parts 1 to 8), the Module 4 Prompt Library (19 pages: how to use it, a quick reference and 18 prompts, S0–S3, C1–C3, D1–D2, DOC1–DOC3, R1–R2, T1–T2, X1 and the optional OE1), and the Module 4 Additional Readings (5 pages: four core readings, five practical references with one companion link, four optional deeper dives and two optional extension readings, 16 links in all). Not supplied: the Module 4 videos the notes say they accompany, any slides, and the course’s Task Tracker repository itself, so file names, commands and the Python version are taken from the documents as their demo context.

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 · The delivery layer and the right AI surfacepp. 1-5 (snapshot, outputs, Parts 1-2)p. 1 (key mindset)Core 1
2 · Claude Code in the terminalpp. 5-7 (Part 3, hands-on 4.1)pp. 2-5 (S0–S3)Core 1-2, Practical 1-2, Optional 1, Extension 2
3 · The CI pipelinepp. 7-9 (Part 4, hands-on 4.2)pp. 5-8 (C1–C3)Practical 3, Extension 1
4 · Containerize the Task Trackerpp. 9-10 (Part 5, hands-on 4.3)pp. 8-10 (D1–D2)Core 3, Practical 4-5
5 · Generate and verify documentationpp. 10-11 (Part 6, hands-on 4.4)pp. 10-13 (DOC1–DOC3)Practical 1
6 · AI-assisted code reviewpp. 11-12 (Part 7, hands-on 4.5)pp. 13-15 (R1–R2)Core 4, Optional 2
7 · The technical note and the closeoutpp. 12-14 (Part 8, hands-on 4.6)pp. 15-19 (T1–T2, X1, OE1)Optional 3-4

Read with careParts 1 and 2 are short and share one lesson. Page numbers are PDF pages.

Lesson 01

The delivery layer and the right AI surface

Module 4 wraps the existing Task Tracker in CI, containers, documentation, review and decision notes. These artifacts can look correct while being quietly wrong, so three strict rules apply, and the AI tool you pick should match the scope of the task.

Open the lesson
Module snapshot and learning outcomes

The engineering layer, the loop, and the ten outcomes.

Lecture notes pp. 1-2
Module outputs

The seven deliverables with their contents and purpose.

Lecture notes p. 3
Part 1 — Mindset and build sequence

The deceptive delivery layer, three strict rules, six connected parts and the review question.

Lecture notes pp. 3-4
Part 2 — Choosing the right AI surface

Copilot, Cursor and Claude Code compared by scope, and the core loop.

Lecture notes p. 5
Why a terminal agent

The overview of repo-wide understanding, multi-file work and tool use.

Readings p. 1 (Core 1)

Lesson 02

Claude Code in the terminal

A terminal agent without project memory behaves like a smart outsider. Open the right repo, check the session, let /init draft CLAUDE.md and then correct it by hand, practise plan mode, and verify two answers against the code before you trust it.

Open the lesson
Part 3 — Set up Claude Code in the terminal

The smart outsider, what makes Claude Code different, and the five concepts.

Lecture notes pp. 5-6
CLAUDE.md sections and hands-on flow

What to put in CLAUDE.md, the seven setup steps and the review question.

Lecture notes pp. 6-7
Prompts S0–S3

Safe session start, repairing CLAUDE.md, verifying answers, plan-only practice.

Prompt library pp. 2-5
Claude Code overview and project memory

Repo-wide understanding and how CLAUDE.md is used and updated.

Readings pp. 1-2 (Core 1-2)
Workflows, best practices and CLAUDE.md in practice

Planning before editing, reviewing diffs, and a practitioner view of a lean CLAUDE.md.

Readings pp. 2-4 (Practical 1-2, Optional 1)

Lesson 03

The CI pipeline

Continuous Integration runs the tests on every push and pull request. Let Claude Code draft .github/workflows/ci.yml, inspect it line by line for shortcuts that hide failure, and prove it with a green run, a deliberate red run and a restored green run.

Open the lesson
Part 4 — Create the CI pipeline

Why CI, and the expected workflow shape.

Lecture notes pp. 7-8
Red flags and the proof

Patterns to reject and the green-red-green table.

Lecture notes p. 8
Demo troubleshooting note

Wrong folder and missing test dependencies.

Lecture notes p. 9
Prompts C1–C3

Generate, inspect for false greens, and plan the red-run proof.

Prompt library pp. 5-8
Workflow syntax and Actions security

Lookup reference for on, jobs, steps and runs-on; the extension reading on Actions security.

Readings p. 3 (Practical 3) · p. 5 (Extension 1)

Lesson 04

Containerize the Task Tracker

A Dockerfile can build and still be poor engineering. Ask for a multi-stage build on an explicit slim base, a non-root user, no baked secrets and a production-style command, then prove it with /health, whoami and a three-line security log.

Open the lesson
Part 5 — Containerize the Task Tracker

Dockerfile requirements and .dockerignore expectations.

Lecture notes p. 9
Local verification and the security log

Build, run, /health, whoami, and the three-line log.

Lecture notes p. 10
Prompts D1–D2

Generate the Dockerfile and .dockerignore; produce the verification commands and log template.

Prompt library pp. 8-10
Docker building best practices

Multi-stage builds, .dockerignore, small images and non-root USER.

Readings p. 2 (Core 3)
Multi-stage builds and the build context

FROM, COPY --from, and how .dockerignore matching works.

Readings p. 3 (Practical 4-5)

Lesson 05

Generate and verify documentation

Fluent prose is not evidence. Let Claude write Google-style docstrings and a README without touching logic, then check the claims against the function bodies, the running /docs page and real status codes, and log every mismatch.

Open the lesson
Part 6 — Generate and verify documentation

Claim verification and what to ask Claude for.

Lecture notes pp. 10-11
Verification checklist and claim-vs-reality log

Six checks and the three illustrative rows.

Lecture notes p. 11
Prompts DOC1–DOC3

Docstrings without logic changes, a README with exact commands, and the audit.

Prompt library pp. 10-13
Claude Code common workflows

The readings’ pointer for documentation tasks and planning before editing.

Readings p. 2 (Practical 1)

Lesson 06

AI-assisted code review

AI review is a triage exercise, not a trust exercise. Run Claude on a real diff, copy every comment into a log, sort each into Useful, Noise or Wrong, do your own human review of the same diff, and write one personal rule.

Open the lesson
Part 7 — AI-assisted code review

Triage not trust, good diffs, and the six-step workflow.

Lecture notes pp. 11-12
The three buckets

Useful, Noise and Wrong with their actions, and why Wrong is separate.

Lecture notes p. 12
Prompts R1–R2

Evidence-backed review and triage into buckets.

Prompt library pp. 13-15
Responsible use of AI code review

Missed issues, false positives, and reviewing and testing before acting.

Readings p. 2 (Core 4)
Bringing Code Review to Claude Code

Context only; the module still teaches triage.

Readings p. 4 (Optional 2)

Lesson 07

The technical note and the closeout

Code shows what exists, not always why. Write a six-section decision note with Claude drafting the structure and you owning the trade-offs and open questions, link it from the README, and close the module with an evidence check and a tool-fit reflection.

Open the lesson
Part 8 — Write a technical note

Why a note, good topics, the six sections.

Lecture notes pp. 12-13
Division of labor and checkpoint

What Claude helps with, what you own, where to save the note and the README link.

Lecture notes pp. 13-14
Prompts T1, T2 and X1

Drafting from evidence, reviewing without replacing, and the closeout reflection.

Prompt library pp. 15-18
Optional extension OE1

A reusable checklist or Skill, outside the core sequence.

Prompt library pp. 18-19
Decision records

The ADR hub and a team-oriented view of ADR practice.

Readings p. 4 (Optional 3-4)

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 4 videos, not a transcript. The videos and any slides were not supplied, so nothing on this site is attributed to them, including the demo friction the notes say the recording shows.

Two numbering schemes

The notes number their sections Part 1 to Part 8, while the hands-on work and the prompt library use 4.1 to 4.6. Part 3 is 4.1 and Part 8 (the technical note) is 4.6. The lessons follow the notes’ parts and mention the hands-on number.

Demo values, not universal ones

Python 3.11, uvicorn app.main:app --reload --port 8000, pytest -v, app/main.py and app/models.py come from the course’s demo context; the notes say so for the Python version. Use the versions, commands and paths your own repository actually has.

The claim-vs-reality rows are examples

The three rows in the notes’ claim-vs-reality table (POST 200 versus 201, DELETE returning JSON versus 204, free status movement) illustrate the kind of mismatch to look for. They are not findings about any particular repository.

Tool features are dated to the documents

/status, /model, /init, plan mode, permissions, /review (“if available”), auto mode and Skills are described as the documents describe them at their date. Nothing here claims what Claude Code, Copilot or Cursor can do today.

/health is assumed

The notes and prompt D1 assume the app already exposes /health. They do not show how to add one if it is missing; that would be a separate, reviewed code change.

A mislabelled prompt range

The library’s quick reference lists “D1-D2 Dockerfile + .dockerignore,” but D2 is the verification and security-log prompt. The library also has no separate end-of-module checklist table; its quick reference is used here, and X1 is the closeout.

Readings text and titles

In the readings PDF, the Optional 2 “read this part” line is scrambled in the text layer and is reconstructed as “Useful, Noise, Wrong.” Core 4’s item title says “AI code review” while its link names GitHub Copilot code review. The PDF has no reading-to-lesson map or link-rot caveat; both are added here and labelled as such.

An earlier library is mentioned

OE1 says it preserves “the useful idea from the old prompt library.” That earlier version was not supplied.

Checked against the supplied documents cited in each note.

What not to take away

The lessons actively work against these misreadings:

  • A green CI check means the tests are protecting the project.
  • If the Docker image builds, it is ready to ship.
  • A small image is proof that the Dockerfile is correct.
  • Documentation that reads clearly is accurate.
  • The CLAUDE.md that /init generates is ready to commit.
  • Claude Code is the best tool for every task, including one-line edits.
  • An AI review can stand in for a human review.
  • Noise and Wrong review comments cost the same, so one bucket is enough.
  • When CI fails for a real reason, the fix is to make the step pass.
  • A polished AI-written decision note is good enough to submit.

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