Back it up, Jack! (how to backup your shortcuts locally)
I stole this from a dude on reddit: Create a shortcut to backup your shortcuts!
https://www.icloud.com/shortcuts/04c0e6390f1f45338aec0239abc1bbb2
To restore, just expand the backup file (.zip) and double-click the shortcut you want to restore. Easy-peasy. Works on Mac and iPhone.
Don’t forget to create an automation in Shortcuts to run the backup shortcut periodically. (Mine is set to run every Wednesday at 7 pm.)
Most of the logic in the shortcut goes to creating a place to store the backup file, but the logic to actually create the zip archive is this: