Skeletons won't shoot you when you attack them on creative, as well as all hostile mobs losing interest in you after a short period after you attack them.
Linked issues
Comments 2
This ticket has been marked as a duplicate of MC-15111, in favor of the better description/information provided.
This is not a bug, but a feature request, and should be posted on the MC forums here.