In Google Slides, it is possible to skip a slide manually by right clicking on it and selecting "Skip slide". In that case, the slide will not show up when being presented.
I cannot seem to recreate this programmatically with Google Apps Script. Does this function exist, or is there any workaround here?
Skipping slides via Slides API is not available at the moment.
There is feature request https://issuetracker.google.com/issues/112692346 you can "star" it.