AI code review · Self-paced workshop

Curriculum and publication plan

Practise understanding changes, checking AI findings, and making review decisions you can defend.

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

UnitSkill and deliverablePython / TypeScript examplesStatus
1. Which comments would you leave?Classify claims; reproduce a defect; write a decisionMatching capacity boundary and valid refactorComplete + checked
2. Your Emacs review workspaceNavigate diff/source/tests; record reviewed revisionSame exercises, chosen trackIsolated setup verified + screenshots
3. Understand the changeMap input, validation, service and output; list invariantsTrace booking requests through language-specific adaptersComplete + checked
4. Ask verifiable questionsMaintain confirmed/rejected/unresolved evidence logPython falsy defaults; TypeScript `
5. Write a meaningful regression testDemonstrate failure for the right reasonRepeated cancellation; unawaited asynchronous testComplete + checked
6. Review beyond the diffTrace a cross-component failureRetry duplicates; concurrent overbookingComplete + checked
7. Write and follow up a reviewPrioritised comments and decision after revisionCaller regression; runtime API compatibilityComplete + checked
8. CapstoneIndependent review with evidence and uncertaintyEquivalent waitlist promotion changesComplete + 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.