Why a decision note
Code tells a reader what exists, but not always why. A future teammate may look at the status rules, the CI choices or the Docker design and wonder why the project works that way. A short note captures the reasoning before it disappears.
- An architecture choice for the Task Tracker.
- Status transition rules and why they are enforced this way.
- The refactor approach from Module 3.
- DevOps decisions such as CI scope or Docker design.
- The lecture’s example: In-Memory Dict as the Task Storage Layer.
Key ideaClaude drafts. You own the voice.
The required structure
Six sections, each answering one question. Keep the Decision clear and unhedged.
| Section | Question it answers |
|---|---|
| Context | What situation or problem led to the decision? |
| Decision | What did we decide? State it clearly. |
| Alternatives Considered | What other options were possible? |
| Trade-offs | What did the chosen option make easier, and what did it make worse? |
| Consequences | What changes for the codebase or team because of this choice? |
| Open Questions | What remains unresolved or worth revisiting later? |
Division of labor with Claude
The notes split the work in four pairs. Claude helps with evidence and structure; the judgment stays with you.
Claude
- Reads the evidence files
- Drafts the six headings
- Lists alternatives
- Suggests open questions
You
- Choose the evidence that matters
- Rewrite in your own voice
- Explain the real trade-offs
- Write the open questions yourself
Prompt T1 marks Trade-offs and Open Questions “DRAFT - REWRITE IN MY OWN WORDS”; T2 reviews your rewrite without replacing it.
| Claude can help with... | You must own... |
|---|---|
| Reading evidence files such as app/main.py, app/models.py, Dockerfile, .github/workflows/ci.yml, and README.md. | Choosing which evidence matters and rejecting generic claims. |
| Drafting the six headings and a first-pass summary. | Rewriting the prose so it sounds like your reasoning, not a model-generated summary. |
| Listing possible alternatives. | Explaining the real trade-offs and constraints from this project. |
| Suggesting open questions. | Writing open questions from scratch based on what you would actually revisit. |
Save it, link it, own it
Save the note under docs/decisions, add a link to it from the README, and include a reflection sentence that begins “I would do this differently...”. The notes’ checkpoint: continue only when the README link works and the note sounds like you, especially in Trade-offs and Open Questions. Prompt T2 suggests reading it aloud; it should sound like a decision you made, not a generic design document.
From the notes# Save the note here docs/decisions/<short-name>.md # Required README action Add a link from README.md to the decision note. # Required reflection sentence "I would do this differently..."
Close the module with evidence
Prompt X1 closes the module. It uses only the evidence you paste in, marks each deliverable Complete or Missing, lists the evidence you still need, and drafts a tool-fit reflection with one short paragraph per tool. The reflection compares Copilot, Cursor and Claude Code for different kinds of task and does not declare a single winner. Check every item against files, logs, screenshots or notes before you submit.
- Claude Code setup and CLAUDE.md verification notes.
- CI green, red and green-again evidence.
- Docker /health and whoami evidence, and the security log.
- Documentation claim-vs-reality log.
- AI review triage summary.
- Technical note path and working README link.
- Tool-fit reflection comparing Copilot, Cursor and Claude Code.
Optional: capture a workflow you repeat
The library’s optional OE1 turns a workflow you keep repeating, such as the CI safety review or the claim-vs-reality audit, into a reusable checklist or a project-scoped Claude Code Skill, with explicit safety limits on what it may read, edit and run. The library is clear that this is outside the core lecture sequence. Use it only after the core deliverables are done, and prefer a plain Markdown checklist if Skills are not available in your setup.
Read with careOE1 is optional extension work, not a Module 4 deliverable. Skills are described as the library describes them at its date.
Key takeaways
- A decision note keeps the why that code cannot show.
- Use the six sections: Context, Decision, Alternatives, Trade-offs, Consequences, Open Questions.
- Claude can draft structure; you own the evidence, voice, trade-offs and open questions.
- Link the note from the README and close the module with evidence, not claims.