Skip to main content
Updated Mar 07, 2026

Phase 2 — Specify with Types

Chapters 34, 35, 36, 37: Types as the Language of Intent

Your role: Specifier — "I can tell AI precisely what to build"

AI output is only as good as your specification. Phase 2 teaches you to specify with precision — using Python's type system as the vocabulary you give to AI before it writes a single line. You learn primitive types and expressions, typed collections (lists, dictionaries, tuples, sets), data models for structuring real domains, and function signatures as contracts. By the end, you can write a type-annotated specification that tells AI exactly what to build — no ambiguity, no guessing.

#ChapterKey Focus
34Primitive Types and ExpressionsThe building blocks of typed specifications
35Collections — Lists, Dicts, Tuples, SetsStructured data for real domains
36Data Models — Dataclasses and PydanticModeling your domain precisely
37Functions as ContractsFunction signatures as specification language