Most catch blocks shouldn’t exist. An exception should rise until it reaches a layer with the context to act on it, and the catches that deserve to exist fit five patterns.
Web search hands an AI assistant stale forum posts and deprecated APIs. Shallow submodules of the Home Assistant and HACS docs, symlinked under docs/ and described in CLAUDE.md, give it the real thing.
An AI assistant showed me C#’s $$ raw interpolated strings while I was getting something else done. Learning now happens sideways, and knowing a feature exists doesn’t replace judgement about when to use it.
A starting template for the instructions file an AI coding assistant reads before it touches your repository. It gets what you know about boundaries and shared code out of your head and into a file the tool reads.
AI coding assistants are too helpful: the code works, but it doesn’t belong. SOLID principles, used as constraints on the assistant, give it the pause an experienced developer has before changing things.