Well, your facetious advice is correct. Just switch the order. Talk to people -> build social skills -> talk to everyone -> find yourself in new friendships and relationships.
Just consider the fact that if you’re lonely, doing more of the same isn’t going to help you. It’s easy to be dismissive, but you’re going to have to push your comfort zone to find change.