Skip to content

Instructor's Guide

Anybody who has taught someone to drive knows the hardest part of the job. The learner holds the wheel, and the teacher keeps their own hands still. The teacher watches the road, asks where the car is going, and speaks up before the curb, not after it. Nobody gets the feel of a car any other way.

Teaching this book works the same way. Your learners already drive. Each of them has shipped an app with an AI coding agent, and the agent writes the code. Your job is to help them see the road: which parts of their app must be right, which can be good enough for now, and which cheap habits keep the agent inside safe limits. You keep your hands off their app. They make the judgment calls, and you ask the questions that lead them there.

This guide explains what's in the book and how to run it with a group or with one person. It also covers how to keep a session safe when every learner is working on an app with live users.

Who This Guide Is For

This guide is for four kinds of instructor:

  • A workshop lead running one or two days with a group of builders.
  • A course teacher running a short course over several weeks, one session a week.
  • A lunch-and-learn organizer who has an hour at a time with a team, a co-working space or a meetup.
  • A mentor helping one builder through the book at their own pace.

You don't need to be a professional engineer to teach it. You do need to have read the chapters you are teaching, tried their MicroSims, and run a few of the Tell your agent prompts on an app of your own. If a learner's question goes past what you know, Chapter 18's section on getting help from an engineer applies to you too.

Who Your Learners Are

The reader of this book knows a field well and had a problem to solve. They used an AI coding agent such as Claude Code, Cursor, Replit, Lovable or Bolt to build a working app. They didn't train as software engineers. Their app has users, or soon will, and it holds data those users care about: photos, messages, payments, personal details.

They arrive with the prerequisites the course description lists. They have built at least one app with an agent. They can run a command in a terminal and read the output, and they have pushed code to GitHub at least once. Nothing more is assumed. No programming course, no computer science degree and no engineering job.

A few things about this group shape how you teach it.

  • They are busy, and they want what changes their next move. Every section of the book ends with something the reader can tell their agent to do. Keep sessions pointed the same way.
  • Their own app is the best teaching material you have. A gap a learner finds in their own code teaches more than any example. Plan every session so learners spend most of the time on their app, not listening.
  • They may feel exposed. Learners will find secrets in git history, routes anyone can call, and checks that never ran. The book never judges the builder, and you shouldn't either. A gap is a fact about code, and finding one is the point of the exercise. Thank the person who shares one with the room.
  • They direct an agent; they don't write code line by line. Don't turn a session into a coding lesson. When a fix is needed, the learner tells the agent what to do and then reads the diff.

What the Book Contains

Part Count Where
Chapters 18 List of chapters
MicroSims (interactive simulations) 55, plus the learning graph viewer MicroSims
Tell your agent prompts 175, across the chapters Inside each chapter
Quiz questions 180, ten per chapter A Quiz page under each chapter
Annotated references 183, about ten per chapter A References page under each chapter
Glossary terms 394 Glossary
FAQ questions 105, in six groups FAQ
Concepts in the learning graph 393, joined by 641 dependencies Learning graph

It's all a free website. Learners need a browser and their own app, and nothing has to be installed to read it or to run the MicroSims.

The Chapter Sequence

The chapters build on each other, and each one lists the earlier chapters it depends on under Prerequisites. Keep them in order the first time through.

Chapters Topic area
1 Good enough as an idea: satisficing, trade-offs, one-way and two-way doors, risk, and sorting an app into must-be-right and good-enough-for-now parts
2–3 The app itself: how a request travels from browser to server and back, and the frameworks, packages, storage and jobs underneath
4–5 Working with the agent: how coding agents work and fail, instruction files, plans, and git as an undo button
6–8 Protecting people: secrets and keys, sign-in and permissions, and sensitive data with the product rules that protect members
9–11 Keeping it working: outside services, tests, and databases with safe schema changes
12–14 Running it: errors and logs, cost control, and environments, deploys and rollbacks
15–17 Keeping it changeable: technical debt and docs, security as a habit, and rules that enforce themselves
18 Risk, readiness and knowing when you need help, ending in the capstone review of the learner's own app

Chapters 1, 2 and 4 come up in almost every later chapter's prerequisites, so never skip them. If your group has less time, Chapters 3, 13 and 15 are the easiest to set as reading between sessions rather than teach in the room.

Each chapter runs from about 8,500 to 13,000 words, counting its quiz and references. Plan on 40 to 60 minutes of reading per chapter, and more for a learner who stops to run every prompt on their own app.

What Each Chapter Contains

Every chapter has the same parts, in the same order.

  1. An opening scene. Each chapter starts with something ordinary that anybody has seen, such as a gate and a wall, or a car check before a long drive. The engineering idea comes out of that scene, and the chapter returns to it at the end. These scenes make good session openers.
  2. Summary. What the chapter covers, in two or three sentences.
  3. Concepts covered. A table of the concepts from the learning graph, each with its Concept Impact Score. A higher score means more later concepts depend on this one.
  4. Prerequisites. Links to the earlier chapters it builds on.
  5. The main text. Short sections, each tied to the running example, with worked examples, tables and diagrams.
  6. MicroSims. Two to four per chapter, placed beside the idea each one teaches.
  7. Tell your agent boxes. A prompt the reader can paste into their agent to apply the section to their own app.
  8. Key takeaways. A short list of what the reader should keep.
  9. Quiz and references. Separate pages, listed under the chapter in the left navigation.

Chapters also include a mascot, Sawyer the Beaver, who appears in short boxes to welcome the reader, flag a pitfall or offer a tip. Sawyer is there for readers working alone; you don't need to do anything with Sawyer in a session.

The Running Example

The whole book follows one app: a dating-safety app built by a domain expert with AI agents. A member uploads photos, voice clips and text about someone they met online. The app runs about eight checks in parallel against outside services and returns a trust score from 0 to 100. It runs on a common stack: a React front end, an Express server, a Postgres database, a private storage bucket for photos and Stripe for payments. Adapters connect it to AI models, image search, people search and text-message vendors.

This example works for teaching because the stakes are easy to feel. A check that silently fails and gets scored as a pass tells a member a stranger is safe. A route that skips the sign-in check shows one member's photos to another. Learners grasp those stakes at once, then find the same shapes in apps about recipes, invoices or class schedules.

The example has a few product rules that come back in many chapters, such as "never report all clear unless every check ran" and "never reveal a person's location." Point these out. They show learners that a product rule only protects anyone if it lives in code and has a test.

Keep the example as the book writes it. It describes a kind of app, not a named product, and nothing in it should be used to guess at or criticize any person or company.

Formats That Work

Pick the format that fits your group's time. Every format follows the same rule: learners spend most of their time applying the chapter to their own app.

Self-Study With a Mentor

One builder reads a chapter a week and runs its prompts on their app. You meet for 30 to 45 minutes. Start by asking what they found, not what they read. Look at the files their agent wrote together, ask which calls they made and why, and agree on the one change they'll make before you meet again. Over 18 weeks this covers the book. Many builders move faster through Chapters 2 and 3 if they already know their stack.

A Short Course (Seven Sessions)

One session a week, two to three hours each, with reading done before the session.

Session Chapters What learners leave with
1 1–3 A map of their app's parts and a first list of must-be-right parts
2 4–5 A project instruction file for their agent, and the habit of a branch and a pull request per change
3 6–8 Secrets out of git, an access review, and a data inventory
4 9–11 A list of vendors with what happens when each one fails, a first test on the most important path, and a backup they have restored once
5 12–14 Error logging, an alert, spending caps, and a deploy checklist
6 15–17 A debt register, a security review, and one rule turned into an automatic check
7 18 A first pass at the capstone review, with the plan for finishing it

If you have more weeks, split session 3 and session 4 in two. Those six chapters carry the most must-be-right material.

A One-Day Workshop

A full day can't cover the book, so cover the chapters that protect members first, and send learners home with the capstone plan.

Block Chapters Focus
Morning, part 1 1 Sort each learner's app into must-be-right and good-enough-for-now parts
Morning, part 2 4 and 5 Write an instruction file, and set up branches and pull requests
Afternoon, part 1 6 and 7 Find secrets in git history, and check every route for a server-side access check
Afternoon, part 2 9 Find every place a failed vendor call could look like a success
Close 18 Start the capstone plan, and agree on a date to check in

A two-day workshop can add Chapters 8, 10 and 14 on the second morning, and give the second afternoon to capstone steps 1 to 3.

A Lunch-and-Learn Series

An hour is enough for one chapter if learners read it beforehand. Spend ten minutes on the opening scene and the main idea, and twenty minutes on one MicroSim with the room making predictions. Give the last thirty minutes to learners running one or two Tell your agent prompts on their own apps and reporting back. If the series is short, choose Chapters 1, 6, 7, 9, 14 and 18, which hold the decisions that are hardest to undo.

Running a Session

A session that works well for this group has four parts.

  1. Open with the chapter's scene. Retell it in a minute, then ask the room where they have seen the same thing in their own app.
  2. Run one MicroSim on a shared screen. Ask learners to predict what will happen before you change anything, then try it. The MicroSims that ask learners to sort, such as Must-Be-Right or Good Enough for Now and Spot the Agent Failure, work well as a group vote.
  3. Apply it to their own app. Learners run one or two Tell your agent prompts from the chapter on their own app. Most prompts ask the agent to find and report, not to change code, so they are safe to run in a room. Walk around and ask what they found.
  4. Share and close. Two or three learners describe one finding and the decision they made about it. Close with a few quiz questions, answered in pairs.

Keeping a Live Session Safe

Learners are working on apps with real users, so a session can do harm if it's careless. Set these ground rules at the start and repeat them when they matter.

  • Never put a secret on screen. Before anyone shares their screen, they close .env files and dashboards that show API keys. If a key does appear on a shared screen or in a recording, treat it as leaked and replace it that day, as Chapter 6 describes. Its Leak Response Drill is good practice before it's needed.
  • Never show a member's data. No photos, messages or personal details from production on a shared screen. Use made-up records.
  • Report first, change second. Run the prompts that ask the agent to find and report before any prompt that changes code.
  • Every change goes on a branch. No agent edits straight to the main branch in a session. Learners read the pull request before they merge it (Chapter 5).
  • Nothing runs against production in the room. Migrations, runbook walk-throughs and deploy rehearsals happen on a local copy or a staging copy. Chapter 11 warns that an agent's "reset the database" fix deletes every row anywhere but a laptop, and Chapter 18 walks through runbooks on staging or a local copy only.
  • Learners change their own account settings. When a step needs a setting changed, such as making CI required on GitHub, the learner does it themselves.

Using the Tell your agent Prompts

Prompts are where the book turns into work on the learner's app. There are 175 of them, and most chapters build one or more documents in the learner's repository as they go. Over the book, a learner who runs the prompts ends up with a short stack of files that record what matters in their app:

Chapter Files the prompts create or update
1 docs/must-be-right.md
2–3 docs/endpoints.md, docs/app-parts-map.md, docs/routes.md, docs/scheduled-jobs.md
4 CLAUDE.md or AGENTS.md, the agent's instruction file
5–6 README.md, .env.example, docs/rotating-secrets.md
7–8 docs/access-review.md, docs/data-inventory.md, docs/data-flow-map.md, docs/product-safety-rules.md
9 docs/vendors.md
11 docs/schema-changes.md, docs/backups.md
14 docs/hosting.md, docs/deploy-checklist.md, docs/rollback.md
15 docs/tech-debt.md, docs/architecture.md
16 docs/attack-surface.md, docs/security-review.md
18 docs/fmea.md, docs/runbooks/, docs/readiness.md, docs/handover.md, docs/review-plan.md

Chapters 10, 12, 13 and 17 add tests, logging, spending limits and automatic checks to the code rather than new documents.

A few tips for using the prompts with a group:

  • Encourage learners to edit the prompts. The prompts name the running example's stack. A learner on a different stack should change the names and keep the request.
  • Ask what the agent got wrong. Agents give confident wrong answers, as Chapter 4 explains. A good discussion question is "What did your agent report that turned out not to be true?"
  • Check that files got committed. Each document is only useful if it is in the repository where the next session, or the next engineer, can find it.

Using the MicroSims

What a MicroSim Is

A MicroSim is a small interactive simulation that runs in a web browser. Learners move a slider, sort a card, step through a request, or make a call and see what happens. Nothing needs installing, and they work on any modern browser.

The book has 55 MicroSims across its 18 chapters, plus a viewer for the learning graph. Most were built with a few common tools:

Tool What it's used for Examples
p5.js (41 sims) Step-through animations, sorters, calculators and drills Follow One Request, Spend Guard Simulator, Runbook Drill
Mermaid (6 sims) Flowcharts and step diagrams From Branch to Main and Back, From Sign-In to Every Request
vis-network (5 sims, plus the graph viewer) Maps of parts and connections App Parts Map, Attack Surface Map
Chart.js, vis-timeline and plain HTML (1 each) A chart, a timeline and a table to fill in Pay Now or Carry It, How a Convenience Endpoint Grows Teeth, Access Matrix Gap Finder

Tips for Using MicroSims With a Group

  1. Try each one yourself before the session. All 55 are built and waiting for the author's final review, which the orange dot beside each one in the left navigation shows. Run through the one you plan to use so nothing surprises you in front of the room.
  2. Ask for a prediction first. Before you press a button, ask the room what they expect. A wrong prediction that gets corrected sticks.
  3. Tie it back to their app. After the sim, ask "Where is this in your app?" The sim shows the running example; the learner's own app is the point.
  4. Use the fullscreen button. Every embedded MicroSim has a button below it that opens it on its own page, which is easier to read on a projector.

Reading a MicroSim's Specification

Below each MicroSim in a chapter is a folded section with its name. Open it to see the specification. It lists the learning objective, the Bloom's level it targets, the misconceptions it's designed to catch, what counts as evidence of mastery, and the steps a learner follows. The misconceptions list is the most useful part for an instructor. It tells you which wrong ideas to listen for in the room.

Putting a MicroSim on Another Page

You can show any MicroSim on a page you control, such as a course site or a learning management system, with one line of HTML:

<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/must-be-right-sorter/main.html"
    width="100%" height="564px" scrolling="no"></iframe>

Replace must-be-right-sorter with the name of any MicroSim from the MicroSims list. You can find the name in the address bar when the MicroSim is open.

Using the Quizzes

Each chapter has a quiz of ten multiple-choice questions, 180 in all. Each answer is hidden in a folded box with an explanation of why each option is right or wrong, and a link back to the section it tests. The quizzes aren't graded and don't record scores. They are for checking understanding.

Each question is tagged with a level from Bloom's Taxonomy, a common way of sorting thinking skills from recalling a fact up to creating something new:

Level What it asks the learner to do Questions in the book
Remember Recall a fact or definition 37
Understand Explain an idea in their own words 53
Apply Use an idea in a new case 46
Analyze Break a situation into parts and see how they relate 37
Evaluate Make a judgment against a standard 5
Create Put together something new 2

Most quiz questions check understanding and application. The higher levels, judging and creating, are what the capstone review is for.

Ways to use the quizzes:

  • Warm-up. Three questions at the start of a session show what stuck from the reading.
  • Pairs. Two learners agree on an answer before they open the box. Where they disagree, spend a few minutes.
  • Close. End a session with the chapter's Analyze questions, which usually describe a situation from the running example.
  • A question bank. Use the questions in your own materials, within the license below.

Using the Glossary, FAQ, References and Learning Graph

The glossary defines 394 terms in plain language. Learners meet a lot of new words, and many of them sound like ordinary English but mean something specific, such as migration, rollback or authorization. When a learner uses a term loosely in discussion, point them to its entry.

The FAQ answers 105 questions in six groups, from getting started through advanced topics. Many are the questions builders ask in a first session, such as whether they need to learn to code. It's a good place to send a learner who asks something between sessions.

The references pages list about ten sources per chapter, 183 in all, each with a note on why it's worth reading. Some are web pages and some are books. If a link stops working, search for the title, or look it up in the Wayback Machine.

The learning graph maps the book's 393 concepts and the 641 links that show which concepts depend on which. The Learning Graph Viewer lets you search for a concept and see what it builds on. Use it when a learner is stuck: the concept they're missing is usually one step back in the graph.

The Capstone Review

Chapter 18 ends with the capstone: a full good-enough review of the learner's own app. It has nine steps. Each fits in one sitting, and each has three parts: what to tell the agent, the call only the builder can make, and how to know the step is done.

  1. Map the app.
  2. Mark the must-be-right parts.
  3. Run a failure mode and effects analysis (FMEA), which ranks what could go wrong.
  4. Fix the top five risks, each with a check that fails if the fix comes undone.
  5. Make those checks required before code merges.
  6. Write runbooks for a leaked key, a vendor outage and a bad deploy.
  7. Run the readiness check.
  8. Check for signs the app has outgrown good enough.
  9. Write a one-page handover note an engineer could pick up.

Running It With a Group

Expect the capstone to take longer than one session. Most learners need one sitting per step, and step 4 takes five, one per fix. Treat the last session of a course as the start of the capstone, not the end of it.

  • Do steps 1 to 3 together. Learners map, mark and rate in the room, where they can compare notes. Severity ratings make the best discussion, because they depend on what a failure does to a member.
  • Let steps 4 to 9 happen between sessions. Set a check-in date two to four weeks out.
  • Pair learners for review. Each learner reads a partner's handover note and says what they'd ask if they were the engineer receiving it. Swap only documents, never access to each other's apps or secrets.
  • Use the Done when lines as your checklist. They are specific enough that you and the learner can agree whether a step is finished.

Your Role in the Capstone

The capstone keeps the judgment calls with the builder on purpose. The agent suggests which parts are must-be-right; the builder decides. The agent guesses how likely a failure is; the builder rates how bad it would be for a member. You should keep to that split yourself. When a learner asks whether something is a must-be-right part, ask them Chapter 1's four questions back. What happens to a member if it's wrong? Can the mistake be undone? How many members would one failure reach? Would anyone notice quickly?

Some learners will reach step 8 and see that their app needs an engineer. That counts as a good outcome. Chapter 18 shows how to ask for a review that makes good use of an engineer's time, and the handover note is what makes it possible.

Seeing Progress

There are no grades in this book, and you don't need any. Progress shows up in the learner's repository. A learner who is getting it has the files from the table above, committed, and kept up to date. Their agent instruction file grows as they learn. Their pull requests get smaller and are read before merging. Their debt register has entries with dates.

A short conversation tells you more than a test would. Ask a learner to name their app's must-be-right parts and the check that protects each one. A learner who can answer that in two minutes has learned what the book is for.

Adapting the Book to Your Group

  • Learners on a different stack. The running example uses React, Express and Postgres, but the ideas apply to any web app. Learners on other stacks edit the prompts to name their own tools. Chapter 3 helps each learner map what their agent chose.
  • Learners without an app yet. They can follow the running example through the MicroSims and worked examples, and start the prompts once they have a project. Pair them with a learner who has one for the hands-on parts.
  • A mixed group. Some builders will be well past others. Ask the more experienced ones to share a mistake they caught in their own app. It helps the group and keeps them engaged.
  • Teams sharing one app. Give each person a different chapter's prompts on the shared app, then have them review each other's pull requests. That practices Chapter 5's review habits with a real diff.

Understanding the License

The book is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0). A Creative Commons license is a standard public license that tells you what you may do with a work without asking each time.

Part Name What it means for you
BY Attribution Credit the author, Arun Batchu, and link to the book
NC Non-Commercial Don't use the material to make money
SA Share-Alike If you change it and share the result, share it under the same license

You may share links to the book, copy chapters for your learners, use the quiz questions in your own materials, embed MicroSims and adapt the content for your group. In return, credit the source and share your changes under the same license.

If you plan to charge for a workshop or course built on this material, contact the author first, because the Non-Commercial term applies. Read the full terms on the license page.

Feedback

If you teach from the book, the author would like to hear what worked and what didn't. That includes a MicroSim that confused your group, a prompt that failed on a common stack, a question the book doesn't answer, or a broken link. Use the contact page.

Back to the Driving Lesson

A good driving teacher doesn't stay in the passenger seat forever. The goal is a driver who checks their mirrors with nobody beside them. This book has the same goal. A learner who has finished it doesn't need you, or this guide, to tell them where the curb is. They look at a new feature and ask which parts must be right, what could go wrong, and what check would catch it. When your learners start asking those questions before you do, you can take your hands off the dashboard.