Experimenting with Starlette 1.0 with Claude skills

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Starlette 1.0 breaks compatibility with training data, but Simon Willison shows Claude can self-generate a Skill from the new release notes to write working 1.0 code.

Read this as

Starlette, the Python web framework that quietly powers the popular FastAPI, just reached version 1.0. The update changes how apps handle startup and shutdown tasks, so older example code may not work. Because AI assistants learn from older code, Simon Willison taught Claude the new version by having Claude itself build a reference guide, then used it to generate a working task-management app.

Starlette 1.0 shipped in February 2026 with breaking changes, notably replacing on_startup/on_shutdown parameters with an async context manager 'lifespan' mechanism. Since FastAPI runs on Starlette, teams relying on AI-generated code face a training-data gap. Willison's workaround, having Claude build its own Skill document from the repo, offers a repeatable pattern for keeping AI coding current with new framework releases.

Starlette 1.0 (release candidate February 23, 2026) deprecates on_startup/on_shutdown in favor of a lifespan asynccontextmanager. Willison used claude.ai's skill-creator to clone the repo and generate a SKILL.md covering every feature, then prompted a separate chat to build a working app (Starlette 1.0 + aiosqlite + Jinja2), which Claude self-tested via TestClient and httpx against its own API endpoints.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Starlette 1.0 FastAPI Claude Datasette Uvicorn aiosqlite

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading