For engineering
Technical Spec
A spec in Google design doc format, written from what customers said and the patterns already in your repo. Every decision cites something real.
Two people read a spec. The reviewer, who wants to know why you did not just do the obvious thing, and the engineer who picks it up on Monday and finds the one interesting question still open.
Write it from what customers said and what the repo already does:
Every line points at something: a customer who said it, or a file that already does it.