
A diagram before the command
If the flow does not fit on one page, it is not ready to automate.
Drawing the path forces you to see what comes in, what goes out, and where it stops. On the page the mess is visible. In the command, it hides behind a line that looks correct.
If the flow does not fit on one page, it is not ready. It does not need a formal diagram. Boxes and arrows that another person can read are enough.
What the page has to show
The start, each decision, and the output. Also the place where you have to stop. A flow with no stop automates the mistake with the same discipline as the success.
- One box per step, with a verb.
- The arrow for what comes in and what goes out.
- The branch where a person is told.
- The name of who confirms it came out right.
The command comes after, copying the page. If writing it turns up a step that was not drawn, go back to the paper. Do not improvise in the terminal.