Automated Skill Discovery for Language Agents through Exploration and Iterative Feedback