Create macro for Sketch App
I haven't used Sketch, so can't comment on how well it may work with Automator, but one option would be for you to create an Automator workflow to try and replicate your actions.

There are many online resources that can help you get started. Below are three of them:


Automator Help (Apple's official Automator guide)
MacOSXAutomation.com
Automator World


You can also use Automator’s ability to record what you’re doing to create the basis of your workflow and then modify it to meet your needs. To do this:


Open Automator
Press commandN (or go to File > New)
Select the Application option
Click the Choose button
Click the red Record button (located at top right of the toolbar)
Now carry out one of the tasks you want to automate (i.e. switch over to Sketch, click on the Plugins menu, etc)
Automator will record your actions to try and copy your workflow
Stop the recording
Now back within Automator save your workflow


NOTES:


Recorded Automator tasks are far from perfect and often require you to manually edit them to work the way you want, but it may be a way for you to get started.
Depending on what you're doing, you may need to give permission for things to work. For example, if you create an application you may need to go to System Preferences > Security &amp; Privacy and within the Privacy tab select the Accessibility option in the Sidebar and then give permission to what you've just created so that it can control your Mac.