If you use an apex you can have the skimmer plugged into one of the controllable outlets. Then use the code
(If outlet return off then off)
So when the return turns off it cuts the power to the skimmer pump.
Then the use the defer code to give the skimmer some time to allow the water level in the sump to go to operating levels before the skimmer turns on. You use this code
(Defer 002 then on)
This code stops the skimmer from turning on for 2 minutes when the return turns back on.
But if your a controller freak like me you can then use float switches in areas of the sump that will shut the skimmer down incase water levels are higher then what they should be. You can also have a float switch in the cup of the skimmer so if the skimmer cup fills full the skimmer will turn off before the skimmer overflows. Here’s the coding I use on my skimmers outlet