A Skeleton will follow the new AI feature to attack Iron Golems when equiped with a bow. However if a Skeleton has no item, or any item besides a bow, they will not attack a Golem. To replicate this, simply summon an Iron Golem, and a Skeleton without a bow.
Dupe of MC-5589.