Test Driven Writing (or Test Driven Documentation)

During the writing (and rewriting) of my last two posts I had this idea: what if we could leverage LLMs for a closed-loop rewriting cycle?