Interesting comment. Critics of H1B note that it's not actually a skills problem, it's that you can pay an H1B with the same skills less and treat them worse because the threat of deportation hangs over them if they lose their job.
The solution is, if you have X skillset and have been paid at least Y dollars for Z years in your home country (to prove experience), have a visa that isn't bound to a particular employer, and also here is a defined process for getting a green card before that visa expires should you want one.