Hierarchical Skill Learning for High-Level Planning