I'd recommend reading Cal Newport's "So Good They Can’t Ignore You: Why Skills Trump Passion in the Quest for Work You Love" for some great insights on how to build your skills whilst changing jobs/careers. His approach in 3 steps:
1. Develop skills that are rare and valuable
2. Do something useful and good for the world
3. Work with people you like