If you can’t put it in words, you can’t put it in code

I often write design documents even if no one will read them.
There are a lot of resources out there on how to write good design documents. There are also many different ways to define what constitutes a design doc — what it includes, how long it is, how formal it is, etc.