You have the wrong idea. It's not skills that pay, it's companies. Learn to crush the interview circuit for the companies paying 300k+. There aren't that many.
The website levels.fyi will give you some insight into which companies can afford the rates you're talking about.