AI-Assisted Coding · Midcourse projectPart 5

Study explanation · Part 05 · 10 min

The five documentation files

User stories, a mini-ADR, a prompt log, verification evidence and a reflection. Concise Markdown, enough detail that another person can follow the task, the constraints, the AI’s response and your decision.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

The five files

Use concise Markdown. Screenshots are optional. You do not need to paste huge transcripts; keep enough detail that another person can understand the task, the constraints, the AI response and your decision.

Documentation deliverables · Midcourse brief pp. 2-3
FileRequired contents
user-stories.md3-5 user stories per selected feature. Each story must include acceptance criteria. Mark at least one AI assumption you corrected for each feature.
mini-adr.mdA short decision note explaining how you implemented the two features, what alternatives AI suggested, and what you rejected as too complex or out of scope.
prompt-log.mdAt least 3 meaningful prompts per feature. Include one weak prompt rewritten into a stronger prompt. For each prompt, summarize what AI returned and what you accepted, edited, or rejected.
verification.mdBaseline check, backend test results, manual browser checks, behavior contract before/after refactor, and Break Test evidence for at least two tests.
reflection.md250-500 words. Explain which AI tools you used for what, one moment AI helped, one moment it slowed you down, and one place where your review changed the result.

Read with careThe brief first says to place documentation in docs/, then requires docs/midcourse/ at submission. Putting every file in docs/midcourse/ satisfies both.

User stories with a corrected assumption

Three to five stories per feature, each with acceptance criteria you could test. Then the part that shows ownership: for each feature, mark at least one assumption the AI made that you corrected. Name the assumption, name the correction, and say what in the repository or the brief told you it was wrong. Module 1 taught you to review AI-drafted requirements; this is where that review becomes visible.

A mini-ADR, written before coding

The mini-ADR is a short decision note, not a design document. For each feature: what you decided, what the AI suggested instead, and what you rejected as too complex or out of scope, with a reason. Write it before you code, as the workflow says, and update it if a decision changes. Module 1’s rule still holds: the AI can draft alternatives, but the ADR is in your own words.

The prompt log records decisions

At least three meaningful prompts per feature. For each one, a short summary of what the AI returned and what you accepted, edited or rejected. A list of prompts without decisions misses the point: the decision is the evidence of review. Include one weak prompt rewritten into a stronger one, and say why the first was weak.

A prompt-log entry shape (study-guide illustration)Prompt: (the exact prompt, or a short faithful excerpt) AI returned: (two or three lines) Accepted: ... Edited: ... (what and why) Rejected: ... (what and why) Verified by: (command, test name or browser check)

From weak to strong

A weak prompt usually bundles several features and phases, names no files or constraints, and asks for something unmeasurable like “test everything”. A stronger prompt narrows to one feature and one phase, points the assistant at the real files, states the rule and its edge cases, says what not to touch, and tells it where to stop.

Weak and strong prompts for the same work · Midcourse brief p. 3 · Study-guide synthesis

Weak

  • Two features, every phase at once
  • No files, no repository facts
  • No edge cases or scope limits
  • “Test everything”
  • Invites a large rewrite

Strong

  • One feature, one phase
  • Read the real files first
  • States the rule and its boundaries
  • Names the tests and evidence wanted
  • Says what not to change; stop after

Verification and reflection

verification.md is where your evidence lives: the baseline, test results, manual browser checks, the contract before and after the refactor, and the Break Tests. Record what you observed; if something was not run, say NOT RUN and why. The reflection is 250 to 500 words: which AI tools you used for what, one moment AI helped, one moment it slowed you down, and one place your review changed the result. Specific moments beat general lessons.

Key ideaNever write evidence you did not observe. An honest NOT RUN is stronger than an invented PASS.

Key takeaways

  • Five files in docs/midcourse/: stories, mini-ADR, prompt log, verification, reflection.
  • Each feature needs at least one corrected AI assumption, named and explained.
  • The mini-ADR records what AI suggested and what you rejected, in your own words.
  • Every prompt-log entry ends in a decision: accepted, edited or rejected.
  • Record only observed evidence; mark anything not run as NOT RUN.

From the midcourse project brief (4 pages), with links back to the Module 1-3 habits it reuses.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Part 6