If the spell that targets Skulking Ghost has no other targets, it won't resolve (because it no longer has a legal target after Gossamer Phantasm has been sacrificed).

Artwork
Loading artwork…
Skulking Ghost
The List · #EMA-107 · EN
Nonfoil—Foil—
Card rules
Flying
When this creature becomes the target of a spell or ability, sacrifice it.
2/1
"They exist only so long as the living take no notice." —Kifimbo, Shadow guildmage
Common · Illustrated by Robert Bliss
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Skulking Ghost's triggered ability resolves before the spell that caused it to trigger. It resolves even if that spell is countered.