Rename skeleton spawn egg to "Dinnerbone", then make little cage for the skeleton, so that he can see you trough the lower block of the cage. If you stand in front of it, skeleton still looks around randomly and doesn't shoot, as if it doesn't see the player. However, if top block is exposed, it can see you and starts shooting (arrows com from its legs).
Funny bug. 🙂