Related to the process of "write down what you did",
I'm reminded of this article about "literate sysadmin/devops" which used Emacs' org-mode as a way of combining prose, commands and command output.
http://howardism.org/Technical/Emacs/literate-devops.html