When a command has some cognitive requirements I create a script with some ${1:-default} values and I store them all in $PATH enabled local/bin
All my scripts start with __ and then some capital letters indicating the topic.
I can copy them to new machines, which is something I would not do with my history.