@lopin Difficult to distill into a single post, so here's a bunch of links which have been useful to for writing internal guidelines at work:

blog.jgc.org/2013/07/write-goo
cbea.ms/git-commit/
jaywhy13.hashnode.dev/can-a-go
chiark.greenend.org.uk/~sgtath
github.com/erlang/otp/wiki/wri
tbaggery.com/2008/04/19/a-note

Maybe one day I'll write my own post collating all of this, but there’s a lot of good info in these.