Kitarou, a ghost, spends his afterlife helping humans in need of his skills. He thwarts the plans of evil spirits who live to torment humanity.
https://www.animenewsnetwork.com/encyclopedia/anime.php?id=1328