Normally, a skimmer is usually plumbed with bypass either to a wall port or main drain like this:

https://poolplaza.cybrhost.com/pool-...ercutoff.shtml

This is suppose to prevent the pump from running dry although it doesn't always work as planned.