One of my favorite books is "how to fail at almost everything and still win bigly" by Scott Adams. It's basically an autobiography, and he shares a lot of valuable wisdom from his life experiences.
The biggest thing I got out of that book was that of increasing your odds of luck. The basic idea is that for each skill you add to your arsenal, you increase your likelihood of being in the right place at the right time. He thinks that for each skill, you double your odds of being found, but I'm not so sure I would go that far.
I know that picking up extra side projects where you can develop new skills related to the work you want to get into has been very valuable in reaching out to new people and was really how I got the job I am in now. Aside from trying to master a certain area, there are many others that you can work on to put yourself in a position to be able to use that master skill in an ideal work environment and show up on the radar of people who could put you there.
Key takeaways:
1) You can increase your odds of luck by learning new skills
2) It can be as substantial as for every new skill you learn; your odds of "being found" double
3) Learn new skills aside from the ones you want to master