Mob Spawn Detection

How to detect when a mob has naturally spawned like zombies or skeleton spawning naturally in light level 0, and then detect that mob and give it something or do something with it?
Continue to help post