AI-Assisted Coding · Module 1Lesson 7

Study explanation · Lesson 07 · 11 min

Hands-on A: requirements

The 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.

Listen to this lesson

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

Narrated by an AI voice.

Each output feeds the next

Part 7 is the hands-on session. Its three activities run in order, and each output becomes context for the next prompt. That chaining is what keeps AI-assisted development coherent instead of random.

The hands-on chain: each output is the next prompt’s context · Lecture notes pp. 13-14
  1. Part AReviewed user storiesDrafted by AI, corrected by you
  2. Part BOne-paragraph ADROptions from AI, decision by you
  3. Part CRunning FastAPI skeleton/health returns 200, /docs opens
  4. AfterReflection logRight, corrected, assumed
The three hands-on activities · Lecture notes p. 14
PartActivityOutput
AAI-assisted requirements6–8 reviewed user stories with acceptance criteria.
BAI-assisted architecture and tech stackOne-paragraph ADR in your own words.
CScaffold project skeletonRunning FastAPI skeleton with /health returning 200 and Swagger at /docs.

A project idea is not a specification

“Build a task tracker” hides unanswered questions: which statuses are allowed, what makes a title valid, what happens when a task is missing, and whether status transitions are restricted. AI is useful here because it removes the blank page and drafts stories quickly. But the draft is not the deliverable. Your job is to review, correct and own the requirements.

Key ideaThe AI draft is not the deliverable. You review, correct and own the requirements.

The story areas to expect

The notes list the areas a reviewed story set should cover, and what to check in each.

Expected story areas · Lecture notes p. 14
Expected story areaWhat to check
Create taskTitle is required; description can be optional; created task appears in the list.
View tasksAll tasks are returned in a predictable shape.
Filter tasksFiltering by status and priority behaves clearly and rejects invalid filter values.
Update task detailsAllowed fields are clear; invalid input is handled.
Move through statusesAllowed transitions are explicit. The lecture correction highlights that Done should not move back to ToDo or InProgress.
Delete taskMissing task behavior and status code are defined.
Validate task dataEmpty or whitespace-only title, invalid status, and invalid priority are rejected.

Read with careDone-cannot-move-back is the only transition rule the documents give. Whether a task may jump straight from ToDo to Done, or what a repeated update should do, is left open: decide it and write it down, or label it as an assumption.

Review focus

Before anything moves to architecture, ask these of the draft.

  • Is each story buildable?
  • Is each acceptance criterion testable?
  • Did AI add auth, users, admin roles or other out-of-scope assumptions?
  • Did it miss edge cases such as a whitespace-only title or an invalid status transition?

The A1–A4 prompt chain

The library splits Part A into four prompts. Each one is a different step of the loop applied to requirements, and A4’s follow-up produces the short summary you paste into the architecture prompt.

  1. A1 · Ask: generate 6–8 stories with scope, exclusions, target user, story format and 2–3 testable criteria each.
  2. A2 · Inspect for scope: find every story or criterion that assumes login, accounts, admins or notifications, and rewrite only those.
  3. A3 · Harden: encode the real rules, title required after trimming, exact status and priority values, Done cannot move back, each with HTTP 422.
  4. A4 · Review for testability: pass or needs revision per story, flag vague words like “works” or “properly,” minimal edits only.

Reading for this activity

The core reading for Part A is Atlassian’s guide to user stories: the “As a [user], I want [goal] so that [reason]” format, the 3 Cs, and why acceptance criteria make a story testable. If you want the research behind AI-drafted requirements, the optional papers are listed in a suggested order.

Key takeaways

  • Requirements feed architecture; architecture feeds the scaffold.
  • AI removes the blank page; you own the stories.
  • Check every story for buildability, testability, scope and edge cases.
  • A1 drafts, A2 de-scopes, A3 hardens, A4 reviews.

Built from the Module 1 lecture notes, prompt library and additional readings; the videos they accompany were not supplied.

Your study checkpoint

Ready to continue?

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

Next · Lesson 8