Hello a9n66,
Thanks for reaching out through the Apple Support Communities about triggering a shortcut or automation when your Mac starts or stops charging.
There doesn’t appear to be a trigger related to the charging status for the Shortcuts or Automator apps. Below are some great resources for both apps:
Shortcuts User Guide for Mac
Automator User Guide for Mac
If you have a moment, you can provide more details on your suggestions and recommendations for additional triggers using the follow link: Feedback - MacBook Air
Take care.