This is a simple example macro that uses a text trigger (yt-dlp#) to display a selection of shell inputs (which at least I can't remember) for a command with a short description and pasts the selection to the terminal. Nothing fancy, but it took me years of looking stuff up again and again, before coming up with this.
A great idea — and one that's been taken to an extreme by tldr, a community-driven tips sheet for a whole slew of Unix and macOS Terminal commands. I installed it via Homebrew, but their site lists a number of alternatives.
Here's what it has to say about yt-dlp:
$ tldr yt-dlp
yt-dlp
A youtube-dl fork with additional features and fixes. Download videos from YouTube and other websites. See also: yt-dlp, ytfzf. More information: https://github.com/yt-dlp/yt-dlp.
Download a video or playlist using the best MP4 video available (default is "bv*+ba/b"):
yt-dlp [-f|--format] "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" "https://www.youtube.com/watch?v=oHg5SJYRHA0"
Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst),...etc.
It's obviously not as specific as your personalized cheat sheet, but I find it invaluable for a slew of commands (ln, rsync, etc) whose options I can never remember :). And there are tldr entries for hundreds of commands, both built-in and third party.