Tutorials / Disciplined AI-Assisted Development · Lesson 6 of 14
On this page
Overview of the Process
Lessons 01 to 05 were about how an AI behaves and how to talk to it. This lesson is the map for the rest of the course: the whole process on one page. There is very little to read, because each part gets its own lesson later.
Our goal: see why the same AI can give two developers very different days, and see the seven steps and two rules that the rest of the course teaches.
Here is the route:
- Two developers, one AI.
- What the second developer did that you do not see.
- The seven steps.
- The two rules.
- Who steers.
- The example project used from here on.
- Why this works: an AI is helped by what helps a person.
We leave out the detail of every step. Each has its own lesson, starting with lesson 07.
Two developers, one AI
Meet two developers, Alex and Sam. They use the same AI, and they work through the same list of small features for an online bookshop's back-office tool, such as adding a book. They are made up, to show a pattern, and the numbers in the pictures are not measurements.
Alex opens the AI and starts typing. The AI does not know the project, so Alex explains it. The result is close but not right, so Alex explains more. Parts get redone, then redone again. Alex works hard all day, delivers one feature, and ends up tired and frustrated.
Sam has a quiet day and delivers five features. The prompts are short and the first attempt is right. Four need no fixes, and the fifth needs one tiny one.
Alex is not lazy or unskilled. The effort is going to the wrong place. The next section shows where Sam's went.
What Sam did that you do not see
Sam did not use a better AI, and is not smarter than Alex. Sam did the thinking earlier, and wrote it down. So the prompt is short, because the context lives in files the AI reads first.
The effort did not disappear. It moved to the front, before any code. Writing things down takes time, so Sam's first feature may not be faster than Alex's. But the files are reused for every later feature and every new session, which is why the days get calmer. This is the handbook from lesson 02: a new hire every time, and the handbook holds the memory.
The seven steps
This is the map. The rest of the course fleshes out each step.
Before any code is written
Explore
Discuss the problem and goals with AI, tapping its broad technical knowledge to explore the options, then decide together.
Document
Write down the project decisions, what the team likes and doesn't, and a list of what to build.
Specify
Write each feature out in detail before any coding, a batch at a time.
Then the code
Build
AI codes one feature at a time, working from its write-up.
Test and AI review
AI reviews the code and writes unit tests.
Human review
Every change is read and approved by a person before it goes in.
Refine
Tick off the feature and move to the next one.
Steps 1 to 3 are conversation and writing, so they work in a plain chat. In steps 4 to 7 the AI gets hands (lesson 04), which is why they come after the thinking.
The two rules
Two rules sit over all seven steps. They are the discipline in this course's title.
Why docs first? An AI reads the docs. If the code changes first, the docs now describe something that no longer exists, and the next session is steered wrongly (lesson 02, "walls, not a guarantee"). Lesson 08 introduces rule 1 and lesson 14 uses it. Rule 2 is the handbook idea again: each lesson learned makes the next result better, judged by your own team's standard.
You steer
The AI brings knowledge and speed. It does not decide. At every step it drafts, and you read, decide and approve. When the draft is not right, you say what to change, and it tries again (lesson 05).
The process is general. It works with any capable language model and any tool that lets you talk to one. The examples use Claude Code, so there is something concrete to type and see. Steps 1 to 3 need no tool beyond a chat window. Claude Code arrives in lesson 10.
The example we use
From here, every example is one small project: a back-office tool for an online bookshop, the same shop as in the API course. Staff use it to add books without typing about 2,000 of them by hand, and to find them again.
The code is C#, and you do not need to read it. The lessons show the documents and the conversations, not the whole program.
Why this works
Look at what Sam did: wrote decisions down, split the work into clear tasks, read every change, and kept what was learned. That is not special to AI. It is what good teams already do, because people also guess when they are not told, forget what was not written, and make mistakes that a second pair of eyes catches.
An AI is now much the same on this point. It does better work when it is given good guidance, clear tasks and a check on the result, and it does worse work, faster, without them. So the same engineering practice that makes a team trustworthy also makes the AI's results better.
💡 A simplification: inside, an AI is not a person (lesson 01). What matches is what helps it: clear guidance, small clear tasks, a second look. Keep the idea, not the comparison.
Recap
- The same AI gives two developers very different days. The difference is practice, not talent or the model.
- The second developer did the thinking earlier and wrote it down, so the prompts are short and the context lives in files. The effort moved to the front. It was not removed.
- The process has seven steps: Explore, Document, Specify (before any code), then Build, Test and AI review, Human review, Refine.
- Rule 1: any change of plan goes into the docs first, then the code.
- Rule 2: every lesson learned goes back into the docs, so later results are better.
- You steer. The AI drafts, and you decide and approve.
- An AI is helped by what helps a person: good guidance, clear tasks, a second look. Good practice makes better results.
Questions to think about
The answers are left out on purpose. Try them in your own words first.
- Why were Sam's prompts short and Alex's long?
- Where did Sam's effort go, and why does it pay back?
- What are the two groups of the seven steps?
- In your own words, what does rule 1 protect against?
- Why does good engineering practice help an AI, as it helps a person?
Next lesson: step 1, Explore. How to talk a problem through with an AI and decide what to build.