Workshop index · Download all examples and lessons
Working title: Code reviews with AI: a practical Emacs workshop.
Audience: developers comfortable with Git and basic Python or TypeScript. Choose one language track; the other is optional practice. Estimated core time: five hours. Emacs commands are introduced as needed.
Principles
Understand intended behaviour; make an independent first pass; treat AI findings as hypotheses; inspect beyond the diff; prioritise consequences; verify tests as well as code; distinguish investigation from repair; own the final comments and decision.
Background reading: Google’s review checklist and guidance on comments. Our exercises apply these review fundamentals to AI-assisted investigation.
Sequence
| Unit | Skill and deliverable | Python / TypeScript examples | Status |
|---|---|---|---|
| 1. Which comments would you leave? | Classify claims; reproduce a defect; write a decision | Matching capacity boundary and valid refactor | Complete + checked |
| 2. Your Emacs review workspace | Navigate diff/source/tests; record reviewed revision | Same exercises, chosen track | Isolated setup verified + screenshots |
| 3. Understand the change | Map input, validation, service and output; list invariants | Trace booking requests through language-specific adapters | Complete + checked |
| 4. Ask verifiable questions | Maintain confirmed/rejected/unresolved evidence log | Python falsy defaults; TypeScript ` | |
| 5. Write a meaningful regression test | Demonstrate failure for the right reason | Repeated cancellation; unawaited asynchronous test | Complete + checked |
| 6. Review beyond the diff | Trace a cross-component failure | Retry duplicates; concurrent overbooking | Complete + checked |
| 7. Write and follow up a review | Prioritised comments and decision after revision | Caller regression; runtime API compatibility | Complete + checked |
| 8. Capstone | Independent review with evidence and uncertainty | Equivalent waitlist promotion changes | Complete + checked |
The opening exercises deliberately use equivalent logic. Later exercises introduce language-specific failure modes. An optional extension connects a TypeScript client to the Python API to investigate contract drift.
Lesson format
Each lesson includes time, prerequisites, outcome, a worked example, independent task, progressive hints, checkpoint, resume instructions, and separately linked solutions. Exercise snapshots remain independently accessible. Record model/provider/version and date for future actual transcripts; label constructed responses explicitly. Never grade readers on reproducing model wording.
Include sound patches and misleading AI findings. Require evidence for blocking comments. Do not tell learners how many bugs to find in the capstone.
Capstone rubric
Score each dimension 0 (missing), 1 (partial), or 2 (clear and evidenced):
- Understanding: identifies intended behaviour and important invariants.
- Verification: substantiates defects and rejects unsupported claims.
- Prioritisation: distinguishes blocking issues from optional improvements.
- Communication: gives specific, respectful, actionable comments.
- Decision: ties the verdict to evidence, scope, and remaining uncertainty.
A useful target is 8/10, with no unsupported blocking claim and no missed critical defect listed in the eventual answer key. Accept sound reasoning and additional valid findings not anticipated by that key.
Publication
Use /workshops/code-review-with-ai as the landing page and workshop catalogue entry. Lessons live under /workshops/code-review-with-ai/lessons/, with series navigation and a companion download. They do not appear in the DevOps notes feed. Reuse the blog’s mdsvex/SEO conventions and link the terminal workshop as optional preparation.
The repository contains the complete lesson sources and runnable materials. Blog routes include a workshop landing page, eight lesson pages, supporting materials, screenshots, and a downloadable source archive. The workshops section is enabled, including navigation and the existing terminal workshop. The archive lets readers run everything without a separately published GitHub repository.
Validation and publication
The exercise author checks verify the intended defects and reference fixes in both languages. The isolated Emacs setup is tested in batch and in a real GUI; screenshots use Caleb’s Doom dark theme. See docs/verification.md for the actual environment and commands.
A fresh-reader pilot remains useful editorial feedback, but is not represented as having happened. A full clean installation of the optional Doom/Claude integration is not required or claimed. The user authorised unhiding the workshops section and including the series in production. Deployment remains a separate action.